Re: [android-developers] Re: Where do you aim for design specs?
Hi , How can we design layouts for all screen sizes like from 320 width to 1280 etc.. Thanks in Advance On Mon, Oct 31, 2011 at 10:27 AM, Belvedere Computer Services fa829...@gmail.com wrote: Any thoughts on this topic are welcome okay, this is your thread so shield me if i need it 1] some of that hdpxi stuff or whatever it is ( have not got in to mind yet ) is flat not implemented on some devices by some manufac and no way to call into the api and even fudge it (detection) as some of the devices have partial implementation that do not do what one might expect 2] I got some crude image code going and noticed there are rendering classes with which one may provide scale hints and so on but going to a world where world where every size is potentially available should be a concern of yours and remain a concern 3] What I suggest is write a .png to .jpeg converter in Java to start with and write a few files with it and look at them then write several more images and try to do scaling and anti-alias etc and let that be your starting point ~ that will tell you more than might think On Oct 30, 11:56 am, Chris Stewart cstewart...@gmail.com wrote: I'm starting the design for an app that spans phones and tablets (2.1 - 4.0, custom action bar pre-3.0, native action bar 3.0+) and working with a designer used to the iPhone. Going from a world where he worried about 3.5 only, to a world where every size is potentially available, is a concern of mine. So I'm wondering, which screen size, resolution, density, do we aim for to start with? Certainly we'll need to work on each of the layout/resource variations (small, medium, large, xlarge, ldpi, mdpi, hpdi, etc, etc) but I'm looking for a reference point to get started. Should we be focusing on the largest for phones, and largest for tablets, with the expectation that we can mostly scale down from each of those to the smaller phone and tablet sizes/resolutions/densities? Any thoughts on this topic are welcome. -- Chris Stewart -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Where do you aim for design specs?
Hi, Don't hijack other peoples questions. Second, use google and you would find: http://developer.android.com/guide/practices/screens_support.html On Tue, Apr 24, 2012 at 8:53 AM, bhaskar bommala bhaskar...@gmail.comwrote: Hi , How can we design layouts for all screen sizes like from 320 width to 1280 etc.. Thanks in Advance On Mon, Oct 31, 2011 at 10:27 AM, Belvedere Computer Services fa829...@gmail.com wrote: Any thoughts on this topic are welcome okay, this is your thread so shield me if i need it 1] some of that hdpxi stuff or whatever it is ( have not got in to mind yet ) is flat not implemented on some devices by some manufac and no way to call into the api and even fudge it (detection) as some of the devices have partial implementation that do not do what one might expect 2] I got some crude image code going and noticed there are rendering classes with which one may provide scale hints and so on but going to a world where world where every size is potentially available should be a concern of yours and remain a concern 3] What I suggest is write a .png to .jpeg converter in Java to start with and write a few files with it and look at them then write several more images and try to do scaling and anti-alias etc and let that be your starting point ~ that will tell you more than might think On Oct 30, 11:56 am, Chris Stewart cstewart...@gmail.com wrote: I'm starting the design for an app that spans phones and tablets (2.1 - 4.0, custom action bar pre-3.0, native action bar 3.0+) and working with a designer used to the iPhone. Going from a world where he worried about 3.5 only, to a world where every size is potentially available, is a concern of mine. So I'm wondering, which screen size, resolution, density, do we aim for to start with? Certainly we'll need to work on each of the layout/resource variations (small, medium, large, xlarge, ldpi, mdpi, hpdi, etc, etc) but I'm looking for a reference point to get started. Should we be focusing on the largest for phones, and largest for tablets, with the expectation that we can mostly scale down from each of those to the smaller phone and tablet sizes/resolutions/densities? Any thoughts on this topic are welcome. -- Chris Stewart -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Totally transparent, always-on-top, clickable, dialog during incoming / outgoing calls
On 18/04/12 19:41, José Pacheco wrote: Hello all, I am new to Android. Take time to read this: http://developer.android.com/guide/topics/ui/themes.html -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] AsyncTask in Android 4.0
Will this change break CursorLoader in multi-fragment Activities? If I have an Activity with 2 Fragements, each fragment using a CursorLoader to load its own data. CursorLoader is derived from AsyncTaskLoader which uses AsyncTask to do the work which includes monitoring for data changes therefore the AsyncTask (in the Loader) cannot finish until the activity is closed. How can the 2nd CursorLoader run if the 1st never finishes? -- RichardC On Friday, April 20, 2012 10:24:34 PM UTC+1, Dianne Hackborn wrote: Yes if your targetSdkVersion is = 12, then as of that release the default executor is serial. This change was made because we realized we had a lot of bugs in the platform itself where async tasks where created that had implicit ordering dependences, so with the default parallel execution there were subtle rare bugs that would result. I can't address how much smarter you are than the rest of us, but I am pretty convinced that for the vast majority of us the best thing to do is have the default here be safe, allowing developers to change it for the specific cases where they don't want that behavior. This is a lesson I seem to learn every few years: multithreading is hard. Once you think you now understand it and are an expert, you are heading soon to another painful lesson that multithreading is hard. Having an API to set the default executor back to parallel is not a solution, because it just gives you an easy way to create the exact same problems we are trying to fix. For example, if you have an async task that executes due to some user input to update some data, there is a very very good chance that if you allow these to be parallel you will have a bug. Even with something as simple as a check box (which is one of the real cases that drove this change) you can have this problem. If you run an executor to save to disk the new state of the check box, there *are* situations where if you tap long enough and the CPU is loaded in the right way, you will end up with the first state being saved after the second. So, yes, the default is serial, and you must explicitly decide when to use a parellel executor. You should only use a parallel executor when you know this is what you want and it is safe: when it is something that can take a significant amount of time, and you know has no dependencies with any other background tasks you may execute. So in your example here, the solution is to run your download task with AsyncTask.THREAD_POOL_EXECUTOR and leave the others with the default serial executor. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to install applet by OTA On Android phone?
HI All: Now I'm operating the SE of PN65N chip, but I don't know how to install applet to SE by OTA, Can anyone help me? Thanks very much. -- binbin he Mobile: +86-18616626972 Msn: hbbs...@hotmail.com -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Registration ID
Presumably there is some two-way communication between Google's servers and the device, so server-side will know whether a device is available to receive the message and fire off a registration intent. Bottom line: I would think Google would be capable enough to realize the issue and handle it, so you can proceed with the assumption that if the registration id is changed there will be an intent broadcast to indicate such. I frame these statements with Presumably and I would think because I have been surprised by seemingly broken Android behaviour in the past, but still, I say you shouldn't worry about this particular issue. On Apr 24, 4:55 am, ndiiie 90 rnd...@gmail.com wrote: Hi all, I am interested in implementing C2DM for the push notification feature in my application. However, when I read the docshttps://developers.google.com/android/c2dm/#lifecycle It states that: Note that Google may periodically refresh the registration ID, so you should design your application with the understanding that the REGISTRATION Intent may be called multiple times. Your application needs to be able to respond accordingly How about if the case is the device has no connection when Google refresh the registration ID? Of course the REGISTRATION Intent will not be called. Does Google try to refresh again the registration ID? If not, how can the device know that the Google refresh the registration ID? Thanks, Rendy -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] caurosel demo...?
Hi, I have implemented caurosel demo which is working fine but when I am using with 11 images in that, I am not getting proper position of particular item in that view. Always I am getting position of item as Zero. Can anybody help me on this issue -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Registration ID
Hey thanks for your reply Appreciate it very much! Rendy On Apr 24, 4:16 pm, EhyehAsherEhyeh jacobsen.ar...@gmail.com wrote: Presumably there is some two-way communication between Google's servers and the device, so server-side will know whether a device is available to receive the message and fire off a registration intent. Bottom line: I would think Google would be capable enough to realize the issue and handle it, so you can proceed with the assumption that if the registration id is changed there will be an intent broadcast to indicate such. I frame these statements with Presumably and I would think because I have been surprised by seemingly broken Android behaviour in the past, but still, I say you shouldn't worry about this particular issue. On Apr 24, 4:55 am, ndiiie 90 rnd...@gmail.com wrote: Hi all, I am interested in implementing C2DM for the push notification feature in my application. However, when I read the docshttps://developers.google.com/android/c2dm/#lifecycle It states that: Note that Google may periodically refresh the registration ID, so you should design your application with the understanding that the REGISTRATION Intent may be called multiple times. Your application needs to be able to respond accordingly How about if the case is the device has no connection when Google refresh the registration ID? Of course the REGISTRATION Intent will not be called. Does Google try to refresh again the registration ID? If not, how can the device know that the Google refresh the registration ID? Thanks, Rendy -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] styling a searchview widget
Is it possible to create a style extending the holo.light.darkactionbar Theme for my searchview widget? because the style for that theme doesn't exist. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to check whether connected wifi network is secured or not
Hi Guys, I have one query. Actually I want my app to make network call only if device is connected to secured wifi network which requires authentication I am using following code... WifiManager wifi =(WifiManager) getSystemService(Context.WIFI_SERVICE); if(wifi != null){ WifiInfo info = wifi.getConnectionInfo(); } WifiInfo info is the currently active wifi network on the device. But there are no APIS available in the WifiInfo to check the security protocol like security type ,encryption type or password authentication required or not for the currently active wifi network. Thanks Regards, Ashiq Sayyad -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] AsyncTask in Android 4.0
On Tue, Apr 24, 2012 at 4:18 AM, RichardC richard.crit...@googlemail.com wrote: Will this change break CursorLoader in multi-fragment Activities? CursorLoader uses the THREAD_POOL_EXECUTOR, last I checked. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] ListView addHeader(View) problem control image enhancement
On Mon, Apr 23, 2012 at 10:45 PM, Jim Graham spooky1...@gmail.com wrote: Why would setting the text of the TextView the second time cause a force close (caused by a null pointer exception, where the string being assigned was not null)? Either: -- The value t is null, or -- The exception did not occur on that line, but rather was triggered by that line and occurred somewhere in the Android framework, which is why we keep asking developers to post stack traces rather than just exception names -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to check whether connected wifi network is secured or not
On Tue, Apr 24, 2012 at 6:40 AM, Bunty syed itsmeatfo...@gmail.com wrote: But there are no APIS available in the WifiInfo to check the security protocol like security type ,encryption type or password authentication required or not for the currently active wifi network. WifiInfo does not, but WifiConfiguration does. In theory, you could find the WifiConfiguration matching the SSID/hidden SSID/BSSID of the WifiInfo and determine what the configuration is in terms of encryption. In practice: -- WifiConfiguration tells you what was possible, not what was negotiated for this connection -- I don't know how well this works for campus-style settings, with lots of access points advertising the same SSID Unless there is something that I am missing, this feels like a hole in the API. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to make real full screen app on android 4.0.3?
在 2012年4月22日星期日UTC+8下午4时23分48秒,Slay3r写道: Oops typo in my previous post should be; ActionBar actionbar = getActionBar(); actionbar.hide(); thats as close to fullscreen as you can get on a tablet i believe.. thanks , i will try ! Sent from my ASUS Eee Pad Baodong Chen lt;chenbdche...@gmail.comgt; wrote: 在 2012年4月21日星期六UTC+8下午7时32分29秒,Mark Murphy (a Commons Guy)写道: You cannot get rid of the system bar on a tablet, if that is what you are trying to do. --yes,i want to do that! but viddo player can do it?how can i? On Sat, Apr 21, 2012 at 7:15 AM, Baodong Chen chenbdche...@gmail.com wrote: hi,all: i have an app on android ics for pad,and i want my app to cover the whole screen,but android:theme=@android:style/Theme.Black.NoTitleBar.Fullscreen and setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION); DO NOT work for me...help! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! 在 2012年4月21日星期六UTC+8下午7时32分29秒,Mark Murphy (a Commons Guy)写道: You cannot get rid of the system bar on a tablet, if that is what you are trying to do. On Sat, Apr 21, 2012 at 7:15 AM, Baodong Chen chenbdche...@gmail.com wrote: hi,all: i have an app on android ics for pad,and i want my app to cover the whole screen,but android:theme=@android:style/Theme.Black.NoTitleBar.Fullscreen and setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION); DO NOT work for me...help! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Java API for libjpeg / libpng
Doesn't anybody know about this? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Java API for libjpeg / libpng
On Tue, Apr 24, 2012 at 7:50 AM, Kike lapuente.enri...@gmail.com wrote: Doesn't anybody know about this? Have you considered using a search engine? Your answers come in the first five Google hits on: java (libjpeg OR libpng) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] ListView addHeader(View) problem control image enhancement
On Tue, Apr 24, 2012 at 07:02:52AM -0400, Mark Murphy wrote: which is why we keep asking developers to post stack traces rather than just exception names Which would have been a lot easier to do, if I had it. Like I said, I'd tried it earlier, and when it didn't work, just deleted it (planning to come back to it later---I was VERY tired all day yesterday). It wasn't until later that I really started thinking that I HAD done it right, and started looking into it a lot more, and finally, posted here to find out if I was at least doing it the right way. I just re-created the code to try and duplicate the problem, and it works perfectly now. All I can say is that in my exhausted state yesterday, I screwed something up and didn't see it (permanent cancer #1 aftermath blah blah blah). Yeah, that happens, and is annoying as hell, especially when I don't catch it, and end up making a fool of myself here. Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)MiSTie #49997 Running FreeBSD 7.0 spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W 'Wrong' is one of those concepts that depends on witnesses. --Catbert: Evil Director of Human Resources (Dilbert, 05Nov09) Android Apps Listing at http://www.jstrack.org/barcodes.html -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Scan Slider action be applied on a view.
I have a Relative Layout view with layout_gravity = bottom... and it has 3 images one on the left , one middle and one on the right and it occupies approximately 1\6 th of the screen in the bottom . Now i want that when the user clicks on the RelativeLayout anywhere the layout should open up as a slider which opens up and occupies approx 3/4th of the screen and have images arranged in them like in a grid. Any pointers for this how this can be done -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to read the PDF file through web services ?
Hi, I am new to Android,can any one suggest me how to solve the below issue. 1.Sending a pdf file to client from server through web services in Android I fallowed this link but I am unable to get the output on screen. http://stackoverflow.com/questions/4544965/sending-the-files-at-least-11-files-from-folder-through-web-service-to-android Cheers, Kumar. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Scan Slider action be applied on a view.
Use SlidingDrawer... http://developer.android.com/reference/android/widget/SlidingDrawer.html Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Apr 24, 2012 at 6:54 AM, tarun sablok tarun.sab...@gmail.comwrote: I have a Relative Layout view with layout_gravity = bottom... and it has 3 images one on the left , one middle and one on the right and it occupies approximately 1\6 th of the screen in the bottom . Now i want that when the user clicks on the RelativeLayout anywhere the layout should open up as a slider which opens up and occupies approx 3/4th of the screen and have images arranged in them like in a grid. Any pointers for this how this can be done -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] caurosel demo...?
I have implemented caurosel demo which is working fine but when I am using with 11 images in that, I am not getting proper position of particular item in that view Bummer... Always I am getting position of item as Zero. Can anybody help me on this issue Not without some relevant code to use as a starting point... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Apr 24, 2012 at 3:37 AM, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote: I have implemented caurosel demo which is working fine but when I am using with 11 images in that, I am not getting proper position of particular item in that view -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] [android developers] how to use a viewpager in a fragment?
Now i am stucked in a problems. I post it on stackoverflow, but not got an answer. could anbody help me, it's kind of emergency. the question is : http://stackoverflow.com/questions/10299837/how-to-use-a-viewpager-in-a-fragment Thx! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] ListView addHeader(View) problem control image enhancement
24 апреля 2012 г. 16:33 пользователь Jim Graham spooky1...@gmail.comнаписал: Which would have been a lot easier to do, if I had it. Like I said, I'd tried it earlier, and when it didn't work, If the exception happens while you're debugging, Eclipse will stop at some seemingly random place (the corresponding catch block) and at that point, there won't be a stack trace in the logcat yet. To see the stack trace in logcat, you need to let your app / the framework completely finish the process of handling the unhandled exception. This is done by pressing Resume or F8 in Eclipse's Debug perspective... then again if needed. At some point the exception will bubble up to the top-level exception handler, and that's when you'll see the app X stopped unexpectedly on the device, and then your stack trace in the logcat. BTW, I always run logcat in a separate window, unrelated to Eclipse. It's just so much easier to see that way. Highly recommended. -- K just deleted it (planning to come back to it later---I was VERY tired all day yesterday). It wasn't until later that I really started thinking that I HAD done it right, and started looking into it a lot more, and finally, posted here to find out if I was at least doing it the right way. I just re-created the code to try and duplicate the problem, and it works perfectly now. All I can say is that in my exhausted state yesterday, I screwed something up and didn't see it (permanent cancer #1 aftermath blah blah blah). Yeah, that happens, and is annoying as hell, especially when I don't catch it, and end up making a fool of myself here. Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)MiSTie #49997 Running FreeBSD 7.0 spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W 'Wrong' is one of those concepts that depends on witnesses. --Catbert: Evil Director of Human Resources (Dilbert, 05Nov09) Android Apps Listing at http://www.jstrack.org/barcodes.html -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Set Ringtone
Tried solutins and ideas in a link you sent...in the both solutios thay are placing song on card and read it from it.but i whant to set ringtone from song that i inport in my activity in R.drawable.song...that solution i whant...did you try make app to set ringtone? On Apr 23, 2012 9:34 PM, Kristopher Micinski krismicin...@gmail.com wrote: How did it not solve your problem? What did you try? Kris On Mon, Apr 23, 2012 at 3:13 PM, jadranko bodiroga jadrankobodiroga1...@gmail.com wrote: sorry..still did not solve my problem.any other suggestions where to start... -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] ListView addHeader(View) problem control image enhancement
On Tue, Apr 24, 2012 at 06:32:13PM +0400, Kostya Vasilyev wrote: If the exception happens while you're debugging, Eclipse will stop at some seemingly random place (the corresponding catch block) and at that point, there won't be a stack trace in the logcat yet. I use the logcat directly from my tablet. My puny little laptop is too slow to let a memory/CPU hog like Eclipse do the debugging, and DEFINITELY won't run the emulator So I test first on my tablet (Acer Iconia A500, running Honeycomb for probably about 3--4 more days, then ICS), and then periodically on my phone (Motorola Bravo MB520, Froyo, and will probably never go beyond Froyo---and this phone is a good workout, as it'll crash if you look at it the wrong way). On my laptop, when I start Eclipse, I get up to heat my coffee, get more Mt Dew, switch to the virtual desktop that's running X11 connected with my FreeBSD system and check e-mail, etc., while it loads the various API data. I can't let it run all the time, as it continuously takes more and more memory, and ends up swapping for several minutes every time you do anything in it. Yeah, I need a new PC. I need the money to buy one, too. Thanks, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)MiSTie #49997 Running FreeBSD 7.0 spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W My policy on spammers: Castrate first, ask questions later. Android Apps Listing at http://www.jstrack.org/barcodes.html -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to check whether connected wifi network is secured or not
On Tuesday, April 24, 2012 7:08:06 AM UTC-4, Mark Murphy (a Commons Guy) wrote: On Tue, Apr 24, 2012 at 6:40 AM, Bunty syed wrote: But there are no APIS available in the WifiInfo to check the security -- WifiConfiguration tells you what was possible, not what was negotiated for this connection Unless there is something that I am missing, this feels like a hole in the API. A fairly strong argument could be made that application programs should not care about the difference, ie, if they need secure communication they should implement encryption at application level, rather than relying on the network. Consider for example that the wifi network being encrypted says nothing about the security of the wired network it is connected to. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Set Ringtone
So take your file, put it somewhere in storage, and then set the URI appropriately. Kris On Tue, Apr 24, 2012 at 10:40 AM, jadranko bodiroga jadrankobodiroga1...@gmail.com wrote: Tried solutins and ideas in a link you sent...in the both solutios thay are placing song on card and read it from it.but i whant to set ringtone from song that i inport in my activity in R.drawable.song...that solution i whant...did you try make app to set ringtone? On Apr 23, 2012 9:34 PM, Kristopher Micinski krismicin...@gmail.com wrote: How did it not solve your problem? What did you try? Kris On Mon, Apr 23, 2012 at 3:13 PM, jadranko bodiroga jadrankobodiroga1...@gmail.com wrote: sorry..still did not solve my problem.any other suggestions where to start... -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: [android developers] how to use a viewpager in a fragment?
I use Fragments+ViewPager+ViewPageIndicator in my app. Hope you would find it helpful: https://github.com/nhasan/Airports/blob/master/src/com/nadmm/airports/wx/WxDetailActivity.java https://github.com/nhasan/Airports/blob/master/src/com/nadmm/airports/utils/TabsAdapter.java ViewPageIndicator library by Jake Wharton: http://viewpagerindicator.com/ -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Set Ringtone
But if i whant to send my app to friend ,i have to copy him that song too on specific location,is it? Than i can not share my app to others,becouse app will not find song...that is a reason i whant to import song into my activity... On Apr 24, 2012 5:10 PM, Kristopher Micinski krismicin...@gmail.com wrote: So take your file, put it somewhere in storage, and then set the URI appropriately. Kris On Tue, Apr 24, 2012 at 10:40 AM, jadranko bodiroga jadrankobodiroga1...@gmail.com wrote: Tried solutins and ideas in a link you sent...in the both solutios thay are placing song on card and read it from it.but i whant to set ringtone from song that i inport in my activity in R.drawable.song...that solution i whant...did you try make app to set ringtone? On Apr 23, 2012 9:34 PM, Kristopher Micinski krismicin...@gmail.com wrote: How did it not solve your problem? What did you try? Kris On Mon, Apr 23, 2012 at 3:13 PM, jadranko bodiroga jadrankobodiroga1...@gmail.com wrote: sorry..still did not solve my problem.any other suggestions where to start... -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Set Ringtone
What are you even talking about...? You can take the file out of shared resources and store it in storage, distributing the app with the file in resources.. Kris On Tue, Apr 24, 2012 at 11:48 AM, jadranko bodiroga jadrankobodiroga1...@gmail.com wrote: But if i whant to send my app to friend ,i have to copy him that song too on specific location,is it? Than i can not share my app to others,becouse app will not find song...that is a reason i whant to import song into my activity... On Apr 24, 2012 5:10 PM, Kristopher Micinski krismicin...@gmail.com wrote: So take your file, put it somewhere in storage, and then set the URI appropriately. Kris On Tue, Apr 24, 2012 at 10:40 AM, jadranko bodiroga jadrankobodiroga1...@gmail.com wrote: Tried solutins and ideas in a link you sent...in the both solutios thay are placing song on card and read it from it.but i whant to set ringtone from song that i inport in my activity in R.drawable.song...that solution i whant...did you try make app to set ringtone? On Apr 23, 2012 9:34 PM, Kristopher Micinski krismicin...@gmail.com wrote: How did it not solve your problem? What did you try? Kris On Mon, Apr 23, 2012 at 3:13 PM, jadranko bodiroga jadrankobodiroga1...@gmail.com wrote: sorry..still did not solve my problem.any other suggestions where to start... -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Persistent build error
*ANY* ideas are highly appreciated! :) Use Eclipse... :-) Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Apr 23, 2012 at 9:17 PM, Luiz Santos luiz.h@gmail.com wrote: *ANY* ideas are highly appreciated! :) -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] As a first step a bitmap image to a field blod
Byte [] imagenB = bmp.toString ()). GetBytes () You want to convert the bitmap to a string? And then you want to get the bytes in the string? That doesn't make sense. What you need to do is create an OutputStream and then use Bitmap's compress method: http://developer.android.com/reference/android/graphics/Bitmap.html#compress%28android.graphics.Bitmap.CompressFormat,%20int,%20java.io.OutputStream%29 Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Apr 18, 2012 at 12:42 PM, InFeRNo infern...@gmail.com wrote: As a first step a bitmap image to a field blod Byte [] imagenB = bmp.toString ()). GetBytes (), but to save only is recorded as [B @45786532 to read it I get the imageview in black but without error somebody help me . -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How can i kill self process?
I got a service runing it's own process and when i stop the service from the app activity the service dies but the process holding the service stay's alive and dos not end. Your point would be? I wanna kill the process from the service's onDestroy() function. No, you don't... Can i do that? You shouldn't... Is it the right way to manage things? No... The right way to manage things is to let Android manage it for you. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Apr 19, 2012 at 1:47 AM, Eliran elirannac...@gmail.com wrote: Can i do that? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] GridView---problem to get item on touch
when I touched (2,2),I should get (2,2) but I got item of (3,2) . If you take out everything you are doing with your gesture listener, do you have the same problem? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Apr 17, 2012 at 8:19 PM, h...@isb.co.jp h...@isb.co.jp wrote: Hi,everyone. I am new to android. I implemented a gridview with 7 rows and 3 columns(7,3). I am trying to get item in gridview on touch. I can get item but it is not what I want. for example when I touched (2,2),I should get (2,2) but I got item of (3,2) . Please check my source code as following,any idea is welcome. public class GridviewflickActivity extends Activity implements OnGestureListener{ private GridView gv; private GestureDetector gestureDetecotr; private GestureDetector.OnGestureListener gl; private ImageView imageview; private int dragposition; private ImageAdapter ia; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); gv=(GridView)findViewById(R.id.drag_grid); ia=new ImageAdapter(this); gv.setAdapter(ia); gestureDetecotr = new GestureDetector(this); } public boolean dispatchTouchEvent(MotionEvent ev) { System.out.println(dispatchTouchEvent); return gestureDetecotr.onTouchEvent(ev); } public class ImageAdapter extends BaseAdapter{ private Context mContext; public ImageAdapter(Context c){ mContext = c; } public int getCount() { return mThumbIds.length; } public Object getItem(int position) { return mThumbIds[position]; } public long getItemId(int position) { return position; } public View getView(int position, View convertView, ViewGroup parent) { ImageView imageView1; if (convertView == null) { imageView1 = new ImageView(mContext); imageView1.setLayoutParams(new GridView.LayoutParams(85, 85)); imageView1.setScaleType(ImageView.ScaleType.CENTER_CROP); imageView1.setPadding(8, 8, 8, 8); } else { imageView1 = (ImageView) convertView; } imageView1.setImageResource(mThumbIds[position]); return imageView1; } private Integer[] mThumbIds = { R.drawable.sample_2, R.drawable.sample_3, R.drawable.sample_4, R.drawable.sample_5, R.drawable.sample_6, R.drawable.sample_7, R.drawable.sample_0, R.drawable.sample_1, R.drawable.sample_2, R.drawable.sample_3, R.drawable.sample_4, R.drawable.sample_5, R.drawable.sample_6, R.drawable.sample_7, R.drawable.sample_0, R.drawable.sample_1, R.drawable.sample_2, R.drawable.sample_3, R.drawable.sample_4, R.drawable.sample_5, R.drawable.sample_6, R.drawable.sample_7 }; } @Override public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { System.out.println(onFling); int x=(int)e1.getX(); int y=(int)e1.getY(); dragposition=gv.pointToPosition(x, y); if (dragposition==gv.INVALID_POSITION){ return false; } int cnt=gv.getChildCount(); int fvp=gv.getFirstVisiblePosition(); imageview=(ImageView)gv.getChildAt(dragposition-fvp); System.out.println(X: + x + Y: + y + dragposition: +dragposition+ fvp: +fvp); return true; } } -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] what's layout-sw680dp-w1000dp means?
It is just combining configuration qualifiers... You can do the same thing for other res directories as well... For example, I have a drawable-xlarge-mdpi folder... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Apr 17, 2012 at 7:19 AM, Gink Labrev gink.lab...@gmail.com wrote: I never heard of it The official documentation about supporting multiple screens can be found here: http://developer.android.com/guide/practices/screens_support.html#DeclaringTabletLayouts it does not mention swNdp-wNdp schema, only swNdp or wNdp. Em 17 de abril de 2012 04:37, wei li wlijobsearch...@gmail.com escreveu: Hi All, I am research android 4.0.3 contacts code. and find some layout directory such as layout-sw680dp-w1000dp. i know layout-sw680dp means at least width or height is high than 680dp. but i confused about layout-sw680dp-w1000dp. who can help explain it? or tell me where to get related document? thanks! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Synchronization issue caused by drawing to Canvas in a non-ui thread?
My app has a layout that contains some ImageButtons. In addition, my app renders some Bitmapsfor later use. The Bitmaps are rendered by creating a Canvas with a Bitmap parameter, and then drawing into the canvas. This Bitmap rendering task occurs in a non-ui thread, so the gui can remain responsive while the bitmaps render. ANRs occurring. The caused appears to be that the ImageButton.draw() method does not complete. Additionally, it appears that the method fails to complete because the Bitmap rendering task begins rendering while the ImageButton is drawing. Below are some code snippets, by log output, and the traces.txt file from the ANR. Is my conclusion possible/likely, that drawing to a Canvas in a non-ui thread could cause ImageButton.draw() to hang? If so, any suggestions to fix this? private class BitmapRenderTask implements Runnable { ... public void run() { Log.e(start render task, rect.toString()); ... Canvas canvas = new Canvas(bitmap); Log.e(created canvas, created canvas); //do stuff to draw into canvas Log.e(drew to canvas, drew to canvas); ... Log.e(done, exit, rect.toString()); public class MyImageButton extends ImageButton { public void draw(Canvas canvas) { Log.e(start drawing, this.toString()); synchronized (LOCK) { super.draw(canvas); } Log.e(end drawing, this.toString()); } } My log: 04-24 14:10:12.115: E/start render task(9446): 1 Rect(512, 0 - 800, 512) 04-24 14:10:12.230: E/start drawing(9446): MyButton1 04-24 14:10:12.230: E/end drawing(9446): MyButton1 04-24 14:10:12.230: E/start drawing(9446): MyButton2 04-24 14:10:12.230: E/end drawing(9446): MyButton2 04-24 14:10:12.230: E/start drawing(9446): MyButton3 04-24 14:10:12.230: E/end drawing(9446): MyButton3 04-24 14:10:12.230: E/start drawing(9446): MyButton4 04-24 14:10:12.235: E/end drawing(9446): MyButton4 04-24 14:10:12.235: E/start drawing(9446): MyButton5 04-24 14:10:12.235: E/end drawing(9446): MyButton5 04-24 14:10:12.235: E/start drawing(9446): MyButton6 04-24 14:10:12.390: E/drew to canvas(9446): drew to canvas 04-24 14:10:12.395: E/done, exit(9446): Rect(512, 0 - 800, 512) 04-24 14:10:12.395: E/start render task(9446): Rect(0, 1024 - 512, 1084) 04-24 14:10:12.410: E/drew to canvas(9446): drew to canvas 04-24 14:10:12.395: E/done, exit(9446): Rect(0, 1024 - 512, 1084) traces.txt: http://pastebin.com/s98nEyYt -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Synchronization issue caused by drawing to Canvas in a non-ui thread?
The LOCK in the ImageButton draw code was unintentional. I had added this for debugging (to see if the issue happened if I ensured that the RenderTask and ImageButton.draw() waited on each other); this did prevent the issue, but is definitely not a desirable solution. On Tuesday, 24 April 2012 13:21:01 UTC-4, Ab wrote: My app has a layout that contains some ImageButtons. In addition, my app renders some Bitmapsfor later use. The Bitmaps are rendered by creating a Canvas with a Bitmap parameter, and then drawing into the canvas. This Bitmap rendering task occurs in a non-ui thread, so the gui can remain responsive while the bitmaps render. ANRs occurring. The caused appears to be that the ImageButton.draw() method does not complete. Additionally, it appears that the method fails to complete because the Bitmap rendering task begins rendering while the ImageButton is drawing. Below are some code snippets, by log output, and the traces.txt file from the ANR. Is my conclusion possible/likely, that drawing to a Canvas in a non-ui thread could cause ImageButton.draw() to hang? If so, any suggestions to fix this? private class BitmapRenderTask implements Runnable { ... public void run() { Log.e(start render task, rect.toString()); ... Canvas canvas = new Canvas(bitmap); Log.e(created canvas, created canvas); //do stuff to draw into canvas Log.e(drew to canvas, drew to canvas); ... Log.e(done, exit, rect.toString()); public class MyImageButton extends ImageButton { public void draw(Canvas canvas) { Log.e(start drawing, this.toString()); synchronized (LOCK) { super.draw(canvas); } Log.e(end drawing, this.toString()); } } My log: 04-24 14:10:12.115: E/start render task(9446): 1 Rect(512, 0 - 800, 512) 04-24 14:10:12.230: E/start drawing(9446): MyButton1 04-24 14:10:12.230: E/end drawing(9446): MyButton1 04-24 14:10:12.230: E/start drawing(9446): MyButton2 04-24 14:10:12.230: E/end drawing(9446): MyButton2 04-24 14:10:12.230: E/start drawing(9446): MyButton3 04-24 14:10:12.230: E/end drawing(9446): MyButton3 04-24 14:10:12.230: E/start drawing(9446): MyButton4 04-24 14:10:12.235: E/end drawing(9446): MyButton4 04-24 14:10:12.235: E/start drawing(9446): MyButton5 04-24 14:10:12.235: E/end drawing(9446): MyButton5 04-24 14:10:12.235: E/start drawing(9446): MyButton6 04-24 14:10:12.390: E/drew to canvas(9446): drew to canvas 04-24 14:10:12.395: E/done, exit(9446): Rect(512, 0 - 800, 512) 04-24 14:10:12.395: E/start render task(9446): Rect(0, 1024 - 512, 1084) 04-24 14:10:12.410: E/drew to canvas(9446): drew to canvas 04-24 14:10:12.395: E/done, exit(9446): Rect(0, 1024 - 512, 1084) traces.txt: http://pastebin.com/s98nEyYt -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] HttpClient and Thread Pool - stale connections?
I've been using a threadpool to download a set of independent files. I use an ExecutorService and call execute() on a singleton HttpClient similar to AndroidHttpClient. All is going fairly well. However, I see one behavior that is fairly consistent on my Galaxy Tab 10.1 with Android 3.1. First, I leave the device unatttended for five minutes. Next I trigger a new screenfull of downloads by scrolling or zooming. The first five or six calls to client.execute(request) will fail with a SocketTimeoutException. Seems related to the size of the threadpool (6). It takes them 20 seconds to fail under current settings. This is compared to the sixty milliseconds it would take them for a successful request. Subsequent requests succeed, but the thread pool is held up for a while by the first failures. The stale connection check is disabled in AndroidHttpClient. I've done the same to be consistent. However, turning it on doesn't make much difference. I get three failures instead of six, so it might have caught some that were stale, at a cost that Android engineers deemed too high. I'm not sure if stale checking involves a round trip to the server or what the performance penalty is. // Turn off stale checking. Our connections break all the time anyway, // and it's not worth it to pay the penalty of checking every time. HttpConnectionParams.setStaleCheckingEnabled(params, false); Now, there is no shortage of other parameters to tweak, keepalive strategy, shorter timeouts, retry handler, telling the connectionmanager to expire connections. The cross product of all of these with the number of devices and possible web addresses, though, is large. Are there suggestions people can give me of a sane way to go about this? I'm sure some of you are old hands at this. Thanks for any tips. Nathan -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Default Launcher Lifecycle
Does Android ever stop the default launcher in order to free up resources? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] web service android
i'm calling web service and i'm getting my soapobject response like that: response{ errMesg=null; Id=54512; Article=article{id=898;Name=bej;DateArtic=2010/12/15;}; Article=article{id=800;Name=saij;DateArtic=2011/12/15;}; Article=article{id=802;Name=sui;DateArtic=2011/12/13;}; description=this ; } i just can read the second articl and 3 article??? how i can read it??? thanks -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Set Ringtone
How to do that...give me some example... On Apr 24, 2012 6:18 PM, Kristopher Micinski krismicin...@gmail.com wrote: What are you even talking about...? You can take the file out of shared resources and store it in storage, distributing the app with the file in resources.. Kris On Tue, Apr 24, 2012 at 11:48 AM, jadranko bodiroga jadrankobodiroga1...@gmail.com wrote: But if i whant to send my app to friend ,i have to copy him that song too on specific location,is it? Than i can not share my app to others,becouse app will not find song...that is a reason i whant to import song into my activity... On Apr 24, 2012 5:10 PM, Kristopher Micinski krismicin...@gmail.com wrote: So take your file, put it somewhere in storage, and then set the URI appropriately. Kris On Tue, Apr 24, 2012 at 10:40 AM, jadranko bodiroga jadrankobodiroga1...@gmail.com wrote: Tried solutins and ideas in a link you sent...in the both solutios thay are placing song on card and read it from it.but i whant to set ringtone from song that i inport in my activity in R.drawable.song...that solution i whant...did you try make app to set ringtone? On Apr 23, 2012 9:34 PM, Kristopher Micinski krismicin...@gmail.com wrote: How did it not solve your problem? What did you try? Kris On Mon, Apr 23, 2012 at 3:13 PM, jadranko bodiroga jadrankobodiroga1...@gmail.com wrote: sorry..still did not solve my problem.any other suggestions where to start... -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Synchronization issue caused by drawing to Canvas in a non-ui thread?
Yes, indeed there are potential synchronization issues. I've done some of this myself. You may want to use something like: java.util.concurrent.locks.ReentrantLock; Lock, draw to, and then release. Lock, draw from, and then release. This can work if you are sure you are locking it only for short periods. Don't wait for any network or database traffic while the lock is on. The UI will block in onDraw if your worker task is drawing. If the draw operation takes 10 milliseconds, this isn't bad. If it takes four seconds it will be bad and cause an ANR. There may be other ways of handing it also, but yes, what you are doing now is not very safe. Nathan -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Set Ringtone
Did you try googling access file from resources android? This comes up: http://stackoverflow.com/questions/4081763/access-resource-files-in-android kris On Tue, Apr 24, 2012 at 1:34 PM, jadranko bodiroga jadrankobodiroga1...@gmail.com wrote: How to do that...give me some example... On Apr 24, 2012 6:18 PM, Kristopher Micinski krismicin...@gmail.com wrote: What are you even talking about...? You can take the file out of shared resources and store it in storage, distributing the app with the file in resources.. Kris On Tue, Apr 24, 2012 at 11:48 AM, jadranko bodiroga jadrankobodiroga1...@gmail.com wrote: But if i whant to send my app to friend ,i have to copy him that song too on specific location,is it? Than i can not share my app to others,becouse app will not find song...that is a reason i whant to import song into my activity... On Apr 24, 2012 5:10 PM, Kristopher Micinski krismicin...@gmail.com wrote: So take your file, put it somewhere in storage, and then set the URI appropriately. Kris On Tue, Apr 24, 2012 at 10:40 AM, jadranko bodiroga jadrankobodiroga1...@gmail.com wrote: Tried solutins and ideas in a link you sent...in the both solutios thay are placing song on card and read it from it.but i whant to set ringtone from song that i inport in my activity in R.drawable.song...that solution i whant...did you try make app to set ringtone? On Apr 23, 2012 9:34 PM, Kristopher Micinski krismicin...@gmail.com wrote: How did it not solve your problem? What did you try? Kris On Mon, Apr 23, 2012 at 3:13 PM, jadranko bodiroga jadrankobodiroga1...@gmail.com wrote: sorry..still did not solve my problem.any other suggestions where to start... -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Set Ringtone
THANKS MAN..I WILL TRY THAT TO IMPORT TO MY APP..if i manage i will share code... On Apr 24, 2012 7:53 PM, Kristopher Micinski krismicin...@gmail.com wrote: Did you try googling access file from resources android? This comes up: http://stackoverflow.com/questions/4081763/access-resource-files-in-android kris On Tue, Apr 24, 2012 at 1:34 PM, jadranko bodiroga jadrankobodiroga1...@gmail.com wrote: How to do that...give me some example... On Apr 24, 2012 6:18 PM, Kristopher Micinski krismicin...@gmail.com wrote: What are you even talking about...? You can take the file out of shared resources and store it in storage, distributing the app with the file in resources.. Kris On Tue, Apr 24, 2012 at 11:48 AM, jadranko bodiroga jadrankobodiroga1...@gmail.com wrote: But if i whant to send my app to friend ,i have to copy him that song too on specific location,is it? Than i can not share my app to others,becouse app will not find song...that is a reason i whant to import song into my activity... On Apr 24, 2012 5:10 PM, Kristopher Micinski krismicin...@gmail.com wrote: So take your file, put it somewhere in storage, and then set the URI appropriately. Kris On Tue, Apr 24, 2012 at 10:40 AM, jadranko bodiroga jadrankobodiroga1...@gmail.com wrote: Tried solutins and ideas in a link you sent...in the both solutios thay are placing song on card and read it from it.but i whant to set ringtone from song that i inport in my activity in R.drawable.song...that solution i whant...did you try make app to set ringtone? On Apr 23, 2012 9:34 PM, Kristopher Micinski krismicin...@gmail.com wrote: How did it not solve your problem? What did you try? Kris On Mon, Apr 23, 2012 at 3:13 PM, jadranko bodiroga jadrankobodiroga1...@gmail.com wrote: sorry..still did not solve my problem.any other suggestions where to start... -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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,
[android-developers] Re: Synchronization issue caused by drawing to Canvas in a non-ui thread?
Unfortunately my RenderTask varies from about .5seconds - 5 seconds. So, it is very undesirable to either perform it on the UI thread, or to force the UI thread to wait on it. Any idea what causes the ImageButton.draw() to hang, its possible the hanging is preventable/fixable? On Tuesday, 24 April 2012 13:37:41 UTC-4, Nathan wrote: Yes, indeed there are potential synchronization issues. I've done some of this myself. You may want to use something like: java.util.concurrent.locks.ReentrantLock; Lock, draw to, and then release. Lock, draw from, and then release. This can work if you are sure you are locking it only for short periods. Don't wait for any network or database traffic while the lock is on. The UI will block in onDraw if your worker task is drawing. If the draw operation takes 10 milliseconds, this isn't bad. If it takes four seconds it will be bad and cause an ANR. There may be other ways of handing it also, but yes, what you are doing now is not very safe. Nathan -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Set Ringtone
You may also want to use the assets folder: https://www.google.com/search?btnG=1pws=0q=android+move+file+from+assets+to+phone Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Apr 24, 2012 at 11:56 AM, jadranko bodiroga jadrankobodiroga1...@gmail.com wrote: THANKS MAN..I WILL TRY THAT TO IMPORT TO MY APP..if i manage i will share code... On Apr 24, 2012 7:53 PM, Kristopher Micinski krismicin...@gmail.com wrote: Did you try googling access file from resources android? This comes up: http://stackoverflow.com/questions/4081763/access-resource-files-in-android kris On Tue, Apr 24, 2012 at 1:34 PM, jadranko bodiroga jadrankobodiroga1...@gmail.com wrote: How to do that...give me some example... On Apr 24, 2012 6:18 PM, Kristopher Micinski krismicin...@gmail.com wrote: What are you even talking about...? You can take the file out of shared resources and store it in storage, distributing the app with the file in resources.. Kris On Tue, Apr 24, 2012 at 11:48 AM, jadranko bodiroga jadrankobodiroga1...@gmail.com wrote: But if i whant to send my app to friend ,i have to copy him that song too on specific location,is it? Than i can not share my app to others,becouse app will not find song...that is a reason i whant to import song into my activity... On Apr 24, 2012 5:10 PM, Kristopher Micinski krismicin...@gmail.com wrote: So take your file, put it somewhere in storage, and then set the URI appropriately. Kris On Tue, Apr 24, 2012 at 10:40 AM, jadranko bodiroga jadrankobodiroga1...@gmail.com wrote: Tried solutins and ideas in a link you sent...in the both solutios thay are placing song on card and read it from it.but i whant to set ringtone from song that i inport in my activity in R.drawable.song...that solution i whant...did you try make app to set ringtone? On Apr 23, 2012 9:34 PM, Kristopher Micinski krismicin...@gmail.com wrote: How did it not solve your problem? What did you try? Kris On Mon, Apr 23, 2012 at 3:13 PM, jadranko bodiroga jadrankobodiroga1...@gmail.com wrote: sorry..still did not solve my problem.any other suggestions where to start... -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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
Re: [android-developers] RadioGroup OnClickListener
On Sun, Apr 15, 2012 at 10:42 PM, Mohamed Sobhy m.sobhy.9...@gmail.comwrote: So how come that RadioGroup class has a setOnClickListener but not a getOnClickListener? What can I use to go around this problem? What do you want to do with RadioGroup? If you want to get any particular radiobutton from RadioGroup, you can simply call setOnCheckedChangeListener() on RadioGroup. eg. rg.setOnCheckedChangeListener(new OnCheckedChangeListener()) or else, do you need something else? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Synchronization issue caused by drawing to Canvas in a non-ui thread?
On Tuesday, April 24, 2012 10:58:43 AM UTC-7, Ab wrote: Unfortunately my RenderTask varies from about .5seconds - 5 seconds. So, it is very undesirable to either perform it on the UI thread, or to force the UI thread to wait on it. In that case, decide what you want to have happen. If you don't want to draw the bitmap till you are done, don't draw till it is marked as done. Or would you like to see the drawing in progress? Then draw it in stages. Lock, draw a line or two, release. Lock, draw an icon, release. Lock, draw a circle or square, release. I've done some very complicated draws this way. Don't think that you can draw the bitmap while a canvas method is in progress drawing to the bitmap. Any idea what causes the ImageButton.draw() to hang, its possible the hanging is preventable/fixable? I don't see it in the code, but you said that you are using a bitmap in the UI method at the same time you are drawing to said bitmap in another thread, right? You can probably see in the debugger where it is hung and it's probably in a low level canvas or bitmap method. It's definitely preventable/fixable. You just need to plan how. Nathan -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Cannot change the visiblity of an imageview
View view = getListView().getAdapter().getView(0, null, null); That won't work... getView() is called by the system when it wants to add a view to be displayed in your listview. What you are doing here is essentially creating a new View and then not doing anything with it. What you should be doing is having some way in your backend data (in the adapter) to determine if the image view should be visible. And then inside the getView() method, you set its visibility as desired. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Sat, Apr 21, 2012 at 7:37 AM, Dipesh Sudershan d1p3shn0...@gmail.comwrote: View view = getListView().getAdapter().getView(0, null, null); -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: HttpClient and Thread Pool - stale connections?
Aer you sure it isn't due to the network not fully connected yet after device resume from sleep ? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: HttpClient and Thread Pool - stale connections?
On Tuesday, April 24, 2012 11:50:02 AM UTC-7, b0b wrote: Aer you sure it isn't due to the network not fully connected yet after device resume from sleep ? No I am not sure, but what do I do about it if so? The device does not seem asleep, and the screen hasn't dimmed, but that doesn't mean the device won't get lazy about network connections. The wifi disconnect policy is set to never, but I know Android can ignore that. Nathan -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Scan Slider action be applied on a view.
Sliding drawer will be hidden which i will have to drag out to the srceen but as I explained that I want a view to be displayed at the bottom of the screen which will be any layout ... and when i click that view it should come out as a drawer. On Tue, Apr 24, 2012 at 7:07 PM, Justin Anderson magouyaw...@gmail.comwrote: Use SlidingDrawer... http://developer.android.com/reference/android/widget/SlidingDrawer.html Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Apr 24, 2012 at 6:54 AM, tarun sablok tarun.sab...@gmail.comwrote: I have a Relative Layout view with layout_gravity = bottom... and it has 3 images one on the left , one middle and one on the right and it occupies approximately 1\6 th of the screen in the bottom . Now i want that when the user clicks on the RelativeLayout anywhere the layout should open up as a slider which opens up and occupies approx 3/4th of the screen and have images arranged in them like in a grid. Any pointers for this how this can be done -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: HttpClient and Thread Pool - stale connections?
No I am not sure, but what do I do about it if so? The device does not seem asleep, and the screen hasn't dimmed, but that doesn't mean the device won't get lazy about network connections. The wifi disconnect policy is set to never, but I know Android can ignore that. Ok it is very unlikely the network is disconnected then. Assuming you use WiFi, you might want ot use a WiFi lock for testing purpose. Also I would recommend to use the latest Apache HttpClient / HttpCore available, repackage it with jarjar and use that instead of the very old and buggy and unmaintainted Android httpclient platform classes. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Scan Slider action be applied on a view.
Sliding drawer will be hidden which i will have to drag out to the srceen but as I explained that I want a view to be displayed at the bottom of the screen which will be any layout ... and when i click that view it should come out as a drawer. Unless I'm not understanding your requirement, that is EXACTLY how SlidingDrawer works... Here is the sample XML file on the SlidingDrawer docs... SlidingDrawer android:id=@+id/drawer android:layout_width=match_parent android:layout_height=match_parent android:handle=@+id/handle android:content=@+id/content ImageView android:id=@id/handle android:layout_width=88dip android:layout_height=44dip / GridView android:id=@id/content android:layout_width=match_parent android:layout_height=match_parent / /SlidingDrawer The content is hidden... The handle is always visible. And the handle can be any layout, just as you wanted. And when you click that handle, it will come out as a drawer, just like you want. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Apr 24, 2012 at 1:12 PM, tarun sablok tarun.sab...@gmail.comwrote: Sliding drawer will be hidden which i will have to drag out to the srceen but as I explained that I want a view to be displayed at the bottom of the screen which will be any layout ... and when i click that view it should come out as a drawer. On Tue, Apr 24, 2012 at 7:07 PM, Justin Anderson magouyaw...@gmail.comwrote: Use SlidingDrawer... http://developer.android.com/reference/android/widget/SlidingDrawer.html Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Apr 24, 2012 at 6:54 AM, tarun sablok tarun.sab...@gmail.comwrote: I have a Relative Layout view with layout_gravity = bottom... and it has 3 images one on the left , one middle and one on the right and it occupies approximately 1\6 th of the screen in the bottom . Now i want that when the user clicks on the RelativeLayout anywhere the layout should open up as a slider which opens up and occupies approx 3/4th of the screen and have images arranged in them like in a grid. Any pointers for this how this can be done -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problem stripping Log calls with ProGuard
BTW, this method no longer works with the new scheme of using Proguard. Anyone know why? On Wednesday, March 9, 2011 5:29:50 AM UTC-8, Marcin Orlowski wrote: Hi, I try to strip all log calls from release app using proguard (-assumenosideeffects) i noticed not all is removed. Some cases are clearly understandable to left some traces i.e. Log.i(foo + bar()); one, but I wonder what I can do (except manually comenting it out) this: if( ... ) { ... some code ... } else { Log.d(foo); } To my understanding there's no reason to not remove Log call, but it remains there. My first thought was PG got some sort of problems stripping the only code from the else cause, but I spotted it happened sometimes when I got some code (method call) around too. For smaller apps I can track these left-overs down by hand but for bigger is pure time consuming process to reverse own app and go thru smali code. Anyone got idea what could I can do to get above sorted -- Regards, Marcin Orlowski On Wednesday, March 9, 2011 5:29:50 AM UTC-8, Marcin Orlowski wrote: Hi, I try to strip all log calls from release app using proguard (-assumenosideeffects) i noticed not all is removed. Some cases are clearly understandable to left some traces i.e. Log.i(foo + bar()); one, but I wonder what I can do (except manually comenting it out) this: if( ... ) { ... some code ... } else { Log.d(foo); } To my understanding there's no reason to not remove Log call, but it remains there. My first thought was PG got some sort of problems stripping the only code from the else cause, but I spotted it happened sometimes when I got some code (method call) around too. For smaller apps I can track these left-overs down by hand but for bigger is pure time consuming process to reverse own app and go thru smali code. Anyone got idea what could I can do to get above sorted -- Regards, Marcin Orlowski -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Update ListView items using a timer
You need to change the data in the adapter, and then call notifyDataSetChanged() on the adapter. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Sun, Apr 22, 2012 at 9:51 AM, Jbassking jbonav...@thebonavitas.comwrote: I have a ListView with a custom adapter. The adapter uses a custom object for it's data. I have a TextView that needs to be updated every few seconds using a timer so I added a Timer to my custom object and it sets the text on the TextView. The problem is that is TextView never reflects the change in the ListView. I was thinking I had to call some type of notify on the listview or adapter telling it to refresh that TextView. Any ideas? Thanks, Joe -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Issues to add native service to ICS
Hi: I need to add a new native server and a native service moduel to Android ICS. I got the following issues to compile modules build/core/base_rules.mk:80: * build/core/base_rules.mk:81: * Each module must use a LOCAL_MODULE_TAGS in its build/core/base_rules.mk:82: * Android.mk. Possible tags declared by a module: build/core/base_rules.mk:83: * build/core/base_rules.mk:84: * optional, debug, eng, tests, samples build/core/base_rules.mk:85: * build/core/base_rules.mk:86: * If the module is expected to be in all builds build/core/base_rules.mk:87: * of a product, then it should use the build/core/base_rules.mk:88: * optional tag: build/core/base_rules.mk:89: * build/core/base_rules.mk:90: *Add LOCAL_MODULE_TAGS := optional in the build/core/base_rules.mk:91: *Android.mk for the affected module, and add build/core/base_rules.mk:92: *the LOCAL_MODULE value for that component build/core/base_rules.mk:93: *into the PRODUCT_PACKAGES section of product build/core/base_rules.mk:94: *makefile(s) where it's necessary, if build/core/base_rules.mk:95: *appropriate. build/core/base_rules.mk:96: * build/core/base_rules.mk:97: * If the component should be in EVERY build of ALL build/core/base_rules.mk:98: * products, then add its LOCAL_MODULE value to the build/core/base_rules.mk:99: * PRODUCT_PACKAGES section of build/core/base_rules.mk:100: * build/target/product/core.mk build/core/base_rules.mk:101: * build/core/base_rules.mk:102: *** user tag detected on new module - user tags are only supported on legacy modules. Stop. Actually, I already added LOCAL_MODULE_TAGS := optional to the makefiles for native server and native service. Those modules worked fine for Android 2.3. Thanks -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] ndk, shared library's global variables persist
There is a google group for NDK development... you might have better luck on that forum. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Apr 17, 2012 at 9:59 AM, Anatoliy Lysenko a.o.lyse...@gmail.comwrote: Hi, In my NDK project I have two global variables, int and pointer. When I install my app and run it for first time, all global variables are empty. When I exit app and start it again, in both variables stored values from previous run. When I start application, Activity::onCreate will call native function that check my global pointer, I do not destroy it on exit and it have object from previous run. So not only globals persist, but also the heap? I do not understand C++ nor Android, can someone explain it? My phone: Samsung Ace, Android 2.2, API level 8. Thanks, Anatoliy -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Issues to add native service to ICS
This has nothing to do with this list, which is for developing applications with the Android SDK. Please visit http://source.android.com, click on the Community tab, and find a relevant list. On Tue, Apr 24, 2012 at 3:37 PM, fan zhang fzhang...@gmail.com wrote: Hi: I need to add a new native server and a native service moduel to Android ICS. I got the following issues to compile modules build/core/base_rules.mk:80: * build/core/base_rules.mk:81: * Each module must use a LOCAL_MODULE_TAGS in its build/core/base_rules.mk:82: * Android.mk. Possible tags declared by a module: build/core/base_rules.mk:83: * build/core/base_rules.mk:84: * optional, debug, eng, tests, samples build/core/base_rules.mk:85: * build/core/base_rules.mk:86: * If the module is expected to be in all builds build/core/base_rules.mk:87: * of a product, then it should use the build/core/base_rules.mk:88: * optional tag: build/core/base_rules.mk:89: * build/core/base_rules.mk:90: * Add LOCAL_MODULE_TAGS := optional in the build/core/base_rules.mk:91: * Android.mk for the affected module, and add build/core/base_rules.mk:92: * the LOCAL_MODULE value for that component build/core/base_rules.mk:93: * into the PRODUCT_PACKAGES section of product build/core/base_rules.mk:94: * makefile(s) where it's necessary, if build/core/base_rules.mk:95: * appropriate. build/core/base_rules.mk:96: * build/core/base_rules.mk:97: * If the component should be in EVERY build of ALL build/core/base_rules.mk:98: * products, then add its LOCAL_MODULE value to the build/core/base_rules.mk:99: * PRODUCT_PACKAGES section of build/core/base_rules.mk:100: * build/target/product/core.mk build/core/base_rules.mk:101: * build/core/base_rules.mk:102: *** user tag detected on new module - user tags are only supported on legacy modules. Stop. Actually, I already added LOCAL_MODULE_TAGS := optional to the makefiles for native server and native service. Those modules worked fine for Android 2.3. Thanks -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Why my phone must connet the power that the APP can work well?
http://catb.org/esr/faqs/smart-questions.html Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Apr 17, 2012 at 5:56 AM, kaixinyang 402707...@qq.com wrote: Why my phone must connet the power that the APP can work well? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Enable User Friendly keyboard based on input
User Friendly Keyboard based on input type, Is this a feature provide by os, or it is based on the browser or is it based on device? I don't really know what you are asking here... I'm going to go out on a limb and assume that this might help: http://developer.android.com/reference/android/widget/TextView.html#attr_android:inputType Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Apr 18, 2012 at 4:11 AM, Frontendboss ansaripar...@gmail.comwrote: User Friendly Keyboard based on input type, Is this a feature provide by os, or it is based on the browser or is it based on device? It works perfectly on IOS, is it possible to enable this for Andriod? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: HttpClient and Thread Pool - stale connections?
Hmm. I'm not sure I can pin this on connection reuse. There is no keepalive header in the response. Based on that, DefaultConnectionReuseStrategy will return false and DefaultKeepAliveStrategy will return -1. Nathan -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Persistent build error
Em terça-feira, 24 de abril de 2012 13h55min37s UTC-3, MagouyaWare escreveu: *ANY* ideas are highly appreciated! :) Use Eclipse... :-) Wish I could! haha Switching to Ubuntu, most likely... Thanks for answering, anyway :) -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] android 3.x kernel
Me and qnhoang81 have been talking and have come to the conclusion that it is essential to cm9 that it uses a Linux 3.x based Linux kernel and it would also be nice to have a Linux 3.0 overclocking kernel for the sph-m920 anyone interested in helping with this can email me at lamabo...@gmail.com or just simply reply to this thread and thank you in advance for your hard work and time. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to get accurate time stamps from Android GPS location.
Thanks for your input to this, it's spurred me to further study. Re the GpsStatus object, that's a great suggestion but for the life of me, I can't get my SGS 11 to trigger the onStatusChanged event or to get anything from the GpsStatus object, so that's a bit annoying. But I'll press on. Despite monitoring for in excess of 12.5 minutes, the GPS time being reported in the NMEA string and Location.getTime are consistently slightly more than 1 second ahead of UTC - averages around 1300 ms. Odd eh? On Monday, April 23, 2012 8:01:25 PM UTC+10, andrewg_oz wrote: I've not looked at the relevant Android API before, but I would imagine that if you get a GpsStatus object from the LocationManager, then check each satellite for hasAlmanac(), then you might be more likely to have the correct GPS/UTC offset. It is still possible to have received the almanac data for all satellites in view, but still not received the GPS/UTC offset, so not a perfect solution. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Unpackaging APKs for ROM builds at initial startup
The application I am working on is being preinstalled with the OEM ROM builds. Consequently, the APK is packaged with a .so file that is traditionally placed in /system/lib. Unfortunately, the latest Ice Cream Sandwich builds of the ROMs contain the same exact .so file that is interacted with in a slightly different way (preventing me from just using that .so file), but interferes with the namespace of the .so file contained in my APK. So, the problem is I have two .so files in the /system/lib directory that create a namespace conflict. I've been told there is a way to extract the .so file I need from my APK to /data/data/ on the app's maiden startup. Is this true? Can someone point me in the right direction? Thanks. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Unpackaging APKs for ROM builds at initial startup
You might have better luck asking this on the android-ndk Google Group. On Tue, Apr 24, 2012 at 5:07 PM, ivan istas...@gmail.com wrote: The application I am working on is being preinstalled with the OEM ROM builds. Consequently, the APK is packaged with a .so file that is traditionally placed in /system/lib. Unfortunately, the latest Ice Cream Sandwich builds of the ROMs contain the same exact .so file that is interacted with in a slightly different way (preventing me from just using that .so file), but interferes with the namespace of the .so file contained in my APK. So, the problem is I have two .so files in the /system/lib directory that create a namespace conflict. I've been told there is a way to extract the .so file I need from my APK to /data/data/ on the app's maiden startup. Is this true? Can someone point me in the right direction? Thanks. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Default Launcher Lifecycle
let me rephrase this... I have built a default launcher app that is specifically for the Samsung Galaxy Tab 10.1. I have launched many apps in order to have android call onDestroy() on my launcher app but I have not been successful in doing this. Does anyone know if Android ever calls onDestroy() on the default launcher in order to free up resources? On Apr 24, 10:28 am, Josh joshdo...@gmail.com wrote: Does Android ever stop the defaultlauncherin order to free up resources? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] web service android
This is not the correct forum as this deals with the android sdk, but you may want to look up soap or go to stackoverflow.com On Apr 24, 2012 1:31 PM, saida gzem gzemsa...@gmail.com wrote: i'm calling web service and i'm getting my soapobject response like that: response{ errMesg=null; Id=54512; Article=article{id=898;Name=bej;DateArtic=2010/12/15;}; Article=article{id=800;Name=saij;DateArtic=2011/12/15;}; Article=article{id=802;Name=sui;DateArtic=2011/12/13;}; description=this ; } i just can read the second articl and 3 article??? how i can read it??? thanks -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How we can get Panasonic Toughpad A1 SDK.
Could you help me to get Panasonic Toughpad A1 SDK, we would like to install and use it for emulator debugging/testing. We are targeting our application on Panasonic toughpad.We have already ICS latest version SDK and emulator. But instead of that we would like to use Panasonic SDK. BR Srinivas -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How we can get Panasonic Toughpad A1 SDK.
On Tue, Apr 24, 2012 at 6:55 PM, Srinivas Nainala srito...@gmail.com wrote: Could you help me to get Panasonic Toughpad A1 SDK, we would like to install and use it for emulator debugging/testing. We are targeting our application on Panasonic toughpad.We have already ICS latest version SDK and emulator. But instead of that we would like to use Panasonic SDK. Contact Panasonic. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] AsyncTask in Android 4.0
On Tue, Apr 24, 2012 at 1:18 AM, RichardC richard.crit...@googlemail.comwrote: Will this change break CursorLoader in multi-fragment Activities? No. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Invisible tabs in android - is it possible?
Is there a way to create an invisible tab in android, that would show up only when you press the menu button or something like that. I do not want it to show a separate tab in the tab bar, but when the menu button is pressed, I want it to show while the tab bar is also visible. Please guide me. Thanks -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Default Launcher Lifecycle
onDestroy() generally doesn't get called to free up resourced; most usually processes are killed to accomplish this. The platform tries to keep the process hosting the home app running, so that pressing home won't take a long time to return to the launcher. Of course under enough memory stress it will get killed. On Tue, Apr 24, 2012 at 2:41 PM, Josh joshdo...@gmail.com wrote: let me rephrase this... I have built a default launcher app that is specifically for the Samsung Galaxy Tab 10.1. I have launched many apps in order to have android call onDestroy() on my launcher app but I have not been successful in doing this. Does anyone know if Android ever calls onDestroy() on the default launcher in order to free up resources? On Apr 24, 10:28 am, Josh joshdo...@gmail.com wrote: Does Android ever stop the defaultlauncherin order to free up resources? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Invisible tabs in android - is it possible?
Oh, I figured that out. All I had to do was set the visibility to GONE. On Wed, Apr 25, 2012 at 5:48 AM, Farhan Tariq farhan@gmail.com wrote: Is there a way to create an invisible tab in android, that would show up only when you press the menu button or something like that. I do not want it to show a separate tab in the tab bar, but when the menu button is pressed, I want it to show while the tab bar is also visible. Please guide me. Thanks -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Radio buttons in list - need only one selectable button
Sadly, there isnt much customization that I can do with it. I googled that up, and all seem to use android.R.layout.simple_list_item_single_choice layout for the purpose. I also came across checkedTextView, but I couldn't understand the theory behind. Can anyone please explain a little. Thanks in advance. On Mon, Apr 23, 2012 at 11:14 PM, Mark Murphy mmur...@commonsware.comwrote: Step #1: Use android.R.layout.simple_list_item_single_choice for your rows, or otherwise switch to CheckedTextView instead of RadioButton. Step #2: Use android:choiceMode=singleChoice. This sample project shows this approach the multipleChoice/android.R.layout.simple_list_item_multiple_choice scenario, but it could be trivially converted to single choice: https://github.com/commonsguy/cw-omnibus/tree/master/Selection/Checklist On Mon, Apr 23, 2012 at 2:08 PM, Farhan Tariq farhan@gmail.com wrote: Hi, I have a listView to which I am adding a number of rows at run time. Each row has a radio button in it. I want only one radio button to be selected at one time, but currently they are all selectable. How can I achieve that? Thanks in advance Regards, Farhan -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.6 Available! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to get accurate time stamps from Android GPS location.
1300ms ahead sounds odd. If it was behind I'd say it was just a reporting delay as part of the usual message processing, but ahead is weird. It's not GPS, but if you have an Internet connection, what about querying an NTP server? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] getInstalledPackages(PackageManager.GET_ACTIVITIES) - PackageManager has died!?
Here is a crash report I received today while my app runs: pm.getInstalledPackages(PackageManager.GET_ACTIVITIES); Can someone tell me how to resolve this? This call used to have the flag set to 0 without issues, but now one (maybe more) of my users is receiving this error preventing the use of my app! :( Couldn't find any info on this on the net!!! And can't contact the user who sent the FC report. Caused by: java.lang.RuntimeException: Package manager has died at android.app.ApplicationPackageManager.getInstalledPackages(ApplicationPackageManager.java:400) at ccc71.pmw.lib.pmw_icon_package_list.onResume(pmw_icon_package_list.java:68) at ccc71.pmw.pmw_icon_package_list.onResume(pmw_icon_package_list.java:12) at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1154) at android.app.Activity.performResume(Activity.java:4539) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2434) ... 12 more Caused by: android.os.TransactionTooLargeException at android.os.BinderProxy.transact(Native Method) at android.content.pm.IPackageManager$Stub$Proxy.getInstalledPackages(IPackageManager.java:1900) at android.app.ApplicationPackageManager.getInstalledPackages(ApplicationPackageManager.java:394) ... 17 more -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to get accurate time stamps from Android GPS location.
You need to enable RMC messages and then wait for a GPS lock, then enable ZDA messages these give a 1PPS message with a timestamp accurate to 1ms. On Apr 25, 2012 6:02 AM, Andrew Gregory andrew.greg...@gmail.com wrote: 1300ms ahead sounds odd. If it was behind I'd say it was just a reporting delay as part of the usual message processing, but ahead is weird. It's not GPS, but if you have an Internet connection, what about querying an NTP server? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to get accurate time stamps from Android GPS location.
Hi Sy, Thanks for your input. If I understand you correctly, you are suggesting I look for a $GPZDA NMEA sentence. I have just checked the SiRF NMEA Manual and tried it. I'm getting RMC and GGA but no ZDA sentences on either my SGS 11 or HTC , both running 2.3.3. Am I missing something here? On Wednesday, April 25, 2012 3:13:46 PM UTC+10, Sy wrote: You need to enable RMC messages and then wait for a GPS lock, then enable ZDA messages these give a 1PPS message with a timestamp accurate to 1ms. On Apr 25, 2012 6:02 AM, Andrew Gregory andrew.greg...@gmail.com wrote: 1300ms ahead sounds odd. If it was behind I'd say it was just a reporting delay as part of the usual message processing, but ahead is weird. It's not GPS, but if you have an Internet connection, what about querying an NTP server? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to get accurate time stamps from Android GPS location.
Yes I do and will give it a go. Ta. On Wednesday, April 25, 2012 3:01:33 PM UTC+10, andrewg_oz wrote: 1300ms ahead sounds odd. If it was behind I'd say it was just a reporting delay as part of the usual message processing, but ahead is weird. It's not GPS, but if you have an Internet connection, what about querying an NTP server? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] setPreviewCallback - onPreviewFrame returning byte array
I have a code that opens the camera and displays it to a SurfaceHolder. I then call onPreviewFrame which grabs the displayed image and stores the data as a byte array. I then TCPIP the info over to my computer which is where I hope to decode the array back into an image so I can do some off-processor vision processing. My only issue is that the byte array isn't in any logical format. Does anybody know how to decode the byte array from an 'onPreviewFrame' to become an image again? Thanks, Taylor -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en