Android : How Can I Set Transaction Size On Phone?
Feb 23, 2009
I create a Person class implements Parcelable in Android, The Person include a byte array field. When set the byte array size more than 40000, then find !!FAILED Binder Transaction!! Why the byte size so limit ? How can I set the transaction size in Android?
View 2 Replies
May 15, 2010
I'm using the SQLite3 database system in the Android library. I need to execute a query during a transaction to see if there is a similar entry already there. If there is, I have to perform some other logic and adjustments before I add a new row. Can I execute a query within a transaction and get the result back immediately?
View 1 Replies
View Related
Jan 4, 2010
I currently have a lot of problems with this error. I programmed a widget and a service that runs in the background. This service is updating the widget on different occasions (position changed, screen turned on, timer based...) with images and text it's loading from a server. After a couple of updates I always get an error from the JavaBinder, at least that's what DDMS says. Reproducing the problem with my app is quite easy but I just can't figure out what's going on there.
View 6 Replies
View Related
Mar 8, 2010
I want to add a catch block, and I want to issue a rollback. Is it possible, and at all do I need it?
View 1 Replies
View Related
Aug 10, 2009
I made a programe to update phonetic_names of contacts...
View 2 Replies
View Related
May 6, 2009
I've been researching how to best implement a service which performs a network transaction and returns data to the caller.
Clearly, this needs to happen on its own thread which means some form of async response. I can see at least three ways of doing this--some more complex than others. In the descriptions below, C is the caller, S is the service.
1) C wraps a Handler in a Messenger object, adds this to an Intent. C then calls startService with this intent. S extends IntentService which runs the Intents received in a worker thread. S then sends a message to C via the Messenger. This has the benefit of not requiring any of the async binding process or making an IDL interface that needs to be compiled into C. This seems to be the closes to a Handler-based response mechanism of Local Services.
2) C binds to S and then uses AsyncTask<> to make a blocking call to S. S performs the network transaction and returns the data in the return value or an out parameter. This requires the async binding process, but does not require a callback function since the inter- thread communications is handled by AsyncTask<> and the worker thread is in C's context.
3) Make the function called in S be completely asynchronous. S defines two interfaces: IMyService and IMyServiceCallback. S implements IMyService.Stub. C implements IMyServiceCallback.Stub. C binds to S then calls S via IMyService, passing its IMyServiceCallback binder. S spins up a worker thread and returns immediately. S then calls the callback when it has completed the network transaction.
I am asking for advice on which methods are most appropriate. I do not need the the service running constantly, only when the web transaction is required. C does not use S all the time--definitely don't want to bind during C's onCreate. However, I would like the time from when C determines it needs to use S to getting the results back to be as quick as possible (i.e. adding minimal latency to the already latent network access).
Is there any preference to having the worker thread in C or in S? Are there any significant problems with option 1?
View 11 Replies
View Related
Oct 9, 2010
Is there any article/paper that describes the transaction mechanism, why it is needed and how it works? eg: the ActivityManagerService class..
View 2 Replies
View Related
Feb 15, 2010
I get the Failed binder transaction error in the logcat when returning the image taken with the camera from the camera intent back to the parent intent (as a byte[] using putExtra). I don't understand why, its not like its a big bitmap or anything. It only happens when i take pictures with lots of light, because then the byte[] is bigger. The error occurs when leaving the camera intent. Does anyone see a mistake in my code?
Here is the code of the camera intent:
CODE:.............
And here is the code that calls the camera intent:
CODE:..................
View 1 Replies
View Related
Apr 1, 2012
If I wanted to make an online transaction with my Android device and I was using a browser other than stock (e.g. Overskreen), then would my card details (used to complete the transaction) be at a safety risk due to the fact that I have made the transaction in a browser which is owned by a developer and so would he have access to these details and the like? R800i
View 5 Replies
View Related
Feb 16, 2010
I have a problem with an app that lets the user take a picture. I've posted it on some forums already, but nobody seems to recognize the problem. Hopefully someone here knows a solution :)
I've put the code of taking a picture in a seperate activity. Then I call the camera intent from my main activity using activityForResult. In the camera intent, I use putExtra to return the camera image (as a byte[] without doing anything to it). But when the program transitions back from the camera intent to the parent intent that called it I get a Failed Binder Transaction error in the logcat because the byte[] is too big. But I don't understand this, because the image is not even taken using the maximum resolution :S
The code of my camera intent is:
CODE:......................
View 6 Replies
View Related
Aug 7, 2010
I understand, at least on paper, the basic difference between the Content Provider and just directly accessing the SQLiteDatabase. I have a functioning prototype for my application, and currently it is just directly hitting the database. I don't really have any experience using the Content Provider pattern, but I have found out that I will need to share some data with another application.
I will only be sharing about 2 out of a dozen or so tables, so I was wondering if I should be just completely redoing the data layer to follow the Content Provider pattern, or just expose only those tables via a Content Provider for the sake of the other application and still directly access the database in the primary application.
One of the issues I ran into with my prototype was that I have some fairly complex transactions, and the code I wrote to get that working is not designed particularly well and isn't reusable at all. As I add more functionality to this app, I'm going to need a better designed data access layer, before I set off writing my own, does anyone know of any good resources with design patterns for this type of thing already? Also, if I need to go the Content Provider route, am I going to have solid control over the database transactions?
View 2 Replies
View Related
May 31, 2012
I've managed to incorporate in-app billing into our product but it is failing on one of my two test devices - a Samsung Vibrant / Galaxy S running Android 4.0.3
The transactions themselves are confirming - reserved product ID's and our actual product ID's - but on this particular phone once the response code is received and the app's activity is brought back into view, several variables holding operation-critical values are NULLed out, crashing the app and preventing actions associated with the purchase.
This DOES NOT happen on another test device - an HTC Sense running Android 2.3.4.
Both devices are running Play Store version 3.5.19.
At a loss right now for trouble shooting. If there is a way to extract the product ID from the signedData bundle returned from the Play Store it would be a way for me to side-step the problem.
View 1 Replies
View Related
Dec 19, 2011
Can you see your Google Wallet app transaction history on the web somewhere? It _looks_ like you should be able to see purchases made using the Google Wallet app at [URL]..., but this page just lists my Google Checkout transactions -- there's no record here of anything I bought using the phone app. As far as I can tell, the only place where I can see any record of those transactions is on the phone itself by selecting "Transactions" in the Google Wallet app. Is there a way to see this stuff online that I'm missing? And if these transactions _are_ only recorded on the phone, will all record of them be erased if/when my phone is wiped?
View 9 Replies
View Related
Sep 23, 2010
So I'm loading images from a web service, but the size of the images are sometimes smaller or bigger than other images and the visualization looks silly when I put them in a ListView in android. I'd like to fix the size of my ImageView so that it only shows a portion of the image if it's larger than a preset amount. I've tried everything I can think of setting the setMaxWidth/setMaxHeight, setting the scale type to centerCrop, using ClipableDrawable wrapping my BitmapDrawable, setting using Drawable.setBounds(). I've tried setting in the XML and programmatically, but neither worked. I'm very surprised setting max width/height didn't do anything. Below is the XML I'm using ImageView definition in my layout file
View 1 Replies
View Related
Oct 2, 2009
I am currently developing a dictionary application with voice database. I would like to know about the current Android limitation on the file size. I am using a self-provided sqlite database ( > 50mb ) . I tested that once the built .apk size exceeds ~30mb the app will not be installed onto the simulator (INSTALL_FAILED_ INSUFFICIENT _STORAGE). Could anyone confirm me that if up until now there is no way to embed such large size files in a single apk ( Aimed to sell at Google Market without requiring user to download datafile afterwards). Also, is there a limitation of 1,048,576 bytes for a single file in the assets folder ?
View 3 Replies
View Related
Jan 22, 2009
if size of image is larger than or smaller than specified display size (on screen), then it is automatically, compressed and stretched resp by android run time or require to handle by explicitly.
View 2 Replies
View Related
May 7, 2009
Hi,
I would like to see how my app works on a 800x600 android netbook. how can i setup an emulator with this size?
thanks chris
View 4 Replies
View Related
Jun 30, 2010
I manage a cache of bitmap. Do you have an advise to fix the maximum size of it?
View 2 Replies
View Related
Jul 8, 2010
Can somebody explain to me what makes up the installed application size? I have an apk that is about 8 MB, and often when I install I get the INSUFFICIENT_STORAGE error. I have around 25-30 MB free space on the phone. I'm doing debugging so I have to upload lots of new versions. If I uninstall the previous version then I can install the new version. The application manager claims that the app is taking up 22 MB. So back to the original question, how come the app is taking up 22 MB when it really only is 8 MB?
View 7 Replies
View Related
Sep 14, 2010
I would like to know why the size of my shared library .so is bigger than my .apk file generated with Eclipse? Approximatly the so size is twice the apk one. What is strange is after having installed it in the device (2.1 firmware) I checked the size of the apk when I uninstalled it from the device and surprisingly the apk size indicated is bigger even than the .so one. Is there any explaination of that?
View 2 Replies
View Related
Oct 7, 2010
My app downloads .png files to the sd card for later use. I kept getting OutOfMemoryErrors (if anyone could explain this too, that'd be great!) and so I took a look at the sizes of the images saved to the sd card, and they seem to be roughly double what they are on the server. Why is this, and how can I make them smaller?
public void onCreate(Bundle saved)
setContentView(R.layout.namedrxnscreen);
TextView t1 = (TextView)findViewById(R.id.rxn_text1);
TextView t2 = (TextView)findViewById(R.id.rxn_text2);
TextView t3 = (TextView)findViewById(R.id.rxn_text3);
TextView t4 = (TextView)findViewById(R.id.rxn_text4);
iv = (ImageView) findViewById(R.id.rxn_image);
pb = (ProgressBar) findViewById(R.id.rxn_loading);
vs = (ViewSwitcher) findViewById(R.id.rxn_switch);
View 1 Replies
View Related
Sep 29, 2010
I am developing an application in android..but i got an issue of getting an error..that is out of memory exception while i am converting my file contents to byte array..i think this is the problem of reduced heap size..can u plz tell me how can i increase the vm heap size..i am using eclipse...
View 1 Replies
View Related
Nov 11, 2010
I want to change the size of surface view at run time when it is changed to Landscape Mode?
View 1 Replies
View Related
Sep 23, 2010
How can I make my button's size to increase slightly when it is pressed and decrease again when it is released? This is for highlighting the pressed button, by using size in addition to a different color.
View 2 Replies
View Related
Sep 4, 2009
I would like to know the way to make a user interface for Android for people that have low vision. The idea is to make a UI with the following features: 1- Uses very very big buttons. 2 -Uses very big font size. 3- Te colors to use are basically black and white (for more contrast). 4- The icons in this UI are not relevant. 5- We must sacrifice the number of chars that we can show in the screen to get bigger labels and buttons. 6- A simple zoom system for the images should be a great idea. 7- We can use the camera of the phone to get a magnifying glass. I'm member of a blind people association in Spain and we think that this should be a great idea for begining a new low-vision-user- interface that is not aviable in the market for the new mobile phones. This will help many people that uses movile phones but have many difficulties to work with them.
View 2 Replies
View Related
Sep 6, 2010
I am facing problem here: http://stackoverflow.com/questions/3584297/installing-application-on-sd-card-in-android-sdk-2-2 , regarding application installation.
In above question, you can view the image in which "Internal Phone Storage" is showing where only 43.38 MB is showing , and in latest android phone, i know it is coming with higher space, i have seen 13.45 GB in Samsung Galaxy Android Phone.
But Right now, i am using HTC Hero, so my questions are:
Is there any way to increase ROM size without any side-effect? How do i increase ROM Size?
View 2 Replies
View Related
May 24, 2010
I have an application which is of size 130MB. when i try to install its displaying insufficient memory error. but i have around 170MB left in available space in internal memory. How can i Install this app? The size of the app is large because it contains many media files. In Motorolla droid its getting installed. but on Nexus One its giving this error.
View 1 Replies
View Related
Jul 23, 2012
When I was on stock Xperia Gingerbread 2.3.4 on my ST17i, the average image file size I take is only playing around 300 to 600kb each However, after flashing the MiniCMSandwich Lite AOSP rom, the file sizes have been bumped to an average of 1.3mb. I want to know why? As far as I know, on both stock and MiniCMSandwich, I've set the resolution to the highest (5 megapixels).
Is it a matter of the camera apps? (Xperia camera and stock camera).how big your average file sizes are for 5mp of images.
View 9 Replies
View Related
Dec 19, 2012
I am programming an app using an absolute layout (@ eclipse). How to fit the button size with the screen size? (I have four buttons per row).
View 1 Replies
View Related
Aug 17, 2010
Was just wondering what size icons can we use to customize our evos. I've been using 256 png's. Can we use bigger icons? Also, can we use .ico for icons too?
View 2 Replies
View Related