Android : Is Parcel's Data Size Platform Dependent?

Sep 27, 2010

According to the API doc, Android seems to support for changing the data size of Parcel container. And there is no notice limiting the size of Parcel. The document is here http://developer.android.com/reference/android/os/Parcel.html#setData...()

On the other hand, when our developers are doing some tests on this, the size is dependent on the platform and devices.

So i just wonder whether there is any limit on the data size of Parcel. At least this information should be mentioned in the API document.

Android : Is Parcel's data size platform dependent?


Android : Un-parcel A Parcel Without Knowing What Is In It?

Jan 31, 2010

I have a published app that triggers after the Android Alarm Clock goes off. I read the Alarm Clock Label and if it matches a user provided label to trigger off of, my app is triggered. This works great.

The problem is that the HTC Sence UI Alarm Clock uses a different Intent and the extras for that Intent contain a Parcel (that contains the alarm label).

I am able to trigger on the HTC Intent and get the Parcel from the extras, but is it possible to extract the Parcel without knowing what is in the Parcel in the first place?

View 4 Replies View Related

Android :: Snesoid Controller / Size Of My Gaming Platform

Oct 5, 2010

So I was thinking. Cause I got those fat thumbs, and playing mu snesoid can be tricky. I have a SNES controller. I also have a SNES controller Male USB. Now if I can find a R USB to M micro USB, can I plug that in on my D2 and use that? I realize this would effectively make my controller 3x the size of my gaming platform. But would it work?

View 2 Replies View Related

Android :: Maximum Application Size And BADA Platform

Jun 29, 2010

what is maximum size of thick/thin client application(to d/w through OTA) in both Android & Samsung Bada platform ?

View 2 Replies View Related

Android :: Using Google Map Data API On Platform

May 2, 2010

I was checking out the Google Maps Data API and I was wondering if I can follow their Java Development guide to use it on the Android platform? I want to display routes that I have created on Google Maps on the phone.

View 1 Replies View Related

Android :: Custom Heap Size In Android Platform

Jul 23, 2010

The software team in our graduation project asked for increasing the heap size per process in Android. They said that the default is "16MB" which isn't sufficient for them.

How could I custom the size?

I found a commented line in the file: /acme/my_board/BoardConfig.mk in my android source code:

# USE_CUSTOM_RUNTIME_HEAP_MAX := "64M"

View 2 Replies View Related

Android :: Encrypt Outgoing Data? (any Mobile Platform)

Sep 13, 2010

Would it be possible for me to build an application that enables people to encrypt call coming to me with my public key and then for me to decrypt the call data at my end using my own private key. This way I basically have a more secure communication channel which I am assuming because RSA is hard to crack would be difficult to monitor.I am asking this question from a research point of view and have absolutely not considered the factor as to how computationally feasible would such an application be. I would just like to know if there is a way for me to intercept my outgoing data using any built functions.

View 2 Replies View Related

Android :: After Building Platform Source - How To Sign Arbitrary APK With Platform Key

Nov 22, 2010

As an experiment, I would like to use the platform key of my custom built Android platform to sign an arbitrary APK, that is built via the NDK. What is the process to go about doing this?

View 2 Replies View Related

Android : Can't Use Parcel In Aidl / Way To Fix?

Aug 20, 2009

I sent a intent to call a service interface which returns a parcelable object.

but get errors...

View 2 Replies View Related

Android : Use Parcel In Droid?

Oct 26, 2009

I'm trying to use Parcel to write and then read back a Parcelable. For some reason, when I read the object back from the file, it's coming back as null. code...

View 3 Replies View Related

Android : Get A Parcel From Intent's Extras?

Sep 16, 2010

I've implemented parcelable on a class of mine per the doc instructions, works fine: code...

but I haven't implemented a copy constructor. However, the createFromParcel() method which I did implement is almost like a copy constructor. I'm wondering if I can use it make a copy, but I can't figure out how to get a Parcel instance from the intent extras:

MyParcelable mp2 = MyParcelable.CREATOR.createFromParcel(getIntent().getExtras().getParcelable("key"));// ? just need a parcel ?

it's not the greatest idea, just wondering if it's possible to avoid making another method for my class which will almost be identical to what's already implemented for the Parcelable interface..

View 2 Replies View Related

Android : How To Pass Object In Parcel

Apr 8, 2009

I have two class, class A and B, B include class A, like this..

View 2 Replies View Related

Android : Can I Use Parcel To Clone An Object?

Sep 22, 2010

I have a class which has implemented Parcelable. Can I do something like the following to create a new instance of a class?

found this from the following q: http://stackoverflow.com/questions/1626667/how-to-use-parcel-in-android

This is working ok, I can go with this but it is extra code, not sure if there's a shorter way to do it (other than properly implementing a copy constructor...)

View 1 Replies View Related

Android :: Can't Use Dependent Projects In 1.5 / Fix This?

May 5, 2009

I have 2 projects in the following layout

MainActivityProject -> BaseProject

(i.e. MainActivityProject depends on the other project). Both are android projects created with the eclipse "New Android project functionality) however, the BaseProject does not have an activity defined. However, in BaseProject I define an activity base class where MainActivityProject's Activity derives from. This used to work fine up until 1.1 but now with the 1.5 SDK I get ClassNotFoundExceptions when launching the app.

Any suggestion on how to fix this? I obviously dont want to copy all the sources to a single project as I intend to reuse my Activity base class for other things (it contains some boiler plate stuff that I dont want to have in each and every activity.

View 3 Replies View Related

Android :: Check For Dependent Application During Installation?

Mar 25, 2010

I want to publish my application (ABC). Its an audiobook file(just for example.) wrapped as apk. When the user install this application it needs to check whether another application (XYZ) already installed or not. If not let the user know they have to install the application XYZ first before installing ABC.

View 1 Replies View Related

Android :: Deploy SWIG Dependent Dll's With Droid App?

Nov 17, 2010

I would like to use a .jar file generated by SWIG in an Android application. What is the best way to deploy all of the underlying dll's with the Android application?

In a desktop environment, my PATH variable includes the folder containing these dll's.

View 1 Replies View Related

Android : Way To Manage Orientation Dependent Activities?

Mar 11, 2010

I have two activities, one per orientation - PortraitActivity and LandscapeActivity. They are pretty much different, I can't use one Activity with different layouts. If user changed orientation I have to shutdown one of them and start another. What is the best way to manage them? Does it make sense to create GroupActivity? Or each Activity should check if the current orientation is what it needs? If so, is it save to start new Activity in onCreate method of previous one (which is not actually created yet)?

View 5 Replies View Related

Android :: How To Consume Session Dependent WCF Services Using Ksoap2

Jun 23, 2010

I am using Ksoap2-Android for consuming the WCF Services.

For the dotnet client we keep the allowCookies="true" in our binding configuration and it sends the same sessionid and keeps my sessions intact in my WCF services (My services are
interdependent and use the sessions).

Any one know any such setting for ksoap2-android, that will allow me to consume the
WCF service keeping my session intact on the server.

Currently when i make a new call to the service, the sessionid gets changed and all my
session variables clear out and loose their values.

View 1 Replies View Related

Android :: Reasonable Size Of Data To Store In Bundle

Nov 24, 2009

My android app fetches a JSON structure from the net. It's somewhat large, maybe 2,000 characters in length. I need to store it away when my app gets killed so I can recover it quickly. I've tried saving it to an sqlite database, but that takes about 400ms, kind of long. I wonder if it's bad practice to just dump it into the save bundle:or are we really only supposed to be putting the smallest of items in bundles?

View 3 Replies View Related

Android :: Change Internal Buffer Size Of Data Input Stream

Apr 1, 2010

I'm using this kind of code for my TCP/IP connection:

sock = new Socket(host, port);
sock.setKeepAlive(true);
din = new DataInputStream(sock.getInputStream());
dout = new DataOutputStream(sock.getOutputStream());

Then, in separate thread I'm checking din.available() bytes to see if there are some incoming packets to read. The problem is, that if a packet bigger than 2048 bytes arrives, the din.available() returns 2048 anyway. Just like there was a 2048 internal buffer. I can't read those 2048 bytes when I know it's not the full packet my application is waiting for. If I don't read it however - it'll all stuck at 2048 bytes and never receive more. Can I enlarge the buffer size of DataInputStream somehow? Socket receive buffer is 16384 as returned by sock.getReceiveBufferSize() so it's not the socket limiting me to 2048 bytes. If there is no way to increase the DataInputStream buffer size - I guess the only way is to declare my own buffer and read everything from DataInputStream to that buffer?

View 4 Replies View Related

General :: 3G Frequency Of Phone Is Hardware Or Firmware Dependent?

Dec 2, 2012

I am asking this because recently bought a BLU VIVO D910a phone from U.S., it has Android 4.0 firmware and its 3G Network is HSDPA 850 / 1900.

I made a big mistake, because the country where I currently live and work (Montenegro) uses 2100 3G network. I shoud have ordered the international version of BLU Vivo, the D910i which has HSDPA 850 / 2100. So, currently I cannot make use of the 3G data capability of my new phone

My question is: if I get the firmware (or just the modem.bin) of D910i and flash it to my phone will I change by this way the 3G frequency or it is hardware-dependent?

View 4 Replies View Related

Android :: Writing Arrays Of Parcelables To Parcel In Android

Dec 11, 2009

I'm trying to write an array of objects that implement Parcelable into a Parcel using writeParcelableArray.The objects I'm trying to write are defined (as you'd expect) as:public class Arrival implements Parcelable {All the right stuff in here this class compiles and acts fine And I'm trying to write them into a `Parcel' with: @Override public void writeToParcel(Parcel dest, int flags) I completely don't understand this error message. Parcelable is an interface (not a class) so you can't extend it. Anyone have any ideas? UPDATE: I'm having basically the same problem when putting an ArrayList of Parcelables into an Intent:Intent i = new Intent();i.putParcelableArrayListExtra("locations", (ArrayList< Location> ) locations);Yields: The method putParcelableArrayListExtra(String, ArrayList< ? extends Parcelable >) in the type Intent is not applicable for the arguments (String, ArrayList< Location >)This may be because Location was the class I was working on above (that wraps the Arrivals), but I don't think so.

View 2 Replies View Related

General :: How To Resize / Increase /data Partition Size

Apr 22, 2014

My phone has 4GB internal ROM with below partitions:

1. mmcblk0p1 1024 ebr1
2. mmcblk0p2 10.00 MB protect_f ->EXT4
3. mmcblk0p3 10.00 MB protect_s ->EXT4
4. mmcblk0p4 750.00 MB android ->EXT4
5. mmcblk0p5 376.00 MB cache ->EXT4
6. mmcblk0p6 1.20 GB usrdata ->EXT4
7. mmcblk0p7 1.27 GB fat ->VFAT

Now, mmcblk0p7 (1.27 GB of vFAT) partition is used as sdcard1 but I also have a 8GB of mnt/sdcard partition. So, the mmcblk0p7 partition is totally useless in my phone. My questions are:

1. Can I add/merge mmcblk0p7 partition with mmcblk0p6 (/data) partition?

2. Or, Can I re-size/increase my mmcblk0p6 (/data) partition from mmcblk0p7

3. Or, Can I make the mmcblk0p7 as a swap partition like linux OS?

My Phone info:

Chip: MTK 6572
Android Version: 4.2.2
Basebad version: MOLY.WR8.W1315.MD.WG.MP.V1.P1, 2013/07/13 13:02
Kernel version: 3.4.5

View 3 Replies View Related

Android :: Multiple Dependent Android Projects In Eclipse

Jun 14, 2010

I just started to play with android dev and java+eclipse is pretty new to me. I managed to create simple project and run it on my device. Now I want to create simple game (more of them actually) and I would love to use shared code base for all of them (game loop, initialization, etc..). Problem is that I have no idea how to correctly do this. I created android project called engine with all basic stuff that I need and made it work on device. Now I tried to create another project in same workspace called mygame. Main class (activity) of mygame is MyGameApp which inherits from EngineApp (main activity of my engine project) which inherits from Activity. I added engine project into required projects in mygame build path tab in properties. Problem is that when I try to run this project it crashes on ClassNotFoundException trying to find my MyGameApp class.

View 1 Replies View Related

Motorola Droid :: Duplicate Camera Application With Different Data Size

Feb 26, 2010

I was scrolling through the Settings for my Droid, and I noticed that under Manage Applications (after changing the filter options to ALL) that Camera was listed twice. Same icon and version (6) but different data size (124 KB and 192KB). Is this normal? I was thinking it might just be for video and photos to separate the two, but I was hoping to get experts opinions.

View 5 Replies View Related

Android :: How Can I Debug Hardware Dependent App Without Access To Hardware?

Aug 18, 2010

I have an open-source application on the Android market. It seems to work fine for me (with over 1,000 active installs, I have to presume that it works for most people).I recently got a bug report that indicated a problem for at least three users on Samsung phones (Intercept and Captivate). I have been unable to reproduce the problem on my ADP2 and on the emulator.In order to get enough data to diagnose the problem, I first tried to add logging and then I asked users to submit logs via Log Collector. Each time a user tried to send the log (there were four attempts), it was truncated and I did not get any useful data.I then added ACRA to the project in an attempt to get information, but I don't seem to be able to automatically detect the bug in order to send a report.Since I don't have a Samsung phone and I can't reproduce it on anything where I could connect with the debugger, I am mostly out of ideas. The only idea I have left is to add a button to the UI to generate a report.Are there any other approaches to suggest?

Update: since people are asking for more specifics: essentially, the app reads in text files from the assets and puts them (with some preprocessing) into a TextView in a ScrollView. (The data is prgressively added to a SpannableStringBuffer and then that is passed to TextView's setText() function.) Depending on the options chosen, the text displayed is between 15k-115k. On phones with this issue, only part of the text is displayed. The cutoff point depends on the options, but seems to be somewhere between 17k-18k.

ACRA sends a report for all uncaught exceptions and puts them into a Google Form/Spreadsheet. I've gotten reports from my emulator and from my phone, so I know that end works. (Actually, I've often found it faster to debug from the stack trace in that report than to attach the debugger to the process.)Phone specs: I have exercised the app on emulators running 1.5, 1.6, 2.1, and 2.2. My phone is ADP2 (the developer version of the MyTouch), but I've installed a third-party ROM to jump up to Froyo (2.2). I am unaware of an emulator specifically for the Samsung OS build, although that would be quite helpful here.Since the expected text length is constant, I should be able to detect if it is read correctly or not. I added checks at the end of my text processing, but those never triggered, indicating that the problem was not with reading the file. I then tried adding checks to onPostCreate and onPostResume, but those did not fail either. It seems that the UI thread had not yet actually run at that point, though.I've now done 6 private APK versions attached to the bug in the bug tracker. I frankly am surprised that any users are still trying them. This latest version has a button to force a bug report - that will only be called after the UI thread has laid out the screen. Hopefully that will give me enough variable information to point me in the right direction.

View 2 Replies View Related

Android :: How Do I Make My Image View Fixed Size Regardless Of Size Of Bitmap

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

Android :: About Size Of Resource Assets Files & Final Apk Size

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

Android :: Size Of Image Is Larger Than Or Smaller Than Specified Display Size

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

Android :: Skin Size 800x600px - How To Setup An Emulator With This Size

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







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