Skip to Content

Quick question - Android app works on simulator, not on devices

This is probably something stupid, but I can't see it right now.

I tried famous SMP101 tutorial app and it works fine on simulator but not on devices: Galaxy Tab 2 and Galaxy S2.

I think that both devices are already registered in SCC, can see them in Application Connections but there are offline:

What am I missing?

scc.PNG (29.5 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Jan 09, 2014 at 01:05 PM

    Ok now everything works. Thank you all for help.

    To make a summary for someone with same problems:

    Solution for problem with WiFi on devices is adding android.permission.ACCESS_NETWORK_STATE in AndroidManifest.xml.

    Solution for crashing when change orientation is:

    <activity
    android:name=".SMP101SampleActivity"
    android:screenOrientation="portrait"
    android:configChanges="keyboardHidden|orientation|screenSize">

    in AndroidManifest.xml.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 08, 2014 at 02:05 PM

    Strange.. You have to check in server and client logs for more information.

    Btw: which simulator (android version) you have tested this app?

    what about device's android OS version?

    Rgrds,

    Jitendra

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member is right, android restarts the running activity when orientation changes. You can use the below code too, this make make the app work only in portrait mode.

      <activity android:name=".POListActivity" android:configChanges="orientation" android:screenOrientation="portrait" />

      -Midhun VP

  • Posted on Jan 08, 2014 at 01:52 PM

    What is in the log? increase the log level to debug in SCC>configuration Log settings (mobilink, dataservices and MMS) and check. Also you can debug the program and check where the code stops.

    - Midhun VP

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.