Saturday, November 23, 2013

[android-developers] Advice for SMS backup & restore apps - not working?

I tried to follow the blog here: http://android-developers.blogspot.fr/2013/10/getting-your-sms-apps-ready-for-kitkat.html

However I cannot make the 'Advice for SMS backup & restore apps' section work.

My app is a simple SMS backup/restore app, it has permissions to read/write SMS, but when I do this, nothing happens:

Intent intent = new Intent(context, Sms.Intents.ACTION_CHANGE_DEFAULT);  intent.putExtra(Sms.Intents.EXTRA_PACKAGE_NAME, context.getPackageName());  startActivity(intent);

If instead I use this:

startActivityForResult(intent, CHANGED);

Then onActivityResult() is called with RESULT_CANCEL


Can someone please help? What am I missing to make it work?


Thanks,
C.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate