[android-developers] Re: Application.onCreate Method Randomly Called?

2013-01-18 Thread Zsolt Vasvari
This happens to my app very infrequently also. I also use ACRA and ACRA crashes because it detects that its init() method was called twice (from Application.onCreate()) The only way ACRA init knows that it was called twice is if it wasn't killed between invocations. So this is almost

[android-developers] Re: Http Response body

2013-01-18 Thread a
There was a problem in my defined handle() method. I was creating a new HttpResponse for each request instead of using the response passed in the public void handle(HttpRequest request, HttpResponse response, HttpContext context Thanks! On Thursday, January 17, 2013 12:55:57 PM UTC+2,

[android-developers] Re: Http Response body

2013-01-18 Thread a
It is working as expected now. On Friday, January 18, 2013 11:04:39 AM UTC+2, a wrote: There was a problem in my defined handle() method. I was creating a new HttpResponse for each request instead of using the response passed in the public void handle(HttpRequest request, HttpResponse

[android-developers] Multiple imageview selection change on touch - source code, screenshot attached

2013-01-18 Thread SundarRaj Lakshmanan
Hi, Here is my layout.xml LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; xmlns:tools=http://schemas.android.com/tools; android:layout_width=fill_parent android:layout_height=fill_parent android:layout_gravity=center android:orientation=vertical

[android-developers] To fetch process id of an application running on android device

2013-01-18 Thread lgaur
Hi All, I want to get the process ids of applications running on android device . I know UID of an application , how can i retrieve process id using UID of application ? Here process id should be of the process which linux kernel will provide for execution of application . Regards Lokesh --

Re: [android-developers] How to make visible only half potion of video on screen

2013-01-18 Thread Yogita singla
can anybody help me ? to solve it On Thu, Jan 17, 2013 at 7:30 PM, yashika yogita.yogita.singl...@gmail.comwrote: Hi, Is it possible to make only half portion of screen visible while video is running over it? Plz help me How Thanks in advance -- You received this message

Re: [android-developers] Re: intel-accelerated emulator + maps API with SDK v21

2013-01-18 Thread lbendlin
At the risk of sounding dour - why are you looking at stuff that will stop being developable after March 1 ? On Thursday, January 17, 2013 4:40:48 PM UTC-5, seansf wrote: s**t I mean v1. On Thu, Jan 17, 2013 at 1:40 PM, Sean Felipe Wolfe ethe...@gmail.comjavascript: wrote: yes, the

Re: [android-developers] Re: intel-accelerated emulator + maps API with SDK v21

2013-01-18 Thread Mark Murphy
On Fri, Jan 18, 2013 at 7:57 AM, lbendlin l...@bendlin.us wrote: At the risk of sounding dour - why are you looking at stuff that will stop being developable after March 1 ? It will still be developable after March 1. It becomes progressively more risky, since you cannot get new API keys. And

Re: [android-developers] Re: intel-accelerated emulator + maps API with SDK v21

2013-01-18 Thread lbendlin
I found a new thing to add to the collection of headscratchers. If you have ground overlays, and then decide to use a different tile provider (like OSM) by changing the tile overlay source, the ground overlays will be rendered UNDER the tile overlays. D'oh! On Friday, January 18, 2013 8:12:14

Re: [android-developers] How to make visible only half potion of video on screen

2013-01-18 Thread lbendlin
Define visible. Without more information I would suggest you just position another non-transparent view on top of the half that you don't want the user to see. On Friday, January 18, 2013 6:37:03 AM UTC-5, yashika wrote: can anybody help me ? to solve it On Thu, Jan 17, 2013 at

[android-developers] Re: Application.onCreate Method Randomly Called?

2013-01-18 Thread Jake Colman
Interesting. I have seen ACRA crashes in my app but didn't know what to do about them. Now at least I have an explanation. But this doesn't explain why my app is behaving as if its preferences have been reset. We've established that onCreate is being called multiple times. We've also

Re: [android-developers] Re: Application.onCreate Method Randomly Called?

2013-01-18 Thread Mark Murphy
On Fri, Jan 18, 2013 at 8:58 AM, Jake Colman col...@ppllc.com wrote: When an app get *re*created via a second kills to onCreate (following a kill) does it get the same context? No. Objects cannot live beyond their process, and by definition, your process was terminated. Hence, by definition,

[android-developers] Permissions Security Exception

2013-01-18 Thread Jake Colman
My app crashed with the following stack trace: java.lang.RuntimeException: Unable to start receiver com.jnc.zmanminder.ZMAppWidget: java.lang.SecurityException: Provider network requires ACCESS_FINE_LOCATION or ACCESS_COARSE_LOCATION permission I request these permissions in the Manifest. When

Re: [android-developers] Permissions Security Exception

2013-01-18 Thread Mark Murphy
On Fri, Jan 18, 2013 at 9:11 AM, Jake Colman col...@ppllc.com wrote: My app crashed with the following stack trace: java.lang.RuntimeException: Unable to start receiver com.jnc.zmanminder.ZMAppWidget: java.lang.SecurityException: Provider network requires ACCESS_FINE_LOCATION or

[android-developers] decoding video in android froyo

2013-01-18 Thread Grzegorz Patynek
I want to decode frames from video in android froyo. I want to use ffmpeg on api level 8. Can i compile it and run from command line like in unix, passing parameteres? i have ffmpeg.so file, some code in c, but when i call native method with string parameter i get jni warning: wrong field id at

[android-developers] Passing an object as extras in intent

2013-01-18 Thread a
Hi, is it possible to pass an object as intent extra in Android? I tried with my class implementing Parcelable and getting a ClassCastException. Can anyone help with an example link? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group.

Re: [android-developers] Re: Application.onCreate Method Randomly Called?

2013-01-18 Thread Streets Of Boston
*SharedPreferences are persistent, assuming that you use commit() or apply(). * Be mindful, though, when different parts of your app are running on different processes: If you change some SharedPreferences settings and call 'commit()' in one process, these changes are not immediately available

[android-developers] Re: Passing an object as extras in intent

2013-01-18 Thread Streets Of Boston
If the intent crosses process boundaries and you wrote your own Parcelable, be sure to set the ClassLoader on the Bundle (which represents all the Extras in an Intent) before you read the content of the Intent. getIntent().getExtras().setClassLoader(getClass().getClassLoader()); On Friday,

[android-developers] Re: Passing an object as extras in intent

2013-01-18 Thread Streets Of Boston
If your object crosses different packages, look at this post: http://stackoverflow.com/questions/5743485/android-resultreceiver-across-packages On Friday, January 18, 2013 10:04:11 AM UTC-5, Streets Of Boston wrote: If the intent crosses process boundaries and you wrote your own Parcelable,

[android-developers] Re: Passing an object as extras in intent

2013-01-18 Thread skink
a wrote: Hi, is it possible to pass an object as intent extra in Android? I tried with my class implementing Parcelable and getting a ClassCastException. Can anyone help with an example link? Thanks here you have an example link showing MyParcelable implementation;

[android-developers] Re: Application.onCreate Method Randomly Called?

2013-01-18 Thread Jake Colman
MM == Mark Murphy mmur...@commonsware.com writes: MM On Fri, Jan 18, 2013 at 8:58 AM, Jake Colman col...@ppllc.com wrote: If that is not guaranteed then should I not be using context-based preferences to persist my data? MM I have no idea what you consider context-based

Re: [android-developers] How to make visible only half potion of video on screen

2013-01-18 Thread Yogita singla
Thanks lbendlin , Actully i want to crop the video screen and then cropped video should be run over whole screen. And i m using 4.2 API.. how i can do that?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

Re: [android-developers] Re: Application.onCreate Method Randomly Called?

2013-01-18 Thread Mark Murphy
On Fri, Jan 18, 2013 at 10:11 AM, Jake Colman col...@ppllc.com wrote: Am I making a fundamental mistake in how this is supposed to be done? No, that all seems OK. You've already told me that when the application is recreated it gets a new context. If so, how are preferences persisted across

Re: [android-developers] How to make visible only half potion of video on screen

2013-01-18 Thread bob
You can play it back on a TextureView and set its matrix to translate and scale accordingly. On Friday, January 18, 2013 9:16:36 AM UTC-6, yashika wrote: Thanks lbendlin , Actully i want to crop the video screen and then cropped video should be run over whole screen. And i m using

Re: [android-developers] How to make visible only half potion of video on screen

2013-01-18 Thread Yogita singla
will u plz On Fri, Jan 18, 2013 at 9:26 PM, bob b...@coolfone.comze.com wrote: You can play it back on a TextureView and set its matrix to translate and scale accordingly. On Friday, January 18, 2013 9:16:36 AM UTC-6, yashika wrote: Thanks lbendlin , Actully i want to crop the video

[android-developers] Re: Application.onCreate Method Randomly Called?

2013-01-18 Thread Jake Colman
MM == Mark Murphy mmur...@commonsware.com writes: MM On Fri, Jan 18, 2013 at 10:11 AM, Jake Colman col...@ppllc.com wrote: Am I making a fundamental mistake in how this is supposed to be done? MM No, that all seems OK. You've already told me that when the application is

Re: [android-developers] How to make visible only half potion of video on screen

2013-01-18 Thread Yogita singla
can u explain it by code..in more details -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: Application.onCreate Method Randomly Called?

2013-01-18 Thread Jake Colman
Jake == Jake Colman col...@ppllc.com writes: Jake Ok. That makes sense but brings it all back full circle. Jake It's clear that Application.onCreate is being called multiple Jake times for my app. It also seems that my preferences are being Jake reset as a result of that

Re: [android-developers] Re: Application.onCreate Method Randomly Called?

2013-01-18 Thread Mark Murphy
On Fri, Jan 18, 2013 at 11:42 AM, Jake Colman col...@ppllc.com wrote: The key is committed in the Service's onDestroy method. Please apply() the change when you make it. onDestroy() is not always called on components. The Service is started by my AppWidget every time the app widget needs to

[android-developers] Re: Application.onCreate Method Randomly Called?

2013-01-18 Thread Nobu Games
I had similar problems with one of my apps: 1.) Application.onCreate got called multiple times in parallel. The reason was that I misconfigured a custom SyncAdapter to be launched in its own process. And each process gets its own instance of Application. That caused my app to re-create

[android-developers] Re: Application.onCreate Method Randomly Called?

2013-01-18 Thread Jake Colman
Thanks, Mark, for your help. Bottom line: I am not guaranteed that onDestroy() will be called before another invocation of onStartCommand(). It never occurred to me that was possible. I'll apply() my changes every time the key is modified. Thanks. MM == Mark Murphy mmur...@commonsware.com

Re: [android-developers] data in horizontal scrollview

2013-01-18 Thread nemi chhimpa
On Jan 14, 2013 3:11 AM, Jim Graham spooky1...@gmail.com wrote: On Sun, Jan 13, 2013 at 11:43:23PM +0800, wen5448748 wrote: Hello, do you know how to unsubscribe this group? android-developers@googlegroups.com If you know, pls help me. Thank you very much! Yes, and so do you. Later,

Re: [android-developers] How to make visible only half potion of video on screen

2013-01-18 Thread Yogita singla
Plz help me how to play video in back of textureview and how set the metrix . I m stuking here from many days -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To

Re: [android-developers] How to make visible only half potion of video on screen

2013-01-18 Thread skink
Yogita singla wrote: Plz help me how to play video in back of textureview and how set the metrix . I m stuking here from many days see textureview docs, find the method that takes a Matrix as a parameter and use it pskink -- You received this message because you are subscribed to the

Re: [android-developers] How to make visible only half potion of video on screen

2013-01-18 Thread lbendlin
What have you tried? Did you spend these days reading the documentation? On Friday, January 18, 2013 1:07:17 PM UTC-5, yashika wrote: Plz help me how to play video in back of textureview and how set the metrix . I m stuking here from many days -- You received this message because

[android-developers] How to make an android application that displays the RTMP urls that load on m3u file?

2013-01-18 Thread oneking
How to make an android application that displays the RTMP urls that load on m3u file. And when I click on an url, It play in the mx player. I have a m3u file that having rtmp urls, I need that the application read the m3u file, and when I click on a rtmp url, send the rtmp url and play to

Re: [android-developers] How to make visible only half potion of video on screen

2013-01-18 Thread Yogita singla
Thanks lbendlin, those days i tried many diffrent ways to do that. can textureview display video on emulator yaa only hard device.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Change Tab through action bar mode navigation

2013-01-18 Thread Pedro Cortez
Hi, I have a TabWidget and a actionBar in mode navigation . I want to change my action bar and after that change automatic my tab. I've called onTabChanged at my onNavigationItemSelected and i works, my fragment change fine but my tabselect at the component tabWidget were still selected at my last

[android-developers] Re: Change Tab through action bar mode navigation

2013-01-18 Thread Pedro Cortez
Correting my english I have a TabWidget and a actionBar in navigation mode. I want to change my action bar and after that, automatically change my tab. I've called onTabChanged on my onNavigationItemSelected and it works, my fragment changed just fine, but my tabselect at the component tabWidget

Re: [android-developers] How to make visible only half potion of video on screen

2013-01-18 Thread bob
Please see this page: http://developer.android.com/reference/android/view/TextureView.html There is code there that shows a TextureView that displays an image from the camera. Then, do these 2 things: 1. Make it get the images from a Video instead of a camera. Hint: use

Re: [android-developers] data in horizontal scrollview

2013-01-18 Thread bob
Are you looking for a ViewPager maybe? http://developer.android.com/reference/android/support/v4/view/ViewPager.html On Friday, January 18, 2013 11:32:17 AM UTC-6, Nemichand wrote: On Jan 14, 2013 3:11 AM, Jim Graham spook...@gmail.com javascript: wrote: On Sun, Jan 13, 2013 at

Re: [android-developers] How to make visible only half potion of video on screen

2013-01-18 Thread Yogita singla
Thanku so much .. lbendlin. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: How to implement a selection mechanism for translated and rotated objects on a canvas?

2013-01-18 Thread bob
Yeah, I pretty much asked that question of the Java group a few months ago: https://groups.google.com/d/topic/comp.lang.java.programmer/kA2JLneZmTc/discussion On Thursday, January 17, 2013 2:29:09 PM UTC-6, strangeoptics wrote: Yes that's the way. I tried it out and it works. I found also a

Re: [android-developers] How to make visible only half potion of video on screen

2013-01-18 Thread bob
Also, you will want to use this function in the Matrix class to get the matrix that will do the cropping: boolean setRectToRect(RectF src, RectF dst, Matrix.ScaleToFit stf) Set the matrix to the scale and translate values that map the source rectangle to the destination rectangle, returning true

Re: [android-developers] How to make visible only half potion of video on screen

2013-01-18 Thread bob
Here's some code that sets a matrix that zooms to the upper left corner: RectF movie = new RectF(0, 0, 1, 1); // zoom to upper left corner RectF zoom_region = new RectF(0, 0, .5f, .5f); Matrix transform = new Matrix(); transform.setRectToRect( zoom_region, movie,

Re: [android-developers] Re: New OpenGL ES 2.0 Game Engine Option

2013-01-18 Thread bob
Ok, thanks. BTW, I'm confused about something. I'm looking at the project named batterytech here: http://www.batterytechsdk.com/sdk-documentation/group___eclipse_setup.html Can you tell me what the end product is of building that? Is it a .so file or .jar or something? How do the other

[android-developers] Re: Problems of dynamic loading downloaded precompiled renderscript source files

2013-01-18 Thread bob
Can you download, compile, and execute OpenGL shaders? On Thursday, January 17, 2013 10:38:30 PM UTC-6, Stephen Hines wrote: Unfortunately there is no way to dynamically download, compile, and execute Renderscript bitcode in Android. Even with a small fix I made to the reflected

Re: [android-developers] Re: New OpenGL ES 2.0 Game Engine Option

2013-01-18 Thread Robert Green
Hi Bob, You're looking at the SDK documentation, which is used to write an application in C++. You don't need any of that to evaluate the engine, but should you choose to use it later and build the engine for Android, the end product is an .so which is all of the compiled SDK and Engine C++ code