Android : Pass Camera Data To Native Layer?

Nov 3, 2009

In my application i want to pass the camera data to native layer. what is the best possible approach for doing the same.

I know it can be done 2 ways.

1.start the camera in application and pass the preview data to native layer. But i feel this may consume lot of resources.

2.Start the camera directly in native layer and use it. So JNI will come less into picture. and not much resource loading also.But dont want to take any risk by using the lower layer code which may change in future.

Is there any other approach ? start the camera and tap the data in native layer. I think this wont be proper approach, Can any one suggest ?

Android : Pass camera data to native layer?


Samsung Moment :: Application Layer Of The Phone Is Not Receiving Hardware Layer's Data Correctly

Dec 21, 2009

Ok so I know many are having battery issues. You, like me, probably have more battery life than you think. This is because the application layer of the phone is not receiving the hardware layer's data correctly (hold talk button, end call button, and middle button upon starting up your turned-off phone, this boots in test mode which shows you hardware layer battery power, aka the correct battery life estimate). It's causing another problem because some applications can't be run when the phone THINKS it's about to die.

View 2 Replies View Related

Motorola Droid :: Red Light Camera Layer For Use With Google Maps Support

Nov 23, 2009

Photo Enforced: Google Maps Layer Request this short article and spread the word if you would like to see Google support this layer.

View 16 Replies View Related

Android :: Pass The Data To Sub Activities?

Jul 2, 2009

The main activity includes some variables with set values. I created a sub-activity with the form which has to be filled with the data from main activity so I guess the data have to be passed to the sub-activity when it starts. how to pass the variable values to the sub-activity from the main activity?

View 1 Replies View Related

Android :: Pass Data Between Activities?

Oct 6, 2010

I'm developing an app which basically navigates through a xml-feed. When I parse the feed or let's say the list, then each (list)item becomes a model. All the models are wrapped up in an array list. Now, when the user clicks on a list item, the underlying model is going to be serialized and sent as IntentExtra to the next Activity (e.g. a deeper sub list). (Originally I asked here a different question. The solution was not related to Serializable and wouldn't help anybody. However MatteKarla gave an interesting input. Thats why I decided to rewrite this question.)

View 1 Replies View Related

Android :: Pass Data To New Activity

Aug 24, 2009

I have two activity in my project. I am callilng second activity from main activity. can some one tell me how can i pass some data to that activity? Simply i want to pass object array. Can some one tell me how can i do it ?

View 5 Replies View Related

Android :: Pass Data Through New Activity?

Jun 29, 2010

In my Android app,I start a new activity with startActivityForResult(). I get the result in onActivityResult() perfectly. My problem is that there is a small bit of data that I know before I start the activity and I need that value to be available in onActivityResult(), too. I tried attaching it to my intent as an extra, but it wasn't attached to the intent that is available when the activity returns the result. I made it work by storing the data in a global variable, but I really don't like that approach. Is there a better, right way to pass data through an activity (instead of just to it)?

View 1 Replies View Related

Android :: Data Buffer Pass By Jni

Aug 4, 2009

Have some tryed to pas databuffer on android by jni?

View 6 Replies View Related

Pass Data From 1st To Third Activity In Android

Dec 21, 2012

This is my 1st activity code:

Intent i = new Intent(getApplicationContext(), CustomerLogin.class);
i.putExtra("GrandTotal", mGrandTotal);
startActivity(i);

This is my 2nd activity code:

Intent in = getIntent();
Bundle b = getIntent().getExtras();
String total = b.getString("GrandTotal");
TextView grandtotal = (TextView) findViewById(R.id.grand_total);
grandtotal.setText("Welcome ," + total );

Here the value is pass from 1st to 2nd activity successfully. Now i have to pass these value to third activity.how can i do.

Now this is my 2nd activity:

if(isUserValidated && isPasswordValidated)
{
Intent intent = new Intent(CustomerLogin.this,PayPalIntegrationActivit y.class);
intent.putExtra("GrandTotal", total);
intent.putExtra("login",username.getText().toStrin g());
startActivity(intent);
}

This is my third activity:

Bundle b = getIntent().getExtras();
String total = b.getString("GrandTotal");
TextView grandtotal = (TextView) findViewById(R.id.check);
grandtotal.setText("Welcome ," + total );

Now i have to run the app means am getting the total value on 2nd activity.but am not getting the total value in 3rd activity.

This is my full source code:

1st activity:#5564017 - Pastie

2nd activity:#5564018 - Pastie

3rd activity:#5564020 - Pastie

View 2 Replies View Related

Android :: Camera Preview Native Setup - Out Of Memory

Jun 17, 2009

After a few weeks on market with my app (Ghosts AR) I found few interesting issues coming from the users who installed the program. On some of the devices my application fails with exception:

java.lang.RuntimeException: Out of memory at android.hardware.Camera.native_setup(Native Method) at android.hardware.Camera.<init>(Camera.java:82) at android.hardware.Camera.open(Camera.java:64)

Strange that I'm personally never got it on my G1 (1.5 firmware).

View 8 Replies View Related

Android :: How To Capture An Image And Store It With The Native Camera

Aug 9, 2010

I am having a problem capturing an image and storing it from the native camera app. Here is a sample of some of my code.

CODE:.............

After the picture has been taken and I'm returned back to my original Activity, When I navigate to my sd card via Android DDMS File Explorer the picture is not there. Anyone know why this is not being saved?

View 2 Replies View Related

Android : How To Play Native Camera Sound On Phone

Mar 2, 2010

I would like to play native camera shutter sound clip on camera preview capture. I'm referring to the sound clip played when takePicture() is called. How could I that? Can someone walk me through the steps?

View 3 Replies View Related

Android :: How To Pass Data To Another Droid Device/

May 24, 2010

I am working on an application and one feature that would make it really useful is the ability to share some information, but the other device may not be expecting the data to be sent.For example, if I am reading a really good book, and I realize that a friend may like it, I could use an application to send the data to him, so he could order the book from Amazon.But, since he isn't expecting the data, I would hate for the application to be polling a server every so often, as that will be needlessly draining the battery.Ideally it would be great if there was a way to make a phone call to the target device, send a data packet and end the call.If it could be done and prevent the phone from ringing, then it would be very useful to me.I am curious if there is some way to send data between devices without polling.

View 1 Replies View Related

Android :: How To Pass Data Without Closing Overlay?

Nov 11, 2010

in my app i am having an Activity that launches another Activity ontop of it. The second Activity is meant to provide controls like next and previous for the first activity.How can i pass button events between the two activities that are visible at the same time without closing the Activity with the controls?

View 2 Replies View Related

Android :: Attempting To Pass Data Via NotificationManager

Jun 17, 2009

I am stuck - or perhaps I am trying to do something that can't be done.I would like to send an intent to the NotificationManager with data so that if it is clicked, the Activity that is called will do something with that data.I have tried a variety of things, the Activity does get called but no sign of data (and I am frankly a little unclear as to where to retrieve it).If someone out there can either suggest something or tell me I am headed down a dead end I would be grateful.

View 7 Replies View Related

Android :: Trying To Pass Data From Notification To Activity

Oct 30, 2010

I'm trying to pass data from notification to activity.

View 1 Replies View Related

Android :: Pass Data From Thread Into Activity

Jun 12, 2010

I am want to pass data back from a Thread to Activity (which created the thread). So I am doing like described on Android documentation.Only one thing I am missing here - where and how should be defined mResults so I could access it from both Activity and Thread, and also would be able to modify as needed? If I define it as final in MyActivity, I can't change it anymore in Thread - as it is shown in example.

View 1 Replies View Related

Android :: Pass Data To A Child Activity

Nov 2, 2010

I wounder if there is some possible to know from which parent Iam coming from in the child so I can do different stuff depending on who the parent is of the activity.This is how Iam going over to the child. But I don't know how to handle this in the child to check who is the parent. The above code is used on one of the parents,, is there somehow I can use "EQ_CODE_SELECT_LOCATION"? Also I wounder how is possible to send data to a child activity?

View 1 Replies View Related

Hooking Into Native Camera?

Sep 29, 2011

I need to take pictures with my application, but the only thing I am finding are examples of how to create a camera activity. Is there a way I can call up the phones native camera instead and get the byte[] data back instead of creating a camera activity myself?

I am asking because I would like to take advantage of the normal features like zoom, flash, themes, etc that the user would get if they push the camera button on their phone.

View 1 Replies View Related

Android :: How Native Gallery (Camera Application) Reads Bigger Images

Oct 10, 2009

I am a android developer, I stuck into a problem, how to read really big images with Android API, I am wondering how native Gallery (Camera application) is reading bigger images so fast. can any Android Engineer here direct me to the piece of code that android engineer used to draw bigger images.

View 3 Replies View Related

Android :: Pass Data From Activity To Service Using An Intent

Jul 20, 2010

How do I get data within an Android Service that was passed from an invoking Activity?

View 1 Replies View Related

Android :: How To Pass Large Amount Of Data During StartActivityForResult

Nov 3, 2009

From one activity, I want to pass a lot of data (about 1MB of Strings).I tried sticking it in Intent.putExtra(ArrayList<String>), but if I put in too much data, I get "FAILED BINDER TRANSACTION".What's the easiest way? I don't want to publish a service, or use the file system. I really want a pipe that can write data from one end and read it from the other end. I can handle the case where the starter Activity dies while the "startee" activity is trying to read from the pipe.

View 6 Replies View Related

Android :: Pass Data From BroadcastReceiver Through To Activity Being Started?

Apr 11, 2010

I've got an Android application which needs to be woken up sporadically throughout the day.To do this, I'm using the AlarmManager to set up a PendingIntent and have this trigger a BroadcastReceiver. This BroadcastReceiver then starts an Activity to bring the UI to the foreground.All of the above seems to work, in that the Activity launches itself correctly; but I'd like the BroadcastReceiver to notify the Activity that it was started by the alarm (as opposed to being started by the user). To do this I'm trying, from the onReceive() method of the BroadcastReceiver to set a variable in the extras bundle of the intent,Can anyone tell me what's different about passing a bundle from a BroadcastReceiver to an Activity, as opposed to passing the bundle from an Activity to a BroadcastReceiver?

View 2 Replies View Related

Android : Pass Data From Current Activity To Paused One?

Dec 20, 2009

I wanna know how to pass data from current Activity to paused Activity?

View 3 Replies View Related

Android :: Pass Data Between Activities In Droid Application?

Jun 3, 2010

How to pass data between activities in an Android application?

View 1 Replies View Related

Native Camera To Capture Image

Nov 7, 2012

I have created an app in which using native camera to capture the image and use it in an activity.The camera is working fine in all the devices of android but crashes in DROID RAZR.

View 1 Replies View Related

Android :: Pass Data Between Activities - HashMap Of WeakReferences To Objects

Nov 16, 2009

I am trying to pass a custom object to one activity from another. What I would like to use is the HashMap of WeakReferences, but the description isn't clear, at least to me. From above URL: "A HashMap of WeakReferences to Objects. You can also use a HashMap of WeakReferences to Objects with Long keys. When an activity wants to pass an object to another activity, it simply puts the object in the map and sends the key (which is a unique Long based on a counter or time stamp) to the recipient activity via intent extras. The recipient activity retrieves the object using this key."

MyObject object = new MyObject(); HashMap map = new HashMap(); WeakReference reference = new WeakReference(object); map.put(reference.hashCode(), reference);
Intent i = new Intent(myIntent); i.putExtra(map);

I know this is probably way off but I can't figure out how this is intended to be implemented based on the description. Are the keys hashcodes, user defined, or what? It sounds like all that is passed is a HashMap containing the key values but how is the object retrieved with just the key? I couldn't find any code examples or useful documentation on this method of passing objects

View 3 Replies View Related

Android :: Unable To Get Data From Activity To Service / How Intents Could Pass That?

Nov 24, 2010

I am pretty new to this but I was told I could get good help here. A friend and myself are playing around with creating Android apps (using ADT)

Here is how we are trying to make the program: in activity, user sets threshold values for the X and Y axis on accelerometer. When user hits button "Start", startService is invoked and starts TiltService.

TiltService is designed to run in the background always on the phone without user interaction. TiltService constantly compares the threshold with the accelerometer values and will vibrate if they are off.

My problem is I can't seem to get the putExtra() data correctly. I have overridden the onStartCommand in my service but I get the message "unreachable code" when I save the getExtras() to a bundle.

Here is the relevant code (I can post the whole thing, just do not want to clog up page) code...

I thought I understood the basic of how Intents could pass data, but I guess I don't. Is it obvious what I am missing?

View 2 Replies View Related

Android :: How To Pass Complex Data Structures Between Service And Remote Binder?

Feb 17, 2010

The object passing between an Android service and the remote binder is happening through serialization of the object. If the service needs to return a very large collection, it seems very inefficient to use this. What is the recommended way to deal with this?

View 1 Replies View Related

HTC Incredible :: Can't Sign Into Application Store Pass Invalid Go To Recover Pass?

Jul 13, 2010

I was just on there yesterday i go into browse tonight and now all of a sudden it says pass world invalid from last night till this morning i tried typing in the little letters they had and I cant read it so I go to the google site. I put the info in and it says sorry account has been terminated for terms and conditions I didnt even do any thing to violate them?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved