how to get email\gmail data to activity? - android

how to get mail buddy from email by choosing ?
i found some sulotion's here at stackoverflaw but when i finnaly found something that might work i gut permission error and as i understood from user here its blocked by google .
is it realy blocked ?
(java.lang.SecurityException: Permission Denial: opening provider com.google.android.gm.provider.MailProvider from ProcessRecord{4284e9f0 15683:com.example.buylist/10158} (pid=15683, uid=10158) requires com.google.android.gm.permission.READ_GMAIL or com.google.android.gm.permission.WRITE_GMAIL) - > this is the error . i add permission as asked from me and it still wont work .
if so , can u give me simple intenet that open gmail imbox (gmail built in app) .
and in related issue , i did get data from sms but can i do it with whatsup ?
thanks !

can u give me simple intenet that open gmail imbox (gmail built in app) .
No, because that is no longer allowed. Only fools did it in the first place, since it was not part of the OS, was not documented, and was not supported.

Related

ContentProvider read permission denied

I have implemented ContentProvider in application.
Application 1:
Implemented ContentProvider with permission.
Application 2 :
Access above ContentProvider using permission.
Everything working fine if first i install Application 1 and then install 2 Application.
Issue is here
If i install Application 2 first and then install application 1.
then i got read permission error.
One solution.
Add below code in manifest protection_level = "signature" then working fine.
But both application is different with different sign.
If anyone know how to solve this issue, Please write the answer ! Response is appreciated

publish_actions permission error

I'm having a problem with publish_actions. I added publish_actions to Items, but got the error shown below:
It looks like you haven't made any API requests to access content
with the publish_actions permission in the last 30 days.
Please let me know how to fix this.
Are you in a situation of asking for the new "login review"? If so, I suspect (not sure) that Facebook checks that you, as the admin of the app, also uses the app and go through the relevant logic. I may be wrong, but see if it helps.
Previous answers do help. But for those who struggled like me, here's the trick:
You have to use the API to post something, but you can't just do that with any Facebook user. You have to use the APP OWNER's account. That's the Facebook user that you used to login to developers.facebook.com
None of any other accounts counts. Only that one can do it. When they say "YOU". They mean literally.
Hope this helps others with the same problem.
Same problem with me .So I have a create dummy application using facebook graph api in which pubish_actions permission is used to post the data and when I login and post the data with another facebook id then it shows error of denied permission then i go again and submit the items again .The error goes it self .

Custom content provider access from another app

I have two apps. one of the two has a custom content provider which works like a charm.
APP A -> The one with the provider
APP B -> The one that needs the data from the provider
Everything works fine in this scenario:
1st : Install app A
2nd: Install app B
However when I do it like this:
1st: Install app B
2nd: Install app A
I get the error :
09-19 13:07:22.576: E/AndroidRuntime(14621): Caused by: java.lang.SecurityException: Permission Denial: opening provider
uk.co.ringsizer.ui.BirthProvider from ProcessRecord{450c14c8 14621:uk.co.gemtv/u0a360}
(pid=14621, uid=10360) requires com.eir.provider.Size.READ_DATABASE
or com.eir.provider.Size.WRITE_DATABASE
My permissions are clearly stated in the manifest file and they are correct since it works if I install the apps in a different order.
It's the first time I'm using Content provider and I am relatively new to Android so the problem might be obvious to more experienced developers.
Any ideas? Has anybody else experienced the same issue before?
Thanks in advance.
The app that defines the custom <permission> must be installed before the app that requests it via <uses-permission>. If they are installed in the wrong order, the <uses-permission> app does not get the permission and must be uninstalled and reinstalled.
Custom permissions in general are risky for SDK apps.
Make sure that BOTH apps have the permission attribute in the manifest.
<permission android:name="com.example.permission.READ" />
I had only the use-permission attribute in the consuming app, and had exactly this problem. It'll work if the content provider app is installed first, but will fail if the content provider app is installed second.
When the consuming client app has the permission attribute as well, it will work regardless of app install order.

Access Android Emails through Content Provider

I have four questions regarding Android default email program. Please help me to answer the questions respectively.
Thanks in Advance
1) How can we access the Device Database?
2) How can we setup email on Emulator?
3) Can we read Email Content Through Email Content Provider like (AttachementProvider.java)
I have found in Git
4) Can anyone tell me the correct Email URI
I have found the URI that is not working
"content://com.android.email.attachmentprovider"
1) How can we access the Device Database ?
You can't.
2) How can we setup email on Emulator ?
I would assume that you tap on the icon in the launcher and follow the prompts, the way you would set it up on a regular phone. Bear in mind that this application may not exist on all phones.
3) Can we read Email Content Through Email Content Provider like ( AttachementProvider.java) i have found in Git
There is no documented and supported API for any email client in the Android SDK.
4) can any one tell me the corret Email URI i have found the URI that is not working "content://com.android.email.attachmentprovider"
I repeat, there is no documented and supported API for any email client in the Android SDK. You have been specifically told not to use undocumented content providers, since they will be changed without warning and, again, may not exist on all devices.

Security exception while calling bindAppWidgetId

While developing a Launcher (Homescreen) application for Android, I've come into a security exception I don't understand.
When calling the
[bindAppWidgetId()][1] method from
within my Launcher Activity, I get
this security exception :
08-19 11:30:11.689: ERROR/AndroidRuntime(6032): java.lang.SecurityException: bindGagetId appWidgetId=99 provider=ComponentInfo{com.android.music/com.android.music.MediaAppWidgetProvider}: User 10034 does not have android.permission.BIND_APPWIDGET.
I first thought I had forgotten the BIND_APPWIDGET permission in my manifest, but it is definitely there.
The android api documentation states this :
"You need the APPWIDGET_LIST
permission. This method is to be used
by the AppWidget picker."
I tried to add the permission android.permission.APPWIDGET_LIST, but it doesn't solve the issue.
Also, I've looked at the manifest of the Settings application from the android sources that contains the AppWidgetPickActivity code : there's a special line that asks to share user id :
"android:sharedUserId="android.uid.system"
Could it be related to my problem ?
If anyone has an idea that would be great !
Cheers,
Laurent
I've found an answer!
BindAppWidgetId() is deliberately not available to applications! (security problems).
"The android.permission.BIND_APPWIDGET
permission is a system permission. You
can only get that permission if your
package is installed as a system
package (installed in /system/app in
stead of /data/app) or sign you app
with a certificate that's the same as
your android image. So basicly this
means you can only use this permission
if you are also the creator of the
android image on your platform/phone."
Here are the links to this information :
http://groups.google.com/group/android-developers/browse_thread/thread/231245ba6d1e690f/047b9d3f776d7e54?lnk=gst&q=bindAppWidgetId#047b9d3f776d7e54
http://groups.google.com/group/android-developers/browse_thread/thread/f24e0f484a79d529/ef84188e8533a125?lnk=gst&q=bindAppWidgetId#ef84188e8533a125
A quick Google search reveals that android.permission.APPWIDGET_LIST is a usable permission, even though it's not listed in the API docs.

Categories

Resources