Re: [android-developers] simulate just onPause() without onStop()

2012-08-22 Thread Nadeem Hasan
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

[android-developers] Re: how to ship data into apk as internal storage

2012-08-16 Thread Nadeem Hasan
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,

Re: [android-developers] Re: How could i check the android device is rooted or not?

2012-08-13 Thread Nadeem Hasan
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. */

Re: [android-developers] Re: How to dynamically change row layout of list view on click event

2012-08-13 Thread Nadeem Hasan
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

[android-developers] Re: how to achieve the accuracy of google navigation

2012-08-06 Thread Nadeem Hasan
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

Re: [android-developers] Overlay item in ImageView

2012-08-03 Thread Nadeem Hasan
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

[android-developers] Re: how to achieve the accuracy of google navigation

2012-08-03 Thread Nadeem Hasan
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

Re: [android-developers] Hi Developers:

2012-07-28 Thread Nadeem Hasan
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

Re: [android-developers] Hi Developers:

2012-07-27 Thread Nadeem Hasan
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

Re: [android-developers] Align ListView to the right

2012-07-26 Thread Nadeem Hasan
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

[android-developers] Re: GPS in android application

2012-07-23 Thread Nadeem Hasan
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

[android-developers] Re: Safe to add Fragment into ListView?

2012-05-14 Thread Nadeem Hasan
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

[android-developers] Re: Associate app with Email attachement

2012-05-14 Thread Nadeem Hasan
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,

[android-developers] Re: why am I receiving location updates without WakeLock if the device is put to sleep?

2012-05-09 Thread Nadeem Hasan
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] Re: Google Play statistics

2012-04-30 Thread Nadeem Hasan
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] Re: Android application StartUp Internals

2012-04-27 Thread Nadeem Hasan
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(),

[android-developers] Re: [android developers] how to use a viewpager in a fragment?

2012-04-24 Thread Nadeem Hasan
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

[android-developers] Re: Hidden fragments (and animations) after a rotation

2012-04-21 Thread Nadeem Hasan
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

[android-developers] Re: Hidden fragments (and animations) after a rotation

2012-04-20 Thread Nadeem Hasan
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

Re: [android-developers] how to integrate broadcastreceiver functionality in service class

2012-04-20 Thread Nadeem Hasan
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

Re: [android-developers] AsyncTask in Android 4.0

2012-04-20 Thread Nadeem Hasan
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

Re: [android-developers] Re: Write storage on Samsung Galaxy Tab 7.7

2012-04-18 Thread Nadeem Hasan
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

Re: [android-developers] Re: Write storage on Samsung Galaxy Tab 7.7

2012-04-18 Thread Nadeem Hasan
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

Re: [android-developers] Re: Write storage on Samsung Galaxy Tab 7.7

2012-04-18 Thread Nadeem Hasan
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

Re: [android-developers] Re: Write storage on Samsung Galaxy Tab 7.7

2012-04-18 Thread Nadeem Hasan
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

Re: [android-developers] Re: Write storage on Samsung Galaxy Tab 7.7

2012-04-18 Thread Nadeem Hasan
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

[android-developers] Re: Unable to open Html file using intent in deafult browser

2012-04-18 Thread Nadeem Hasan
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] Re: Unable to open Html file using intent in deafult browser

2012-04-18 Thread Nadeem Hasan
*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

[android-developers] Re: Unable to open Html file using intent in deafult browser

2012-04-18 Thread Nadeem Hasan
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

Re: [android-developers] Re: Write storage on Samsung Galaxy Tab 7.7

2012-04-17 Thread Nadeem Hasan
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

Re: [android-developers] Ubuntu Eclipse - Repos or Manual install?

2012-04-16 Thread Nadeem Hasan
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] Re: How can I use Google Maps in Android Apps

2012-04-08 Thread Nadeem Hasan
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

[android-developers] Re: How can I use Google Maps in Android Apps

2012-04-08 Thread Nadeem Hasan
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

[android-developers] Re: app sales dropped dramatically in the past few days

2012-03-30 Thread Nadeem Hasan
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,

Re: [android-developers] Re: Stop listview from updating previous items and only update current items

2012-03-30 Thread Nadeem Hasan
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

Re: [android-developers] Re: Stop listview from updating previous items and only update current items

2012-03-30 Thread Nadeem Hasan
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] Re: Stop listview from updating previous items and only update current items

2012-03-29 Thread Nadeem Hasan
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

Re: [android-developers] Re: Stop listview from updating previous items and only update current items

2012-03-29 Thread Nadeem Hasan
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

[android-developers] Re: Getting Acquired: Selling Apps and Games to a Business/Investor

2012-03-28 Thread Nadeem Hasan
- 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

[android-developers] Re: difference between service and thread android

2012-03-28 Thread Nadeem Hasan
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

Re: [android-developers] Re: Getting Acquired: Selling Apps and Games to a Business/Investor

2012-03-28 Thread Nadeem Hasan
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

Re: [android-developers] Re: Getting Acquired: Selling Apps and Games to a Business/Investor

2012-03-28 Thread Nadeem Hasan
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

[android-developers] Re: Missing classes when running in emulator (new to R17)

2012-03-28 Thread Nadeem Hasan
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

Re: [android-developers] write addPreferencesFromResource(R.xml.preferences); without extending preferenceactivity

2012-03-28 Thread Nadeem Hasan
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] Re: Need help fine tuning gmail like ListView.

2012-03-23 Thread Nadeem Hasan
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

Re: [android-developers] Re: Android Project development cost

2012-03-22 Thread Nadeem Hasan
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] Re: Please Help me! I have SQLiteDatabaseCorruption Error

2012-03-22 Thread Nadeem Hasan
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

[android-developers] Re: Please Help me! I have SQLiteDatabaseCorruption Error

2012-03-22 Thread Nadeem Hasan
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

Re: [android-developers] Re: Android adb permision error

2012-03-21 Thread Nadeem Hasan
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

Re: [android-developers] Re: Android Project development cost

2012-03-21 Thread Nadeem Hasan
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

[android-developers] Re: io.vov.vitamio.VitamioInstaller$VitamioNotCompatibleException

2012-03-21 Thread Nadeem Hasan
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

Re: [android-developers] Casting string as a class (ie. RadioButton)

2012-03-20 Thread Nadeem Hasan
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

Re: [android-developers] Casting string as a class (ie. RadioButton)

2012-03-20 Thread Nadeem Hasan
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

[android-developers] Re: Correct unit of Sensor.getPower() ?

2012-03-15 Thread Nadeem Hasan
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

[android-developers] Re: opening pdf in my projects' raw folder in droidreader or any pdf reader

2012-03-12 Thread Nadeem Hasan
#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,

[android-developers] Re: opening pdf in my projects' raw folder in droidreader or any pdf reader

2012-03-12 Thread Nadeem Hasan
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

Re: [android-developers] Re: Ad framework.

2012-03-12 Thread Nadeem Hasan
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] Re: content provider locking?

2012-03-08 Thread Nadeem Hasan
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. --

[android-developers] Re: How to read the large sized text file

2012-03-08 Thread Nadeem Hasan
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

Re: [android-developers] Re: How to read the large sized text file

2012-03-08 Thread Nadeem Hasan
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

[android-developers] Re: Any way to change one color to another on a bitmap?

2012-03-05 Thread Nadeem Hasan
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] Re: fragment transactions in onLoadFinished()

2012-02-29 Thread Nadeem Hasan
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 );

[android-developers] Re: Android ProgressBar with threads

2012-02-14 Thread Nadeem Hasan
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

[android-developers] Re: Unable to get Latitude, Longitude of Current location

2011-06-22 Thread Nadeem Hasan
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

[android-developers] Re: ListActivity, Cursor, and CursorAdapter

2011-04-07 Thread Nadeem Hasan
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] Re: display db columns into a listview

2011-03-24 Thread Nadeem Hasan
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] Re: Strange behaviour with RessourceCursorAdapter

2011-03-24 Thread Nadeem Hasan
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

[android-developers] Re: Strange behaviour with RessourceCursorAdapter

2011-03-24 Thread Nadeem Hasan
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 ); --

Re: [android-developers] App review

2011-03-23 Thread Nadeem Hasan
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

Re: [android-developers] Re: Tracing Geo Location and saving them into file from start of a cal to end call duration

2011-03-18 Thread Nadeem Hasan
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

Re: [android-developers] Re: Accessing Objects created in Service from Activity

2011-03-17 Thread Nadeem Hasan
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] Re: unable to resize a button at onCreate() method of new activity

2011-03-17 Thread Nadeem Hasan
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

Re: [android-developers] DNS records

2011-03-17 Thread Nadeem Hasan
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

Re: [android-developers] Re: unable to resize a button at onCreate() method of new activity

2011-03-17 Thread Nadeem Hasan
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

Re: [android-developers] Re: unable to resize a button at onCreate() method of new activity

2011-03-17 Thread Nadeem Hasan
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

[android-developers] Re: How to detect if text was entered through physical keyboard?

2011-03-17 Thread Nadeem Hasan
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] Re: ProgressDialog results in a FC

2011-03-16 Thread Nadeem Hasan
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

[android-developers] Re: ProgressDialog results in a FC

2011-03-16 Thread Nadeem Hasan
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

Re: [android-developers] Re: ProgressDialog results in a FC

2011-03-16 Thread Nadeem Hasan
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

Re: [android-developers] Re: ProgressDialog results in a FC

2011-03-16 Thread Nadeem Hasan
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

[android-developers] Re: About Android Application Development

2011-03-15 Thread Nadeem Hasan
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

[android-developers] Re: finishActivity() does not stop child activity

2011-03-15 Thread Nadeem Hasan
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

Re: [android-developers] Creating SQLite DB

2011-03-14 Thread Nadeem Hasan
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