Showing posts with label Android. Show all posts
Showing posts with label Android. Show all posts

Friday, August 21, 2015

Android Studio Error - java.lang.UnsatisfiedLinkError ... couldn't find "libstlport_shared.so"

PROBLEM:

While trying to use the SmartStore feature of the Salesforce MobileSDK on Android Native, I encountered the following error while trying to debug the app.

java.lang.UnsatisfiedLinkError ... couldn't find "libstlport_shared.so"


CAUSE:

It appears the issue is with Gradle not supporting native libraries.
The workaround is to create a zip archive of the armeabi/, rename it to .jar in your libs/ and include it as a gradle dependency.

SOURCE:

https://groups.google.com/forum/#!msg/adt-dev/nQobKd2Gl_8/Z5yWAvCh4h4J

Thursday, May 10, 2012

Updating Meteor Message Centre Number on Android ICS

PROBLEM:

"Update Error" displayed when trying to update the SMSC number with the Meteor Message Centre number +353857000000 on Android Ice Cream Sandwich


CAUSE:

The SMSC has to be encoded in PDU (Protocol Description Unit) format


SOLUTION:
Access the config setting by dialing *#*#4636#*#*, select Phone Information and scroll to the end of the page.
Enter the encoded Meteor Ireland message center number value: 0791538375000000 and click Update.
Encoded Format:

  • 07 = length of number in octets
  • 91 = international format (replaces the +)
  • the rest of the number in decimal semi-octets. If the number of digits is odd, an F needs to be added.

(Encoded value obtained using converter on this page)


SOURCE:

http://blog.ginzburgconsulting.com/setting-smsc-number-on-an-android-phone/


Saturday, April 21, 2012

Eclipse & Android - Device Connection Failing


PROBLEM:
When launching code to run on a connected Android smartphone through eclipse, sometimes the connection fails and errors like this appear:

adb rejected install command with: device offline

or

Unable to open sync connection!


SOLUTION:
Locate adb.exe and manually kill and start in the command line:







SOURCE:
http://stackoverflow.com/questions/5484636/android-device-debug-stopped-after-plug-other-phone

Monday, August 15, 2011

Gmail App on Android - Sent mail stuck and not sending

This happened to me today, I replied to a mail with large attachments, and the mail got stuck in sending state, and didn't send. After reading many forums, the following fix worked for me:




  1. Open Outbox
  2. Select original offending message
  3. Scroll to end and select REPLY, and then SAVE Draft.
  4. Close Outbox and open Drafts
  5. Open email and you can then access the unsent message, copy it or delete/discard it.

Monday, August 30, 2010

Android - Why not to use a task killer

Looks like task killers on android are not recommended:

- By killing an app with a task killer, you remove the state information for that app, meaning the app has to be opened fully the next time you use it, instead of loading from where it was, thus using more battery.
- It also leads to possible instability by killing processes that may be shared by different apps.
- Android is smart enough to handle memory allocation.

via Droid Den:
http://www.droid-den.com/android-guides/android-guide-should-i-use-a-task-killer