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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to