[android-developers] How to fire key-up event only?
Hi guys, I am in a tricky situation, hope you can help me with it. I have 4 buttons, horizontally placed one after another in a linear layout. When I press on button 1, drag my finger to any other button and release touch, I want to be able to get the view(button) on which the finger was lifted. I went over the keyEvent api, it says that every event starts with a key_down action. Since other buttons won't fire that event, how can I get the reference to the button on which I lifted my finger? Any help is greatly appreciated. Thank you 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] How to add string.xml for a different locale
Hi, I have seen some forums, skimmed through stackoverflow before posting here. I need to know how I can add a string.xml file for a different language. Android uses es to refer to english language. How can I use, say values-XX and a String.xml file in it for reading values in my app? I want that my app should use String.xml in values-XX throughout my app, without removing the other values... folders. Any help is greatly appreciated. Thank you 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
[android-developers] Constructing String.xml for non-supported -by-default Language
Hi I am somewhat familiar with localization in android. For languages like English, French, we can put a string.xml resource file in their separate folder. But for languages that are not supported, like a local language in some part of my country, how can I make a separate folder for it? How will I tell the sdk to pull string from which folder? And how can i reference it in my code? I want to do it for android 2.2 (Froyo). If that is possible, another question that pops up in my mind is that the language I want to add is written from right to left. Would it be challenging and why? Any help is greatly appreciated. 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
[android-developers] Using TextWatcher class to count linebreaks
Hi all, I am using a textWatcher on an editText. I am able to limit it's length, but I am unable to limit the number of lines in it. I want to allow only 4 lines (line breaks or return keys) in the editText. I am using the following method to count number of lines (line breaks), but it returns odd values. private int countLines(String str){ String[] lines = str.split(\r\n|\n); return lines.length; } Any suggestion/help on how to limit editText to 4 new lines? I need it urgently, so please help if you know a solution to it. 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
Re: [android-developers] Using TextWatcher class to count linebreaks
MaxLines won't work. Like I said, I need to count number of line breaks (equal to \n, return, newlines etc). MaxLines just returns the number of lines a piece of text takes! I could have a long sentence that would take up 5 lines, but no line break, and maxLines would return me 5, but desired number would be 1. Hope that clears my point. On Sun, Aug 5, 2012 at 9:46 AM, TreKing treking...@gmail.com wrote: On Sat, Aug 4, 2012 at 10:57 PM, Farhan Tariq farhan@gmail.comwrote: Any suggestion/help on how to limit editText to 4 new lines? http://developer.android.com/reference/android/R.styleable.html#TextView_maxLines I need it urgently, Come on now. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] Using TextWatcher class to count linebreaks
I managed to solve it. Apparently, I was using wrong regular expression. I just needed to check for \n. Thanks though. On Sun, Aug 5, 2012 at 9:58 AM, Farhan Tariq farhan@gmail.com wrote: MaxLines won't work. Like I said, I need to count number of line breaks (equal to \n, return, newlines etc). MaxLines just returns the number of lines a piece of text takes! I could have a long sentence that would take up 5 lines, but no line break, and maxLines would return me 5, but desired number would be 1. Hope that clears my point. On Sun, Aug 5, 2012 at 9:46 AM, TreKing treking...@gmail.com wrote: On Sat, Aug 4, 2012 at 10:57 PM, Farhan Tariq farhan@gmail.comwrote: Any suggestion/help on how to limit editText to 4 new lines? http://developer.android.com/reference/android/R.styleable.html#TextView_maxLines I need it urgently, Come on now. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] android tabHost with many activities inside each tab
How I did such applications is that on ,say a button click, I setContentView to another (supposedly) activity, and did its initializations, overrode the onBackPressed method to reflect changes when back button was pressed. But I am sure my way is one of the bad ways to go about it. It makes the code difficult to read,maintain and quiet messy. So may be that is a workaround, it is not the best approach. On Tue, May 29, 2012 at 1:03 PM, TreKing treking...@gmail.com wrote: On Tue, May 29, 2012 at 1:16 AM, LordMaKo juanman...@gmail.com wrote: is it a better approach to use fragmentshttp://developer.android.com/guide/topics/fundamentals/fragments.html as aneal [SO user] suggest? Yes. From what I've gathered in this group, ActivityGroup was a hack and should not be used. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: Can we block certain sms messages from reaching the default messaging app?
I am really stuck at this. Someone please guide me. Thanks On Tue, May 15, 2012 at 2:47 AM, Farhan Tariq farhan@gmail.com wrote: Hi all, I aim to make an app that would store sms messages with certain words contained in an sms, and stop it from reaching the default messaging app. I realize that I need to place a broadcast receiver for sms messages in my app, but how do I ensure that If a message contains a KEYWORD, the message gets deleted immediately and becomes unaccessible to any other messaging app? I am stuck here, so any help is appreciated. Thank you 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
Re: [android-developers] Re: how to know that headset is plugged in?
What do you mean check current mode? Wouldn't AudioManager.isWiredHeadsetOn() do the job? On Mon, May 14, 2012 at 7:00 AM, lbendlin l...@bendlin.us wrote: I would check the current audio mode, and then test am.isSpeakerphoneOn()to be false. On Sunday, May 13, 2012 8:11:54 PM UTC-4, Farhan wrote: Hi, I aim at playing a sound only if the headset is plugged in. How can I use the sdk to check if headset is plugged in? Thanks 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 -- 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] Can we block certain sms messages from reaching the default messaging app?
Hi all, I aim to make an app that would store sms messages with certain words contained in an sms, and stop it from reaching the default messaging app. I realize that I need to place a broadcast receiver for sms messages in my app, but how do I ensure that If a message contains a KEYWORD, the message gets deleted immediately and becomes unaccessible to any other messaging app? I am stuck here, so any help is appreciated. Thank you 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
[android-developers] how to know that headset is plugged in?
Hi, I aim at playing a sound only if the headset is plugged in. How can I use the sdk to check if headset is plugged in? Thanks 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
[android-developers] encrypt files to be opened up by a specific app only
Hi developers, I want to make an app that would download pdf files and keep them in sdcard in encrypted form, such that the pdf can be opened by my app only and not even with any pdf reader installed on the device. Is it even possible? I would appreciate any help. Thanks 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
[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
[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
[android-developers] Radio buttons in list - need only one selectable button
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
[android-developers] Adding view to tab bar
I have a question regarding tab bar... posted here http://stackoverflow.com/questions/10275165/showing-a-non-child-view-in-tabbar-android I hope someone from here can answer 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
[android-developers] Image Processing library
Hi, I am required to make an application that takes picture from camera and modify the picture. I wanted to know if there are good android-compatible image processing libraries out there that someone here has used. Also I would like someone to tell me what KEYWORDS should i look into to be able to make the application. I want to add glasses to a picture of a person taken with camera. Any help is appreciated. 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
[android-developers] Re: Image Processing library
I am looking for something like this itunes.apple.com/us/app/*fatbooth* /id372268904?mt=8 On Mon, Apr 16, 2012 at 6:01 PM, Farhan Tariq farhan@gmail.com wrote: Hi, I am required to make an application that takes picture from camera and modify the picture. I wanted to know if there are good android-compatible image processing libraries out there that someone here has used. Also I would like someone to tell me what KEYWORDS should i look into to be able to make the application. I want to add glasses to a picture of a person taken with camera. Any help is appreciated. 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
Re: [android-developers] Re: Image Processing library
It may be present, but I would like to learn how to apply the same or similar effects to pictures myself. Once I have learnt it, I might be able to put in more creativity into it. On Mon, Apr 16, 2012 at 10:27 PM, anuragpratap singh anurag1...@gmail.comwrote: Hi Farhan I guess, the application that you want to create is already present in the new android version 4.0 (ICS). this effect is known as live effects and this effect works for both still capture and video record. Please check *Live Effects* on android site. Thanks and Regards Anurag On Mon, Apr 16, 2012 at 6:41 PM, David Olsson zooklu...@gmail.com wrote: Take a look at OpenCV for Android: http://code.opencv.org/projects/opencv/wiki/OpenCV4Android On Mon, Apr 16, 2012 at 3:02 PM, Farhan Tariq farhan@gmail.comwrote: I am looking for something like this itunes.apple.com/us/app/* fatbooth*/id372268904?mt=8 On Mon, Apr 16, 2012 at 6:01 PM, Farhan Tariq farhan@gmail.comwrote: Hi, I am required to make an application that takes picture from camera and modify the picture. I wanted to know if there are good android-compatible image processing libraries out there that someone here has used. Also I would like someone to tell me what KEYWORDS should i look into to be able to make the application. I want to add glasses to a picture of a person taken with camera. Any help is appreciated. 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 -- 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 -- Thanks Regards Anurag Pratap Singh (09818909113) Hughes Systique Corporation -- 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: Hello Everyone---a Quick question please
String string = This is what i want to split; String[] tokens = string.split( ); for(int i =0;itokens.length;i++){ Log.d(TOKEN : , tokens[i]); } I think you are looking for something like this. This has nothing to do with android SDK, you should first google your questions up before you post them here On Sun, Apr 15, 2012 at 2:31 PM, Soyer mblack...@gmail.com wrote: yes i know its a very beginner question, i even dint expect to be the problem with my code, however i tried the other way String[] t1 = str.split( ); and for some reason it's still giving me the same output. On Apr 15, 2:22 am, Justin Anderson magouyaw...@gmail.com wrote: This isn't an android question... This is more of a really beginner java question. That being said, what are you doing to print out the strings? http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/String.html#sp... Thanks, Justin Anderson MagouyaWare Developerhttp://sites.google.com/site/magouyaware On Sat, Apr 14, 2012 at 2:49 PM, Soyer mblack...@gmail.com wrote: Hello everybody, i am trying to split a line to a set of strings, and i am using the following bunch of code: str = hello welcome to your application text= X, A String t1[]=str.split( ); String t2[]=text.split( ); the problem is that the strings (the original ones) are printed correctly but once it's splatted, it gets printed something like: 04-14 21:29:56.985: W/System.err(3427): ===132[Ljava.lang.String;@4462ac88 before splitting method was: 04-14 21:29:56.985: W/System.err(3427): ===133A, X Please any help will be very appreciated. cheers. -- 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] Program crashes on Android 4.0.4 but not on 2.3.3
Are you using 'startActivityForResult()' method in your code to start the new activity? On Sun, Apr 15, 2012 at 5:27 PM, James Black planiturth...@gmail.comwrote: The Activity just disappears. So, if I am on the home page, then I start my application, I get the first screen, then the second activity comes up, starts the remote service, and then I end up on the home page again, as the second activity ended. But, the exact same program works fine on Android 2.3.3. Unfortunately I have no other information than what I am seeing. I don't get any logging from onStop or onDestroy, but that may be expected, so I am not certain how to tell if it went through there, are, as I fear, it was killed and doesn't go through the lifecycle steps in this case. On Sun, Apr 15, 2012 at 1:29 AM, TreKing treking...@gmail.com wrote: On Sat, Apr 14, 2012 at 11:06 PM, James Black planiturth...@gmail.comwrote: Almost immediately after binding to and calling onStart on the service the mapview activity dies. Can you elaborate on dies? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 -- I know that you believe you understand what you think I said, but I'm not sure you realize that what you heard is not what I meant. - Robert McCloskey -- 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] http post to ASP form, not submitting
If anyone here is interested in answering, they may answer at : http://stackoverflow.com/questions/10120280/http-post-not-going-through-i-dont-think-i-am-missing-a-parameter On Thu, Apr 12, 2012 at 8:49 AM, Farhan Tariq farhan@gmail.com wrote: I did, I guess it is the problem with the request I am making and not with android httpclient. On Thu, Apr 12, 2012 at 8:41 AM, Kumar Bibek coomar@gmail.com wrote: Try sending this request through your browser, and see what happens. Or get some server logs. *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Thu, Apr 12, 2012 at 9:09 AM, Farhan Tariq farhan@gmail.comwrote: httpPost.setHeader(Content-Type, application/x-www-form-urlencoded); Did not have any effect... On Thu, Apr 12, 2012 at 8:28 AM, Farhan Tariq farhan@gmail.comwrote: I thought it had something to do with android's http classes. If I am wrong, I am sorry about that, but any help is welcome though. On Thu, Apr 12, 2012 at 8:19 AM, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Thu, Apr 12, 2012 at 12:14 PM, Farhan Tariq farhan@gmail.com wrote: I get response code 200, response OK. But the html that gets generated has the form itself. I think I am making the correct post request, but can't figure out why it is not going through. Could it possibly have to do with the form page being in ASP ? First, this has nothing to do with Android. If you get an error, you will most probably be redirected to the same form. Make sure your input is correct, test with a browser first. Dump the response, look for errors, etc. -- 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] http post to ASP form, not submitting
I did, I guess it is the problem with the request I am making and not with android httpclient. On Thu, Apr 12, 2012 at 8:41 AM, Kumar Bibek coomar@gmail.com wrote: Try sending this request through your browser, and see what happens. Or get some server logs. *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Thu, Apr 12, 2012 at 9:09 AM, Farhan Tariq farhan@gmail.comwrote: httpPost.setHeader(Content-Type, application/x-www-form-urlencoded); Did not have any effect... On Thu, Apr 12, 2012 at 8:28 AM, Farhan Tariq farhan@gmail.comwrote: I thought it had something to do with android's http classes. If I am wrong, I am sorry about that, but any help is welcome though. On Thu, Apr 12, 2012 at 8:19 AM, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Thu, Apr 12, 2012 at 12:14 PM, Farhan Tariq farhan@gmail.com wrote: I get response code 200, response OK. But the html that gets generated has the form itself. I think I am making the correct post request, but can't figure out why it is not going through. Could it possibly have to do with the form page being in ASP ? First, this has nothing to do with Android. If you get an error, you will most probably be redirected to the same form. Make sure your input is correct, test with a browser first. Dump the response, look for errors, etc. -- 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] List view row background.
In the getView method of the adapter, use the index of the row to set background to. Suppose every row is a textView, then textView.setBackgroundColor(Color.BLACK) would do the trick. For different indices, you could do this... public View getView(int index, View convertView, ViewGroup parent) { textView.setText() ... ... if(index %2 == 0){ textView.setBackgroundColor(Color.BLACK); }else{ textView.setBackgroundColor(Color.BLUE); } return textView; } Something like that I guess is what you are looking for. Hope that helps On Mon, Apr 9, 2012 at 1:30 PM, Put_tiMe putt...@gmail.com wrote: I want to add a background image for each row of a list-view control. I have written a custom adapter for the list view. What is the best way of doing it? -- 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] Gallery app... bitmaps exceed memory in listView
Hello everyone, I populate a list of image urls and pass it to a listAdapter. The getView gets the 3 successive urls (from the list) for the position in list it is called for, and downloads them, and adds it to a row of the list. The list works fine. But when I click on a picture to fire an intent and show a bigger picture (by modifying the url passed as intent extra), my application crashes, saying that bitmap exceed memory. I am pretty sure that an image can not be that big in size to take all space from heap! Any suggestions on how to go about the issue? I need to keep the images from the listView, so I can't remove them from the imageViews when I go to the next activity. For the same reason, I can not finish() my list activity too, when an image is clicked. I feel I am stuck here. Any help is much 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] Re: Memory management issue - outOfMemory exception
I have one LinearLayout as child of the scrollView, and that linearLayout has 3 linear layouts that I am adding images to. Now, I can't figure out how to handle memory issues. On Sat, Mar 31, 2012 at 12:12 PM, Zsolt Vasvari zvasv...@gmail.com wrote: A ScrollView can only contain ONE child view. So no, it's not possible with View based objects. You could implement some kind of caching , but when you go through all that trouble, you will realize that it's easier to just use a ListView. On Saturday, March 31, 2012 7:06:51 AM UTC+8, Farhan wrote: I know it can be achieved usiing listViews, but how do I reuse views in scrollView?? Is that possible at all? On Sat, Mar 31, 2012 at 3:35 AM, lbendlin l...@bendlin.us wrote: use a listview and re-use the rows. On Friday, March 30, 2012 5:06:50 PM UTC-4, Farhan wrote: Hello everyone, In my application, I have custom scrollView to which a lot of images get added. I get an outOfMemoryException exception. I know why I am getting it, but I cant think of how to fix it while using a scrollView, not a listView. Any suggesstions? Hope to get some help soon. 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://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] Re: Memory management issue - outOfMemory exception
I have made a UI that has images with varying heights, but constant width, added to each inner linearLayout (having vertical orientation). This way, I am able to add images without spaces occuring due to different heights. Using a listView that has 3 images of different heights added horizontally in a row, I will get empty spaces in a row, and I want to avoid them. So listView would not serve the purpose. On Sat, Mar 31, 2012 at 4:00 PM, Mark Murphy mmur...@commonsware.comwrote: On Sat, Mar 31, 2012 at 6:54 AM, Farhan Tariq farhan@gmail.com wrote: I have one LinearLayout as child of the scrollView, and that linearLayout has 3 linear layouts that I am adding images to. Now, I can't figure out how to handle memory issues. *Why* are you using a ScrollView instead of a ListView? A ListView with all disabled rows should be indistinguishable from a ScrollView to the user (off the top of my head), and it gives you the ability to recycle your views. -- 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.5 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
[android-developers] Memory management issue - outOfMemory exception
Hello everyone, In my application, I have custom scrollView to which a lot of images get added. I get an outOfMemoryException exception. I know why I am getting it, but I cant think of how to fix it while using a scrollView, not a listView. Any suggesstions? Hope to get some help soon. 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
Re: [android-developers] Re: Memory management issue - outOfMemory exception
I know it can be achieved usiing listViews, but how do I reuse views in scrollView?? Is that possible at all? On Sat, Mar 31, 2012 at 3:35 AM, lbendlin l...@bendlin.us wrote: use a listview and re-use the rows. On Friday, March 30, 2012 5:06:50 PM UTC-4, Farhan wrote: Hello everyone, In my application, I have custom scrollView to which a lot of images get added. I get an outOfMemoryException exception. I know why I am getting it, but I cant think of how to fix it while using a scrollView, not a listView. Any suggesstions? Hope to get some help soon. 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 -- 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: Different sized images, arrangement and layout problem
In that case, I would have to add to one of the 3 linear layouts usings their id, no? I would also need to keep track of which linear layout I added to first, so that I add the next image to the next one. There would be a lot of 'if's executing at run time. Can I have a gridView with different heights of images, fitting together perfectly? On Thu, Mar 29, 2012 at 12:28 PM, EhyehAsherEhyeh jacobsen.ar...@gmail.comwrote: ScrollView can only hold one view, so put a LinearLayout in there (orientation horizontal). Put three LinearLayouts in that LinearLayout, use layout_weight to give them equal spacing (doesn't matter what you set each weight to as long as they each get equal weight and as long as those three are the only immediate children of the wrapping LinearLayout.) The weights indicate how large a portion of the free space each layout should get, after they've each been allotted the width they request in layout_width, so set each of them to width=0dp, which means all the space is free space and the weights should distribute all available width. Once that's done you have your three columns, so just set each imageview you add to them to have width=fill_parent and an appropriate scaling type and you're done. On Mar 29, 1:12 am, Farhan Tariq farhan@gmail.com wrote: Hi everyone, I need to make an application that would show a number of images on the screen. The images can vary in height and width. I want to be able to show the images in a scrollView, such that there are no empty spaces between images. So... 1 - its a scrollable view, 2 - with 3 columns. Each column has a fixed width, 3 - and each image of different heights and widths adjusts its width according to the width of the column. The number of images is not known, and they would be added to the scrollView at runtime. How do I construct this view? Would scrollview be a good choice? Can I have a gridView for the purpose? -- 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 I disable GPS when i exit Application
If you are calling location updates from gps in your activity, you can stop listening to location updates on onPause() method. In onResume(), you can start listening to it back again. If you are requesting location updates from a service, you should stop the service in the onPause() method of the activity, and handle it accordingly in onResume. On Wed, Mar 28, 2012 at 10:50 AM, Ankit Kasliwal kasliwalankit2...@gmail.com wrote: Hello, I have problem in my application when i press exit i try to close all my activity but GPS running so how i disable GPS status and close my application (because when i go to Application manager it's show mw my application running and force close button enable) my code to close all activity are.. android.os.Process.killProcess(android.os.Process.myPid()); System.exit(0); killThisPackageIfRunning(HomePage.this,getApplication().getPackageName()); finish(); public static void killThisPackageIfRunning(final Context context, String packageName){ ActivityManager activityManager = (ActivityManager)context.getSystemService(Context.ACTIVITY_SERVICE); activityManager.killBackgroundProcesses(packageName); } -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- 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] Different sized images, arrangement and layout problem
Hi everyone, I need to make an application that would show a number of images on the screen. The images can vary in height and width. I want to be able to show the images in a scrollView, such that there are no empty spaces between images. So... 1 - its a scrollable view, 2 - with 3 columns. Each column has a fixed width, 3 - and each image of different heights and widths adjusts its width according to the width of the column. The number of images is not known, and they would be added to the scrollView at runtime. How do I construct this view? Would scrollview be a good choice? Can I have a gridView for the purpose? -- 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: i am looking job on android in banglore
CAN YOU PLEASE HAVE THESE DISCUSSIONS SOMEWHERE ELSE! THIS IS NOT THE RIGHT PLACE FOR JOBS/HIRING, OR I WOULD HAVE BEEN THE FIRST ONE ASKING FOR A JOB! On Tue, Mar 27, 2012 at 11:57 AM, Tushar Lal tush...@gmail.com wrote: Yes, Sir I'm also open to remote contract jobs and can you please elaborate the term multimedia. I have worked with audio/video players in the phonegap application. But something thing tell me that you have some thing else in mind when you say the term multimedia. On Tue, Mar 27, 2012 at 12:21 PM, Eric Wong (hdmp4.com) ericwon...@gmail.com wrote: On Mar 27, 5:37 pm, Tushar Lal tush...@gmail.com wrote: I have a work experience of 1.3yr in Android, Blackberry, in which I have created both native phonegap application. I have worked on a Mobile banking application, Stock Trading application, Album/Artist Application and some native Blackberry applications. Any experience in multimedia? Interested in remote contract jobs or only Bangalore based jobs? Regards: Tushar On Tue, Mar 27, 2012 at 11:52 AM, Anirudh Loya loya.anir...@gmail.com wrote: 6 months experience or a fresher? On Tue, Mar 27, 2012 at 11:49 AM, Eric Wong (hdmp4.com) ericwon...@gmail.com wrote: what application did you build previously? On Mar 27, 5:46 am, rudraswamy mc rudraswamy.17...@gmail.com wrote: sir i have 6month exp on android.. -- 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 -- Thank you Anirudh Loya | Android Developer** Desk: +9140-30681824 | Mobile: +91*9246561265* *Love your Job but don't Love your company, Because you may not know when your company stops loving you.-- Voice Of Love* -- 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] Can this be done on android?
It is easy to incorporate google maps in your application, plotting your location, etc. How would you write a database for the different routes of different buses, that would be a tricky thing to do. On Tue, Mar 27, 2012 at 6:51 PM, James Black planiturth...@gmail.comwrote: You may want to look at the navigator to see if that will do part of what you want. If it does then yes. The hard part is to be able to determine the best bus route to get to the destination in a timely fashion. On Mar 27, 2012 3:57 AM, Ajay Motah ajaymo...@gmail.com wrote: Dear friends, i am a university student competting for my bsc(hons) in IT! i suggested to have my final year project based on android, n for your info, i have never codded in android. im am supposed to give a suggestion by tomorow! and i would be completing my project by august! What the program is to to do, it 1) automatically locate where you are in mauritius 2) you select your destination upon tapping on specific location in maritius 3) it will tel u the route you need to take to got thier...eg by car, the km and the duration u will reach their 4) you may also wish to select to go by public bus, which will then retrieve the info from a database, about the bus schedule using the actual time, and tell you the bus fare My question is that be possible to be done on android, the map of mauritius with multiple roads, and locations, and route? Please help thanks a lot -- 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] Re : passing data between activities
Google intents , putExtra and getExtras keywords On Mon, Mar 26, 2012 at 2:33 PM, vivek elangovan elangovan.vi...@gmail.comwrote: hi members, I am having two activities in my project, In my Ist activity i m getting two values from my loop (for eg : Violation : WITHOUT HELMET and Violation : USING CELLULAR PHONE WHILE DRIVING(H) ) using putExtra i am passing these values to my IInd activity,what i need to display here is like this : violation : WITHOUT HELMET place : some place Violation : USING CELLULAR PHONE WHILE DRIVING(H) place : some place -- 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] Launching default messaging app for mms
I tried the smsto:uri method. It works fine, but does not allow me to attach the picture that I am passing with the intent. it.setType(image/jpeg); causes my application to crash, and without this line of code, it would not attach an image file with the intent. My client has now agreed to let a chooser be there. But I now want the chooser to show choices that can send mms only, and omit other applications. I think, correct me if wrong, getting list of all packages for the intent, and making a custom dialog box to pick one of the package would get me through right? I was wondering if there was a shorter way :( On Mon, Mar 26, 2012 at 6:02 AM, Justin Anderson magouyaw...@gmail.comwrote: How to go about these? http://developer.android.com/reference/android/content/pm/PackageManager.html#queryIntentActivities%28android.content.Intent,%20int%29 But seriously... you need to tell your client that they shouldn't lock the user into trying to use one app. I don't use the default mms app, and if an app EVER forced me to use the default one it would get uninstalled in half a second. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Sun, Mar 25, 2012 at 6:50 PM, Farhan Tariq farhan@gmail.comwrote: you can always check if the intent will succeed by checking to see if there's anyone registered to receive it. How to go about these? On Mon, Mar 26, 2012 at 5:32 AM, Kristopher Micinski krismicin...@gmail.com wrote: If that's the case, then you've written the intent wrong. However. If you want to artificially impose the constraint of using a specific messenger, you can always check if the intent will succeed and fall back to a more generic intent otherwise, by checking to see if there's anyone registered to receive it. kris On Sun, Mar 25, 2012 at 8:10 PM, Farhan Tariq farhan@gmail.com wrote: The reasoning to use 'one' app would simply be that my client wants it to be like that. Plus, other applications in chooser do not work properly too. Like, the addresses do not get populated in the chosen application. It does not give a choice for the SMS applications, but from a HUGE list if different applications, like facebook, gmail that do not seem to work fine with the data being passed with the intent. On Mon, Mar 26, 2012 at 4:57 AM, A. Elk lancaster.dambust...@gmail.com wrote: There is no default messaging app. Any messaging application that chooses to handle MMS can respond to this intent. If the user chooses to make one of the applications a default, then it becomes one until the user unsets it as the default. You seem to have a reason for wanting one application to handle MMS. I would like to know why. Perhaps I can provide further wisdom in this regard. In general, Android promotes the idea of letting the user decide which application to use. On Sunday, March 25, 2012 4:21:57 PM UTC-7, Farhan wrote: Intent picMessageIntent = new Intent(android.content.Intent.ACTION_SEND); picMessageIntent.putExtra(address, Some Numbers); picMessageIntent.setType(image/jpeg); picMessageIntent.putExtra(sms_body, Some Text); picMessageIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(file)); picMessageIntent.setPackage(com.android.mms); Yes, I understand now that the package may not be there in a device, so it is giving a chooser. Is there a way to find the default messaging application or the built-in messaging, and set its package in the intent above? On Sun, Mar 25, 2012 at 5:29 PM, Justin Anderson magouyaw...@gmail.com wrote: I tried to set package of the intent as com.android.mms and it seems to work fine on my phone, as well as emulator You don't want to do this... Not all phones will have the stock android app with that package name. Many manufacturers replace stock android apps with their own for things like the camera, sms, etc... Also, there are a lot of 3rd party apps out there that handle sms/mms... If a user has installed a 3rd party app then they probably don't want to be tied down to the one that came on the device. but it is showing a chooser for the mms intent to my friend. I am not creating a chooser anywhere If that is the case then what is most likely happening is that your friend has more than one sms/mms app on the device. You probably also will notice that the chooser has a checkbox that, if checked, will make their selection the default from then on. If they check that box and choose which app they want to use to send the sms/mms message then the next time you run your app you will not get a chooser. This is how standard Android works. Please don't force people out of the standard. Intent it = new Intent(Intent.ACTION_VIEW); it.setType(vnd.android-dir/mms-sms); I have never created an app dealing with sms/mms messages before, but I don't think
[android-developers] Launching default messaging app for mms
Hi all, I am working on an application that allows user to create mms messages according to a template, for android 2.2. I am done with most of the work, but I am stuck with one thing. I want to be able to launch the android's default messaging application to send the mms. I tried to set package of the intent as com.android.mms and it seems to work fine on my phone, as well as emulator, but it is showing a chooser for the mms intent to my friend. I am not creating a chooser anywhere, still. Can anyone help me get through this. A little guidance is I think all I need. Thank you 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
Re: [android-developers] Launching default messaging app for mms
Intent picMessageIntent = new Intent(android.content.Intent.ACTION_SEND); picMessageIntent.putExtra(address, Some Numbers); picMessageIntent.setType(image/jpeg); picMessageIntent.putExtra(sms_body, Some Text); picMessageIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(file)); picMessageIntent.setPackage(com.android.mms); Yes, I understand now that the package may not be there in a device, so it is giving a chooser. Is there a way to find the default messaging application or the built-in messaging, and set its package in the intent above? On Sun, Mar 25, 2012 at 5:29 PM, Justin Anderson magouyaw...@gmail.comwrote: I tried to set package of the intent as com.android.mms and it seems to work fine on my phone, as well as emulator You don't want to do this... Not all phones will have the stock android app with that package name. Many manufacturers replace stock android apps with their own for things like the camera, sms, etc... Also, there are a lot of 3rd party apps out there that handle sms/mms... If a user has installed a 3rd party app then they probably don't want to be tied down to the one that came on the device. but it is showing a chooser for the mms intent to my friend. I am not creating a chooser anywhere If that is the case then what is most likely happening is that your friend has more than one sms/mms app on the device. You probably also will notice that the chooser has a checkbox that, if checked, will make their selection the default from then on. If they check that box and choose which app they want to use to send the sms/mms message then the next time you run your app you will not get a chooser. This is how standard Android works. Please don't force people out of the standard. Intent it = new Intent(Intent.ACTION_VIEW); it.setType(vnd.android-dir/mms-sms); I have never created an app dealing with sms/mms messages before, but I don't think this is the way to go... ACTION_VIEW generally means that you are wanting to display something, not create and/or edit something. Unless I am misunderstanding what you are trying to accomplish, you should probably use ACTION_SEND. What does your intent actually look like? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Sun, Mar 25, 2012 at 5:02 AM, Daniel Hoeggi hoeggerl.dan...@gmail.comwrote: try this Intent it = new Intent(Intent.ACTION_VIEW); it.setType(vnd.android-dir/mms-sms); On Sun, Mar 25, 2012 at 11:27 AM, Farhan Tariq farhan@gmail.comwrote: Hi all, I am working on an application that allows user to create mms messages according to a template, for android 2.2. I am done with most of the work, but I am stuck with one thing. I want to be able to launch the android's default messaging application to send the mms. I tried to set package of the intent as com.android.mms and it seems to work fine on my phone, as well as emulator, but it is showing a chooser for the mms intent to my friend. I am not creating a chooser anywhere, still. Can anyone help me get through this. A little guidance is I think all I need. Thank you 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 -- 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] Launching default messaging app for mms
I understand that the user should be given option to choose an application, and why. But it is the requirement of the client that the application should use the messaging application that came with the phone OR the default messaging application to send the mms. /And i am kind of stuck here. Also, in the chooser, applications like evernote, facebook, gmail, etc show up, that are capable of ACTION_SEND action. To exclude them, what should be done? I look into intent filters? On Mon, Mar 26, 2012 at 4:28 AM, Mark Murphy mmur...@commonsware.comwrote: On Sun, Mar 25, 2012 at 7:21 PM, Farhan Tariq farhan@gmail.com wrote: Intent picMessageIntent = new Intent(android.content.Intent.ACTION_SEND); picMessageIntent.putExtra(address, Some Numbers); picMessageIntent.setType(image/jpeg); picMessageIntent.putExtra(sms_body, Some Text); picMessageIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(file)); Yes, I understand now that the package may not be there in a device, so it is giving a chooser. Is there a way to find the default messaging application or the built-in messaging, and set its package in the intent above? If there is a default, it is because the user chose it to be the default, and no chooser dialog will appear -- the user will be taken straight to that default. If there is only one messaging app, no chooser dialog will appear -- the user will be taken straight to that app. If there is no default and there is more than one app, PLEASE ALLOW THE USER TO CHOOSE WHICH SMS CLIENT THEY WANT TO USE. Hence, please delete: picMessageIntent.setPackage(com.android.mms); so your app does what the USER wants and will work on more devices. -- 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.5 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] Launching default messaging app for mms
The reasoning to use 'one' app would simply be that my client wants it to be like that. Plus, other applications in chooser do not work properly too. Like, the addresses do not get populated in the chosen application. It does not give a choice for the SMS applications, but from a HUGE list if different applications, like facebook, gmail that do not seem to work fine with the data being passed with the intent. On Mon, Mar 26, 2012 at 4:57 AM, A. Elk lancaster.dambust...@gmail.comwrote: There is no default messaging app. Any messaging application that chooses to handle MMS can respond to this intent. If the *user* chooses to make one of the applications a default, then it becomes one until the user unsets it as the default. You seem to have a reason for wanting one application to handle MMS. I would like to know why. Perhaps I can provide further wisdom in this regard. In general, Android promotes the idea of letting the *user* decide which application to use. On Sunday, March 25, 2012 4:21:57 PM UTC-7, Farhan wrote: Intent picMessageIntent = new Intent(android.content.Intent.ACTION_SEND); picMessageIntent.putExtra(address, Some Numbers); picMessageIntent.setType(image/jpeg); picMessageIntent.putExtra(sms_body, Some Text); picMessageIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(file)); picMessageIntent.setPackage(com.android.mms); Yes, I understand now that the package may not be there in a device, so it is giving a chooser. Is there a way to find the default messaging application or the built-in messaging, and set its package in the intent above? On Sun, Mar 25, 2012 at 5:29 PM, Justin Anderson magouyaw...@gmail.comwrote: I tried to set package of the intent as com.android.mms and it seems to work fine on my phone, as well as emulator You don't want to do this... Not all phones will have the stock android app with that package name. Many manufacturers replace stock android apps with their own for things like the camera, sms, etc... Also, there are a lot of 3rd party apps out there that handle sms/mms... If a user has installed a 3rd party app then they probably don't want to be tied down to the one that came on the device. but it is showing a chooser for the mms intent to my friend. I am not creating a chooser anywhere If that is the case then what is most likely happening is that your friend has more than one sms/mms app on the device. You probably also will notice that the chooser has a checkbox that, if checked, will make their selection the default from then on. If they check that box and choose which app they want to use to send the sms/mms message then the next time you run your app you will not get a chooser. This is how standard Android works. Please don't force people out of the standard. Intent it = new Intent(Intent.ACTION_VIEW); it.setType(vnd.android-dir/mms-sms); I have never created an app dealing with sms/mms messages before, but I don't think this is the way to go... ACTION_VIEW generally means that you are wanting to display something, not create and/or edit something. Unless I am misunderstanding what you are trying to accomplish, you should probably use ACTION_SEND. What does your intent actually look like? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyawarehttp://sites.google.com/site/magouyaware On Sun, Mar 25, 2012 at 5:02 AM, Daniel Hoeggi hoeggerl.dan...@gmail.com wrote: try this Intent it = new Intent(Intent.ACTION_VIEW); it.setType(vnd.android-dir/mms-sms); On Sun, Mar 25, 2012 at 11:27 AM, Farhan Tariq farhan@gmail.comwrote: Hi all, I am working on an application that allows user to create mms messages according to a template, for android 2.2. I am done with most of the work, but I am stuck with one thing. I want to be able to launch the android's default messaging application to send the mms. I tried to set package of the intent as com.android.mms and it seems to work fine on my phone, as well as emulator, but it is showing a chooser for the mms intent to my friend. I am not creating a chooser anywhere, still. Can anyone help me get through this. A little guidance is I think all I need. Thank you 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.comandroid-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=enhttp://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.comandroid-developers
Re: [android-developers] Launching default messaging app for mms
The smsto: uri part makes more sense to me. I'll try that. Thanks On Mon, Mar 26, 2012 at 5:08 AM, Mark Murphy mmur...@commonsware.comwrote: On Sun, Mar 25, 2012 at 7:57 PM, Farhan Tariq farhan@gmail.com wrote: I understand that the user should be given option to choose an application, and why. But it is the requirement of the client that the application should use the messaging application that came with the phone OR the default messaging application to send the mms. /And i am kind of stuck here. Tell the client that this desired feature is not supported by Android, because it is user-hostile, and the core Android team wants to make users happy. Also, in the chooser, applications like evernote, facebook, gmail, etc show up, that are capable of ACTION_SEND action. To exclude them, what should be done? I look into intent filters? Use ACTION_SENDTO and an smsto: Uri instead of ACTION_SEND. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- 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] Launching default messaging app for mms
you can always check if the intent will succeed by checking to see if there's anyone registered to receive it. How to go about these? On Mon, Mar 26, 2012 at 5:32 AM, Kristopher Micinski krismicin...@gmail.com wrote: If that's the case, then you've written the intent wrong. However. If you want to artificially impose the constraint of using a specific messenger, you can always check if the intent will succeed and fall back to a more generic intent otherwise, by checking to see if there's anyone registered to receive it. kris On Sun, Mar 25, 2012 at 8:10 PM, Farhan Tariq farhan@gmail.com wrote: The reasoning to use 'one' app would simply be that my client wants it to be like that. Plus, other applications in chooser do not work properly too. Like, the addresses do not get populated in the chosen application. It does not give a choice for the SMS applications, but from a HUGE list if different applications, like facebook, gmail that do not seem to work fine with the data being passed with the intent. On Mon, Mar 26, 2012 at 4:57 AM, A. Elk lancaster.dambust...@gmail.com wrote: There is no default messaging app. Any messaging application that chooses to handle MMS can respond to this intent. If the user chooses to make one of the applications a default, then it becomes one until the user unsets it as the default. You seem to have a reason for wanting one application to handle MMS. I would like to know why. Perhaps I can provide further wisdom in this regard. In general, Android promotes the idea of letting the user decide which application to use. On Sunday, March 25, 2012 4:21:57 PM UTC-7, Farhan wrote: Intent picMessageIntent = new Intent(android.content.Intent.ACTION_SEND); picMessageIntent.putExtra(address, Some Numbers); picMessageIntent.setType(image/jpeg); picMessageIntent.putExtra(sms_body, Some Text); picMessageIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(file)); picMessageIntent.setPackage(com.android.mms); Yes, I understand now that the package may not be there in a device, so it is giving a chooser. Is there a way to find the default messaging application or the built-in messaging, and set its package in the intent above? On Sun, Mar 25, 2012 at 5:29 PM, Justin Anderson magouyaw...@gmail.com wrote: I tried to set package of the intent as com.android.mms and it seems to work fine on my phone, as well as emulator You don't want to do this... Not all phones will have the stock android app with that package name. Many manufacturers replace stock android apps with their own for things like the camera, sms, etc... Also, there are a lot of 3rd party apps out there that handle sms/mms... If a user has installed a 3rd party app then they probably don't want to be tied down to the one that came on the device. but it is showing a chooser for the mms intent to my friend. I am not creating a chooser anywhere If that is the case then what is most likely happening is that your friend has more than one sms/mms app on the device. You probably also will notice that the chooser has a checkbox that, if checked, will make their selection the default from then on. If they check that box and choose which app they want to use to send the sms/mms message then the next time you run your app you will not get a chooser. This is how standard Android works. Please don't force people out of the standard. Intent it = new Intent(Intent.ACTION_VIEW); it.setType(vnd.android-dir/mms-sms); I have never created an app dealing with sms/mms messages before, but I don't think this is the way to go... ACTION_VIEW generally means that you are wanting to display something, not create and/or edit something. Unless I am misunderstanding what you are trying to accomplish, you should probably use ACTION_SEND. What does your intent actually look like? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Sun, Mar 25, 2012 at 5:02 AM, Daniel Hoeggi hoeggerl.dan...@gmail.com wrote: try this Intent it = new Intent(Intent.ACTION_VIEW); it.setType(vnd.android-dir/mms-sms); On Sun, Mar 25, 2012 at 11:27 AM, Farhan Tariq farhan@gmail.com wrote: Hi all, I am working on an application that allows user to create mms messages according to a template, for android 2.2. I am done with most of the work, but I am stuck with one thing. I want to be able to launch the android's default messaging application to send the mms. I tried to set package of the intent as com.android.mms and it seems to work fine on my phone, as well as emulator, but it is showing a chooser for the mms intent to my friend. I am not creating a chooser anywhere, still. Can anyone help me get through this. A little guidance is I think all I need. Thank you Regards
Re: [android-developers] Re: Android Project development cost
If you are looking for developers to outsource your projects to, you should check out oDesk.com, elance.com, freelancer.com, rentacoder.com, liveperson.com... ETC ETC On Fri, Mar 23, 2012 at 9:43 AM, Anirudh Loya loya.anir...@gmail.comwrote: If this group is not for those purpose then why did the Admin allowed Post it? He should have barred it before posting only. On Thu, Mar 22, 2012 at 7:43 PM, Kristopher Micinski krismicin...@gmail.com wrote: On Thu, Mar 22, 2012 at 9:39 AM, Anirudh Loya loya.anir...@gmail.com wrote: How can you say none of us ?.. Because the premise of the group dictates it won't be used for spammy commercial purposes such as these... kris -- 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 -- Thank you Anirudh Loya | Android Developer** Desk: +9140-30681824 | Mobile: +91*9246561265* *Love your Job but don't Love your company, Because you may not know when your company stops loving you.-- Voice Of Love* -- 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] What are Android websites ?
Hi, I recently ran into online jobs for making mobile phone website and it got me a little confused. Aren't they just webViews ? Or is there more to it? To be able to make an android website, do I need to look into anything other than web View ? Is it just making a webView content? If it is, why do people require a website for a phone, when they can visit it from the phone's browser? Looking forward to hearing from you. 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
Re: [android-developers] What are Android websites ?
This has nothing to do with this list Well, if I started off with saying that I want to develop an android website, and I am looking for a starting point, then it would have everything to do with this list, isn't it? a mobile website can have different meanings, but it will probably be some variation on a site that works best on mobile devices So basically, it would be something like html running on our phone's browser? peryable to get GPS info, Something like that could be extracted from an http request header too, isnt it? So I still have the same two questions. 1) Why would someone get a mobile website made and 2) How do you make an android website for a website? On Mon, Mar 12, 2012 at 4:07 AM, James Black planiturth...@gmail.comwrote: This has nothing to do with this list, but a mobile website can have different meanings, but it will probably be some variation on a site that works best on mobile devices, peryable to get GPS info, for example. On Mar 11, 2012 6:31 PM, Farhan Tariq farhan@gmail.com wrote: Hi, I recently ran into online jobs for making mobile phone website and it got me a little confused. Aren't they just webViews ? Or is there more to it? To be able to make an android website, do I need to look into anything other than web View ? Is it just making a webView content? If it is, why do people require a website for a phone, when they can visit it from the phone's browser? Looking forward to hearing from you. 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 -- 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 are Android websites ?
Ok, this might sound stupid now, but I need to ask this for my own clarification. I have made applications with Android UI, running RESTful webservices in the background. If this is common in the so called 'android-website' and an 'android application that uses REST based webservices', then what is the difference !? If android applications allowed you to embed html/javascript/ajax etc with in the application, the term 'android website' would make more sense to me. I think I will google that up. Thank you all for the replies though. On Mon, Mar 12, 2012 at 4:41 AM, Kristopher Micinski krismicin...@gmail.com wrote: On Sun, Mar 11, 2012 at 7:36 PM, Farhan Tariq farhan@gmail.com wrote: This has nothing to do with this list Well, if I started off with saying that I want to develop an android website, and I am looking for a starting point, then it would have everything to do with this list, isn't it? This list is for targeted questions relating to the Java based SDK for Android applications. So in short, no, it would not have everything to do with the list, but there might be some connection to the topic. a mobile website can have different meanings, but it will probably be some variation on a site that works best on mobile devices So basically, it would be something like html running on our phone's browser? It could be. It could also mean that you implement a custom UI for the website. Many apps use the Android native UI elements and talk to the webserver using some sort of REST pattern or other webservice type thing for communication. So yes, it can be as simple as a webview, or it can be a complicated implementation consisting of implementing a full on web service backend and UI front end in Android. peryable to get GPS info, Something like that could be extracted from an http request header too, isnt it? So I still have the same two questions. 1) Why would someone get a mobile website made and 2) How do you make an android website for a website? 1) Because using the native Android UI elements is prettier than running the site inside a WebView. 2) Use the native Android UI elements and communicate with the website via some service (web service, not android service, though typically an Android service may be used for this). Kris -- 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 to get all sms messages on phone
Hi, I need to show all the messages on a phone in a listView. But I don't know where to start from. SmsManager class does not have anything like that. Any guidance please. A few keywords, to look for in the api, would be nice. Hope to hear from you soon. 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
Re: [android-developers] Re: How to get all sms messages on phone
So this cursor would point to a collection of sms messages? What do i need to extract the sender, receiver, text from the message? Thank you in advance On Wed, Mar 7, 2012 at 3:42 AM, Ali Chousein ali.chous...@gmail.com wrote: SmsManager does not do what you are interested in. Android SDK does not officially support retrieving the received and delivered SMS messages. But there are always backdoors. In the past I used the statement below for retriving all (both received and delivered) SMS messages: Cursor cur = getContentResolver().query(Uri.parse(content://sms), null, null, null, null); But once again, beware that this is not officially documented and it can change without any notice. If you use it, you use it on your own risk. - Ali Chousein http://www.codeproject.com/KB/android/PayGol-Android.aspx http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy http://geo-filtered-assistant.blogspot.com https://marketplace.cisco.com/apphq/products/994 -- 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 make this complex view
I realize that I need to look into multitouch and dragging, just can't figure out how to get only those values from the listView that the box is covering. Any suggestions? On Wed, Feb 29, 2012 at 1:41 PM, Ali Chousein ali.chous...@gmail.comwrote: You can easily search http://developer.android.com/sdk/index.html yourself. Anyway: Dragging: http://developer.android.com/reference/android/view/View.html Search for drag within the page. Using two fingers - Multitouch: http://android-developers.blogspot.com/2010/06/making-sense-of-multitouch.html Hope it helps. I never worked on features you are interested in, just searched http://developer.android.com/sdk/index.html. You should do the same if you want to get something done. - Ali Chousein http://www.codeproject.com/KB/android/PayGol-Android.aspx http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy http://geo-filtered-assistant.blogspot.com https://marketplace.cisco.com/apphq/products/994 -- 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: How to make this complex view
I was hoping to hear from the experts out there, anyone for help please? On Tue, Feb 28, 2012 at 4:10 AM, Farhan Tariq farhan@gmail.com wrote: Hi guys, I have come to a requirement of an application that requires the following view and its associated action: I want a listView that takes up all space on the screen, populated with numbers, say from 1 to 20. Thats no issue. The listView should have a dragable semi-transparent box on top of it with width equal to the listView. The box should also stretchable, it can take 1/4 to 3/4 of the height of the listView. To expand/contract the box, a user would be required to use two fingers, just like how one would zoom in/out on a picture. To slide the box up or down the listView, user may drag it with one finger. And on single tap on the box, it should sum up all those numbers on the listView that the box is covering. I can't figure out how to implement such a view and functionality. If you do, please share your idea. I would love it if you could provide with keywords that i should look into. 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
[android-developers] How to make this complex view
Hi guys, I have come to a requirement of an application that requires the following view and its associated action: I want a listView that takes up all space on the screen, populated with numbers, say from 1 to 20. Thats no issue. The listView should have a dragable semi-transparent box on top of it with width equal to the listView. The box should also stretchable, it can take 1/4 to 3/4 of the height of the listView. To expand/contract the box, a user would be required to use two fingers, just like how one would zoom in/out on a picture. To slide the box up or down the listView, user may drag it with one finger. And on single tap on the box, it should sum up all those numbers on the listView that the box is covering. I can't figure out how to implement such a view and functionality. If you do, please share your idea. I would love it if you could provide with keywords that i should look into. 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
Re: [android-developers] Re: Cursor Blinking Management (TabHost/ActivityGroup)
quiet irrelevant though but ... can you please cut out on your 'bye's ... don't know about others but, i'm sure its irritating to them too 2012/2/20 Kostya Vasilyev kmans...@gmail.com Ruled out? Is seems your log output shows the opposite. IIRC, view focusing is only applied if the enclosing window is in activated state (not sure about the exact name), you might want to look into this. 20.02.2012 14:26 пользователь Jan Burse janbu...@fastmail.fm написал: The blinker runs in the UI thread. And it is kept alive and it keeps itself aliver in posting delayed messages. You find the source code here: http://grepcode.com/file/**repository.grepcode.com/java/** ext/com.google.android/**android/2.2_r1.1/android/** widget/TextView.java#TextView.**Blinkhttp://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.2_r1.1/android/widget/TextView.java#TextView.Blink There is a condition isFocused() inside the Blink. I have checked my application, the TextView I am using gets correctly focused. There shouldn't be a problem with focusing. Here is the result of some debugging code: 02-20 10:21:47.362: WARN/System.err(579): text = xxx.TerminalArea@412f8368 text.isFocused = false 02-20 10:21:47.362: WARN/System.err(579): text = xxx.TerminalArea@414044c8 text.isFocused = true 414044c8 Blinks! OK After switching the tab: 02-20 10:22:57.445: WARN/System.err(579): text = xxx.TerminalArea@412f8368 text.isFocused = true 02-20 10:22:57.445: WARN/System.err(579): text = xxx.TerminalArea@414044c8 text.isFocused = false 412f8368 Does not Blink! NOK So I guess a problem with focusing can be ruled out. What other cause could be identified for the frozen cursor? Bye lbendlin schrieb: i guess you are not a good thinker, and are unwilling to try my suggestions because they don't seem to make sense. Fair enough. -- 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://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] Password application
Hi guys, I am thinking of making an application that would lock the phone unless it is unlocked with a user's password. I need to know where to begin from, what part of API's i need to look at, what classes and for what purpose. In short, I just want some keywords that i should explore to get started with the application. 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
Re: [android-developers] Password application
Yes, I know that the OS already provides it. But i wanted to write my own code, with my own UI. I want to write my own layer that hides the android's security application from coming to front. How do i go about it? @Mark Murphy - Sir, I really want to be knowledgeable about android like you! You are like everywhere on internet! What do i do to become as knowledgeable as you? :P On Fri, Feb 17, 2012 at 1:33 AM, Mark Murphy mmur...@commonsware.comwrote: On Thu, Feb 16, 2012 at 3:27 PM, Farhan Tariq farhan@gmail.com wrote: I am thinking of making an application that would lock the phone unless it is unlocked with a user's password. The operating system already provides this. -- 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
Re: [android-developers] Password application
Any way you can think of which is NOT the right way? like a hack or something that would let me achieve this? On Fri, Feb 17, 2012 at 1:53 AM, Mark Murphy mmur...@commonsware.comwrote: On Thu, Feb 16, 2012 at 3:45 PM, Farhan Tariq farhan@gmail.com wrote: Yes, I know that the OS already provides it. But i wanted to write my own code, with my own UI. I want to write my own layer that hides the android's security application from coming to front. How do i go about it? Personally, as far as I am concerned, the only right way to do it is by modifying the firmware, which is outside the scope of this particular list. @Mark Murphy - Sir, I really want to be knowledgeable about android like you! You are like everywhere on internet! Fortunately, I am not everywhere on the Internet. There are plenty of sites where I would rather not be. What do i do to become as knowledgeable as you? :P Since I got my start in Android in February 2008, I suppose the answer is spend much of the next four years working on Android stuff. -- 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
Re: [android-developers] Re: Password application
Ok, I understand. It was stupid of me to think of coming up with a hack in an application, and still be able to put it in the market. Having said that, is there a way we can check in code if a user has applied password to his phone? On Fri, Feb 17, 2012 at 4:09 AM, Chris Mawata chris.maw...@gmail.comwrote: In general at the application level trying to interfere with the operation of another application without the other application's cooporation is not going to be possible for obvious reasons. On Feb 16, 3:59 pm, Farhan Tariq farhan@gmail.com wrote: Any way you can think of which is NOT the right way? like a hack or something that would let me achieve this? On Fri, Feb 17, 2012 at 1:53 AM, Mark Murphy mmur...@commonsware.com wrote: On Thu, Feb 16, 2012 at 3:45 PM, Farhan Tariq farhan@gmail.com wrote: Yes, I know that the OS already provides it. But i wanted to write my own code, with my own UI. I want to write my own layer that hides the android's security application from coming to front. How do i go about it? Personally, as far as I am concerned, the only right way to do it is by modifying the firmware, which is outside the scope of this particular list. @Mark Murphy - Sir, I really want to be knowledgeable about android like you! You are like everywhere on internet! Fortunately, I am not everywhere on the Internet. There are plenty of sites where I would rather not be. What do i do to become as knowledgeable as you? :P Since I got my start in Android in February 2008, I suppose the answer is spend much of the next four years working on Android stuff. -- 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- Hide quoted text - - Show quoted text - -- 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] progressBar for percentage of file-uploaded
Hi guys, I have written a piece of code in an application that uploads a file to a location, if provided with path of a file. What i am missing is a way to show the percentage of file uploaded. I am using apache's http library for this purpose (found it on the internet). The relevant code is here: final File file = new File(filePathToUpload); final HttpClient client = new DefaultHttpClient(); ... ... String postURL= Constants.BASE_URL; HttpPost post = new HttpPost(postURL); FileBody bin = new FileBody(file); MultipartEntity reqEntity = new MultipartEntity(HttpMultipartMode.BROWSER_COMPATIBLE); reqEntity.addPart(myFile, bin); post.setEntity(reqEntity); client.execute(post); I need help/suggestions with how do, if i can, get an output stream, if that would help, from the HttpClient and get the number of bytes sent? I need to show the percentages on my progressBar... Is it even possible with httpClient? -- 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: Re : Grid View
define a layout with image and text, inflate it and replace a grid cell with it. On Wed, Feb 8, 2012 at 12:06 PM, vivek elangovan elangovan.vi...@gmail.comwrote: Hi Ratheesh, My point is i want to display image with text and on clicking the image i want to display the corresponding text in another class. - Vivek On Feb 8, 11:42 am, Ratheesh Valamchuzhy android...@gmail.com wrote: for passing a data to the next activity you can use putextra function.. -- 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 to find amount of data remaining to be uploaded using apache http library
Hi guys, I have written a piece of code in an application that uploads a file to a location, if provided with path of a file. What i am missing is a way to show the percentage of file uploaded. I am using apache's http library for this purpose (found it on the internet). The relevant code is here: final File file = new File(filePathToUpload); final HttpClient client = new DefaultHttpClient(); ... ... String postURL= Constants.BASE_URL; HttpPost post = new HttpPost(postURL); FileBody bin = new FileBody(file); MultipartEntity reqEntity = new MultipartEntity(HttpMultipartMode.BROWSER_COMPATIBLE); reqEntity.addPart(myFile, bin); post.setEntity(reqEntity); client.execute(post); I need help/suggestions with how do, if i can, get an output stream, if that would help, from the HttpClient and get the number of bytes sent? Is it even possible with httpClient? -- 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] imageview changing
why do you need write a whole new class just to change image on an imageView? If this is all that you need to do, just set imageView's background drawable... something like this while(true){ imageView.setBackgroundDrawable(R.drawable.something); Thead.sleep(5000); } 2012/2/4 Salih Selametoglu barbooni...@gmail.com package sample.deneme; import java.util.Timer; import java.util.TimerTask; import android.content.Context; import android.widget.ImageView; public class imageS extends ImageView { private Timer _destroy; public imageS(Context context) { super(context); // TODO Auto-generated constructor stub _destroy = new Timer(); _destroy.schedule(new TimerTask() { @Override public void run() { // TODO Auto-generated method stub setBackgroundResource(R.drawable.ic_launcher); } }, 5000, 5000); } } i use this cod but not changing. What is wrong? -- Salih SELAMETOĞLU Teknopalas RFID Yazılım Çözümleri / Yazılım Uzman Yardımcısı İstanbul Üni. Bil. Müh. 4. Sınıf http://www.linkgizle.com http://selametoglu.blogspot.com/ http://slideme.org/application/light-show (first application) -- 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] HELP
http://developer.android.com/sdk/index.html This should help :) On Sat, Feb 4, 2012 at 12:47 AM, TreKing treking...@gmail.com wrote: On Wed, Feb 1, 2012 at 7:57 PM, Mark McDonald mcdonaldphoe...@gmail.comwrote: I was hoping that I could get some advice on which software to use for my windows environment. I have downloaded Java and the SDK tools package Add Eclipse to that and you're pretty much set. I would apreciate any advice that the wizards may be so kindly to offer. Yelling HELP as your post title is likely to make most people immediately dismiss your post. Try a relevant, descriptive title next time. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] timer,thread,imageview in android
explain your requirements please... from what i can get from your subject, what you could do is have an async task download images and update an imageView. Call that imageView from a thread that sleeps for 5 seconds in a while loop... something rughly like this (it has a Lot of errors, wrote it just to give you an idea, hope it helps) public class ImageSetter extends Activity{ public void onCreate(){ imageView = (ImageView) findViewById(R.id.myImageView); while(true){ new MyAsyncDownloader(url).execute(); Thread.sleep(5000); } } private class MyAsyncDownloader extends ASyncTaskVoid,Void,Void{ private Bitmap bitmap; private String url; public MyASyncDownloader(String url){ this.url = url; } doInBackground(){ bitmap = downloadImage(url); } onPostExecute(){ // set bitmap as background of imageView } } } 2012/2/4 Salih Selametoglu barbooni...@gmail.com hello my friends, i wanna create image every five secends and destroy it after 3 seconds. How can i do it? can you help me? -- Salih SELAMETOĞLU Teknopalas RFID Yazılım Çözümleri / Yazılım Uzman Yardımcısı İstanbul Üni. Bil. Müh. 4. Sınıf http://www.linkgizle.com http://selametoglu.blogspot.com/ http://slideme.org/application/light-show (first application) -- 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] help me out in TimeTable APP
Be more specific about the problem you are having. On Wed, Feb 1, 2012 at 4:05 PM, Sam mailme2s...@gmail.com wrote: Hi frnz, I have to submit the timetable app to my Professor as an assignment, so please can any1 send me the code(java,xml,manifest etc) which creates the timetable of an individual professor and displays the timetable of the desired professor. Main activity shud contain two Buttons(create, Display). In create Activity, there shud be fields to add Professor name, subject name, time, day, and add button to add the details delete/ modify butoon to delete/modify the particular details. In Display Activity, there shud be a spinner according to the professor name we created, and after selecting or clicking on that particular professor item, it shud show the timetable of that particular professor. I have tried it, but I am getting a lot of errors. So please help me out frnz... Thanks in advance Sam. -- 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] i need to have code for reading a imae from url
try finding it on stackoverflow.com On Fri, Feb 3, 2012 at 4:53 PM, raju iloveindia@gmail.com wrote: i need some help in getting an image with the help of url bhai -- 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: Home screed Widget crash
Thank you guys. I fixed it without using the alarm manager :) . What i was doing wrong is that i was creating bitmaps and sending them off to be displayed on the remote widget, thinking that it's memory would be reclaimed when the next image takes its place. Apparently, this wasn't happening. So i limited the scope of creation of the remoteViews to the function in which the widget was updated each time, downloaded images within the same scope and it works like a charm :) no memory issues now. On Thu, Feb 2, 2012 at 8:49 AM, David Ross grand...@vacuumpunk.com wrote: I would suggest using AlarmManager for your repeating 15s update. Handle the Intent in a private BroadcastReceiver inside your AppWidgetProvider. Forget the Service as the scheduling mechanism but use it for the download of the next image from within your BroadcastReceiver. In BroadcastReceiver also (re)set the next alarm in AlarmManager to give the forever 15s repeat. Services can be killed basically at any time unless they are bound to a Notification but who wants a Notification if the Widget is on the screen already? Check your log, you might find the system is killing the Service. Then, handle Screen On/Off Intents so you only do your downloads when the screen is on. On Feb 1, 5:27 am, String sterling.ud...@googlemail.com wrote: The failed binder transaction issue basically happens whenever you send data too fast to an AppWidget, where too fast is loosely defined. You can definitely cause it by sending 1MB at once, but you can also get it by sending much smaller quantities at too fast a rate. Which is what it sounds like you're doing. Your best solution is probably to create a content provider and have your widget access that directly for the images, which will avoid the RemoteViews (and thus the binder which is causing the problem). A Google search for *image content provider* should get you started. Having said all that, updating an AppWidget with an image every 15 seconds sounds like a recipe for battery drain. You might want to test that hypothesis, see how bad the power drain is before you go to the trouble of re-implementing the image delivery mechanism. You may need to rethink your concept at a deeper level instead. String -- 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 use AsyncTask
One consideration though, if i am not wrong, AsyncTasks need to be executed from the UIThread. Regarding your code, put the part in which the HTTP Request is sent and the response is got in line in the doInBackground method of the AsyncTask so that it runs on the background thread and does not block any execution on the UIThread, and in postExecute method, return 'line' and process is as you may On Wed, Feb 1, 2012 at 1:14 PM, madlymad mando7s...@gmail.com wrote: here is a good example of Asynctask usage! http://www.androidsnippets.com/grab-a-url-source-with-progressdialog-and-asynctask On Jan 31, 3:24 pm, aashutosh aashutosh.andr...@gmail.com wrote: Hello, How can i use Asynctask for the following code: public static String getXML() { String line = null; DefaultHttpClient httpClient = new DefaultHttpClient(); HttpPost httpPost = new HttpPost( http://someurl/index.xml;); try { HttpResponse httpResponse = httpClient.execute(httpPost); HttpEntity httpEntity = httpResponse.getEntity(); line = EntityUtils.toString(httpEntity); } catch (UnsupportedEncodingException e) { line = results status=\error\msgCan't connect to server/ msg/results; } catch (MalformedURLException e) { line = results status=\error\msgCan't connect to server/ msg/results; } catch (IOException e) { line = results status=\error\msgCan't connect to server/ msg/results; } return line; } this basicaly gets an xml from the website Thanks in advance -- 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] Video paying problem
Logcat error trace might get you some help :) On Wed, Feb 1, 2012 at 12:22 PM, ANKUR GOEL ankur1...@gmail.com wrote: Hi all , sometimes i am getting video cannot be played err (100 , 0) can some body tell the exact reason and the solution for this problem 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
Re: [android-developers] still having problems with gridview and spacing.
try adding 'padding' to grid cells 2012/1/31 John Davis davi...@gmail.com Hello I am still having a problem with gridview and spacing. Would love to talk to someone regarding the issue. I've considered chaning text orientation for column headings or using two line text. Here is more info including screenshots: http://netskink.blogspot.com/2012/01/gridview-take2-issues.html -- John F. Davis 独树一帜 -- 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] hey all
Between your phone and the phone whose location you want to track, how do you communicate? You could have that phone update his location (via a location service) to a web server, and you can pull that location every few seconds to show it on your phone On Tue, Jan 31, 2012 at 1:54 PM, Omollo Ateng omollo.at...@gmail.comwrote: i want to monitor another phone number's location, which listeners should i use? -- Be good to not only people but also machines -- 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] shadow under tabs android
Get each child of your tab widget, and see if there is anything you can do to remove it for(int i=0; itabWidget.getChildCount(); i++){ tabWidget.getChildAt(i).(ANYTHING YOU WANNA DO) } On Tue, Jan 31, 2012 at 11:08 AM, Ratheesh Valamchuzhy android...@gmail.com wrote: set the property of tab widget to android:layout_marginBottom=-6dip it may work -- 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] mini project
youtube it for video guides On Mon, Jan 30, 2012 at 9:41 PM, Mark Murphy mmur...@commonsware.comwrote: On Mon, Jan 30, 2012 at 12:58 AM, dany varghese gagip...@gmail.com wrote: how we can create a new application in android? please suggest required softwares for this purpose? http://developer.android.com -- 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 -- 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] Home screed Widget crash
Hello guys, I am working on an homescreen widget app that shows images downloaded from the internet. The flow is widget starts a service and the service runs a thread every 15 seconds. The thread downloads image and shows it on the homescreen. The issue is that after showing the images 4 to 6 times, it stops updating the imageView on homescreen, and finally crashes, giving a 'failed binder transaction' error on further web requests. I read about it on the internet, some said that the image has to be resized, and it did actually help a little, the widget now crashes after showing more images than before. Others said that it is a bug with android. Any help/suggestions ? -- 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 picture path from camera capture, the known method is not working for all devices???
Pictures taken from camera need not return a URI everytime, unlike videos taken from camera. If your purpose is to get the bitmap file from the data intent, just make a temporary bitmap file and extract the data of the intent to the file. That could possibly make duplicate files on your device, so make sure you delete the temporary bitmap file afterwards. On Mon, Jan 2, 2012 at 8:21 PM, vandzi martin.vandz...@gmail.com wrote: Did you solved it? I face the same problem.. On 29. Dec. 2011, 10:10 h., Lidia lidyp...@yahoo.com wrote: Or, at least how to known which type of answer to expect? -- 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] Looking for more coders
Sounds really cool, but how would you ensure anyone that he would really get paid? As in, you could just elope with the code and all, without having to pay a penny to the resource you get along ! If you got any convincing ideas, i would be more than happy to join in. On Thu, Nov 10, 2011 at 6:19 PM, Alexander Turda gamingpione...@gmail.com wrote: Hi to all. If you are dev(beginner exp,medium exp,or even high) and you don't have a job/want to make money/start making apps,games for android,you might want to join us. What you may ask: Do I get money? You get money only if the app/game is sold,in fact,all of us get money only if the game/app is sold. If it's sold,how much I get? Simple,we split the proffit.Now we are only 2,so it's not really a big deal. What kind of games/apps are we going to make? The first rule is to make something that doesn't exist. Ok,but what if I have to make something,but I don't really know how to? We're a team,if you don't know how to do something,we are going to help you.Keep in might that we're not looking for super exp. devs! What about you guys? What do you know? Like I said,I'm still a learner,and even after 5 years I will still be a learner. I developed 1 game(sudoku with a tutorial) and I developed 1 game myself.The other guy worked more on apps.This is the game made by me: http://imageshack.us/f/717/gameprew.png/ Ok what else is needed? We're a team,so we must talk at least 1 time every day.Also,everything you develop,will have to be uploaded to our code page(I'll show you how if you don't know). Respect ofcourse. Keeping up to date the other members.If you finished a small part of the app,post on our group page,let us know what you made. We also require some wanting,I mean ok,you don't know how to make something,you don't have any ideea how you can make it work,but YOU must search for that.Ofcourse we'll help you,but there are many things that you can find on google,so don't ask for any stupid thing,help! Some exp: Yes,we're not expecting expers here,but we're looking for someone with a little exp. We would be very happy,if you would send us some details about ONE app or game that was made by you(don't care if it's a simple app). That's what we require,if you think you can do what I said above,you are free to mail me to join.Like I said, money will come only if we work together,and only if we all trully want to finish a project we start. Waiting for your e-mails! -- 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: Can somebody give me a Google+ invitation?
ROFLMAO omg hillarious ! On Sat, Jul 9, 2011 at 11:58 AM, Ali Chousein ali.chous...@gmail.comwrote: Fei, please come and join Google+ (Is this good enougn invitation? :-) ) -- Ali Chousein Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com/ Cisco Android marketplace (Chosen for Cisco Cius) https://marketplace.cisco.com/apphq/products/510 On Jul 8, 1:07 pm, fei wang philip584...@gmail.com wrote: Thank all of you! -- 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] Aw: Data transfer server to client by using WiFi application in android
Devices on same WiFi-LAN are no different than devices on any LAN. So your java's server-client program should work fine after a few adjustments. One suggestion though, inherit your server class from Service, instead of activity so that you don't run into problems arising from different phases in activity lifecycle. On Fri, Jun 24, 2011 at 1:59 PM, Michael Kuethe de02...@googlemail.comwrote: Kumar is right - nothing new in the socket coding. But potentially you have to face issue regarding the connected/disconnected Status. have a look at the class ConnectivityManager connectiviyManager = (ConnectivityManager) context .getSystemService(Context.CONNECTIVITY_SERVICE); and the NetworkInfo NetworkInfo ni = connectiviyManager.getActiveNetworkInfo(); regards Michael -- 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] Eclipse Project Error
You sure you have specified the right AVD for launch? On Thu, Jun 23, 2011 at 12:19 AM, TreKing treking...@gmail.com wrote: On Wed, Jun 22, 2011 at 9:59 AM, Angelina hawaiianfire1...@gmail.comwrote: However, the main Android project folder still contains a red x, and Eclipse is not allowing a run or debug of the application because of this errors in the project. What errors? See the Problems view in Eclipse. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] Data transfer server to client in android application.
I think you first need to understand simple java server-client setups. See http://www.rgagnon.com/javadetails/java-0542.html. Once you understand the flow of the client-server model, you will be able to think clearly what you need to code. On Sat, Jun 25, 2011 at 12:04 PM, Naga K nagak.j...@gmail.com wrote: Dears, How to Data transfer server to client in android application by using WiFi. Thanks Naga -- 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