android - startActivity(intent) not working in Google glass -


I'm developing an app for Google Glass using an immersion pattern.

I Using the initial activity to switch between different tiles using the code below.

  showing the intent of ijaz = new intent (main activity., Capture image activation class); ShowImageDetails.putExtra ("IMAGE_DATA", data); StartActivity (showImageDetails);  

Data Variables holds a byte array for captured image

Device activity of some time is not capable of starting and it exits from the application and OK Glass goes back to the tile.

Has anyone seen this issue?

I used characters as an example that comes with an API example.

Depending on your comment, I have wild estimates that your image is too big to be sent with intent is. Have you seen the Java barrier failure error in the log or

Binder transaction buffer has a fixed fixed size, currently 1MB, which is shared by all transactions for the process goes. As a result, this exception can be thrown out when many transactions are in progress, even when most personal transactions are of medium size. See also:

Do not want to pass large stuff through Extras, for example, if you are making an application Who takes pictures with the camera, you do not want to spend them in those extra extras - use a steady data member (as it sounds). Intents are designed to cross-process, which means that some data is copied, which you want to avoid not being required for large stuff.

I think your image is large, it is better to pass the image's URI or Resource ID, but the image itself is not expected, it helps.


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -