java - Javamail Send email work with wifi connection but not with data mobile -


i'm new in android. i'm learning javamail create app can send email notification. follow tutorial https://www.simplifiedcoding.net/android-email-app-using-javamail-api-in-android-studio/

it's working in emulator android. can receive email. tried install app in android device wifi connection, it's working well. when use data mobile connection (not wifi) email not sent. can tell me why?

thanks advance.

solution @agung comments

add code

<uses-permission android:name="android.permission.access_network_state" />

in androidmanifest.xml file...


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -