Quantcast








     

Android ACTION_IMAGE_CAPTURE intent returns null on onActivityResult

stackoverflow.com - 2013-04-26 13:33:18 - Similar - Report/Block

We are facing an issue for passing intent data to protected void onActivityResult(int requestCode, int resultCode, Intent data) method when we start ACTION_IMAGE_CAPTURE intent getting null for intent Here is my code for starting camera activity and passing data to the onActivityResult() public void takePicture() File directory = new Fi...

data in onActivityResult is null

stackoverflow.com - 2012-05-10 13:43:54 - Similar - Report/Block

I am trying do a simple application for Android. I have two Activities (A and B). In B I only want select a date. I start A, and do: Intent intent = new Intent(); intent.setClass(this, B.class); startActivityForResult(intent,1); Then, in B, I do: Intent intent = getIntent(); setResult(RESULT_OK); intent.putExtra("Date",dateSelected)...

Starting Settings Activity for result

stackoverflow.com - 2013-03-04 10:47:40 - Similar - Report/Block

In my application I'm checking whether the GPS is enabled on the user's device, and if not I would like to send him to the Settings to let him turn it on. Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_S ETTINGS); startActivityForResult(intent, LocationHelper.LOCATION_SETTINGS_REQUEST _CODE); After the user closes Settings scree...

onStop when start activity

stackoverflow.com - 2012-08-01 00:47:47 - Similar - Report/Block

I have a probleam. When i starting an activity the onStop method is not always executed. Sometimes i get the following after i start the activity: onPause -> onStop -> onActivityResult -> onRestart -> onStart -> onResume But other times i get only this: onPause -> onActivityResult -> onResume I used this code: Intent intent = new I...

Get Back Result from Android native Calculator

stackoverflow.com - 2012-05-14 08:09:20 - Similar - Report/Block

I'm invoking android native calculator from my app, how do i get result data from it.. means i started native calender like this, after finishing calculation i press back onActivityResult is not executing.. Help me Intent i = new Intent(); i.setClassName("com.android.calculator2" , "com.android.calculator2.Calculator"); startActivityForRe...

Android - Image picker doesn't work on Kindle Fire?

stackoverflow.com - 2012-03-31 00:07:46 - Similar - Report/Block

I have the following code to display an imagepicker. After user picks an image onActivityResult gets called, to return me the data for the selected image. On kindle however, I get a resultCode of 0, and data as null. Anyone else has noticed this problem before? This problem happens only on kindle fire. startActivityForResult(new Intent(In...

how to upload the image taken by calling camera activity from android phone?

stackoverflow.com - 2010-07-01 11:55:05 - Similar - Report/Block

hi i have an image which is taken from andorid by calling image _capture how do i upload it to a windows server? Intent intent = new Intent("android.media.action.IMAGE_CAPTU RE"); startActivityForResult(intent, 0); public void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCod...

Pass or receive parameter to onactivityresult android

stackoverflow.com - 2013-04-12 08:03:13 - Similar - Report/Block

I have a camera application, with multiple camera button. The code for this is given below. class btnTakePhotoClicker implements Button.OnClickListener int k; public btnTakePhotoClicker(int k) { this.k = k; @Override public void onClick(View v) { capture_img = (ImageButton)view.get(k).findViewById(R. id.clickme); capture_img.setCli...

Ansdoird - Image picker doesn't work on Kindle Fire?

stackoverflow.com - 2012-03-31 00:07:46 - Similar - Report/Block

I have the following code to display an imagepicker. After user picks an image onActivityResult get's called, and it return me the data for the selected image. On kindle however, I get a resultCode of 0, and data as null. Anyone else has noticed this problem before? This problem happens only on kindle fire. startActivityForResult(new Inte...

Java is returning "null" in Android

stackoverflow.com - 2012-04-13 04:12:14 - Similar - Report/Block

I am developing a android application using Eclipse to return the RSSI values of a Bluetooth device. I have modified the Android Bluetooth Chat example to fit my needs, but I am having problems returning the RSSI value. After hitting the scan button to discover nearby devices it returns the device name, device address, and is also suppose...

onActivityResult not getting triggered in Android

stackoverflow.com - 2012-04-09 05:22:49 - Similar - Report/Block

I am making an android application, which takes an image from camera and then displays it. However, I am unable to display the clicked image probably because the onActivityResult() is not triggered. Here is my piece of code. Can anyone suggest me what am i missing ? public class Main extends Activity { /** Called when the activity is fi...

open gallery built-in galery android 3.0

stackoverflow.com - 2012-07-23 04:35:18 - Similar - Report/Block

i want to take a picture from sd card on android using built-in gallery. i use this code Intent intent = new Intent(Intent.ACTION_PICK,android.provid er.MediaStore.Images.Media.EXTERNAL_CONT ENT_URI); intent.setType("image/*"); intent.setAction(Intent.ACTION_GET_CONTE NT); startActivityForResult(intent, GET_IMAGE_SD_REQUEST); it work on a...

evolveStar Join

Extract data from SCAN_RESULTS ZXing

stackoverflow.com - 2012-07-05 22:41:31 - Similar - Report/Block

I have a new question this time with ZXing. O.K I have read all that I can find on this site about using ZXing with an app, but I am confused. I have written my DB app and I want to create a barcode with data, i.e Group name, Hours and cost, nothing complex. I can create the barcode online, not a prob. The problem is how to I extract the...

Android Scale image from Gallery Based on Image Size

stackoverflow.com - 2011-11-16 09:54:57 - Similar - Report/Block

I have an processing image from Gallery in phone. i used the below code to crop and scale image to a specific size since i had to process very large scale images. The code worked fine for scaling and cropping, But unfortunately it resized the smaller image(120*120) to (1024*768). Is there any specific way to avoid scaling to smaller image...

Null pointer exception reports in C2DMBaseReceiver class (from marketplace)

stackoverflow.com - 2011-09-08 14:31:22 - Similar - Report/Block

I have C2DM implemented in my app, I see a decent number of crash reports in the marketplace caused by a null pointer exception in the C2DMBaseReceiver class. This class is from the chrometophone project, which is referenced in the C2DM guide (http://code.google.com/android/c2dm/): http://code.google.com/p/chrometophone/s ource/browse/trun...

Retrieve "content" of GCM message Intent.

stackoverflow.com - 2013-02-22 09:49:16 - Similar - Report/Block

This is how the message is being sent from the server: //Queue Android GCM Notification _pushService.QueueNotification(Notificat ionFactory.AndroidGcm() .ForDeviceRegistrationId(device) .WithCollapseKey("LATEST") .WithJson("{\"alert\":\"" + message + "\",\"badge\":\"7\"}")); I receive the Intent, how do I get the message? I tried: Lo...

Good method practice in Java

stackoverflow.com - 2012-03-15 23:19:28 - Similar - Report/Block

In my Android application I have a new intent which is launched depending on the results and returns of some other methods, so I've launched the intent this way: launchSearchResults(getEventIdentities(g etSearchResults())); This is the code for launch search results: private void launchSearchResults(ArrayList<String& gt; eventIdentities)...

get null value for arraylist on next activity

stackoverflow.com - 2013-03-20 05:51:32 - Similar - Report/Block

please help me.i want to pass array list of item name,quantity,amount and rate from make order activity to next activity confirm order...but on next activity getting null value for that array list what can i do ? code of make order Intent intent = new Intent(MakeOrder.this,Demo.class); intent.putStringArrayListExtra("selected Items",strI...

My BroadcastReceiver is not receiving the BOOT_COMPLETED intent after my N1 boots. Help Please!

stackoverflow.com - 2010-10-14 18:20:43 - Similar - Report/Block

I am unable to get my BroadcastReceiver onReceive method called using the BOOT_COMPLETED intent. AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.co m/apk/res/android" package="com.jerrellmardis.umbrella" android:versionCode="4" android:versionName="1.0.3"> <appli...

Android MediaPlayer.Create() returns null

stackoverflow.com - 2012-08-04 21:37:49 - Similar - Report/Block

I am developing an Android App that plays some sounds. For that I am creating an object of MediaPlayer. Below is the code: mp = MediaPlayer.create(this, R.raw.testSound); Here mp is null for Android 2.3.3 (API Level 10), i tried with other versions of Android (2.1, 2.2 etc.) it works fine. However with Android 2.3.3 (API Level 10) MediaPl...

Newly added Activity designated as Main is not always "Main" Activity shown

stackoverflow.com - 2012-02-20 00:11:44 - Similar - Report/Block

Allow me to explain my predicament. I have been building an app for a while now where it would immediately enter my MainActivity.class . I had this Activity declared in the AndroidManifest.xml file as such: <intent-filter> <action android:name="android.intent.action.MAIN " /> <category android:name="android.intent.categor...

How to call compose message activity in tabView?

stackoverflow.com - 2012-03-19 13:42:20 - Similar - Report/Block

I am making an application in android Source Code(Gingerbread). which requires the compose message activity in tab View. I have tried as follows: Intent intent = new Intent("android.intent.action.VIEW"); intent.setClassName("com.android.mms","c om.android.mms.ui.ComposeMessageActivity "); StickyTabs.setTab(intent, TAB_INDEX_MESSAGES); the...

How to send mail with file attachment in android

stackoverflow.com - 2012-04-02 12:46:04 - Similar - Report/Block

I want to attach .vcf file with my mail and send through the mail. But the mail is received on the address without the attachment.I have used the below code but the code for this and i don't know where i am wrong. try { String filelocation="/mnt/sdcard/contacts_sid.v cf"; Intent intent = new Intent(Intent.ACTION_SENDTO); i...

Match "/app" and not "/appinst" with android:pathPattern (working on an intent-filter)

stackoverflow.com - 2012-06-03 16:16:25 - Similar - Report/Block

I'm trying to make an intent that filters some specific urls. The urls that I'm trying to catch are: http://host.com/app http://host.com/app/ http://host.com/app http://host.com/app/ That can be done by <intent-filter> <action android:name="android.intent.action.VIEW " /> <category android:name="android.intent.category.BR O...

How to select an image from gallery use it in another activty

stackoverflow.com - 2013-05-05 03:12:51 - Similar - Report/Block

Change BackGround.java : How to select an image from gallery . Get uri of this image . Pass uri to another activity.[shared preffrence's ??] Inbox.java : Load image using uri. Set it as backgound of Inbox activity. public class ChangeBackground extends Activity{ private static final int REQUEST_CODE = 0; @Override protected void onCrea...

Programmatically starting the 'Add Google Account' activity in Android

stackoverflow.com - 2012-05-29 18:30:04 - Similar - Report/Block

I am developing an application which needs a Google account for certain options. Options are disabled when no account is detected, but I am presenting the user to add one by asking via a popup, if user clicks yes, the activity should start. It's working fine to display the global "Add account" page, but I want to skip that uncalled for ex...

setting an immutable bitmap image gives errors?

stackoverflow.com - 2012-03-23 12:15:51 - Similar - Report/Block

i'm learning about graphics.Camera. and i have taken a picture by the camera and when i set the taken picture "bitmap image" as canvas, the App crashs and the logcat says "the bitmap image is immutable". actually, i dont know what does that mean? Any suggestion? thanks in advance. OnClickListener btn01Listener = new OnClickListener() {...

Wrapping Intent in LabeledIntent for display purposes

stackoverflow.com - 2012-04-30 23:12:09 - Similar - Report/Block

The Requirements: I have a "share" button in my app. I have a requirement to share via Facebook. I need to have the option whether or not the native Facebook app is installed. Our decision is to send the user to facebook.com to share if the app is not installed. The Current State: I can detect when the native app is not installed (via th...

Capture Screen Programmatically not working

stackoverflow.com - 2013-03-18 06:08:07 - Similar - Report/Block

I have following method to Capture Screen on Action Item Click. Its working on Android <2.3 but not on 4+. What is wrong with this way of screen capture. private void captureScreen() { View v = mapView.getRootView(); v.setDrawingCacheEnabled(true); Bitmap capturedBitmap = Bitmap.createBitmap(v.getDrawingCache()) ; v.setDrawingCacheEnab...

Open a facebook page from android app?

stackoverflow.com - 2012-04-24 16:14:31 - Similar - Report/Block

How can i start an intent to open facebook application on phone and navigate to the prefered page in facebook? I tried: Intent intent = new Intent(Intent.ACTION_VIEW); intent.setClassName("com.facebook.katana ", "com.facebook.katana.ProfileTabHostActiv ity"); intent.putExtra("extra_user_id", "123456789l"); this.startActivity(intent); Well w...

Read an incomming SMS in Android

stackoverflow.com - 2012-05-01 15:11:56 - Similar - Report/Block

I've got a BroadcastReceiver in my app: public class SMSReceiver extends BroadcastReceiver { public void onCreate(){ Log.i("APP","SMS Receiver started."); @Override public void onReceive(Context context, Intent intent) { Log.i("APP", "SMS received."); } And the receiver: <receiver class="SMSReceiver" android:name=".SMSReceiver" &...

Android: Setting the Zoom for the Map Intent

stackoverflow.com - 2012-05-10 00:31:03 - Similar - Report/Block

Java or .NET answers are fine. I create an Android Map with the following, works fine: var geoUri = Android.Net.Uri.Parse ("geo:42.374260,-71.120824"); var mapIntent = new Intent (Intent.ActionView, geoUri); StartActivity (mapIntent); Is there a way to send the intent a request to zoom to a certain amount?...

capturing photo with android camera intent and showing up

stackoverflow.com - 2012-02-28 07:31:25 - Similar - Report/Block

I'm trying to figure out how to get the image from the camera when using the camera intent. When try to capture the image, the photo app or camera activity is still there, it does not go back to my other application where the captured photo is supposed to show up. public void onClick(View v) { // TODO Auto-generated me...

Launching a Fragment after ZXing 2.0 QR-Code Scan

stackoverflow.com - 2012-03-19 05:24:35 - Similar - Report/Block

I've got some problems while launching a Fragment if i performed a QR-Code scan via the ZXing 2.0 library. I got this exception: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=0, result=-1, data=Intent { act=com.google.zxing.client.android.SCAN flg=0x80000 (has extras) }} to activity {fraiss.yucrowd/fra...

Android process has died after background

stackoverflow.com - 2012-04-19 12:57:50 - Similar - Report/Block

I have a chat app, that is uses one thread for the socket. My probleme is: after I going to background, sometimes the app is killed my the launcher in phones. On TABLETs every background/foreground operation has a "app died, killed by launcher" How can I solve this? UPDATE: <activity android:name=".ChatStart" android:label="@string/a...

Is there any Limitation on loading native google map in android?

stackoverflow.com - 2012-04-14 07:23:08 - Similar - Report/Block

I have the following code to load native google map app into my project: final Intent intent = new Intent(Intent.ACTION_VIEW, Uri .parse("http://maps.google.com/maps?" + "saddr=43.0054446,-87.9678884" + "&daddr=42.9257104,-88.0508355")); intent.setClassName("com.google.android. apps.maps", "com.google.android.maps.MapsActivity"); ...

how to addShortcut?

stackoverflow.com - 2013-03-29 15:21:15 - Similar - Report/Block

I want to create an application to add shortcuts of the application for me I want to create some files racourcci to be their type, such as pdf. the code below to add the shortcut applications. private void addShortcut() { //Adding shortcut for MainActivity //on Home screen Intent shortcutIntent = new Intent(getApplicationContext(), Ma...

Open default camera in android?

stackoverflow.com - 2012-03-19 07:32:28 - Similar - Report/Block

I have searched a lot but i did not get any solution. I want to open default camera of my android device so that i can capture image as well as video. I have tired it using: Intent intent = new Intent(android.provider.MediaStore.ACTIO N_IMAGE_CAPTURE); startActivityForResult(intent, ACTION_IMAGE_CAPTURE); Intent intent = new Intent(android...

How can I run an AsyncTask with a dialog after finishing activity?

stackoverflow.com - 2013-03-21 12:04:42 - Similar - Report/Block

I have two activities, one for displaying entries and another for creating them. Here's a standard use case: User opens app and it displays entries. User clicks button to create new entry and it opens the new activity. User finishes creating entry and clicks "Done". Activity finishes with setResult() and finish(). What I want to add is an...

Переданное значение REQUEST_LOGIN = 1 возвращает другое значение - Программирование Android

cyberforum.ru - 2013-05-31 16:50:29 - Similar - Report/Block

Пытаюсь из фрагмента вызвать Другую активность и получить результа. Из фрагмента вызываю код: Код: private void startActivity() { Intent intent = new Intent(); intent.setClass(this, LoginActivity.class); startActivityForResult(intent, REQUEST_LOGIN); где REQUEST_LOGIN = 1. В onActivityForResult (он у меня находится в активности которая...




dialogShowMessage!

Fill out the form you see below. Registration is free, fast and simple.
If you are already registered, sign in page login.


Web Site :
Required Field
First Name :
Required Field
Last Name :
Required Field
Email :
Required Field
Sex :
Required Field

evolveStar.com is free for ever !


evolveStar.com provides a search engine that allows you to gather information to write their own blog.


evolveStar.com enhances the sources displaying the logo of the site.


If you want to remove your site or you believe a site listed infringes copyright, please report it to: info@evolvestar.com


Specifies the subject copyright violation and the url of the page


evolveStar.com respecting the law DMCA (Digital Millennium Copyright Act) will immediately remove whatever its merits.


Next will be effectual and relevant checks.







Who We Are Partner Advertising Contacts Privacy terms Help & FAQ

© Copyright 2010-2017 Fabrizio Fichera. All rights reserved.