Re: [android-developers] Lack of clicking in ListView
Hi please help me... how to hung up call in 2.3 i have done call blockbut not working hung up function any body please help me.. it's urgent 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: wireless screenshots
You an use adbwireless On 9 Jul., 23:57, bob b...@coolgroups.com wrote: How do you take screenshots of an app when your phone isn't connected to your PC? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: wireless screenshots
I actually use screenhotit. Works on a good amount of phones without rooting. On Sun, Jul 10, 2011 at 12:00 PM, Gerhard gscha...@gmail.com wrote: You an use adbwireless On 9 Jul., 23:57, bob b...@coolgroups.com wrote: How do you take screenshots of an app when your phone isn't connected to your PC? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Sood http://www.raghavsood.com/ http://wiki.androidappcheck.com/ http://www.telstop.tel/ https://market.android.com/developer?pub=Raghav+Sood -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Localization
Just quick thinking, I've not implemented localization so far, maybe there is a better way to do it, but define a localization class, subclass it with the languages you want to support, when you change the language create an instance of the correct subclass (for the desired language). Your subclasses will be responsible for returning/ setting your strings for the current language. If there are better suggestions please share them. -- 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 9, 2:27 pm, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote: hi , i want to make button when i press it ... the app language will change without need to close the app and open it again can i do this step ??? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Localization
What do you mean with closing the app? Maybe you mean you want to avoid restarting an activity? That can be done. You just have to load the layout again after changing the locale so the layout is loaded with a new set of resources. You can find source code examples on Google for this. If you can't find, I can point you to it. If you want to avoid reloading the layout, then you are out of luck and you have to manually update all your views. But that would be the wrong way to do it. Martin mobitobi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Localization
. load the layout again after changing the locale Martin, good information man. Although I didn't ask the original question, thank you. If I ever support localization I'll keep this in my mind. -- 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] service icon
it is maybe stupid question but I dont really get it from documentation android:icon An icon representing the service. This attribute must be set as a reference to a drawable resource containing the image definition. If it is not set, the icon specified for the application as a whole is used instead (see the application element's icon attribute). The service's icon — whether set here or by the application element — is also the default icon for all the service's intent filters (see the intent-filter element's icon attribute). I added an icon to my service but is not visible or at least I cannot find it :/ can someone give my example where I could use 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
[android-developers] Re: Proguard with external library
Review the proguard warnings in the console and If you think they won't cause problems try adding -ignorewarnings in your proguard.cfg On Jul 8, 4:32 pm, Albert albert8...@googlemail.com wrote: Hi, I am trying to use proguard when exporting the build but it's failing on Proguard returned with error code 1 - the problem comes from having the twitter4j jar. I have tried this: -libraryjars libs/twitter4j-core-android-2.2.3.jar but with no luck. Have anyone done this before? Thanks in advance, Alberto -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] service icon
On 10 July 2011 13:59, kamiseq kami...@gmail.com wrote: I added an icon to my service but is not visible or at least I cannot find it :/ can someone give my example where I could use it I believe it shall appear at system settings - applications - running services. But I'd suggest to leave this attribute unset (thus falling back to app's icon) to not confuse your users too much. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ListView with CheckBox
Dear All, I have a ListActivity and i populated the listview. My Listview consists of checkbox, two textviews. Initially i had to make invisible my check box which i did. On Menu Button i have edit, which when clicked i should enable the check box. How would i perform such? My demo application is of Tab, it has 4 tabs, namely home,compose,inbox and sent. I have performing this on the Inbox Tab. though i have extends Inbox to ListAcitivity. I am totally messed up, coz i have so manything functions in it. Any suggestion pleas. Though Android doesnt provide such information on TabActivity beside documentation. (Hahahahaha) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Aw: Lack of clicking in ListView
Am Sonntag, 10. Juli 2011 07:15:32 UTC+2 schrieb arudzki: All, I'm writing an app that has 3 tabs and a ListView as its first screen. Here is a portion of the class that sets up the 3 tabs with icons and then creates an intent for the MyList.class that is my ListView class. This works. I can select the different tabs and it switches between the three views. If I select the Tracking tab, I get the ListView view. Below the line of asterisks is a portion of code for the MyList class. The issue is that I cannot select an item from the list. I Try this in onCreate() of ListActivity: getListView().setItemsCanFocus(true); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] web view
hi , now i have a web view wv.setWebViewClient(new WebViewClient() { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { view.loadUrl(url); return true; } }); wv.loadUrl(file:///android_asset/t2.html); t2.html may contain doc/pdf links i want to open this links in webview or i need another solution to open it please help -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Localization
using this code Locale locale = new Locale(ar); Locale.setDefault(locale); Configuration config = new Configuration(); config.locale = locale; getBaseContext().getResources().updateConfiguration(config, getBaseContext().getResources().getDisplayMetrics()); setContentView(R.layout.main); the acticivity language converted to arabic correctly but when i am trying to do it with english Locale locale = new Locale(en); Locale.setDefault(locale); Configuration config = new Configuration(); config.locale = locale; getBaseContext().getResources().updateConfiguration(config, getBaseContext().getResources().getDisplayMetrics()); setContentView(R.layout.main); nothing happen why ?? On Jul 10, 11:43 am, Ali Chousein ali.chous...@gmail.com wrote: . load the layout again after changing the locale Martin, good information man. Although I didn't ask the original question, thank you. If I ever support localization I'll keep this in my mind. -- Ali Chousein Geo-Filtered Assistanthttp://geo-filtered-assistant.blogspot.com/ Cisco Android marketplace (Chosen for Cisco Cius)https://marketplace.cisco.com/apphq/products/510 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] R: How to know if screen is locked
Anybody? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android partially destroying an app?
In a low memory situation Android can shut down apps and has some logic to prioritize which apps to shut down first. I have read some comments that Android can also partially destroy an app by destroying Activities that are not currently used. Since I haven't found any documentation about this, I suspect that this could be a misunderstanding and that what they are experiencing is in fact that the whole app has been destroyed and then the app has been started again by the user. Example: 1. The app starts and creates ActivityA 2. ActivityA starts ActivityB 3. ActivityB starts another app, for instance Google Maps 4. Android destroys only ActivityA due to low memory But what actually happened: 4. Android destroys the whole app due to low memory 5. The user presses the back-button 6. The app starts again and creates ActivityB 7. Developer thinks (based on stack-traces) that the app has been running all the time but only ActivityA was destroyed If Android can in fact destroy just a single Activity, how is the decision made between destroying unused Activities in the least 5 prioritized apps vs. completely destroying the least 2 prioritized apps? Or is the partial destroying just a myth (like the destroying statics myth)? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 partially destroying an app?
The docs says this: http://developer.android.com/guide/topics/fundamentals/activities.html#Lifecycle If an activity is paused or stopped, the system can drop it from memory either by asking it to finish (calling its |finish()| method), or simply killing its process. IIRC, the emulator has a setting / button somewhere to trigger the destruction of unused activities without killing the process, so there is a way to test this case. More below: 10.07.2011 19:17, nadam ?: In a low memory situation Android can shut down apps and has some logic to prioritize which apps to shut down first. I have read some comments that Android can also partially destroy an app by destroying Activities that are not currently used. Since I haven't found any documentation about this, I suspect that this could be a misunderstanding and that what they are experiencing is in fact that the whole app has been destroyed and then the app has been started again by the user. Example: 1. The app starts and creates ActivityA 2. ActivityA starts ActivityB 3. ActivityB starts another app, for instance Google Maps 4. Android destroys only ActivityA due to low memory In this case, the entire application goes into background state (unless there is a foreground service, etc.), so I'd be surprised if this actually happens, or should be expected. But what actually happened: 4. Android destroys the whole app due to low memory 5. The user presses the back-button 6. The app starts again and creates ActivityB 7. Developer thinks (based on stack-traces) that the app has been running all the time but only ActivityA was destroyed Not sure what you mean by developer thinks - if the entire process was destroyed, then the new process id will be different. You can easily see this in the logcat or other tools (DDMS, ps, top). If Android can in fact destroy just a single Activity, how is the decision made between destroying unused Activities in the least 5 prioritized apps vs. completely destroying the least 2 prioritized apps? Or is the partial destroying just a myth (like the destroying statics myth)? -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 partially destroying an app?
On Sun, Jul 10, 2011 at 11:47 AM, Kostya Vasilyev kmans...@gmail.com wrote: IIRC, the emulator has a setting / button somewhere to trigger the destruction of unused activities without killing the process, so there is a way to test this case. IIRC, that setting is in the Dev Tools app. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 3.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
[android-developers] Re: ListView with CheckBox
You are trying to say you want to hide the checkbox on previously clicked item and then show it on the currently clicked item? You can edit it with the getView() method or do something like this private class UI extends AsyncTask View, String, View { public View viewItem=null; public UI(View v) { this.viewItem=v; } @Override protected View doInBackground(View... arg0) { return viewItem; } @Override protected void onPreExecute() { for(int i = 0; i = listView.getLastVisiblePosition(); i++) { if(listView.getChildAt(i)!= null) { (listView.getChildAt(i).findViewById(R.id.yourcheckbox)).setVisibility(View.GONE); } } super.onPreExecute(); } @Override protected void onPostExecute(View result) { ((CheckBox)result.findViewById(R.id.yourcheckbox)).setVisibility(View.VISIBLE); //or change the state of the checkbox, your call :) super.onPostExecute(result); } } Remember, you can modify your userinterface only from UI thread. So implementing AsyncTask you should do the modification in onPreExecute() or in onPostExecute() methods. In your case in onPreExecute you do hiding on the previous items view child and in oPostExecute you do showing I hope this is what you are looking for. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ListView with CheckBox
Sorry, I forgot to say how you call this implementation.. listView.setOnItemClickListener(new OnItemClickListener(){ @Override public void onItemClick(AdapterView? parent, View viewItem, int position, long arg3) throws NullPointerException{ new UI(parent.getChildAt(position - listView.getFirstVisiblePosition())).execute(parent); }}); position is the position of the item clicked listView.getFirstVisiblePosition() is the first fully visible position in the list, in example if you have 0 position partially visible on the screen the first visible position is 1 So if you want to access the 3 position assuming that first visible position is 1 = 3 - 1 = 2, which indeed is the 2... regardless position==3 :) All the best... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android Marketplace Search Results
Since around 1st July I have noticed the search results on a device are a bit strange. The same search on the device and the website return very different results. Anyone else spotted this ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Listview help...
I've been working on a listview for while now. Each of my items in the list has a checkbox, an image and two buttons. It works like a gallery and enables the user to preview images in my application, the buttons allow the user to rotate the image in the listview by 90 degrees, clockwise or counter clockwise. These work fine whilst the image is on view, but as soon as I scroll off view the image is recycled and the state lost. I know that in the getView method I can access my array to determine the angle and state etc. My question is...Is there a callback or method that I can check before the item goes off view and is recycled so that I can copy the state of the item back to my array, so that I can restore it when it comes back into view? Thank you. -- Regards, Sy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 partially destroying an app?
It will only destroy activities if you have a large number of them on your stack. In practice, I think most apps will hit an out of memory error on their local heap before encountering this (and don't have significantly deep stacks), so are unlikely to encounter it. On Sun, Jul 10, 2011 at 8:17 AM, nadam a...@anyro.se wrote: In a low memory situation Android can shut down apps and has some logic to prioritize which apps to shut down first. I have read some comments that Android can also partially destroy an app by destroying Activities that are not currently used. Since I haven't found any documentation about this, I suspect that this could be a misunderstanding and that what they are experiencing is in fact that the whole app has been destroyed and then the app has been started again by the user. Example: 1. The app starts and creates ActivityA 2. ActivityA starts ActivityB 3. ActivityB starts another app, for instance Google Maps 4. Android destroys only ActivityA due to low memory But what actually happened: 4. Android destroys the whole app due to low memory 5. The user presses the back-button 6. The app starts again and creates ActivityB 7. Developer thinks (based on stack-traces) that the app has been running all the time but only ActivityA was destroyed If Android can in fact destroy just a single Activity, how is the decision made between destroying unused Activities in the least 5 prioritized apps vs. completely destroying the least 2 prioritized apps? Or is the partial destroying just a myth (like the destroying statics myth)? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Closing AppWidget when force closing an application
If that causes your app widget to break, there is probably something wrong with your implementation. App widgets by design don't rely on their app running all of the time. When the user interacts with the app widget, this should be through an Intent being sent to an app component that will cause it to launch if needed. On Tue, Jul 5, 2011 at 10:38 AM, Marcos Fábio mfpere...@gmail.com wrote: Hi All, I'm trying to close (remove from home) my AppWidget when the user goes to (Settings - Applications - Manage applications) and click on 'Force Stop' button of my application. The application closes, but the AppWidget keeps on Home and doesn't work. BR, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Listview help...
On Sun, Jul 10, 2011 at 2:04 PM, Simon Platten simonaplat...@googlemail.com wrote: I've been working on a listview for while now. Each of my items in the list has a checkbox, an image and two buttons. It works like a gallery and enables the user to preview images in my application, the buttons allow the user to rotate the image in the listview by 90 degrees, clockwise or counter clockwise. These work fine whilst the image is on view, but as soon as I scroll off view the image is recycled and the state lost. I know that in the getView method I can access my array to determine the angle and state etc. My question is...Is there a callback or method that I can check before the item goes off view and is recycled so that I can copy the state of the item back to my array, so that I can restore it when it comes back into view? The state of the item should have been in your array in the first place. Whenever the state of the item changes, change the array. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 3.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
Re: [android-developers] Listview help...
Obviously I'm missing something, it seems to me that the list view doesn't work off the actual array but takes copies of the data when the getView is called, when these are edited the differences are lost when the item goes off view. I've tried modifying the getView to reference the array directly, but with little success. On Sun, Jul 10, 2011 at 7:24 PM, Mark Murphy mmur...@commonsware.comwrote: On Sun, Jul 10, 2011 at 2:04 PM, Simon Platten simonaplat...@googlemail.com wrote: I've been working on a listview for while now. Each of my items in the list has a checkbox, an image and two buttons. It works like a gallery and enables the user to preview images in my application, the buttons allow the user to rotate the image in the listview by 90 degrees, clockwise or counter clockwise. These work fine whilst the image is on view, but as soon as I scroll off view the image is recycled and the state lost. I know that in the getView method I can access my array to determine the angle and state etc. My question is...Is there a callback or method that I can check before the item goes off view and is recycled so that I can copy the state of the item back to my array, so that I can restore it when it comes back into view? The state of the item should have been in your array in the first place. Whenever the state of the item changes, change the array. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 3.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 -- Regards, Sy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Marketplace Search Results
On Sun, Jul 10, 2011 at 1:03 PM, Chris chris.fou...@gmail.com wrote: Anyone else spotted this ? Yup. - 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
Re: [android-developers] Listview help...
On Sun, Jul 10, 2011 at 2:29 PM, Simon Platten simonaplat...@googlemail.com wrote: Obviously I'm missing something, it seems to me that the list view doesn't work off the actual array but takes copies of the data when the getView is called, when these are edited the differences are lost when the item goes off view. I've tried modifying the getView to reference the array directly, but with little success. You indicated that your ListView rows have a CheckBox. CheckBox widgets have an OnCheckedChangedListener that you can set. OnCheckedChangedListener tells you when the CheckBox is checked or unchecked. Therefore, by setting the OnCheckedChangedListener, your code can find out when a CheckBox is checked or unchecked, and store the checked state somewhere, such as in the associated array entry. That way, you have the correct state in getView(). While the following project demonstrates a RatingBar rather than a CheckBox, the concept still holds: https://github.com/commonsguy/cw-android/tree/master/FancyLists/RateList The following free excerpt from one of my books covers this and other topics related to custom adapters: http://commonsware.com/Android/excerpt.pdf (see the Interactive Rows section for the RatingBar sample) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 3.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
Re: [android-developers] Listview help...
No, there isn't any copying of data, and no editing as such in ListView. The adapter has a method to return a view for a particular item position, and that's it. It's the responsibility of this method to make sure that the data is presented in consistent way. If you are using ArrayAdapter, I'd recommend graduating to BaseAdapter. ArrayAdapter is like a children's bicycle with training wheels, great to start with, but easy to outgrow. And as Mark already pointed out, your data items (whether you use ArrayAdapter or not) should have enough information to recreate the visual state in getView: in your case, store the rotation value there. Update the rotation value in the data item whenever it's changed by the user, so it's there next time getView is called for this particular item. -- Kostya 10.07.2011 22:29, Simon Platten пишет: Obviously I'm missing something, it seems to me that the list view doesn't work off the actual array but takes copies of the data when the getView is called, when these are edited the differences are lost when the item goes off view. I've tried modifying the getView to reference the array directly, but with little success. -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] R: How to know if screen is locked
Did you try this? http://developer.android.com/reference/android/app/KeyguardManager.html#inKeyguardRestrictedInputMode() On Sun, Jul 10, 2011 at 8:03 AM, Federico Pelloni federico.pell...@gmail.com wrote: Anybody? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Listview help...
I'm trying to do this in such a way that I don't have to replicate code...what ideally I would like is when I press either of the rotate buttons, it invalidates the image causing it to be re-rendered and rotated, so far the only way I've been able to get the rotation to work is to get the imageview in my event listener, rotate the bitmap then put it back in the imageview. I like to understand what is happening behind the scenes and I must admit I'm not quite sure what methods are available to me, I'll take a look at the links provided by Mark. Thank you. On Sun, Jul 10, 2011 at 7:43 PM, Kostya Vasilyev kmans...@gmail.com wrote: No, there isn't any copying of data, and no editing as such in ListView. The adapter has a method to return a view for a particular item position, and that's it. It's the responsibility of this method to make sure that the data is presented in consistent way. If you are using ArrayAdapter, I'd recommend graduating to BaseAdapter. ArrayAdapter is like a children's bicycle with training wheels, great to start with, but easy to outgrow. And as Mark already pointed out, your data items (whether you use ArrayAdapter or not) should have enough information to recreate the visual state in getView: in your case, store the rotation value there. Update the rotation value in the data item whenever it's changed by the user, so it's there next time getView is called for this particular item. -- Kostya 10.07.2011 22:29, Simon Platten пишет: Obviously I'm missing something, it seems to me that the list view doesn't work off the actual array but takes copies of the data when the getView is called, when these are edited the differences are lost when the item goes off view. I've tried modifying the getView to reference the array directly, but with little success. -- Kostya Vasilyev -- You received 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 -- Regards, Sy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Listview help...
BTW, Just ordered your book on Amazon! On Sun, Jul 10, 2011 at 8:39 PM, Simon Platten simonaplat...@googlemail.com wrote: I'm trying to do this in such a way that I don't have to replicate code...what ideally I would like is when I press either of the rotate buttons, it invalidates the image causing it to be re-rendered and rotated, so far the only way I've been able to get the rotation to work is to get the imageview in my event listener, rotate the bitmap then put it back in the imageview. I like to understand what is happening behind the scenes and I must admit I'm not quite sure what methods are available to me, I'll take a look at the links provided by Mark. Thank you. On Sun, Jul 10, 2011 at 7:43 PM, Kostya Vasilyev kmans...@gmail.comwrote: No, there isn't any copying of data, and no editing as such in ListView. The adapter has a method to return a view for a particular item position, and that's it. It's the responsibility of this method to make sure that the data is presented in consistent way. If you are using ArrayAdapter, I'd recommend graduating to BaseAdapter. ArrayAdapter is like a children's bicycle with training wheels, great to start with, but easy to outgrow. And as Mark already pointed out, your data items (whether you use ArrayAdapter or not) should have enough information to recreate the visual state in getView: in your case, store the rotation value there. Update the rotation value in the data item whenever it's changed by the user, so it's there next time getView is called for this particular item. -- Kostya 10.07.2011 22:29, Simon Platten пишет: Obviously I'm missing something, it seems to me that the list view doesn't work off the actual array but takes copies of the data when the getView is called, when these are edited the differences are lost when the item goes off view. I've tried modifying the getView to reference the array directly, but with little success. -- Kostya Vasilyev -- You received this 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 -- Regards, Sy -- Regards, Sy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Listview help...
Are you aware that ImageView lets you apply a matrix to the image? http://developer.android.com/reference/android/widget/ImageView.html#setImageMatrix(android.graphics.Matrix) -- Kostya 10.07.2011 23:39, Simon Platten пишет: so far the only way I've been able to get the rotation to work is to get the imageview in my event listener, rotate the bitmap then put it back in the imageview. -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Listview help...
No, Thank you, I was doing this: Matrix mtx = new Matrix(); mtx.setRotate(intAngle, bmpScaled.getWidth() / 2, bmpScaled.getHeight() / 2); bmpFinal = Bitmap.createBitmap(bmpScaled, 0, 0, m_imgFile.m_intScaledWidth, m_imgFile.m_intScaledHeight, mtx, true); I will certainly try using the matrix with the imageview. On Sun, Jul 10, 2011 at 8:47 PM, Kostya Vasilyev kmans...@gmail.com wrote: Are you aware that ImageView lets you apply a matrix to the image? http://developer.android.com/**reference/android/widget/** ImageView.html#setImageMatrix(**android.graphics.Matrix)http://developer.android.com/reference/android/widget/ImageView.html#setImageMatrix%28android.graphics.Matrix%29 -- Kostya 10.07.2011 23:39, Simon Platten пишет: so far the only way I've been able to get the rotation to work is to get the imageview in my event listener, rotate the bitmap then put it back in the imageview. -- Kostya Vasilyev -- You received 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 -- Regards, Sy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] R: How to know if screen is locked
Thank you very much, together with ACTION_SCREEN_ON it works perfectly. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 can I change my google account email address?
How can I change my google account email address? how can I change the primary email address? 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: Lack of clicking in ListView
Use try/catch blocks with Log.e(String, String, e) and verify if have any Error, and post here :) On 10 jul, 09:21, anaran adrian.aich...@googlemail.com wrote: Am Sonntag, 10. Juli 2011 07:15:32 UTC+2 schrieb arudzki: All, I'm writing an app that has 3 tabs and a ListView as its first screen. Here is a portion of the class that sets up the 3 tabs with icons and then creates an intent for the MyList.class that is my ListView class. This works. I can select the different tabs and it switches between the three views. If I select the Tracking tab, I get the ListView view. Below the line of asterisks is a portion of code for the MyList class. The issue is that I cannot select an item from the list. I Try this in onCreate() of ListActivity: getListView().setItemsCanFocus(true); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: service icon
ok, I was just curious cos I was looking for a way to launch service when user clicks on launch icon but I think I have to launch activity and then launch service from it and then finish the activity. On 10 Lip, 14:17, Marcin Orlowski webnet.andr...@gmail.com wrote: On 10 July 2011 13:59, kamiseq kami...@gmail.com wrote: I added an icon to my service but is not visible or at least I cannot find it :/ can someone give my example where I could use it I believe it shall appear at system settings - applications - running services. But I'd suggest to leave this attribute unset (thus falling back to app's icon) to not confuse your users too much. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: service icon
On Sun, Jul 10, 2011 at 5:28 PM, kamiseq kami...@gmail.com wrote: ok, I was just curious cos I was looking for a way to launch service when user clicks on launch icon but I think I have to launch activity and then launch service from it and then finish the activity. Do not have a service that just starts up as you describe and does not deliver value. Why do you need to have a service here? Why do you need to start it and not give the user a way to stop it (e.g., via the activity they used to start it)? Also, do not have an activity that does nothing. Users will think your application is broken and will give you Market ratings and comments reflecting its broken state. Even if your service is justifiable, please write an activity that is meaningful, adds value, and allows the user to stop the service. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 3.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
[android-developers] Re: Locations using Google Maps
Haha alright sounds good. Thanks Mark and TreKing :) On Jul 8, 5:02 am, Mark Murphy mmur...@commonsware.com wrote: You need to have geographic coordinates for your eye doctors. The Google Maps add-on for Android does not have a showEyeDoctors() method. :-) On Thu, Jul 7, 2011 at 10:47 AM, Cindy cindy...@gmail.com wrote: Thanks. I thought ItemizedOverlay was used whenever you have a list of of geographic coordinates? On Jul 6, 10:27 pm, TreKing treking...@gmail.com wrote: On Wed, Jul 6, 2011 at 2:23 PM, Cindy cindy...@gmail.com wrote: Since there are a lot of eye doctor locations, what's the best way to display them on Goggle Maps using MapView? ItemizedOverlay. --- -- 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 -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training...At Your Office:http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 can I change my google account email address?
I don't care if I can't change the primary email address of my google account, but how to change the email account in use for android market? On Jul 10, 10:06 pm, sblantipodi perini.dav...@dpsoftware.org wrote: How can I change my google account email address? how can I change the primary email address? 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: Installing APK + DB
hey guys, i am getting problems, again, with the DB; it happens when the DB size is great than 1MB. i have my DB in the assets folder and first time is copied to the data/ data/APPL/databases directory. i wonder if the 1MB restriction for the assets folder is still an application constraint ? i am asking because somewhere i found that it was solved ... my appl is android 2.2. x sansung galaxy S. regards On Jul 8, 11:20 am, hectordu...@yahoo.com hectordu...@yahoo.com wrote: hi kostya, i get your point, i'll try to find the bug; btw, if you have any advice on how to deal with it, i willl apreciate it very much. soo, i will post what happened! regards hector pd.about the double click conflict, i used setOnLongClickListener instead of onDblClick. On Jul 7, 1:10 pm, Kostya Vasilyev kmans...@gmail.com wrote: Hector, What I was hinting at (sorry if I was being too oblique) is that: 1 - There is a bug in your code when the activity gets recreated for configuration changes; 2 - The most frequent case of a configuration change is the screen orientation change; 3 - There are other cases configuration change cases, and I provided the steps for one of them; 4 - Rather than putting lipstick over the bug with your manifest change, treat it as an opportunity to easily find and fix the bug; 5 - Once that's done, and your code survives an orientation change, add back the manifest changes as an optimization, if needed. -- Kostya 07.07.2011 20:31, hectordu...@yahoo.com пишет: your application is still likely crash if you leave it by pressing Home, change the phone's language in Settings, and return to the app (via launcher icon or recent app list)... YEAH ! it is still crashing but i don't know exactly when :-( but ot works fine by pressing HOME, or returning to the app via the icon. it sounds rare but is there a light sensor some where in the phone? On Jul 6, 12:11 pm, hectordu...@yahoo.comhectordu...@yahoo.com wrote: no kostya, by the moment it thasn't crash for that ... know i am geting conflicts with single and double click on a button .. :-( it looks like when i make a double click also tryes to execute some associates methods to single click ... plase help :-) hector On Jul 5, 1:33 pm, Kostya Vasilyevkmans...@gmail.com wrote: That's good, but your application is still likely crash if you leave it by pressing Home, change the phone's language in Settings, and return to the app (via launcher icon or recent app list)... 05.07.2011 22:13, hectordu...@yahoo.com пишет: about the screen orientation, i have included this line in the manfest: android:configChanges=orientation|keyboardHidden ... works:-) -- Kostya Vasilyev -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Installing APK + DB
hey guys, i am getting problems, again, with the DB; it happens when the DB size is great than 1MB. i have my DB in the assets folder and first time is copied to the data/ data/APPL/databases directory. i wonder if the 1MB restriction for the assets folder is still an application constraint ? i am asking because somewhere i found that it was solved ... my appl is android 2.2. x sansung galaxy S. regards On Jul 8, 11:20 am, hectordu...@yahoo.com hectordu...@yahoo.com wrote: hi kostya, i get your point, i'll try to find the bug; btw, if you have any advice on how to deal with it, i willl apreciate it very much. soo, i will post what happened! regards hector pd.about the double click conflict, i used setOnLongClickListener instead of onDblClick. On Jul 7, 1:10 pm, Kostya Vasilyev kmans...@gmail.com wrote: Hector, What I was hinting at (sorry if I was being too oblique) is that: 1 - There is a bug in your code when the activity gets recreated for configuration changes; 2 - The most frequent case of a configuration change is the screen orientation change; 3 - There are other cases configuration change cases, and I provided the steps for one of them; 4 - Rather than putting lipstick over the bug with your manifest change, treat it as an opportunity to easily find and fix the bug; 5 - Once that's done, and your code survives an orientation change, add back the manifest changes as an optimization, if needed. -- Kostya 07.07.2011 20:31, hectordu...@yahoo.com пишет: your application is still likely crash if you leave it by pressing Home, change the phone's language in Settings, and return to the app (via launcher icon or recent app list)... YEAH ! it is still crashing but i don't know exactly when :-( but ot works fine by pressing HOME, or returning to the app via the icon. it sounds rare but is there a light sensor some where in the phone? On Jul 6, 12:11 pm, hectordu...@yahoo.comhectordu...@yahoo.com wrote: no kostya, by the moment it thasn't crash for that ... know i am geting conflicts with single and double click on a button .. :-( it looks like when i make a double click also tryes to execute some associates methods to single click ... plase help :-) hector On Jul 5, 1:33 pm, Kostya Vasilyevkmans...@gmail.com wrote: That's good, but your application is still likely crash if you leave it by pressing Home, change the phone's language in Settings, and return to the app (via launcher icon or recent app list)... 05.07.2011 22:13, hectordu...@yahoo.com пишет: about the screen orientation, i have included this line in the manfest: android:configChanges=orientation|keyboardHidden ... works:-) -- Kostya Vasilyev -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] TextWatcher in inherited SimpleAdapter
Hi All, In my code, I was using following code for textwatcher private TextWatcher filterTextWatcher = new TextWatcher() { @Override public void beforeTextChanged(CharSequence s, int start, int count,int after) { } @Override public void onTextChanged(CharSequence s, int start, int before,int count){ if(adapter!=null) { adapter.getFilter().filter(s); } } @Override public void afterTextChanged(Editable s) { } }; It was working fine till the time I was using simpleAdapter but now I have to customize my adapter and have write one inherited class of simpleAdapter. TextWatcher has stopped working. If someone know the reason and solution then please let me know. Thanks Regards, Manish Garg -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 I call a web service to get some data return the screen to the android?
Dear All : Can I call a web service to get some data return the screen to the android? Actually, I want to get some data on the remote web server from the android phone return back the android platform. How can I do it? Thanks. BR, Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Help! How can I add a fake keyevent to the Android Input System in native code(c/c++, but not in java calling IWindowManager.injectKeyEvent) without modifying kernel?
How can I add a fake keyevent to the Android Input System in native code(c/c++, but not in java calling IWindowManager.injectKeyEvent) without modifying kernel? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 I call a web service to get some data return the screen to the android?
Yes, you can do that. Parts needed: Web Server On Phone: HTTP (DefaultHttpClient, AndroidHttpClient, etc) XML/JSON parser. Simple: AsyncTask doing the fetching of the data. More difficult, but preferable at times: (Intent)Services fetching the data. Activities to show the data. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 I call a web service to get some data return the screen to the android?
Dear : Thanks for your quickly answer. Since I'm new to android. Could you give me some example to help me? Thanks. BR, Mark 2011/7/11 Streets Of Boston flyingdutc...@gmail.com Yes, you can do that. Parts needed: Web Server On Phone: HTTP (DefaultHttpClient, AndroidHttpClient, etc) XML/JSON parser. Simple: AsyncTask doing the fetching of the data. More difficult, but preferable at times: (Intent)Services fetching the data. Activities to show the data. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: NFC card emulation, NXP PN544 and S2C (NFC-WI)
Hi, Many thanks for the answers! Let's continue the discussion, but please be patient with me - I still do not understand what/how should be done in order to use the SD card with the secure element and how to connect it via S2C, so let's start with basics: The SD card has normally 8 pins and uses the SD/SPI bus. The bus is used by the phone driver to send to the SD card only the specified file I/O commands (read/write memory blocks, read/write some SD card registers, etc.) - that's what the SD card controller understands. On the enhanced SD card is then besides the normal flash storage also the secure element (smart card). To access the smart card the file I/O based interface is re-used, i.e. if you write something and it starts with 'magics' in header and it is valid APDU command it is send to the smart card instead of being saved to the flash memory - this is handled by the on-card enhanced controller, which inspects the content of the passed data (http://www.ctst.com/CTST08/pdf/Poitner.pdf, http://www.gi-de.com/en/products_and_solutions/products/secure_microsd/product_details_4992.jsp). Other possibility to talk to the smart card is use of the Mc-EX, but as far as I know this is not supported at all (BUT!! might be I am wrong - I have found some references in SEEK there:http:// code.google.com/p/seek-for-android/source/browse/trunk/seek/src/ android/smartcard/libraries/smartcard/mcex/McexBusyException.java? spec=svn2r=2). Now having the standard SD card slot in which is inserted the microSD card with the secure element, which can be accessed by two above mentioned ways - how this can be connected with the NXP 544 s2c interface? According to my understanding in the mode you are describing as an 'internal' the NFC controller emits the same data like if it communicates with the smart card over the radio, but instead of using the RF antenna to send the data they are redirected over the wired s2c bus to the SD card pins - so 2 selected SD card pins must be used for that. This also means the phone (Andorid) SD card driver be modified to allow to send other than file I/O data and those data must be understand by the controller on the SD card? Since the s2c is built on the top of the ISO 18092 (right?) this protocol must be understand by the on-card enhanced controller? So the NXP 544 s2c bus must be somehow physically connected to the SD card slot? Is that right? Since the Nexus S already has the built-in SmartMX family (BTW – do you know which chip is exactly used?) secure element how the SD card secure element is selected? How the system understands to which secure element it should talk, e.g. to embedded SmartMX or SD card? Or it is not possible to use SD card when there is already embedded secure element? This is valid also for the phones without embedded secure element (like all Nokia NFC phones) or CDMA phones, which do not have SIM cards, thus there is no possibility to use the UICC via SWP... I know there is too much questions, but I try to understand if it is at all possible to use the SD card or not and if it is possible, what can be changed even in OS source code and if some HW changes in the phones are necessary regarding the internal connection between NXP 544 and SD card slot – you said it will need some special hardware support: To use SD card that support the NFC-WI, the SIGIN and SIGOUT signal lines of the NFC-WI would need to be connected to the NFC chip.. If true, is it already in the Google Nexus S, will this be in the Galaxy SII? Thanks a lot, Kind Regards, STeN -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 I call a web service to get some data return the screen to the android?
yeah On Jul 11, 2011 7:16 AM, mark2011 androidmark2...@gmail.com wrote: Dear All : Can I call a web service to get some data return the screen to the android? Actually, I want to get some data on the remote web server from the android phone return back the android platform. How can I do it? Thanks. BR, Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 can I change my google account email address?
On Sun, Jul 10, 2011 at 7:05 PM, sblantipodi perini.dav...@dpsoftware.orgwrote: I don't care if I can't change the primary email address of my google account, but how to change the email account in use for android market? http://www.google.com/support/androidmarket/developer/bin/answer.py?hl=enanswer=139626 - 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
Re: [android-developers] Re: Installing APK + DB
On Mon, Jul 11, 2011 at 9:29 AM, hectordu...@yahoo.com hectordu...@yahoo.com wrote: hey guys, i am getting problems, again, with the DB; it happens when the DB size is great than 1MB. You have to split your data into 1MB chunks and merge those when copying the database. At some point (soon?) the Android Market should introduce the ability to have 2 (IIRC) asset files alongside the apk, and that should make things easier. Until then, if your data is relatively small (a few MB), split it and put it in assets. If it's bigger, put a zip file on a Web server and download/extract it on first run. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] textview auto scroll
How do you make a TextView always auto-scroll to the bottom? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 compare web service date to calendar date in android ?
Hi Freinds, Please Help me... how to compare web service date to calendar date in android ? then i want highlight that particular date in calendar. any one please help me Thanks M VIJAYAKUMAR -- Nobody can go back and start a new beginning, but anyone can start today and make a new ending - Thanks, Regards, νιנαソαkum@r M BloG:http://iamvijayakumar.blogspot.com/ Mob.No:09048382536(Kerala) Mob.No:09751076707(TN) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Loading an array of strings into a ListView
I'm trying to load a String[] array into a ListView. Based on examples I've seen, I *THINK* this (below) is how to do it...but I'm far from certain. // This part I'm familiar with String[] nameList = getResources().getStringArray(R.array.Grains_Names); // The rest of this is new ground for me gList = (ListView)findViewById(R.id.namelist); ArrayAdapterString adapter = new ArrayAdapterString(this, R.id.namelist); nameList.setAdapter(adapter); registerForContextMenu(nameList); Am I even close to getting this right? Thanks, --jim -- 73 DE N5IAL (/4)| Now what *you* need is a proper pint of spooky1...@gmail.com| porter poured in a proper pewter porter Running FreeBSD 7.0 | pot.. ICBM / Hurricane: |--Peter Dalgaard in alt.sysadmin.recovery 30.44406N 86.59909W | Point Lobos Photography Set 1 (Photo-posters): http://jdgapps.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Loading an array of strings into a ListView
http://www.androidpeople.com/android-listview-example A simple example. You are pretty close though :) *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Mon, Jul 11, 2011 at 9:36 AM, Jim Graham spooky1...@gmail.com wrote: I'm trying to load a String[] array into a ListView. Based on examples I've seen, I *THINK* this (below) is how to do it...but I'm far from certain. // This part I'm familiar with String[] nameList = getResources().getStringArray(R.array.Grains_Names); // The rest of this is new ground for me gList = (ListView)findViewById(R.id.namelist); ArrayAdapterString adapter = new ArrayAdapterString(this, R.id.namelist); nameList.setAdapter(adapter); registerForContextMenu(nameList); Am I even close to getting this right? Thanks, --jim -- 73 DE N5IAL (/4)| Now what *you* need is a proper pint of spooky1...@gmail.com| porter poured in a proper pewter porter Running FreeBSD 7.0 | pot.. ICBM / Hurricane: |--Peter Dalgaard in alt.sysadmin.recovery 30.44406N 86.59909W | Point Lobos Photography Set 1 (Photo-posters): http://jdgapps.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Loading an array of strings into a ListView
On Mon, Jul 11, 2011 at 09:42:33AM +0530, Kumar Bibek wrote: http://www.androidpeople.com/android-listview-example A simple example. You are pretty close though :) Thanks. I'll look at it. Might be back with more questions in the morning...but not tonight...brain is about to quit for the night, and it takes my vision with it every time...everything's about to get very blurry (it's already started). Later, --jim -- 73 DE N5IAL (/4)| Now what *you* need is a proper pint of spooky1...@gmail.com| porter poured in a proper pewter porter Running FreeBSD 7.0 | pot.. ICBM / Hurricane: |--Peter Dalgaard in alt.sysadmin.recovery 30.44406N 86.59909W | Point Lobos Photography Set 1 (Photo-posters): http://jdgapps.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Can I call a web service to get some data return the screen to the android?
Dear Tushar : Could you provide some example? Thanks. BR, Mark 2011/7/11 tushar sahni tusharsahn...@gmail.com yeah On Jul 11, 2011 7:16 AM, mark2011 androidmark2...@gmail.com wrote: Dear All : Can I call a web service to get some data return the screen to the android? Actually, I want to get some data on the remote web server from the android phone return back the android platform. How can I do it? Thanks. BR, Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 I call a web service to get some data return the screen to the android?
check this one http://iamvijayakumar.blogspot.com/2011/03/android-webservice-with.html On Mon, Jul 11, 2011 at 10:47 AM, wu mark androidmark2...@gmail.com wrote: Dear Tushar : Could you provide some example? Thanks. BR, Mark 2011/7/11 tushar sahni tusharsahn...@gmail.com yeah On Jul 11, 2011 7:16 AM, mark2011 androidmark2...@gmail.com wrote: Dear All : Can I call a web service to get some data return the screen to the android? Actually, I want to get some data on the remote web server from the android phone return back the android platform. How can I do it? Thanks. BR, Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- Nobody can go back and start a new beginning, but anyone can start today and make a new ending - Thanks, Regards, νιנαソαkum@r M BloG:http://iamvijayakumar.blogspot.com/ Mob.No:09048382536(Kerala) Mob.No:09751076707(TN) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en