[android-developers] How to replace free version by paid version of app

2012-10-12 Thread Bajrang Asthana
Hi, I am newbie in android.We have decided to launch our product in two versions i.e. free and paid. We have used concept of shared library to segregate free and paid version. could anyone please suggest how can we uninstall free version app by paid version or is it done automatically?

[android-developers] Problem while deleting browser history from doInBackground method of AsyncTask

2012-10-13 Thread Bajrang Asthana
I am facing very strange problem.I am working on app which clears browser history ,clipboard etc. I am doing all the clearing stuff through AsyncTask but getting error. Here is my code which i am using to clear browser history *Browser.clearHistory(mApp.getContentResolver());

[android-developers] Problem while updating adapter from AsyncTask

2012-11-03 Thread Bajrang Asthana
I am getting below error while updating adapter from AsyncTask - java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread.

Re: [android-developers] Problem while updating adapter from AsyncTask

2012-11-03 Thread Bajrang Asthana
in onPostExecute(), and make sure that either the adapter calls notifyDataSetChanged() or you call notifyDataSetChanged() on the adapter. On Sat, Nov 3, 2012 at 10:15 AM, Bajrang Asthana asthana...@gmail.com javascript: wrote: I am getting below error while updating adapter from AsyncTask

Re: [android-developers] Problem while updating adapter from AsyncTask

2012-11-04 Thread Bajrang Asthana
in a background thread as well? On Sunday, November 4, 2012 6:55:33 AM UTC+2, Bajrang Asthana wrote: Yes I am updating adapter in onPostExecute() method (as it runs in UI thread). In onPostExecute() method i am simply calling adpater.notifyDataSetChanged(). On Saturday, November 3, 2012 7:58:29

Re: [android-developers] Problem while updating adapter from AsyncTask

2012-11-05 Thread Bajrang Asthana
Thanks Piren! Actually in doInBackground method - I am fetching icons of all installed apps and replacing the default icon( which I had set while creating list to show all installed apps) with new one. Once I am done with this I am simply notifying to adapter for data set change inside the

Re: [android-developers] Problem while updating adapter from AsyncTask

2012-11-05 Thread Bajrang Asthana
Yes I did that and work fine. I added all the changes in temporary object and then updated the content of adapter and notified it in postExecute() method. Thanks to All :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Creating Horizontal sliding effect between various activities in android

2012-11-06 Thread Bajrang Asthana
Hi all, I am having multiple activities(screens) having different functionalities. I want to know how i can develop a Horizontal sliding effect to navigate between activities. We are using links at present so we want to replace it with Horizontal sliding of activities. Thank you --

[android-developers] Re: Creating Horizontal sliding effect between various activities in android

2012-11-07 Thread Bajrang Asthana
Thanks Piren :) * * -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For

[android-developers] Converting existing activities into fragments

2012-11-07 Thread Bajrang Asthana
Hi , Actually I want to add sliding functionality among existing activities. I did some RD and found that we can do it using ViewPager. But to use ViewPager I have to create my all activities into corresponding fragments. Initially it looks that we can convert activity into fragment. Is

[android-developers] Problem while displaying same list which is initialized in parent fragment into two different sub childs fragments

2012-11-21 Thread Bajrang Asthana
I am implementing swipe functionality using ViewPager and want to display same list in two fragments which is initialized in parent fragment . I am having 1) One base Fragment 2) Two child fragments 3) One activity(FragmentActivity) in which adding two child fragments through ViewPager

[android-developers] How to start service at boot time?

2012-12-11 Thread Bajrang Asthana
Hi, I want to know how to start service at boot time? I am wondering how do apps like Easy Battery Saver or Open Advanced Task Killer work? They must be starting at boot time because we don’t see their UI when we boot the device. Also they must be somehow taking care that they are not killed

[android-developers] Find the list of all apps which can be moved to SD card out of all installed apps

2012-12-13 Thread Bajrang Asthana
I have a requirement where I want to show the list of all apps which are installed on device. And corresponding to the list of all the applications i want to show an image sort of where the user can know that this application is movable to SD card. Currently I am accessing these values from

[android-developers] How to fetch size of history of default browser,Google Maps, Android Market

2012-12-18 Thread Bajrang Asthana
I want to show the history size of all below item in KB- Default browser, Google Maps, Android Market However I have seen that BrowserActivity is showing cache size info. But How can I access it. Thanks in advance -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: Access cache size of browser activity

2012-12-18 Thread Bajrang Asthana
://developer.android.com/reference/android/content/pm/PackageStats.html On Tuesday, December 18, 2012 12:47:39 PM UTC, Bajrang Asthana wrote: I want to fetch cache size of browser activity. As we open info of any app from manage application there is one section which gives information about cache size

[android-developers] Sluggish UI response

2013-01-02 Thread Bajrang Asthana
HI All, I have a requirement where I need to update text of TextView at regular interval of time( say in each 1 sec). I am doing this with help of handler but it is decreasing performance of overall UI widgets. I am doing following thing- Handler handler=new Handler(); UpdateTasK

[android-developers] Rollback mechanism of Logcat in android

2013-02-05 Thread Bajrang Asthana
I am interested to know after what time or size Logcat file of device rollbacks. Actually I am reading some of the information from it. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Get sorted list android applications on basis of rarely used

2013-02-05 Thread Bajrang Asthana
Hi , I want to get a list of android applications on basis of rarely used. I am not getting how can we access last run time of application. I thought it could be possible through reading of logcat file. But looking on log file of device, I found that the first entry of logcat is of 2 days

[android-developers] Get full size of insatlled applications

2013-02-07 Thread Bajrang Asthana
I'm trying to figure out how to get the size of an installed. I read this article http://www-jo.se/f.pfleger/android-package-size but did not get sussess. Any suggestion, Thanks in advance. -- -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: Get sorted list android applications on basis of rarely used

2013-02-12 Thread Bajrang Asthana
We want to implement uninstall feature based on the apps usage. So for instance if an app is not used since long time then we highlight so that user can know and uninstall it. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Restriction in reading logs in higher version of android

2013-02-12 Thread Bajrang Asthana
Hi all, As i heard that from 4.1+ onwards we will not be able to use the following permissions: uses-permission android:name=android.permission.READ_LOGS / But just now i tried it with my jelly beans on emulator (API=16) and it seems i was able to give the permissions and even i am able to

[android-developers] Problem while sending JSON from android app to Java servlet using post method

2013-02-13 Thread Bajrang Asthana
I am trying to send JSON object from android app to my servlet using HttpPost. But while retrieving this JSON object at server side I am getting null. Below is code snippet- In android app- HttpClient client = new DefaultHttpClient(); HttpPost request = new

[android-developers] Uninstall free version app after installing paid version

2013-03-05 Thread Bajrang Asthana
Actually we are thinking to publish my app in two version i.e free and paid. We are providing link in free version so that user can download paid version from Google play. I am interested to know what could be the best way to remove free version app(if user has installed it) as soon as user

[android-developers] Re: Uninstall free version app after installing paid version

2013-03-06 Thread Bajrang Asthana
Any suggestion -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For

[android-developers] Problem while facebook login through my app

2013-03-07 Thread Bajrang Asthana
Hi; I am not able to log-in to Facebook through my android app (*tried from phone as well as on emulator)*, I am getting error your app is not correctly configured. I am getting this problem only if *Facebook native apk * is installed. I look for android hash key and app id many times and