Re: [android-developers] simulate just onPause() without onStop()
onPause() is called whenever there is a change in current foreground Context. The outgoing Context gets onPause() and incoming context gets onResume(). Showing a dialog does not change the Context. Starting a new activity does. Starting a service is different since its always in the background. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 ship data into apk as internal storage
Have you read the following blog post? http://android-developers.blogspot.com/2012/03/android-apps-break-50mb-barrier.html You can use the expansion files to provide your data. This is stored on the shared SD card storage and does not take up internal storage space. On Thursday, August 16, 2012 12:28:51 PM UTC-4, Luiz Fernando Rodrigues wrote: I have a requirement of downloading big data from a server to update my app (5 MB today but it can grow up to 40MB). In most cases it is not a problem because the backend is sending just the diff files to update the application. So this download usually runs fast. The problem occurs in the first time the user runs the application. So all that data is downloaded from the server and the user has to wait too long. I was thinking in include this big data into the apk as an asset and then copy it to the internal storage. The problem is that I'm going to double my memory use since I can't find out how to remove those assets files once the aplication is installed. Does anyone has any suggestion on how to include the big data in the internal store when the application is installed? Is it possible to ship this data into apk as internal storage? thanks, Luiz -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 could i check the android device is rooted or not?
You absolutely wrong here. Please try to understand what OP wants. All root are not equal. On Monday, August 13, 2012 5:19:00 AM UTC-4, asheesh arya wrote: /** Method to check whether external media available and writable and to find the root of the external file system. */ private void checkExternalMedia () { // Check external media availability. This is adapted from // http://developer.android.com/guide/topics/data/data-storage.html#filesExternal boolean mExternalStorageAvailable = false; boolean mExternalStorageWriteable = false; String state = Environment.getExternalStorageState(); if (Environment.MEDIA_MOUNTED.equals(state)) { // We can read and write the media mExternalStorageAvailable = mExternalStorageWriteable = true; } else if (Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) { // We can only read the media mExternalStorageAvailable = true; mExternalStorageWriteable = false; } else { // Can't read or write mExternalStorageAvailable = mExternalStorageWriteable = false; } // Find the root of the external storage and output external storage info to screen root = android.os.Environment.getExternalStorageDirectory(); tv.append( External storage: Exists=+mExternalStorageAvailable+, Writable= +mExternalStorageWriteable+ Root=+root+\n); } / -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 dynamically change row layout of list view on click event
On Monday, August 13, 2012 4:05:55 AM UTC-4, Jovish P wrote: Justin Anderson , how to set clicked status on the adapter for the clicked item ? Can you explain a little bit more if you don't mind. It will be a great help for us. Thanks , Jovish What he means is that you should add a boolean in your data model for list items and use that instead of setting a tag in the view. What you are doing is storing your data in your view which is wrong from an MVC point of view. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how to achieve the accuracy of google navigation
I would'nt be surprised if they are incorporating accelerometer readings into their extrapolation algorithm. On Monday, August 6, 2012 9:47:41 AM UTC-4, Jef De Busser wrote: I can see how extrapolating would yield good results if you have a small delay between reported position real position, e.g. the 1s update rate of most GPS receivers. What I can't see however, is how you could make that work with larger delays, especially for large accelerations. Say for example you drive on a straight road at 3m/s, accelerate with 2m/s2, and we exampime multiple delays. We can extrapolate from the last known location at constant speed over that delay and compare position to where we really are. 1s delay: const speed: 3m reality: 4m error: 33% 2s delay const speed: 6m reality: 10m error: 66% 4s delay: const speed: 12m reality: 28m error: 133% I've measured delays varying from 1 to 4 seconds several times, and yet Google Nav manages to position the car at the exact location. It can't use map data to correct its position, since we're on a straight road. So that must mean that it uses sensor data, right? Or am I missing something? On 08/03/2012 08:47 PM, Nadeem Hasan wrote: That would be extrapolation. And that is actually the exact reason why the GPS lags on exits if they are off-route because it has extrapolated your position based on your route till the next actual GPS location update arrives. I have seen this behaviour with my Garmin device too when I decide not to follow the route. On Friday, August 3, 2012 11:46:45 AM UTC-4, Nobu Games wrote: I'd go for interpolation and take the current average speed and the structure of the streets into account. That of course only works when you have something like a graph / vector representation of the streets and know how they are connected and what orientation they have. It is also pretty common that even Google Navigation is off, especially on highways with exits. Sometimes the navigation draws the car following the highway even though you are already leaving on an exit. On Wednesday, August 1, 2012 9:18:33 AM UTC-5, bushido wrote: Hi all, I'm writing an application for android for which I need good position accuracy, I use a Galaxy Nexus as test device. My test application subscribes to location updates and draws a car symbol in a map, the map is centered to the location of the car rotates according to the bearing of the location (exactly like google maps on android does). I noticed that when up to speed, the positions don't match with reality, they lag behind considerably. When I cross a street at 90km/h for example, it will take a few seconds before the car on the map is also crossing that street. It isn't an error in the map data, because when I'm standing still, the car gets drawn on the correct location. Google maps for android shows exactly the same behavior. The position of the car in Google Navigate on the other hand matches reality rather closely. I've noticed that the position updates are a lot smoother as well. (10Hz rather than the 1Hz updates which you get from GPS) My question is: how do they do it? What I can think of is: - using the phone's sensors (gyro accelero) together with a kalman filter or similar. But I can't see how you could make that work for every phone, since not all phones have these sensors. - interpolating, but in that case I would expect overshooting when there is a sudden stop or a sharp corner Thanks in advance. Bushido -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Overlay item in ImageView
Use a FrameLayout with an ImageView and a TextView as children. Use a 9-patch as the background of the TextView. On Friday, August 3, 2012 10:26:36 AM UTC-4, Luiz Fernando Rodrigues wrote: Thanks for your answer. That's actually what I'm doing. The problem with this approach is that once I render the component as a popover it becomes part of the bitmap. It becomes painful to handle events since I have to recognize the area in the image where the component was rendered. Also I have to deal with pan and zoom, what changes the component coordinates. I could handle all that using matrix transformations but the code is becoming messy, I was looking for another approach, similar to the MapsAPI, (where I can include ItemizedOverlay items), but now using to the maps API. Something that allows work with my popover as a component. 2012/7/31 ashok chakravarthy ashoki...@gmail.com subclass the ImageView and draw overlay on onDraw and handle the touch events on onTouch On Wed, Jul 25, 2012 at 12:30 AM, Luiz Fernando Rodrigues emaild...@gmail.com wrote: Hi, In my application I need to show a custom popover over an ImageView. This tutorial ( http://www.techjini.com/blog/2010/11/23/creating-a-customized-popover-for-mapview/) teaches how to do it over an MapView. I made an adaptation drawing the popover component in the ImageView since the ItemizedOverlay belongs to the maps API. So far so good, but now I need to capture events in the popover and I'm questioning myself if thats the right way implement an popover over an ImageView. Could anyone point me to a right API to build this feature? Thanks a lot, Luiz -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how to achieve the accuracy of google navigation
That would be extrapolation. And that is actually the exact reason why the GPS lags on exits if they are off-route because it has extrapolated your position based on your route till the next actual GPS location update arrives. I have seen this behaviour with my Garmin device too when I decide not to follow the route. On Friday, August 3, 2012 11:46:45 AM UTC-4, Nobu Games wrote: I'd go for interpolation and take the current average speed and the structure of the streets into account. That of course only works when you have something like a graph / vector representation of the streets and know how they are connected and what orientation they have. It is also pretty common that even Google Navigation is off, especially on highways with exits. Sometimes the navigation draws the car following the highway even though you are already leaving on an exit. On Wednesday, August 1, 2012 9:18:33 AM UTC-5, bushido wrote: Hi all, I'm writing an application for android for which I need good position accuracy, I use a Galaxy Nexus as test device. My test application subscribes to location updates and draws a car symbol in a map, the map is centered to the location of the car rotates according to the bearing of the location (exactly like google maps on android does). I noticed that when up to speed, the positions don't match with reality, they lag behind considerably. When I cross a street at 90km/h for example, it will take a few seconds before the car on the map is also crossing that street. It isn't an error in the map data, because when I'm standing still, the car gets drawn on the correct location. Google maps for android shows exactly the same behavior. The position of the car in Google Navigate on the other hand matches reality rather closely. I've noticed that the position updates are a lot smoother as well. (10Hz rather than the 1Hz updates which you get from GPS) My question is: how do they do it? What I can think of is: - using the phone's sensors (gyro accelero) together with a kalman filter or similar. But I can't see how you could make that work for every phone, since not all phones have these sensors. - interpolating, but in that case I would expect overshooting when there is a sudden stop or a sharp corner Thanks in advance. Bushido -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Hi Developers:
You realize that your sarcasm is lost on these people, right? On Jul 27, 2012 2:24 PM, Justin Anderson magouyaw...@gmail.com wrote: I know you are a nice guy and always do the search on other's behalf but I think the best response is to not respond at all just like everyone else here. If the poster is not smart enough to first try the options that are already available to him/her then he/she does not deserve even a second of your time. My nice guy comment was supposed to come across sarcastic... I respond to these posts because unless you actually tell people who post questions like this to go and do the work on their own they usually just keep spamming the list with pointless questions. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Jul 27, 2012 at 12:18 PM, Nadeem Hasan nha...@nadmm.com wrote: I know you are a nice guy and always do the search on other's behalf but I think the best response is to not respond at all just like everyone else here. If the poster is not smart enough to first try the options that are already available to him/her then he/she does not deserve even a second of your time. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Hi Developers:
Justin, I know you are a nice guy and always do the search on other's behalf but I think the best response is to not respond at all just like everyone else here. If the poster is not smart enough to first try the options that are already available to him/her then he/she does not deserve even a second of your time. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Align ListView to the right
Lim, You are looking at the wrong place. What you should worry about is the alignment (gravity) of the list item not the listview itself. Make the listview layout_width=match_parent with a layout_marginRight=100dp right margin. Then for the textview of your listitem, set layout_width=match_parent and gravity=right. Justin and Nick tried to set you on the right course but you ignored them. Aprido, Take a break. You thinking too fast and not helping him at all. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: GPS in android application
Did you try creating an RFCOMM session and reading the NMEA sentences directly from the device? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Safe to add Fragment into ListView?
Why don't you factor out the functionality into a custom widget and use it in both the listview and fragment? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Associate app with Email attachement
And how will the system know to map any file to this custom mimetype? You can register an intent filter with your own custom mimetype but that won't do anything at all. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: why am I receiving location updates without WakeLock if the device is put to sleep?
Your phone is using wifi as the location source. If wifi is set to stay up during phone sleep, LocationManager will continue to provide updates unless you remove your location update subscription in onSuspend(). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Google Play statistics
Stats are only updated overnight and are very erratic at times. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android application StartUp Internals
The view provided in setContentView() is only that, the content part of the activity. The system creates the top-level view along with any optional chrome (titlebar/actionbar) and a top-level FrameLayout within which the content view you set is displayed. If you don't call setContentView(), you will see the title-bar (optional) and the empty top-level FrameLayout. These details may change with Android versions though. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: [android developers] how to use a viewpager in a fragment?
I use Fragments+ViewPager+ViewPageIndicator in my app. Hope you would find it helpful: https://github.com/nhasan/Airports/blob/master/src/com/nadmm/airports/wx/WxDetailActivity.java https://github.com/nhasan/Airports/blob/master/src/com/nadmm/airports/utils/TabsAdapter.java ViewPageIndicator library by Jake Wharton: http://viewpagerindicator.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Hidden fragments (and animations) after a rotation
3/ In your code you re-add the Fragment to the container even if it was found. It doesn't do harm, but this is unnecessary because the framework already does it for you. The FragmentTransaction should be inside the if. You are right, the fragment needs to be added to the container only the first time. Fixed in my code. 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: Hidden fragments (and animations) after a rotation
I am not exactly sure if this is the cause of your problem but your fragment creation code is flawed. When you use *setRetainInstance(true)* you don't need to create the fragment every time the activity is created. Also, I don't know why you check for saveInstance to be null. When the phone is rotated you should just retrieve the existing fragment instance from the FragmentManager. I use something like below in mu base Activity: protected Fragment addFragment( Class? clss ) { String tag = clss.getSimpleName(); FragmentManager fm = getSupportFragmentManager(); Fragment f = fm.findFragmentByTag( tag ); if ( f == null ) { f = Fragment.instantiate( this, clss.getName() ); } FragmentTransaction ft = fm.beginTransaction(); ft.add( R.id.fragment_container, f, tag ); ft.commit(); return f; } And then in onCreate() of my Activity I simply call: MyFragment f = addFragment( MyFragment.class ); This means that a Fragment instance is created the first time the Activity is created but on any subsequent rotations, the existing Fragment instance is retrieved from the FragmentManager is attached to the activity. Your code creates a new Fragment instance every time the device is rotated, which may lead to other issues like Fragment instances with no attached Activity. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to integrate broadcastreceiver functionality in service class
I think there is another forum specifically for people trying to write spy applications on Android. I am unable to recall where. Or maybe I saw it when I was dreaming in my sleep. I just don't seem to remember. Oh and reading the docs to understand basic framework concepts also 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
Re: [android-developers] AsyncTask in Android 4.0
My app targets sdk 15 (tested on CM9) and uses AsyncTask in every activity but only one at a time. Explains why I did not notice the change. I agree that this change deserves better documentation in the API reference in addition to a blog post. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Write storage on Samsung Galaxy Tab 7.7
That hasn't stopped many devices from making the removable storage their primary one. But if this is by design, I'd like to link to the design philosophy document. Maybe I can send that to the users. I can't find anything official, though. If the other devices are going to be unwriteable 90% of the time, I can't spend much more time on it. I find it hard to believe that devices exist that treat removable storage as primary. If your app/users need to create very large files, you need devices with huge amounts of internal storage or you need to work out an alternate mechanism such as cloud storage. Handheld portable devices are not general purpose computers (yet). You should not expect to use them as one. I do no subscribe to that philosophy. Compared to computers of not very many years ago, 2Gig or 8gig is already lots of space. If there is another card slot, users are going to put a 32gig SD card. In practice, it is not removed all that often. It is only natural that users expect apps to be able to use that space. Then they find out some can and some can't. At the same rate, the storage demand of a typical user has gone up. Today we have a need to store gigabytes of media files (music, pictures and videos) which did not exist many years ago so 8 gigs is not a lot of space anymore. Did we have 8 megapixel cameras in devices or ability to view HD videos a few years ago? I agree that it would be great to have ability to discover the removable storage in a sane and predictable manner but as I said, it looks like the platform wants to treat the removable storage as a transient readonly storage for media files. I understand by now that I don't have any say, but this idea of tight, arbitrary control of what content a user puts on their own storage volume seems more Apple like than Android like. Apple users don't, in general, have file access to their own volume, so Android *could* be very competitive in this area. But at present, we are frustrating users enough that they are crawling back to iOS. Funny you mention iOS in this context when you don't even have *any* removable storage in devices running iOS. So what is the reason the users are crawling back to iOS? What is it buying 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] Re: Write storage on Samsung Galaxy Tab 7.7
On Tuesday, April 17, 2012 7:44:34 PM UTC-4, Kostya Vasilyev wrote: It also hasn't prevented from existing a few hundred million devices with removable, writable, user controllable and understandable, officially supported external microsd memory cards. Yes, I'm talking about phones running Android 1.* through 2.*. Does anyone remember those? Incidentally, they still account for something like 95% of all current Android devices. I am not sure what you mean here. How do you discover the removable storage through the pre-3.x API in the first place? And how are you going to make sure that the user is not going to yank out the sd card in the middle of a write operation possibly corrupting the entire filesystem? When you say officially supported external sd card, what kind of support are you implying? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Write storage on Samsung Galaxy Tab 7.7
Environment.getExternalStorageDirectory() returns the non-removable external memory location. But I see what you mean, on devices with only removable external memory, it could return that location. However, the point remains that the framework only considers one external storage as general purpose R/W storage. Let me make it clear, I am not against the ability for the API to return all the available external storage locations. I am merely pointing out the possible rationale behind the decisions in the system. I think the same rationales were behind the swith to MTP access in ICS in lieu of USB mass storage access. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Write storage on Samsung Galaxy Tab 7.7
On Wednesday, April 18, 2012 12:55:00 PM UTC-4, digi owl wrote: Seems to me like what has happened is that manufacturers have cooped a feature that was supposed to be for removable storage to support larger non-removable capacity (a simple way to upsell). In the process, we have found ourselves with partitioned internal storage (to allow USB file transfer) and the current mess. I still find it interesting that the 3.2 documentation should mention using MTP to read cards tho. I think you are right. I overlooked this possibility and it makes a lot of sense. My entire reasoning that the removable storage was designed for media files only was not correct. There was only supposed to be one external storage location and the API was designed that way but the device manufacturers have changed the game by creating this removable and non-removable distinction. I think the future Android API needs to take this into account but we would still be left with millions of devices running the current versions of Android with no decent solution. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Write storage on Samsung Galaxy Tab 7.7
Thanks. Very interesting indeed. I see that there is a long history with this. Anyway I see a direct contradiction is Dianne's responses: *The current CDD requires that the API return the directory of the primary external storage, that is the one you can count on always being there, that is the internal storage partition of such devices. * * * and this *...it makes perfect sense for the original device configurations where all media storage was on the external SD card. When manufacturers started putting that storage into the internal device, the name became unfortunate. * The CDD requires that external storage be non-removable and at the same time the API expected it to be removable? Looks like this thing was very poorly thought out from the beginning the Android team and made worse by device manufacturers. Also IMHO, the reference to StorageManager is a red herring. It deals with application specific optionally encrypted filesystem not the general purpose R/W storage being discussed. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Unable to open Html file using intent in deafult browser
Mike, I think you are on the wrong list :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Unable to open Html file using intent in deafult browser
*The Web page at ontent://com.android.htmlprovider/sdcard/company info.html?test/html could not be loaded as: Th request file was not found.* The URL looks malformed to me. The scheme part is ontent? Or is this a copy/paste issue? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Unable to open Html file using intent in deafult browser
Also, see this: http://android.stackexchange.com/questions/4775/how-can-i-open-an-html-file-i-have-copied-from-pc-to-sd-card-of-phone -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Write storage on Samsung Galaxy Tab 7.7
I think this behavior does make some sense. The non-removable external storage is what the platform expects the apps to use to read/write arbitrary files. So this location is made visible to the apps via the Environment API. The removable external storage is expected to be used to swap in/out media files by the users. As such, applications don't have direct access to it but the media scanner does and makes them available to users via the media player applications. The removable external storage by design is not made available to applications for general purpose storage simply because it's not expected to be present all the time and is explicitly intended for read-only media files. If your app/users need to create very large files, you need devices with huge amounts of internal storage or you need to work out an alternate mechanism such as cloud storage. Handheld portable devices are not general purpose computers (yet). You should not expect to use them as one. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Ubuntu Eclipse - Repos or Manual install?
I use Eclipse on Kubuntu 12.04 installed from repo. Works fine. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 use Google Maps in Android Apps
To me it looks like you have been sent here to spread FUD. You have not clearly defined what your *technical* problems are. You are throwing around conjectures and at every point praise WP7 for some imagined merits. You claimed that this forum sucks when it was your fault for not being clear with your request for help. You sound like a hired help to promote WP7 and Bing maps. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 use Google Maps in Android Apps
No, I don't hate you and not going to. If this discussion took place from your side entirely in earnest as it looks like, I don't think anybody would mind in the end. Live and learn. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: app sales dropped dramatically in the past few days
I have a free app and been seeing a marked reduction in daily installs for a few days. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Stop listview from updating previous items and only update current items
And that too yes. Good catch. I did see the two layouts but was too focused on the issue reported. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Stop listview from updating previous items and only update current items
As it has already been pointed, there are several things wrong with that small piece of code. You should go back and read more about listviews in 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
[android-developers] Re: Stop listview from updating previous items and only update current items
The MarkChat.Name.get() returns the same value for all your list items. That is causing the name to be the same for all items. It should return the name based on the position of the item in the adapter. Also, as Justin noted, your ViewHolder usage seems to be incorrect. Try something like below: *if* (convertView == null) { h = new ViewHolder(); v = mInflater.inflate(R.layout.oddbubble, null); h.title = (TextView) v.findViewById(R.id.BuddyTitle); h.body = (TextView) v.findViewById(R.id.BuddyMessage); v.setTag(h); } *else* { h = convertView.getTag(); } h.body.setText(groupsMessage.get(position)); h.title.setText(MarkChat.Name.get(position)); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Stop listview from updating previous items and only update current items
Justin, You are right. In that case, I think the culprit is the flag. It is supposed to be true for incoming and false for outgoing. But, it remains static while listview is building its items. I think this flag should be in the adapter along with message. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Getting Acquired: Selling Apps and Games to a Business/Investor
- Does Google currently facilitate the transfer of acquired apps/games from one developer account to another? No. They only care about your developer account and signing key. - If so, what are the requirements? - If not, is this something Google may plan for the future? Am I going to win Mega million jackpot this time? - Does Google recommend any best practices for Android Developers so that they may one day sell their app with minimal complications? Perhaps creating a separate dev account for each account, or signing each app with a different key, or any other practices? No. And why should they. See the answer to the first question. - Can a developer change the signing key of an app upon request or through any automated means? There is no way a signing key could be changed either manually or automated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: difference between service and thread android
It's like asking what is the difference between apples and oranges. Did you even bother to read the developer docs about services and threads? It should be clear if you take time to read. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Getting Acquired: Selling Apps and Games to a Business/Investor
On Wednesday, March 28, 2012 10:20:22 AM UTC-4, Rob Jackson wrote: Google generates revenue by facilitating a marketplace for these goods to be bought and sold, and to be quite honest, transferring ownership of an app should be no more foreign a concept than a registrar allowing the transfer of a domain name. Because that is one of the the primary business function of a registrar. Primary business function of Google play is to facilitate buying and selling of application not the application ownership. However sarcastic your response, thanks for replying. I was actually trying to be funny since you are trying to create a story where no story exists. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Getting Acquired: Selling Apps and Games to a Business/Investor
On Wednesday, March 28, 2012 10:45:27 AM UTC-4, Rob Jackson wrote: And Nadeem, I certainly appreciate hearing all angles/opinions, but perhaps you should be a bit more open minded regarding the possibility that other people have different opinions than you're own? And they might be right? I know (first hand) of app developers facing issues/problems with this, which is why I began researching in the first place. Of course there could be a few developers facing this issue. But as I said, I don't see Google getting involved in this. There is a lot of history that would validate this. Nothing to do with me being open minded or not, just simple facts that have come to pass. To say it's a non story is a bit premature. And given the above, probably wrong. In the very least I think it's an interesting discussion. It may be premature but nothing I have seen in this discussion that would make it wrong. And I agree, it is an interesting discussion but one that does not belong here. This a place for technical matters regarding Android development. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Missing classes when running in emulator (new to R17)
Rename your lib directory to libs. Clean and rebuild the project and try again. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] write addPreferencesFromResource(R.xml.preferences); without extending preferenceactivity
It would really help if you learned a bit more about Java. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Need help fine tuning gmail like ListView.
The above should work for you very well. Also, consider using RelativeLayout instead of the deeply nested layout that you have. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Android Project development cost
You are not taking this seriously are you? Because none of us are. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Please Help me! I have SQLiteDatabaseCorruption Error
How are you ensuring that they are being reassembled in the same order? From the code, it looks like you just get a list of all the files in the assets directory and concatenate them in the order they were returned by the API. This order may or may not be the same as the natural order of these files. This probably explains why it works sometimes but not always. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Please Help me! I have SQLiteDatabaseCorruption Error
Then copy the corrupted file to your desktop and do a binary compare with the original. This may give you some clues about what is going wrong. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Android adb permision error
Make sure you have the correct Vendor id listed for your device. Use lsusb to get this. Then make sure you are a member of the group that gets the permission (plugdev in this case). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Android Project development cost
I will do it for $85/hr with no extra charge for any ending of your choice. Don't you love competition. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: io.vov.vitamio.VitamioInstaller$VitamioNotCompatibleException
From their FAQ: Q: What does VitamioInstaller.VitamioNotCompatibleException mean ? A: A VitamioInstaller.VitamioNotCompatibleException indicates that you're using a device which is not supported by Vitamio. By now, Vitamio can work with most ARMv6 and ARMv7 based devices, but not x86/MIPS/ARMv5 devices. However, most Android devices are build upon ARM CPU. The Android emulator is a specialized ARMv5 based 'device' which is not supported. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Casting string as a class (ie. RadioButton)
In your base Activity class, add this: protected RadioButton findRadioButtonById( int id ) { return (RadioButton) findViewById( id ); } This could of course throw an exception if the id does not represent a RadioButton. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Casting string as a class (ie. RadioButton)
All this is fine but OP needs to take a step back and ask himself why he needs to use a string as an identifier? In Android, numeric resource ids serve the same purpose and are already defined for you by the resource compiler. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Correct unit of Sensor.getPower() ?
JP, You ask a question and then insult the only person who tries to help with a very pointed (and correct) answer. The power in VA is meaningless in this context as the battery capacity is always given in terms of mAH. Please notice that voltage is missing here since it does not matter. What matters is how long a a battery can supply a given current at its rated voltage. 3800mAH means that it can supply 3800mA for 1 hour. Knowing this it makes sense now that the API is providing the current drain as a metric of power consumption. You can now calculate how much effect it will have on the battery life as a function of time. API providing you with wattage or VA figure would be completely useless. Please be more humble next time around or get your answers yourself. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: opening pdf in my projects' raw folder in droidreader or any pdf reader
#3 is the best option. Every time you need to show the file, check if it exists on the SD card, if it does just send the path to the reader other wise copy it first. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: opening pdf in my projects' raw folder in droidreader or any pdf reader
Needless to say #1 and #2 are not even possible. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Ad framework.
Why are you answering if you don't have an answer? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: content provider locking?
Use the work queue processor pattern inherently present in IntentService where all the request are serialized into a FIFO queue. Let the refresh logic and the content provider send intents to the service with distinct actions and you can be sure that they won't be fighting with each other. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 read the large sized text file
Do the same think but in an AsyncTask and read in chunks instead of reading the whole asset into a buffer like in the demo. This approach would scale very well. Of course, I am assuming that what you want to do with that asset is compatible with chunked processing. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 read the large sized text file
I don't have any sample code but I think I gave you enough information to try it out yourself. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Any way to change one color to another on a bitmap?
How about: d.setColorFilter( color, PorterDuff.Mode.SRC_ATOP ); * * -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: fragment transactions in onLoadFinished()
I have this in my base Activity: protected View createContentView( int id ) { View view = inflate( id ); return createContentView( view ); } public View createContentView( View view ) { FrameLayout root = new FrameLayout( this ); root.setLayoutParams(new FrameLayout.LayoutParams( ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT ) ); LinearLayout pframe = new LinearLayout( this ); pframe.setId( R.id.INTERNAL_PROGRESS_CONTAINER_ID ); pframe.setOrientation( LinearLayout.VERTICAL ); pframe.setGravity( Gravity.CENTER ); ProgressBar progress = new ProgressBar( this, null, android.R.attr.progressBarStyleLarge ); pframe.addView( progress, new FrameLayout.LayoutParams( ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT ) ); root.addView( pframe, new FrameLayout.LayoutParams( ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT ) ); FrameLayout lframe = new FrameLayout( this ); lframe.setId( R.id.INTERNAL_FRAGMENT_CONTAINER_ID ); lframe.setVisibility( View.GONE ); lframe.addView( view, new FrameLayout.LayoutParams( ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT ) ); root.addView( lframe, new FrameLayout.LayoutParams( ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT ) ); return root; } public void setContentShown( View view, boolean shown ) { View progress = view.findViewById( R.id.INTERNAL_PROGRESS_CONTAINER_ID ); View content = view.findViewById( R.id.INTERNAL_FRAGMENT_CONTAINER_ID ); if ( shown ) { progress.startAnimation( AnimationUtils.loadAnimation( this, R.anim.fade_out ) ); content.startAnimation( AnimationUtils.loadAnimation( this, R.anim.fade_in ) ); progress.setVisibility( View.GONE ); content.setVisibility( View.VISIBLE ); } else { progress.startAnimation( AnimationUtils.loadAnimation( this, R.anim.fade_in ) ); content.startAnimation( AnimationUtils.loadAnimation( this, R.anim.fade_out ) ); progress.setVisibility( View.VISIBLE ); content.setVisibility( View.GONE ); } } protected void setContentShown( boolean shown ) { View root = findViewById( android.R.id.content ); setContentShown( root, shown ); } Then in my Fragment I do the following: @Override public View onCreateView( LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState ) { View view = inflater.inflate( R.layout.detail_view, container, false ); return createContentView( view ); } Here detail_view is the actual content layout. When my data is ready, I populate it in detail_view and then call: setContentShown( true ); Hope this helps. BTW, this is fully inspired by ListFragment implementation of content. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android ProgressBar with threads
You want to wait for 5 sec before launching just so that you can show a progress bar and appear to be doing something important? If you do, just use a handler instantiated in the activity and post a runnable in the thread which calls setProgress(). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Unable to get Latitude, Longitude of Current location
You are running this in the emulator right? The emulator does not have GPS hardware (duh) so the only way for the Location api to return a location is to provide it to it via adb as you just found out. On the other hand if you are running on an actual device, no idea. Make sure GPS is turned on and getting a fix? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ListActivity, Cursor, and CursorAdapter
Use the cursor position by calling Cursor.getPosition(). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: display db columns into a listview
Use a ResourceCursorAdapter and override bindView(). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Strange behaviour with RessourceCursorAdapter
How about posting the relevant code here so people can actually try to 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: Strange behaviour with RessourceCursorAdapter
Try the following in bindView(): ImageView tvRecurent = (ImageView) view.findViewById( R.id.isrecurentimg ); int visibility =( cursor.getInt( cursor.getColumnIndex( fk_reccurent ) ) == DatabaseWrapper.NO_RECCURENCY )? View.VISIBLE : View.INVISIBLE; tvRecurent.setVisibility( visibility ); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] App review
You would be surprised :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Tracing Geo Location and saving them into file from start of a cal to end call duration
Are there so many people writing Android apps for the spy agencies? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Accessing Objects created in Service from Activity
I am not quite so sure it was uncalled for. There are other people on this list who want to do such invasive things as recording phone conversations. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: unable to resize a button at onCreate() method of new activity
You need to allow the gui thread to finish the layout and display the views before their metrics are set. Use Handler.postDelayed() to run your code. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] DNS records
That is too easy :) Just read the following RFC and implement relevant parts: http://tools.ietf.org/html/rfc1035 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: unable to resize a button at onCreate() method of new activity
That would be an option but judging by what he is trying to do I don't think he is at a stage where he can write his own custom layout classes at the moment :) You have to tailor the response according to the audience. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: unable to resize a button at onCreate() method of new activity
Agreed. But he also would like to learn how to use Handlers and do operations in the gui thread ;) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 detect if text was entered through physical keyboard?
Or...let the user specify which one he would be using. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ProgressDialog results in a FC
Are you calling this activity using startActivity(intent)? or are you explicitly calling the onCreate() from your GolfCaddie activity? If the latter then it will not work as you are bypassing a lot of activity setup logic that is needed. Using DBHelper.this as the context will not work as the context is not setup properly. Overall, DBHelper should not be an activity. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ProgressDialog results in a FC
Another issue is that even if it was working, the progress dialog would never show up as you are blocking the GUI thread. You should use an AsyncTask and show the progress dialog in onPreExecute(), do all the db operations in doInBackground() and dismiss the dialog in onPostExecute(). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ProgressDialog results in a FC
You must be passing the DBHelper.this as the Context parameter when it clearly would not be if DBHelper was not an Activity. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ProgressDialog results in a FC
DBHelper should take the Context object as a parameter in the ctor. Use this passed context in the call to ProgressDialog.show(). When you instantiate the DBHelper object in GolfCaddie activity, pass this as the parameter in the ctor. Also make sure you call the DBHelper method to create the db in an AsyncTask as I explained earlier. The said AsyncTask should be in GolfCaddie Activity. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: About Android Application Development
Why do people come here expecting others to teach them Android programming? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: finishActivity() does not stop child activity
Is your proxy activity getting destroyed when it starts the 3rd party activity? This could be related to the lifecycle of your proxy activity. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Creating SQLite DB
Not strictly. You can always use the projection map. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en