Tag: android-intent

How to share internal storage file with Gmail Client

I am trying to share my internal storage file via Gmail client on my Moto Razr, but every time I sent to my test gmail account, I got everything except attachment. This is how I invoke and start gmail, while add file as attachment. private void saveDaily() { Intent intent = new Intent(android.content.Intent.ACTION_SEND_MULTIPLE); intent.setType(“text/plain”); intent.putExtra(Intent.EXTRA_EMAIL, […]

Android clickable Widget with ListView not clickable on ListItems

I am having trouble making my Widget clickable. The following code is working partially. My Widget shows a ListView with Items. When clicking into the Widget where no Item is displayed, the Intent works and the Activity starts. But when clicking on an Item of the ListView nothing happens. Here is the Code: WidgetProvicer: public […]

codename one android intercepting urls issue

I am having a problem intercepting urls with android on codename one. I got it working fine for ios using the build hints ios.urlScheme and ios.plistInject. The build hint I used for android is: android.xintent_filter=<intent-filter> <action android:name=”android.intent.action.VIEW” /> <category android:name=”android.intent.category.DEFAULT” /> <category android:name=”android.intent.category.BROWSABLE” /> <data android:scheme=”mibrand” /> </intent-filter> However android is not registering the text […]

Android How do I retrieve picasa photo from built-in gallery?

I want to retrieve the photos from built-in Android gallery calling ACTION_PICK Intent. I have a problem with Picasa’s images. I have used the code to this link, but it don’t work (the File object don’t exist). Any idea, please.

Activity return a image

I want to return a bitmap in my activity, so other applications can use it. Returning a text is clear. Intent data = new Intent(); data.putExtra(“text1”, “text.”); data.putExtra(“text2”, “longer text.”); setResult(RESULT_OK, data); But how to return a bitmap? More Information: The activity has several intents to be available for everyone who wants to get a […]

Android – How to retrieve list of registered geofences

How can I determine all geofences registered for an application? After registering GeoFences with LocationClient.addGeofences(),I waited for onAddGeofencesResuls()(which returned SUCCESS) and tried to use LocationClient.getTriggeringGeofences(intent) with the same intent I used for registration, but I only got null.

App force closes when google+ is not installed

My requirement is to share on Social networking sites. So, I have already done with Facebook and Twitter. But I am stuck with Google+. I have the following code to share on Google+, but the app forcecloses when I start activity. This occurs only when the Google+ app isn’t installed on device already. I know […]

“Permission denied for the attachment” (on Gmail 5.0) trying to attach file to email intent

This question has been posted before, but there was no clear or accepted answer and all of the solutions provided that were supposed to “work” didn’t for me. See here: Gmail 5.0 app fails with "Permission denied for the attachment" when it receives ACTION_SEND intent I have an app which builds up data in a […]

Integrating MuPDF as a library project (Android)

So I have built this project based on a pdf reader(MuPDF). I used ndk-build for that. The name of this project is ChoosePDFActivity. I know that it has been correctly built because I can see a .so file inside my libs/armrabi-v7a/THISISTHEFILE.so. My question is, how do i Correctly make this project a library project and […]

add caption to image on new whatsapp ver 2.11.399 (android)

Friends, On android “whatsapp messenger” version 2.11.399 (Sep 30, 2014) it is possible to add a caption (textual decription) to a shared image. I share image via intent as follows: Intent share = new Intent(android.content.Intent.ACTION_SEND); share.setType(“image/jpeg”); Uri imageUri = Uri.fromFile(file); share.putExtra(Intent.EXTRA_STREAM, imageUri); //share.putExtra(Intent.EXTRA_TEXT, “This is my text to send.”); // NOT WORKING startActivity(share); How can […]

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.