Re: [android-developers] Get status in activity from BroadCastReceiver

2014-10-09 Thread Abhilash Baddam
Hi,
You can try in this way,
whenever you want to check data connection then just call the below
function it returns connection availability:


   public boolean isConnectingToInternet(){
ConnectivityManager connectivity = (ConnectivityManager)
_context.getSystemService(Context.CONNECTIVITY_SERVICE);
  if (connectivity != null)
  {
  NetworkInfo[] info = connectivity.getAllNetworkInfo();
  if (info != null)
  for (int i = 0; i  info.length; i++)
  if (info[i].getState() == NetworkInfo.State.CONNECTED)
  {
  return true;
  }

  }
  return false;
}

On Tue, Oct 7, 2014 at 5:11 PM, sree android android.sreeni...@gmail.com
wrote:

 Hi every one,
 I am implementing one internet based application,in this application i
 want to check internet status everywhere.So i am implementing broad cast
 receiver,i got status in onReceive() method when i changed network state
 like wifi or mobile data,from onReceive() method to activity how i can pass
 these status.

 please check my below attachemnt 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
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Show multiple markers in Android map?

2014-09-17 Thread Abhilash Baddam
Hi,

Let's say I am at particular position there i tried to fetch the current
location of mine and shown in map with marker,
after that I have walked 100 meters again from there tried to fetch my
current location and shown in map with marker.
In the above two scenarios, the marker is pointing to same location and
they are overlapping even if zoom at max level also still they are
overlapped. Usually it should not overlap right because there is difference
between two location is 100 meters. How can I show accurately those markers
in the map without overlapping.



On Tue, Sep 16, 2014 at 5:22 AM, TreKing treking...@gmail.com wrote:


 On Mon, Sep 15, 2014 at 11:37 AM, Abhilash Baddam 
 abhilash.androiddevelo...@gmail.com wrote:

 I am able to show multiple markers in the map but if the locations are
 very nearby(near about 100 mts) then my markers are overlapping, I want to
 show the markers even if the distance between two locations are near about
 100mts. I am using Google API V2. Can anyone guide me on this.


 What exactly is your question?


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Show multiple markers in Android map?

2014-09-17 Thread Abhilash Baddam
Hi,

I am facing the above two issues:
1) Accuracy is not proper, if I stay at some particular location but in the
map showing somewhere else nearby.
To get the location i referred the below link,
 http://developer.android.com/guide/topics/location/strategies.html
using locationlisterner, i used to fetch the lat and lon  vals.
 I have seen some other article also
http://developer.android.com/training/location/retrieve-current.html , here
they used google play services to fetch the current location, which way
would be preferred and accurate?

2) If the locations are proper but how to prevent overlap?

Can you please guide me.

On Wed, Sep 17, 2014 at 10:12 PM, TreKing treking...@gmail.com wrote:


 On Wed, Sep 17, 2014 at 11:35 AM, Abhilash Baddam 
 abhilash.androiddevelo...@gmail.com wrote:

 In the above two scenarios, the marker is pointing to same location and
 they are overlapping even if zoom at max level also still they are
 overlapped.


 Then you probably have a bug in how you're getting the location or setting
 the markers. If you have two unique locations and place to unique markers
 on them, they should point to those two unique locations.

 There will obviously be overlap of the markers / icons if the locations
 are reasonably close.

 So do you think that the locations are wrong, or do you think they are
 right but you want to prevent any overlap?


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Show multiple markers in Android map?

2014-09-15 Thread Abhilash Baddam
Hi,
I am able to show multiple markers in the map but if the locations are very
nearby(near about 100 mts) then my markers are overlapping, I want to show
the markers even if the distance between two locations are near about
100mts. I am using Google API V2. Can anyone guide me on this.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Exception while parsing json response....

2014-05-13 Thread Abhilash Baddam
Hi All,

I am trying to parse a json response using gson library. The response
should contain always only one object(site)
 I tried in so many ways but always getting the below exception.
But I am getting the below exception,

 com.google.gson.JsonSyntaxException: java.lang.IllegalStateException:
Expected STRING but was BEGIN_OBJECT
at
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:176)

I have tried something like this,

Gson gson = new
Gson();
SiteDTO dto = new SiteDTO();//contains all setter and getter methods for
site object
//   Type type = new
TypeTokenArrayListSiteDTO() {
  // }.getType();
  //obj contains
  JSONObject array =
obj.optJSONObject(site);


 dto=gson.fromJson(array.toString(), SiteDTO.class); //getting exception at
this statement

   /*  JsonParser parser = new
JsonParser();
 JsonObject rootObejct =
parser.parse(obj.toString()).getAsJsonObject();
 JsonElement projectElement =
rootObejct.get(site);

   dto = gson.fromJson(projectElement,
SiteDTO.class);*/


Json String:

{
success: true,
site: {
id: 15251,
site_name: yuwa,
technology: GSM,
market: ARKANSAS,
region: Central,
address: HIGHLAND STREET,
city: GASSAWAY,
state: WV,
zip: 26624,
latitude: 38.6676,
longitude: -80.7711,
continuus_id: 235300,
attachments: [
{
attachment_id: 3656,
attachment_url: 
https://ldoapps.com/eams/web/uploads/sites/15251/4bd0c1fbcd29aa151db2850a52c81c8cbaabca2b/file_input.jpg

}
],
suppliers: [
{
company_id: 429
}
],
   aspsuppliers: [],
is_archived: false,
site_supplier_section: true,
sp_activity_section: true,
sp_activity_quote_section: false,
sov_section: false,
wa_section: false,
bom_section: false,
cop_section: true,
site_attachment_section: true,
punch_list_section: false,
site_supplier_checklist_section: false,
cop_acknowledgement: true,
customer: {}
}
}

Can anyone help me where I am doing mistake.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Exception while parsing json response....

2014-05-13 Thread Abhilash Baddam
can anyone help on this...


On Tue, May 13, 2014 at 8:45 PM, Abhilash Baddam 
abhilash.androiddevelo...@gmail.com wrote:

 Hi All,

 I am trying to parse a json response using gson library. The response
 should contain always only one object(site)
  I tried in so many ways but always getting the below exception.
 But I am getting the below exception,

  com.google.gson.JsonSyntaxException: java.lang.IllegalStateException:
 Expected STRING but was BEGIN_OBJECT
 at
 com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:176)

 I have tried something like this,

 Gson gson = new
 Gson();
 SiteDTO dto = new SiteDTO();//contains all setter and getter methods for
 site object
 //   Type type = new
 TypeTokenArrayListSiteDTO() {
   // }.getType();
   //obj contains
   JSONObject array =
 obj.optJSONObject(site);


  dto=gson.fromJson(array.toString(), SiteDTO.class); //getting exception at
 this statement

/*  JsonParser parser = new
 JsonParser();
  JsonObject rootObejct =
 parser.parse(obj.toString()).getAsJsonObject();
  JsonElement projectElement =
 rootObejct.get(site);

dto = gson.fromJson(projectElement,
 SiteDTO.class);*/


 Json String:

 {
 success: true,
 site: {
 id: 15251,
 site_name: yuwa,
 technology: GSM,
 market: ARKANSAS,
 region: Central,
 address: HIGHLAND STREET,
 city: GASSAWAY,
 state: WV,
 zip: 26624,
 latitude: 38.6676,
 longitude: -80.7711,
 continuus_id: 235300,
 attachments: [
 {
 attachment_id: 3656,
 attachment_url: 
 https://ldoapps.com/eams/web/uploads/sites/15251/4bd0c1fbcd29aa151db2850a52c81c8cbaabca2b/file_input.jpg
 
 }
 ],
 suppliers: [
 {
 company_id: 429
 }
 ],
aspsuppliers: [],
 is_archived: false,
 site_supplier_section: true,
 sp_activity_section: true,
 sp_activity_quote_section: false,
 sov_section: false,
 wa_section: false,
 bom_section: false,
 cop_section: true,
 site_attachment_section: true,
 punch_list_section: false,
 site_supplier_checklist_section: false,
 cop_acknowledgement: true,
 customer: {}
 }
 }

 Can anyone help me where I am doing mistake.




-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] supporting multiple screen: issue in 8.3 inch tab

2014-05-01 Thread Abhilash Baddam
Hi Treking,
As of now I don't have logs to share.

LG G Pad specifications of this device is:

 *Size: 8.3 Resolution: 1920*1200 density: 240dpi*

This device should pick layout from:* layout-sw720dp  and *drawables from
*drawable-xlarge-hdpi, *
am i right?
Can anyone help me on this...


On Wed, Apr 30, 2014 at 1:18 AM, TreKing treking...@gmail.com wrote:


 On Tue, Apr 29, 2014 at 12:24 PM, Abhilash Baddam 
 abhilash.androiddevelo...@gmail.com wrote:

 I am getting the crash in 8inch LG G Pad... specifications of this
 device is:


 You should share what the crash is.



 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] supporting multiple screen: issue in 8.3 inch tab

2014-04-29 Thread Abhilash Baddam
Hi All,

I am getting the crash in 8inch LG G Pad... specifications of this device
is:

 *Size: 8.3 Resolution: 1920*1200 density: 240dpi*

This device should pick layout from:* layout-sw720dp  and *drawables from
*drawable-xlarge-hdpi, *
am i right?
Can anyone help me on this...


On Sat, Apr 26, 2014 at 11:44 PM, Abhilash Baddam 
abhilash.androiddevelo...@gmail.com wrote:

 Hi Treking,

 Thanks for the reply...

 I tried to create an emulator with the specifications of the LG G tab and
 ran app so many times but every time emulator is behavior is strange. Its
 stopped working and a pop up comes with the message  emulator stopped
 working.
 How can I run the app in emulator, do i need to make any settings for
 emulator so that I can run the app in emulator.?



 On Sat, Apr 26, 2014 at 9:52 PM, TreKing treking...@gmail.com wrote:


 On Fri, Apr 25, 2014 at 11:44 PM, Abhilash Baddam 
 abhilash.androiddevelo...@gmail.com wrote:

 I am suspecting the issue might be due to any layout file, but I am not
 sure.


 Have you tried configuring an emulator instance to match this tablet's
 specs?


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Re: supporting multiple screen: issue in 8.3 inch tab

2014-04-26 Thread Abhilash Baddam
HI gjs,

Thanks for the reply. My app is working without any crash in 7 and 10
tablet but issue with 8.3 tablet.
Do I need to specifically add any layout folder or anything else...


On Sat, Apr 26, 2014 at 12:00 PM, gjs garyjamessi...@gmail.com wrote:

 Hi,

 Look in your Google Play Console to see if there is any crash reports.

 Try adding code to your App to trap  email you details of any crashes,
 there are various libraries available to help you do this.

 Regards




 On Saturday, April 26, 2014 2:44:00 PM UTC+10, abhay_401 wrote:

 HI,

 I have developed an application which supports all mobiles and tablets.
 But one of the user reported that the app is getting crashed after login
 when navigating to Homescreen.
 The user ran the app in LG G Pad 8.3 inch size tablet. Here I have tested
 app in both 7 and 10 tablet but I didn't get any crash but its crashing
 in 8.3 LG G pad.
 I don't have logs and tablet so that I could not be able to test or find
 root cause.

 LG G pad resolution: 1920*1200 (hdpi and xlarge) and size is 8.3inch


 Here in my app I used layout structure like this,

 res/layout-sw600dp/main_activity.xml   # For 7” tablets (600dp wide and 
 bigger)

 res/layout-sw720dp/main_activity.xml   # For 10” tablets (720dp wide and 
 bigger

 I am suspecting the issue might be due to any layout file, but I am not sure.

 Can anyone suggest me what can be the issue. Do i need to include and 
 specific layout folder or drawable folder under res folder to support 8.3. 
 Usually from which it should pick layout files and drawable files for this 
 8.3 inch.

 I have read supporting mutilple screen article from developer site.

 Please guide me in this.


 Regards,

 Abhilash Baddam


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] supporting multiple screen: issue in 8.3 inch tab

2014-04-26 Thread Abhilash Baddam
Hi Treking,

Thanks for the reply...

I tried to create an emulator with the specifications of the LG G tab and
ran app so many times but every time emulator is behavior is strange. Its
stopped working and a pop up comes with the message  emulator stopped
working.
How can I run the app in emulator, do i need to make any settings for
emulator so that I can run the app in emulator.?



On Sat, Apr 26, 2014 at 9:52 PM, TreKing treking...@gmail.com wrote:


 On Fri, Apr 25, 2014 at 11:44 PM, Abhilash Baddam 
 abhilash.androiddevelo...@gmail.com wrote:

 I am suspecting the issue might be due to any layout file, but I am not
 sure.


 Have you tried configuring an emulator instance to match this tablet's
 specs?


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] supporting multiple screen: issue in 8.3 inch tab

2014-04-25 Thread Abhilash Baddam
HI,

I have developed an application which supports all mobiles and tablets.
But one of the user reported that the app is getting crashed after login
when navigating to Homescreen.
The user ran the app in LG G Pad 8.3 inch size tablet. Here I have tested
app in both 7 and 10 tablet but I didn't get any crash but its crashing
in 8.3 LG G pad.
I don't have logs and tablet so that I could not be able to test or find
root cause.

LG G pad resolution: 1920*1200 (hdpi and xlarge) and size is 8.3inch


Here in my app I used layout structure like this,

res/layout-sw600dp/main_activity.xml   # For 7” tablets (600dp wide and bigger)
res/layout-sw720dp/main_activity.xml   # For 10” tablets (720dp wide and bigger

I am suspecting the issue might be due to any layout file, but I am not sure.

Can anyone suggest me what can be the issue. Do i need to include and
specific layout folder or drawable folder under res folder to support
8.3. Usually from which it should pick layout files and drawable
files for this 8.3 inch.

I have read supporting mutilple screen article from developer site.

Please guide me in this.


Regards,

Abhilash Baddam

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] how to create map api key for google map v1

2014-03-26 Thread Abhilash Baddam
any help on this :)


On Wed, Mar 26, 2014 at 9:04 AM, Abhilash Baddam 
abhilash.androiddevelo...@gmail.com wrote:

 Hi Treking,

 Thanks for the reply.

 My existing key is not working. While developing the app, I used different
 machine now in the same code i am making changes in some other machine,
 after making the changes if i run the app then the map is not getting
 loaded need to change the map api key it seems.
 Do we need to create the api key every time if we make changes in
 different machines?
 How can i use the existing key now?


 On Wed, Mar 26, 2014 at 5:09 AM, TreKing treking...@gmail.com wrote:


 On Tue, Mar 25, 2014 at 1:03 PM, Abhilash Baddam 
 abhilash.androiddevelo...@gmail.com wrote:

 I have developed an app long time back using google map api v1, there i
 have used mapview. Now i want to make some changes in that but i couldnt be
 able to create map api key for that app now.


 What happened to your existing key?


 How can i create the map api key for that.


 You can't.


  I know that map api v1 is deprecated but to use map api v2 in my app ,
 i have to make so many changes in my app which i do not want.


 Yup, it sucks.


 Cant i create the map api key for google map v1


 No, you cannot


 Can anyone suggest me???


 I suggest you find your old V1 key, remove the map from your app, or
 embrace V2!!!

 Good luck.


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] how to create map api key for google map v1

2014-03-25 Thread Abhilash Baddam
Hi,
I have developed an app long time back using google map api v1, there i
have used mapview. Now i want to make some changes in that but i couldnt be
able to create map api key for that app now. How can i create the map api
key for that.
I know that map api v1 is deprecated but to use map api v2 in my app , i
have to make so many changes in my app which i do not want.
Cant i create the map api key for google map v1 Can anyone suggest me???

Thanks.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] how to create map api key for google map v1

2014-03-25 Thread Abhilash Baddam
Hi Treking,

Thanks for the reply.

My existing key is not working. While developing the app, I used different
machine now in the same code i am making changes in some other machine,
after making the changes if i run the app then the map is not getting
loaded need to change the map api key it seems.
Do we need to create the api key every time if we make changes in different
machines?
How can i use the existing key now?


On Wed, Mar 26, 2014 at 5:09 AM, TreKing treking...@gmail.com wrote:


 On Tue, Mar 25, 2014 at 1:03 PM, Abhilash Baddam 
 abhilash.androiddevelo...@gmail.com wrote:

 I have developed an app long time back using google map api v1, there i
 have used mapview. Now i want to make some changes in that but i couldnt be
 able to create map api key for that app now.


 What happened to your existing key?


 How can i create the map api key for that.


 You can't.


  I know that map api v1 is deprecated but to use map api v2 in my app , i
 have to make so many changes in my app which i do not want.


 Yup, it sucks.


 Cant i create the map api key for google map v1


 No, you cannot


 Can anyone suggest me???


 I suggest you find your old V1 key, remove the map from your app, or
 embrace V2!!!

 Good luck.


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Best way to get the current location

2014-02-15 Thread Abhilash Baddam
Hi,

To get the user location I have found two ways:

   1.

   http://developer.android.com/training/location/retrieve-current.html .
   This one is using what I think is the new Google Services release which
   uses a LocationClient to connect to Google Services and retrieve the
   location.
   2.

   http://developer.android.com/guide/topics/location/strategies.html . The
   other one is using the android.location class and a LocationManager to
   retrieve the location.

The thing is that I don't get the difference between using one way or the
other, which one is better??

And another question is that in the second way you can specify which
location provider you want to use, if the GPS provider or the Network
provider and in the first one you can't, but in the first paragraph it says
that it uses the location sensors that are currently active for the device.
Does this mean that I don't have to worry about choosing between both
services??


Can anyone guide me on this

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Data getting null when the app in background

2014-01-15 Thread Abhilash Baddam
Hi,

In my activity there are two spinners,listview and a button GO.
When the user select the options from the spinners and he clicks on GO
button there is a server request.
whatever the response comes from server i am displaying that data in
listview...
Once the data displayed, if the user keep the app in background by pressing
home..after sometime if the user again comes back to the screen
i am getting null pointer exception as the data or object passed to the
listview adapter is getting null.
Seems System is garbage collected the data... How can I overcome this
situation.

Can anyone help me on this...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: menu options

2013-10-29 Thread Abhilash Baddam
 Hi treking,
 I have seen in the blog, according to that They have  menu soft key as
 optional from api levvel 11 onwards and introduced action bar...
 I know even ics and  some of JB deivics has menu key. But by using
 haspermanentkey() we can get menu key present or not but which doesn't
 support in 2.3.

 Can we say all the mobiles api level (=10) have menu key...???



 On Thursday, October 24, 2013, Abhilash Baddam 
 abhilash.androiddevelo...@gmail.com wrote:
 
 http://android-developers.blogspot.in/2012/01/say-goodbye-to-menu-button.html
 

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Menu Key Availability....?

2013-10-29 Thread Abhilash Baddam
Hi,

I have referred the below blog,
http://android-developers.blogspot.in/2012/01/say-goodbye-to-menu-button.html

In my app I want to check the Menu key is present or not.
For that I have used hasPermanentKey() function which is introduced in API
level 14 but I cant use it GB.

Can we assume if the api level(=10) devices has Menu key...?

Please Anybody guide me on this...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: Menu Key Availability....?

2013-10-29 Thread Abhilash Baddam
HI,

Is there any possibility to check whether the menu hard key is present or
not in Gingerbread(2.3)... ?


On Tue, Oct 29, 2013 at 3:31 PM, Abhilash Baddam 
abhilash.androiddevelo...@gmail.com wrote:

 Hi,

 I have referred the below blog,

 http://android-developers.blogspot.in/2012/01/say-goodbye-to-menu-button.html

 In my app I want to check the Menu key is present or not.
 For that I have used hasPermanentKey() function which is introduced in API
 level 14 but I cant use it GB.

 Can we assume if the api level(=10) devices has Menu key...?

 Please Anybody guide me on this...


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] how can i show menu options in api level 17???

2013-10-23 Thread Abhilash Baddam
Iam having an application which contains Menu options, but in some of Jelly
Bean devices we dont have the Menu soft key button
in that case how can i show those options
Do i need to check sdk version, based on that i have to implement
funtionality ...?
and I am unable to use hasPermanentMenuKey() function in my app.
My app targets
 android:minSdkVersion=9
android:targetSdkVersion=17

Can anyone give me suggestions...??

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] how to track the location continously...

2013-10-16 Thread Abhilash Baddam
Hi,

I am trying to track the User current location continoulsy till he s
In my app there are two buttons *Start* and *Stop.*
*
*
When the user clicks on button Start button, I want to track his location
continuously till he clicks on Stop button

I am not using the any service or AlarmManager to for requesting location
updates continously.
I am trying some thing like this,

When the user clicks on Start button,
I am requesting for location updates like this
 locationManager.requestLocationUpdates(
LocationManager.GPS_PROVIDER, 0,
100, locListener); //requests  for every 100m distance

There is a callback  onLocationChanged(), in that function I am adding
location latitude and longitudes to an ArrayList.

My doubt is even if my app is background does the onLocationChanged in my
class gets called continuously or not..?  so that i can get lat and
longitudes of the user continoulsy
even if my app is in background.???

When the user clicks on Stop button i am removing the location updates.


Can anyone guide me please...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] Re: how to track the location continously...

2013-10-16 Thread Abhilash Baddam
Hi MAthieu,

Thanks for the reply. In The link provided by you there they are using
Google Play Services for that we need Google Playservices SDK.
My app supports from Android 2.2 onwards can I use those PLayservices API
in my APP??


On Thu, Oct 17, 2013 at 7:09 AM, MathieuB blanc...@gmail.com wrote:


 http://developer.android.com/training/location/receive-location-updates.html

 You're welcome!

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] how to track the location continously...

2013-10-16 Thread Abhilash Baddam
Hi Kristopher,

You mean in the service i have to request for location updates
continuously..?


On Thu, Oct 17, 2013 at 8:29 AM, Kristopher Micinski krismicin...@gmail.com
 wrote:

 If you want continuous location updates you generally want a foregrounded
 service anyway...

 Kris



 On Wed, Oct 16, 2013 at 1:42 PM, Abhilash Baddam 
 abhilash.androiddevelo...@gmail.com wrote:

 Hi,

 I am trying to track the User current location continoulsy till he s
 In my app there are two buttons *Start* and *Stop.*
 *
 *
 When the user clicks on button Start button, I want to track his
 location continuously till he clicks on Stop button

 I am not using the any service or AlarmManager to for requesting location
 updates continously.
 I am trying some thing like this,

 When the user clicks on Start button,
 I am requesting for location updates like this
  locationManager.requestLocationUpdates(
 LocationManager.GPS_PROVIDER, 0,
  100, locListener); //requests  for every 100m distance

 There is a callback  onLocationChanged(), in that function I am adding
 location latitude and longitudes to an ArrayList.

 My doubt is even if my app is background does the onLocationChanged in
 my class gets called continuously or not..?  so that i can get lat and
 longitudes of the user continoulsy
 even if my app is in background.???

 When the user clicks on Stop button i am removing the location updates.


 Can anyone guide me please...


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] How to display in HH:MM:SS

2013-10-10 Thread Abhilash Baddam
Hi,

I am having two dates with times for example:

String dateStart = 01/14/2012 09:30:55;
String dateStop = 01/15/2012 18:25:54;

SimpleDateFormat format = new SimpleDateFormat(MM/dd/ HH:mm:ss);

Date d1 = null;
Date d2 = null;

d1 = format.parse(dateStart);
d2 = format.parse(dateStop);

When I subtract:  d2 - d1, I want to show the ela[sed time in between the
above two dates in the format in *HH:MM:SS*: like i want the output
something like:
*33:05:01. How can I get in that format..? If anybody is having any idea
please help me out... *

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] How to display in HH:MM:SS

2013-10-10 Thread Abhilash Baddam
Hi,

I have tried but I am not getting in that format which I want


On Thu, Oct 10, 2013 at 11:33 PM, TreKing treking...@gmail.com wrote:


 On Thu, Oct 10, 2013 at 12:21 PM, Abhilash Baddam 
 abhilash.androiddevelo...@gmail.com wrote:

 33:05:01. How can I get in that format..?


 This has nothing to do with Android specifically, but ... just use another
 SimpleDateFormat ...


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Stop watch functionality in Android

2013-10-09 Thread Abhilash baddam
Hi,

I want to implement something like Stopwatch functionality.,
When the user clicks on a Start button, I want to start the stopwatch which
shows the hr:min:sec in textview and keep on updates it,
and when the user clickis on button Stop, then timer needs to be stop.
Even if the user starts the Stopwatch and keep the application in
background by pressing home, after sometime if
the user comes to application eventhough the timer should keep run until
the user clicks on Stop button.

Can anyone give me suggestions or best approach to implement this
functionality.

I tried with Timer and TimerTask but when I click on Home after some time
If I comeback to app the timer text is not updating and its showing as
empty.


Timer  travelTimer = new Timer();

travelTimer.schedule(new TimerTask() {
@SuppressLint(SimpleDateFormat)
@Override
public void run() {

-

   }
 }, 0, 1000);


Is the reason when the app goes to background, the android system is
killing the Timer.. ?

Please give me the 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 more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: Stop watch functionality in Android

2013-10-09 Thread Abhilash baddam
Hi,
Thanks for the reply.

Otherwise shall I use the service so that android system doesn't kill the
service..?

Is there any other better approach for this...??




On Thursday, October 10, 2013, TreKing treking...@gmail.com wrote:

 On Wed, Oct 9, 2013 at 12:57 PM, Abhilash baddam 
abhilash.androiddevelo...@gmail.com wrote:

 Is the reason when the app goes to background, the android system is
killing the Timer.. ?

 Yes. Review the app life cycle and the documentation on saving and
restoring state.


-
 TreKing - Chicago transit tracking app for Android-powered devices

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: Stop watch functionality in Android

2013-10-09 Thread Abhilash baddam
Hi Trekking,

If I use onrestoreinstance state then if I started timer say at 00:00:00 it
started n its running, and presses on home then I will store the timer
value. after some time, for ex  I go back to app at 00:56:45 sec if the
timer gets killed then I don't get the latest or upated value from restore
instance state,if I am not wrong..?

On Thursday, October 10, 2013, TreKing treking...@gmail.com wrote:

 On Wed, Oct 9, 2013 at 9:41 PM, Abhilash baddam 
abhilash.androiddevelo...@gmail.com wrote:

 Otherwise shall I use the service so that android system doesn't kill
the service..?

 Android will kill your Service if need be. This is not a solution.


 Is there any other better approach for this...??

 Yes. Read the documentation. Review the app lifecycle. Pay particular
attention to the documentation on saving and restoring state.


-
 TreKing - Chicago transit tracking app for Android-powered devices

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Expandable List-Check All

2013-09-18 Thread Abhilash baddam
Hi,

I am trying to create a custom expandable list where there is a group view
and child view will have a checkboxes.

If i click on group view checkbox then all the child view checkboxes should
checked and vice versa...
Basically I want to implement check all and uncheck all functionality.
I have tried like this but which is not updating properly. Is anybody is
having any idea about this.


I am passing data something like this:
private static final String[][] data =
{{audia4,audiq7,audir8},{bmwm6,bmwx6},{ferrarienzo,ferrarif430,ferrarif430italia}};

package com.test.sample;

import java.util.HashMap;
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.text.Html;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseExpandableListAdapter;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.CompoundButton.OnCheckedChangeListener;
import android.widget.ExpandableListAdapter;

public class SampleExpandableListAdapter extends BaseExpandableListAdapter
implements ExpandableListAdapter {
public Context context;
CheckBox checkBox;
private LayoutInflater vi;
private String[][] data;
int _objInt;
public static Boolean checked[] = new Boolean[1];

HashMapLong, Boolean checkboxMap = new HashMapLong, Boolean();
HashMapInteger, Boolean m_checkboxMap = new HashMapInteger, Boolean();
private static final int GROUP_ITEM_RESOURCE = R.layout.group_item;
private static final int CHILD_ITEM_RESOURCE = R.layout.child_item;
public String[] check_string_array;

// Abhi
private int mgroupPos = 0;
private static ViewHolder holder;
static int m_groupPosition = 0;

public SampleExpandableListAdapter(Context context, Activity activity,
String[][] data) {
this.data = data;
this.context = context;
vi = (LayoutInflater) activity
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
_objInt = data.length;
check_string_array = new String[_objInt];
popolaCheckMap();
}

public void popolaCheckMap() {

SharedPreferences settings = PreferenceManager
.getDefaultSharedPreferences(context);
String buffer = null;

for (int i = 0; i  _objInt; i++) {
buffer = settings.getString(String.valueOf((int) i), false);
if (buffer.equals(false))
checkboxMap.put((long) i, false);
else
checkboxMap.put((long) i, true);
}
}

public class CheckListener implements OnCheckedChangeListener {
long pos;
int m_pos;

public void setPosition(long p) {
pos = p;
}

@Override
public void onCheckedChanged(CompoundButton buttonView,
boolean isChecked) {
Log.i(checkListenerChanged,
String.valueOf(pos) + : + String.valueOf(isChecked));
checkboxMap.put(pos, isChecked);
try {
updateCheckbox();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
if (isChecked == true)
check_string_array[(int) pos] = true;
else
check_string_array[(int) pos] = false;
// save checkbox state of each group
 SharedPreferences settings = PreferenceManager
.getDefaultSharedPreferences(context);
SharedPreferences.Editor preferencesEditor = settings.edit();
preferencesEditor.putString(String.valueOf((int) pos),
check_string_array[(int) pos]);
preferencesEditor.commit();
}
}

public String getChild(int groupPosition, int childPosition) {
return data[groupPosition][childPosition];
}

public long getChildId(int groupPosition, int childPosition) {
return childPosition;
}

public int getChildrenCount(int groupPosition) {
mgroupPos = groupPosition;
return data[groupPosition].length;
}

public View getChildView(int groupPosition, int childPosition,
boolean isLastChild, View convertView, ViewGroup parent) {
m_groupPosition = groupPosition;
View v = convertView;
String child = getChild(groupPosition, childPosition);
System.out.println(Abhi getChildView child:  + child);
int id_res = 0;
if (groupPosition == 0) {
if (childPosition == 0)
id_res = R.drawable.audi_a4;
if (childPosition == 1)
id_res = R.drawable.audi_q7;
if (childPosition == 2)
id_res = R.drawable.audi_r8;
} else if (groupPosition == 1) {
if (childPosition == 0)
id_res = R.drawable.bmw_m6;
if (childPosition == 1)
id_res = R.drawable.bmw_x6;
} else if (groupPosition == 2) {
if (childPosition == 0)
id_res = R.drawable.ferrari_enzo;
if (childPosition == 1)
id_res = R.drawable.ferrari_f430;
if (childPosition == 2)
id_res = R.drawable.ferrari_f430_italia;
}

if (child != null) {
v = vi.inflate(CHILD_ITEM_RESOURCE, null);
holder = new ViewHolder(v);
holder.text.setText(Html.fromHtml(child));

holder.imageview.setImageResource(id_res);
// Abhi
CheckListener checkL = new CheckListener();
// checkL.setPosition(group_id);
holder.checkbox.setOnCheckedChangeListener(checkL);
// holder.checkbox.setChecked(checkboxMap.get(group_id));
// Abhi

if(checkboxMap.get((long)groupPosition) == true){
holder.checkbox.setChecked(true);
}else{
holder.checkbox.setChecked(false);
}
}
return v;
}

public String 

[android-developers] Unable to send BroadCast

2013-05-17 Thread Abhilash baddam
Hi,

I am having two apps in which one app(AppA) consists only BroadCastReceiver
and another app(AppB) is having an Activity from there I am sending a
broadcast to the AppA.
But I am not getting any event in AppA in which I have implemented the
onReceive function.

*AppA and it's manifest file:*
public class AppA extends BroadcastReceiver{

@Override
public void onReceive(Context context, Intent intent) {
if(intent.getAction().equalsIgnoreCase(com.MyAction)){
String s  = intent.getStringExtra(MyValue);
}
}
}

manifestFile:
?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
package=com.example.justreceiver
android:versionCode=1
android:versionName=1.0 

uses-sdk
android:minSdkVersion=8
android:targetSdkVersion=17 /

application
android:allowBackup=true
android:icon=@drawable/ic_launcher
android:label=@string/app_name
android:theme=@style/AppTheme 
receiver
*android:name=com.example.AppA*
android:label=@string/app_name 
intent-filter
   * action android:name=com.MyAction /*
category android:name=android.intent.category.DEFAULT /
/intent-filter
/receiver
/application


*Application B from where I am sending the broadcast:*
*
*
public class AppB extends Activity {

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

Button send = (Button)findViewById(R.id.send);
send.setOnClickListener(new OnClickListener() {
 @Override
public void onClick(View v) {

Intent i = new Intent();
i.setAction(com.MyAction);
i.putExtra(MyValue, Yahooo);
sendBroadcast(i);

}
});
}
}

why I am not getting intent on AppA ?Can anyone help me on this.

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] SHIFT and ALT key functionality implementation in ICS...?

2013-04-26 Thread Abhilash baddam
Hi,

We are working on a device which contains physical keyboard with OS version
4.0.4(ICS)(Note: looks like Blackberry bold model).

In that device *Shift Key (*KEYCODE_SHIFT_LEFT*) and *ALT key*
(*KEYCODE_ALT_LEFT*)is not working.

We are getting the proper KEYCODEs when we press those buttons in
PhoneWindowMAnager.java.

Now where we have to handle those keys and what exactly functionality needs
to be implement when press those  hard keys.

Otherwise in ICS, is already handled those keys in some other files??
Generally when we press once the SHIFT key, for eg: when I press and hold
shift key after that if I press 'a'character then 'A' needs to be printed.
This kind of functionality needs to be implement for SHIFT key.

And when we press ALT key it has to be display Special Character.

Is anybody is having any idea about this...

Regards,
Abhilash

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Getting current location...?

2013-03-17 Thread Abhilash baddam
Hi,

I am having an application in which we  can get the latitude and longitude
of the current location. Which is working fine in ICS device, but the
same app if i test in Jellybean(4.1.2) its not giving the latitude and
longitude.
Do we need to add any new functionality or permission to test in Android
version 4.1.?


Regarding,
Abhilash Baddam

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: How to hide my widget from the Widgets list.....?

2013-03-01 Thread Abhilash baddam
Hi,

Thanks for the reply. But need more help.

On Fri, Mar 1, 2013 at 2:14 PM, futurexiong futurexi...@gmail.com wrote:

 AppWidgetProvider is also a BroadcastReceiver,and I think you also can
 enable or disable it through your code.But I don't know whether it would
 work because I don't see AppWidgetService.java parse the enabled
 attribute and how it deals with that attribute.Get a try.Hope that can help
 you.

 在 2013年3月1日星期五UTC+8下午3时31分50秒,abhay_401写道:

 Hi,

 When the user long press on Homescreen, he will get some options, Widgets
 is one of them. If the user selects Widgets, he will get the list of
 widgets in which he can launch on home.

 Based on some conditions I don't want to show him my widget on the list.
 For ex: I am having boolean value, if it's true then only show my widget in
 the list, so that user can launch it otherwise I dont want to show my
 widget is Widgets list.

 How can we do this. Can anybody is having idea on this?

  --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] how to enable programmatically....?

2013-01-06 Thread Abhilash baddam
Hi,

I am having a toggle button in my app..  I want to control Bluetooth by
using that toggle button.. Is it possible to  turn on/off Bluetooth
programmatically in Android...?

If anybody is having idea on this please let me know,..

Thanks,
Abhay

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] recorded video orientation issue on GB 2.3.6

2012-11-30 Thread Abhilash baddam
Hi,

I tried to record a video and after saving the video, when i tried to play
that recorded video from the Gallery it always playing in Landscape mode
even if rotate my device into portrait mode.
This thing is happening only in Ginger Bread 2.3.6 but in the devices with
OS version ICS,2.3.3,2.3.4 the same recorded video is playing in both
landscape and portrait mode.
Means whether that feature is eliminated from GingerBread 2.3.6 or what.
Help me out If anybody is having any idea on this.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] can we restart systemserver..............?

2012-07-19 Thread Abhilash baddam
Hi,
Thanks for the reply. So If want to reload all the applications,  what is
the best solution.
1)Fr example, GoLauncher app is there if we press on launcher button user
will get the refreshed Home screen.

2)On click of button just I want to reload the complete apps like how home
app is displayed immediately after booting... suggest me please.

On Tue, Jul 17, 2012 at 10:31 PM, Dianne Hackborn hack...@android.comwrote:

 You can't.  Asking the same question again doesn't change the answer. :/

 And good ghod, no of course you can't restart the freaking activity
 manager without restarting all the apps.  I mean... come on!

 You haven't actually said what you are trying to do, but the path you are
 going down here is almost certainly wrong for whatever it is.  Restarting
 something like the activity manager is not in any way shape or form correct
 as a normal part of the system operation.

 On Tue, Jul 17, 2012 at 7:52 AM, Abhilash baddam 
 abhilash.androiddevelo...@gmail.com wrote:

 HiDianne Hackborn ,

 Thanks for the reply, still I am having some doubts,

 1) I read that HeadsetObserver which is a systemservice, starts whenever
 headset is detected and stops working whenever we removed the headdset.
 Similarly I want to start or stop particular
 systemservice(PackageManagerService,ActivityMAnagerService etc...) whenever
 it's required.

 **

 ** **

 Why I want to do restart the systemservices means, whenever user presess
 on a button I want reload all the applications, without rebooting complete
 device. instead of that I am planning to 

 restart some systemservices like PackageManagerService and
 ActivityManagerService because these are services which plays keyrole for
 loading 

 apps(SystemApps and Market apps).

 ** **

 2) If it's not possible to restart the systemservices then I am planning
 to restart the SystemServer(SystemServer .java) so that all systemservices
 will be restarted, eventually all

 **

 apps will be reloaded without rebooting complete device.

 ** **

 I dont know whether these are possible things or not just I am thinking.
 I am ready to do Framework level changes.


 Could you please suggest me as I am new to Application Framework.



 On Sun, Jul 15, 2012 at 1:01 PM, Dianne Hackborn hack...@android.comwrote:

 Not from a third party app.  You can stop/start it with adb shell stop
 and adb shell start.  If it is stopped, all of the framework goes down,
 including all applications.  You can't stop/start individual system
 services.

 On Sat, Jul 14, 2012 at 10:17 PM, Abhilash baddam 
 abhilash.androiddevelo...@gmail.com wrote:

 Hi,

 Generally SystemServer wiil start all systemservices
 (ActivityManagerService, PackageManager etc..)right.

 1)Is it possible  to restart the systemserver  so that all
 systemservices will be restarted.
 2) Similarly can we restart the particular systemservice for ex:
 PackageManagerService.

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http

Re: [android-developers] can we restart systemserver..............?

2012-07-17 Thread Abhilash baddam
HiDianne Hackborn ,

Thanks for the reply, still I am having some doubts,

1) I read that HeadsetObserver which is a systemservice, starts whenever
headset is detected and stops working whenever we removed the headdset.
Similarly I want to start or stop particular
systemservice(PackageManagerService,ActivityMAnagerService etc...) whenever
it's required.

**

** **

Why I want to do restart the systemservices means, whenever user presess on
a button I want reload all the applications, without rebooting complete
device. instead of that I am planning to 

restart some systemservices like PackageManagerService and
ActivityManagerService because these are services which plays keyrole for
loading 

apps(SystemApps and Market apps).

** **

2) If it's not possible to restart the systemservices then I am planning to
restart the SystemServer(SystemServer .java) so that all systemservices
will be restarted, eventually all

**

apps will be reloaded without rebooting complete device.

** **

I dont know whether these are possible things or not just I am thinking. I
am ready to do Framework level changes.


Could you please suggest me as I am new to Application Framework.



On Sun, Jul 15, 2012 at 1:01 PM, Dianne Hackborn hack...@android.comwrote:

 Not from a third party app.  You can stop/start it with adb shell stop
 and adb shell start.  If it is stopped, all of the framework goes down,
 including all applications.  You can't stop/start individual system
 services.

 On Sat, Jul 14, 2012 at 10:17 PM, Abhilash baddam 
 abhilash.androiddevelo...@gmail.com wrote:

 Hi,

 Generally SystemServer wiil start all systemservices
 (ActivityManagerService, PackageManager etc..)right.

 1)Is it possible  to restart the systemserver  so that all systemservices
 will be restarted.
 2) Similarly can we restart the particular systemservice for ex:
 PackageManagerService.

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] can we restart systemserver..............?

2012-07-14 Thread Abhilash baddam
Hi,

Generally SystemServer wiil start all systemservices
(ActivityManagerService, PackageManager etc..)right.

1)Is it possible  to restart the systemserver  so that all systemservices
will be restarted.
2) Similarly can we restart the particular systemservice for ex:
PackageManagerService.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Regarding Packagemanager..?

2012-07-12 Thread Abhilash baddam
Hi,

I came to know that after booting device, all the system apps and market
apps( if there) will be loaded right. These all things will be handled by
PackageManager means which are the already installed apps, based on that it
will load all the apps. But how the PackageManager gets the information
about installed apps in the device. I want to know to know more about
PackageMAnager. I have gone through developer.android.com, but I want to
know more about this.  Can anybody help me regarding on the same.




Regards
Abhilash

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] application launching process...?

2012-07-08 Thread Abhilash baddam
Hi,

Thanks for the reply. I am not expecting complete thing which I want, I am
expecting some guidance to understand booting process in android and after
the booting process home application will be launched right contain all
system apps like Gmail, Email, PlayStore etc.. So how these apps getting
called before launching required some help...


On Sun, Jul 8, 2012 at 9:40 PM, Dianne Hackborn hack...@android.com wrote:

 This probably doesn't belong on android-developers, and your questions
 aren't really making sense.  About all I can get from you use someone tell
 me everything about how system apps are loaded, which covers a lot of
 territory, so nobody is going to spend hours try to write an overview that
 covers everything they can think of in the hopes of giving you the
 information you need.

 Also, at boot *not* all system apps are loaded so I'm not really even
 sure what you are looking for.

 On Sat, Jul 7, 2012 at 10:56 PM, Abhilash baddam 
 abhilash.androiddevelo...@gmail.com wrote:

 Hi,

 I have tried but I didn't get it, Generally SystemServer(calls from
 SystemServer.java file) starts all systemservices after that how the
 Systemapps are loading I am not getting.
  can anyone please help me on this?


 On Wed, Jul 4, 2012 at 9:35 PM, Abhilash baddam 
 abhilash.androiddevelo...@gmail.com wrote:

 Thanks Kris for the reply, could you please provide me some useful links
 for the same.


 On Mon, Jul 2, 2012 at 12:45 AM, Kristopher Micinski 
 krismicin...@gmail.com wrote:

 On Sun, Jul 1, 2012 at 2:30 PM, Abhilash baddam
 abhilash.androiddevelo...@gmail.com wrote:
  Hi,
 
  After switching on the mobile(after booting process) all the
  applications will be loaded like System apps, 3rd party apps etc...
  how these apps are loading means I want to know the way, procedure or
  process for this. Can anyone suggest me any websites or docs to know
  these things.

 It's not just understanding the boot process, which is fairly
 traditional Linux stuff, but also understanding that you're sitting on
 top of the zygote process, package manager (routing intents), and
 other android-y topics...

 I've actually heard good things about this book...
 http://shop.oreilly.com/product/0636920021094.do

 kris

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en



  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] application launching process...?

2012-07-07 Thread Abhilash baddam
Hi,

I have tried but I didn't get it, Generally SystemServer(calls from
SystemServer.java file) starts all systemservices after that how the
Systemapps are loading I am not getting.
 can anyone please help me on this?


On Wed, Jul 4, 2012 at 9:35 PM, Abhilash baddam 
abhilash.androiddevelo...@gmail.com wrote:

 Thanks Kris for the reply, could you please provide me some useful links
 for the same.


 On Mon, Jul 2, 2012 at 12:45 AM, Kristopher Micinski 
 krismicin...@gmail.com wrote:

 On Sun, Jul 1, 2012 at 2:30 PM, Abhilash baddam
 abhilash.androiddevelo...@gmail.com wrote:
  Hi,
 
  After switching on the mobile(after booting process) all the
  applications will be loaded like System apps, 3rd party apps etc...
  how these apps are loading means I want to know the way, procedure or
  process for this. Can anyone suggest me any websites or docs to know
  these things.

 It's not just understanding the boot process, which is fairly
 traditional Linux stuff, but also understanding that you're sitting on
 top of the zygote process, package manager (routing intents), and
 other android-y topics...

 I've actually heard good things about this book...
 http://shop.oreilly.com/product/0636920021094.do

 kris

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] application launching process...?

2012-07-04 Thread Abhilash baddam
Thanks Kris for the reply, could you please provide me some useful links
for the same.

On Mon, Jul 2, 2012 at 12:45 AM, Kristopher Micinski krismicin...@gmail.com
 wrote:

 On Sun, Jul 1, 2012 at 2:30 PM, Abhilash baddam
 abhilash.androiddevelo...@gmail.com wrote:
  Hi,
 
  After switching on the mobile(after booting process) all the
  applications will be loaded like System apps, 3rd party apps etc...
  how these apps are loading means I want to know the way, procedure or
  process for this. Can anyone suggest me any websites or docs to know
  these things.

 It's not just understanding the boot process, which is fairly
 traditional Linux stuff, but also understanding that you're sitting on
 top of the zygote process, package manager (routing intents), and
 other android-y topics...

 I've actually heard good things about this book...
 http://shop.oreilly.com/product/0636920021094.do

 kris

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] application launching process...?

2012-07-01 Thread Abhilash baddam
Hi,

After switching on the mobile(after booting process) all the
applications will be loaded like System apps, 3rd party apps etc...
how these apps are loading means I want to know the way, procedure or
process for this. Can anyone suggest me any websites or docs to know
these things.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Problem while running ICS..?

2012-04-27 Thread Abhilash baddam
Hi,

I had made an application whose target api level is 2.2 and
min:sdkversion in manifest i mentionedas 7. This application is
running in all devices even in tablets also, but this application is
not running in the devices whose OS is ICS

Do i need to mention anything in manifest to run it ICS OS Device?

Anybody help me on this 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


Re: [android-developers] Carousel || Coverflow with LinearLayout Views

2012-04-26 Thread Abhilash baddam
Hi,

I have implemented carousel demo example with reference to
http://www.codeproject.com/Articles/146145/Android-3D-Carousel   
but when I am using 11 images in this i am not getting proper position
of each item... How can I get the proper position of each item...?
Could anyone help me on this issue...?

On 2/13/12, Kubilay D. Yılmaz kubilayd.yil...@gmail.com wrote:
 I guess it is not possible, because class extends Gallery,

 On 13 February 2012 15:21, TreKing treking...@gmail.com wrote:

 On Mon, Feb 13, 2012 at 6:55 AM, Kubilay D. Yılmaz 
 kubilayd.yil...@gmail.com wrote:

 However I found many examples and all of them take only imageview.
 Is there any example that you provide me?


 Take the examples with ImageView, and then replace the ImageView with any
 View of your liking.


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] caurosel demo...?

2012-04-24 Thread Abhilash baddam
Hi,

I have implemented caurosel demo which is working fine but when I am
using with 11 images in that, I am not getting proper position of
particular item in that view. Always I am getting position of item as
Zero. Can anybody help me on this 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] SDK VERSION?

2012-03-21 Thread Abhilash baddam
Hi Friends,

 For my Application I am using target version as API Level 8 and I
mentioned minSdkVersion in manifest as 7.

1)  If the user is having SDCard automatically I want to install my
app in SDCard other wise in internal memory. For that I mentioned
android:installLocation=preferExternal in the manifest file, but if
the user is not having SDcard whether the app will automatically
install in internal memory or not.

2) Whether this app will also run in the mobiles which contains 2.1 Android OS.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] keyboard pushing the complete screen..?

2012-02-13 Thread Abhilash baddam
Hi,

I am having a layout which contains Relativelayout as root layout. the
layout structure is like this...

RelativeLayout
Edittext/
ListView/

ImageView
android:layout_alignParentBottom=true/

/RelativeLayout


In that layout i am having imageview which is
android:layout_alignParentBottom=true.
So whenever i am clicking on edittext the keyboard is pushing the
complete screen to up, which looks very bad but i want the keyboard to
overlap on the screen, i dont want to push up the complete screen.
Plese find the attatchment

In image1.png keyboard is moving up the complete screen which i do not
want.. I want something like shown in image2.png.

Can anybody give me the suggestions to solve this 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

phpA900.tmp
Description: Binary data


[android-developers] Re: keyboard pushing the complete screen..?

2012-02-13 Thread Abhilash baddam
Hi,

Any help on this issue...?

On 2/13/12, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote:
 Hi,

 I am having a layout which contains Relativelayout as root layout. the
 layout structure is like this...

 RelativeLayout
 Edittext/
 ListView/

 ImageView
 android:layout_alignParentBottom=true/

 /RelativeLayout


 In that layout i am having imageview which is
 android:layout_alignParentBottom=true.
 So whenever i am clicking on edittext the keyboard is pushing the
 complete screen to up, which looks very bad but i want the keyboard to
 overlap on the screen, i dont want to push up the complete screen.
 Plese find the attatchment

 In image1.png keyboard is moving up the complete screen which i do not
 want.. I want something like shown in image2.png.

 Can anybody give me the suggestions to solve this 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: keyboard pushing the complete screen..?

2012-02-13 Thread Abhilash baddam
Hi,

I am guessing that the problem is because of ListView, but i require
listview in that screen. How to get rid on this issue...?

On 2/13/12, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote:
 Hi,

 Any help on this issue...?

 On 2/13/12, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote:
 Hi,

 I am having a layout which contains Relativelayout as root layout. the
 layout structure is like this...

 RelativeLayout
 Edittext/
 ListView/

 ImageView
 android:layout_alignParentBottom=true/

 /RelativeLayout


 In that layout i am having imageview which is
 android:layout_alignParentBottom=true.
 So whenever i am clicking on edittext the keyboard is pushing the
 complete screen to up, which looks very bad but i want the keyboard to
 overlap on the screen, i dont want to push up the complete screen.
 Plese find the attatchment

 In image1.png keyboard is moving up the complete screen which i do not
 want.. I want something like shown in image2.png.

 Can anybody give me the suggestions to solve this 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


Re: [android-developers] Re: keyboard pushing the complete screen..?

2012-02-13 Thread Abhilash baddam
Hi Bimal,

The link which you told to refer is working, Thanks.

On Mon, Feb 13, 2012 at 8:30 PM, bimal bose bimalxtr...@gmail.com wrote:

 Refer this:

 http://stackoverflow.com/questions/4207880/android-how-do-i-prevent-the-soft-keyboard-from-pushing-my-view-up



 On Mon, Feb 13, 2012 at 8:21 PM, bimal bose bimalxtr...@gmail.com wrote:

 use linear layout instead of relative (or wrap the whole relative + the
 bottom thing  under a linear layout )


 On Mon, Feb 13, 2012 at 7:35 PM, Abhilash baddam 
 abhilash.androiddevelo...@gmail.com wrote:

 Hi,

 I am guessing that the problem is because of ListView, but i require
 listview in that screen. How to get rid on this issue...?

 On 2/13/12, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote:
  Hi,
 
  Any help on this issue...?
 
  On 2/13/12, Abhilash baddam abhilash.androiddevelo...@gmail.com
 wrote:
  Hi,
 
  I am having a layout which contains Relativelayout as root layout. the
  layout structure is like this...
 
  RelativeLayout
  Edittext/
  ListView/
 
  ImageView
  android:layout_alignParentBottom=true/
 
  /RelativeLayout
 
 
  In that layout i am having imageview which is
  android:layout_alignParentBottom=true.
  So whenever i am clicking on edittext the keyboard is pushing the
  complete screen to up, which looks very bad but i want the keyboard to
  overlap on the screen, i dont want to push up the complete screen.
  Plese find the attatchment
 
  In image1.png keyboard is moving up the complete screen which i do not
  want.. I want something like shown in image2.png.
 
  Can anybody give me the suggestions to solve this 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



  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Maps with GPS indicator in status bar..?

2012-02-02 Thread Abhilash baddam
Hi,

If we open Maps application(in built) in the device it will show the
GPS indicator on the status bar already if GPS is enabled in  the
device and If we come out from the maps application then that
indicator will dismissed from status bar.

Similarly how in my application if i am using GPS yhen i want to show
GPS indicator on the status bar and whwnever i come out from my
application i want to dismiss that indicator from staus bar. How can i
achieve this...? can anybody give me some idea to get this...

How can I display in my application that will use the GPS for
something on the status bar. For example just open up Google Maps. If
you want to know if you left the GPS activated, just slide the
notification panel and at the top you will have the toggle buttons,
one of them is the GPS.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Maps with GPS indicator in status bar..?

2012-02-02 Thread Abhilash baddam
Hi Mark,

Thanks for the reply, so it's depends on the settings of the user on
the mobile thats what you are saying right.It's not related to
programming am i right...? That setting we can find under settings and
Location right..?

On 2/2/12, Mark Murphy mmur...@commonsware.com wrote:
 On Thu, Feb 2, 2012 at 5:59 AM, Abhilash baddam
 abhilash.androiddevelo...@gmail.com wrote:
 Similarly how in my application if i am using GPS yhen i want to show
 GPS indicator on the status bar and whwnever i come out from my
 application i want to dismiss that indicator from staus bar. How can i
 achieve this...? can anybody give me some idea to get this...

 On production hardware, the indicator appears when somebody has
 registered for location updates and goes away when nobody has
 registered for location updates.

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy

 _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.4
 Available!

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Disabled EditText is not working properly...?

2012-01-26 Thread Abhilash baddam
Thanks to allI tried as aparna told is working fine

On Wed, Jan 25, 2012 at 3:05 PM, unicus unicus unicus...@gmail.com wrote:

 yes do set focusable false.

 *More info*,
 http://androidbasic-answer.blogspot.com/


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Disabled EditText is not working properly...?

2012-01-24 Thread Abhilash baddam
Hi,

I am disabling editext programmatically like this
edittext.setEnabled(false);...but when that disabled edittext is
focused then if i try to type something through keyboard cahracters
are entering into that edittext. But when it is disable mode i don't
want to enter anything...? how to solve this 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] Twitter Integration...?

2012-01-22 Thread Abhilash baddam
Hi,

I tried a lot to integrate twitter in my application but it's not working
for me.
 I had give proper consumer key and consumer secret key even though i am
getting this exception. Anyone help me out from this issue.

01-23 00:22:57.848: W/KeyCharacterMap(305): No keyboard for id 0
01-23 00:22:57.848: W/KeyCharacterMap(305): Using default keymap:
/system/usr/keychars/qwerty.kcm.bin
01-23 00:23:05.268: D/dalvikvm(305): GC_EXPLICIT freed 5772 objects /
290464 bytes in 163ms
01-23 00:23:30.988: D/dalvikvm(487): GC_FOR_MALLOC freed 8762 objects /
397696 bytes in 77ms
01-23 00:23:31.028:
I/com.ecs.android.sample.twitter.PrepareRequestTokenActivity(487): Starting
task to retrieve request token.
01-23 00:23:31.048:
I/com.ecs.android.sample.twitter.OAuthRequestTokenTask(487): Retrieving
request token from Google servers
01-23 00:23:31.508: D/dalvikvm(487): GC_FOR_MALLOC freed 2201 objects /
128456 bytes in 60ms
01-23 00:23:32.258: W/DefaultRequestDirector(487): Authentication error:
Unable to respond to any of these challenges: {oauth=WWW-Authenticate:
OAuth realm=http://api.twitter.com}
01-23 00:23:32.268: I/global(487): Default buffer size used in
BufferedReader constructor. It would be better to be explicit if an 8k-char
buffer is required.
01-23 00:23:32.289:
E/com.ecs.android.sample.twitter.OAuthRequestTokenTask(487): Error during
OAUth retrieve request token
01-23 00:23:32.289:
E/com.ecs.android.sample.twitter.OAuthRequestTokenTask(487):
oauth.signpost.exception.OAuthNotAuthorizedException: Authorization failed
(server replied with a 401). This can happen if the consumer key was not
correct or the signatures did not match.
01-23 00:23:32.289:
E/com.ecs.android.sample.twitter.OAuthRequestTokenTask(487): at
oauth.signpost.AbstractOAuthProvider.handleUnexpectedResponse(AbstractOAuthProvider.java:239)
01-23 00:23:32.289:
E/com.ecs.android.sample.twitter.OAuthRequestTokenTask(487): at
oauth.signpost.AbstractOAuthProvider.retrieveToken(AbstractOAuthProvider.java:189)
01-23 00:23:32.289:
E/com.ecs.android.sample.twitter.OAuthRequestTokenTask(487): at
oauth.signpost.AbstractOAuthProvider.retrieveRequestToken(AbstractOAuthProvider.java:69)
01-23 00:23:32.289:
E/com.ecs.android.sample.twitter.OAuthRequestTokenTask(487): at
com.ecs.android.sample.twitter.OAuthRequestTokenTask.doInBackground(OAuthRequestTokenTask.java:55)
01-23 00:23:32.289:
E/com.ecs.android.sample.twitter.OAuthRequestTokenTask(487): at
com.ecs.android.sample.twitter.OAuthRequestTokenTask.doInBackground(OAuthRequestTokenTask.java:1)
01-23 00:23:32.289:
E/com.ecs.android.sample.twitter.OAuthRequestTokenTask(487): at
android.os.AsyncTask$2.call(AsyncTask.java:185)
01-23 00:23:32.289:
E/com.ecs.android.sample.twitter.OAuthRequestTokenTask(487): at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
01-23 00:23:32.289:
E/com.ecs.android.sample.twitter.OAuthRequestTokenTask(487): at
java.util.concurrent.FutureTask.run(FutureTask.java:137)
01-23 00:23:32.289:
E/com.ecs.android.sample.twitter.OAuthRequestTokenTask(487): at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
01-23 00:23:32.289:
E/com.ecs.android.sample.twitter.OAuthRequestTokenTask(487): at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
01-23 00:23:32.289:
E/com.ecs.android.sample.twitter.OAuthRequestTokenTask(487): at
java.lang.Thread.run(Thread.java:1096)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Twitter Integration...?

2012-01-22 Thread Abhilash baddam
Hi,

Any help on this issue.

On 1/23/12, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote:
 Hi,

 I tried a lot to integrate twitter in my application but it's not working
 for me.
  I had give proper consumer key and consumer secret key even though i am
 getting this exception. Anyone help me out from this issue.

 01-23 00:22:57.848: W/KeyCharacterMap(305): No keyboard for id 0
 01-23 00:22:57.848: W/KeyCharacterMap(305): Using default keymap:
 /system/usr/keychars/qwerty.kcm.bin
 01-23 00:23:05.268: D/dalvikvm(305): GC_EXPLICIT freed 5772 objects /
 290464 bytes in 163ms
 01-23 00:23:30.988: D/dalvikvm(487): GC_FOR_MALLOC freed 8762 objects /
 397696 bytes in 77ms
 01-23 00:23:31.028:
 I/com.ecs.android.sample.twitter.PrepareRequestTokenActivity(487): Starting
 task to retrieve request token.
 01-23 00:23:31.048:
 I/com.ecs.android.sample.twitter.OAuthRequestTokenTask(487): Retrieving
 request token from Google servers
 01-23 00:23:31.508: D/dalvikvm(487): GC_FOR_MALLOC freed 2201 objects /
 128456 bytes in 60ms
 01-23 00:23:32.258: W/DefaultRequestDirector(487): Authentication error:
 Unable to respond to any of these challenges: {oauth=WWW-Authenticate:
 OAuth realm=http://api.twitter.com}
 01-23 00:23:32.268: I/global(487): Default buffer size used in
 BufferedReader constructor. It would be better to be explicit if an 8k-char
 buffer is required.
 01-23 00:23:32.289:
 E/com.ecs.android.sample.twitter.OAuthRequestTokenTask(487): Error during
 OAUth retrieve request token
 01-23 00:23:32.289:
 E/com.ecs.android.sample.twitter.OAuthRequestTokenTask(487):
 oauth.signpost.exception.OAuthNotAuthorizedException: Authorization failed
 (server replied with a 401). This can happen if the consumer key was not
 correct or the signatures did not match.
 01-23 00:23:32.289:
 E/com.ecs.android.sample.twitter.OAuthRequestTokenTask(487): at
 oauth.signpost.AbstractOAuthProvider.handleUnexpectedResponse(AbstractOAuthProvider.java:239)
 01-23 00:23:32.289:
 E/com.ecs.android.sample.twitter.OAuthRequestTokenTask(487): at
 oauth.signpost.AbstractOAuthProvider.retrieveToken(AbstractOAuthProvider.java:189)
 01-23 00:23:32.289:
 E/com.ecs.android.sample.twitter.OAuthRequestTokenTask(487): at
 oauth.signpost.AbstractOAuthProvider.retrieveRequestToken(AbstractOAuthProvider.java:69)
 01-23 00:23:32.289:
 E/com.ecs.android.sample.twitter.OAuthRequestTokenTask(487): at
 com.ecs.android.sample.twitter.OAuthRequestTokenTask.doInBackground(OAuthRequestTokenTask.java:55)
 01-23 00:23:32.289:
 E/com.ecs.android.sample.twitter.OAuthRequestTokenTask(487): at
 com.ecs.android.sample.twitter.OAuthRequestTokenTask.doInBackground(OAuthRequestTokenTask.java:1)
 01-23 00:23:32.289:
 E/com.ecs.android.sample.twitter.OAuthRequestTokenTask(487): at
 android.os.AsyncTask$2.call(AsyncTask.java:185)
 01-23 00:23:32.289:
 E/com.ecs.android.sample.twitter.OAuthRequestTokenTask(487): at
 java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
 01-23 00:23:32.289:
 E/com.ecs.android.sample.twitter.OAuthRequestTokenTask(487): at
 java.util.concurrent.FutureTask.run(FutureTask.java:137)
 01-23 00:23:32.289:
 E/com.ecs.android.sample.twitter.OAuthRequestTokenTask(487): at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
 01-23 00:23:32.289:
 E/com.ecs.android.sample.twitter.OAuthRequestTokenTask(487): at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
 01-23 00:23:32.289:
 E/com.ecs.android.sample.twitter.OAuthRequestTokenTask(487): at
 java.lang.Thread.run(Thread.java:1096)


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] call duration...?

2012-01-08 Thread Abhilash baddam
Hi,

I am calling a phone number through intent..like

Intent intent = new Intent(Intent.ACTION_CALL);
intent.setData(Uri.parse(tel:123456));
startActivityForResult(intent, 1);

how can i find the call duration means whenever the person has been
answered the call and whenever he dropped the call... for that i tried
like this...but i can be able to find out the when the person ended
the call but i cannot be able to find out the time whenever the call
has been answered.

   @Override
public void onCallStateChanged(int state, String incomingNumber) {
super.onCallStateChanged(state, incomingNumber);

// Don't fire before the call was made
if (state == TelephonyManager.CALL_STATE_OFFHOOK)
{
called = true;
dialled = true;
long startTime = System.currentTimeMillis();
Date date = new Date(startTime);
Toast.makeText(UITestActivity.this,Call Connected: +
date.toString(), Toast.LENGTH_SHORT).show();
}   

  if(state == TelephonyManager.CALL_STATE_RINGING){

Toast.makeText(UITestActivity.this, RINGING , Toast.LENGTH_SHORT).show();
}

// Call has ended -- now bring the activity back to front
if (called  state == TelephonyManager.CALL_STATE_IDLE) {
called = false;
System.out.println(DROPPED THE CALL);
mTelMgr.listen(this, PhoneStateListener.LISTEN_NONE);
long endtime = System.currentTimeMillis();
Date date = new Date(endtime);
   Toast.makeText(UITestActivity.this,Call Disconnected:
+ date.toString(), Toast.LENGTH_SHORT).show();
startActivity(new Intent(UITestActivity.this, UITestActivity.class));
}
}



On 1/4/12, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote:
 Hi narendra,

 I tried as per your suggestion thanks. But i was strucked  to find out
 whether the outgoing call has been answered.


 On 1/4/12, Narendra Bagade bagadenaren...@gmail.com wrote:
 refer related content provider like call log.

 On Wed, Jan 4, 2012 at 12:26 PM, Abhilash baddam 
 abhilash.androiddevelo...@gmail.com wrote:

 Hi,

 I want to know the call duration, when I called to other number and
 when that call-ends. How can i get the call duration...?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Regards,
 Narendra
 .

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] How can i display exactly on the top....?

2012-01-04 Thread Abhilash baddam
Hi poncho,

Thanks for the reply. I did get your suggestion, can you please
explain it clearly.

On 1/4/12, poncho poncho...@gmail.com wrote:
 Hi,

 I'm not sure that I understand, what's wrong with:
  popup.layout( left, top, left + width, top + height);

 /Poncho
 On 01/04/2012 08:21 AM, Abhilash baddam wrote:
 Hi,

 My problem is when i tap on the marker i want to show the popup
 exactly on the top of the marker like displayed in
 requires.png(attatchment) but the popup i am getting is always on the
 top of the screen like displayed in capture.png(attatchment) How
 can i achieve that...?

 On 1/4/12, TreKingtreking...@gmail.com  wrote:
 On Tue, Jan 3, 2012 at 1:31 PM, Abhilash baddam
 abhilash.androiddevelo...@gmail.com  wrote:

 any help regading this issue...

 Maybe if you clarified what you're asking, like I asked the first time
 around.

 -
 TreKinghttp://sites.google.com/site/rezmobileapps/treking  - Chicago
 transit tracking app for Android-powered devices

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] call duration...?

2012-01-04 Thread Abhilash baddam
Hi narendra,

I tried as per your suggestion thanks. But i was strucked  to find out
whether the outgoing call has been answered.


On 1/4/12, Narendra Bagade bagadenaren...@gmail.com wrote:
 refer related content provider like call log.

 On Wed, Jan 4, 2012 at 12:26 PM, Abhilash baddam 
 abhilash.androiddevelo...@gmail.com wrote:

 Hi,

 I want to know the call duration, when I called to other number and
 when that call-ends. How can i get the call duration...?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Regards,
 Narendra
 .

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] How can i display exactly on the top....?

2012-01-04 Thread Abhilash baddam
Hi poncho,

I tried but its not working as per your suggestion.

On 1/4/12, poncho poncho...@gmail.com wrote:
 Hi,

 What happen if you try to move the popup before displaying it using the
 following line?
  popup.layout( left, top, left + popup.getWidth(), top +
 popup.getHeight());

 /Poncho

 On 01/04/2012 11:35 AM, Abhilash baddam wrote:
 Hi poncho,

 Thanks for the reply. I did get your suggestion, can you please
 explain it clearly.

 On 1/4/12, ponchoponcho...@gmail.com  wrote:
 Hi,

 I'm not sure that I understand, what's wrong with:
   popup.layout( left, top, left + width, top + height);

 /Poncho
 On 01/04/2012 08:21 AM, Abhilash baddam wrote:
 Hi,

  My problem is when i tap on the marker i want to show the popup
 exactly on the top of the marker like displayed in
 requires.png(attatchment) but the popup i am getting is always on the
 top of the screen like displayed in capture.png(attatchment) How
 can i achieve that...?

 On 1/4/12, TreKingtreking...@gmail.com   wrote:
 On Tue, Jan 3, 2012 at 1:31 PM, Abhilash baddam
 abhilash.androiddevelo...@gmail.com   wrote:

 any help regading this issue...
 Maybe if you clarified what you're asking, like I asked the first time
 around.

 -
 TreKinghttp://sites.google.com/site/rezmobileapps/treking   - Chicago
 transit tracking app for Android-powered devices

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] How can i display exactly on the top....?

2012-01-04 Thread Abhilash baddam
any help on this issue?

On 1/4/12, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote:
 Hi poncho,

 I tried but its not working as per your suggestion.

 On 1/4/12, poncho poncho...@gmail.com wrote:
 Hi,

 What happen if you try to move the popup before displaying it using the
 following line?
  popup.layout( left, top, left + popup.getWidth(), top +
 popup.getHeight());

 /Poncho

 On 01/04/2012 11:35 AM, Abhilash baddam wrote:
 Hi poncho,

 Thanks for the reply. I did get your suggestion, can you please
 explain it clearly.

 On 1/4/12, ponchoponcho...@gmail.com  wrote:
 Hi,

 I'm not sure that I understand, what's wrong with:
   popup.layout( left, top, left + width, top + height);

 /Poncho
 On 01/04/2012 08:21 AM, Abhilash baddam wrote:
 Hi,

  My problem is when i tap on the marker i want to show the popup
 exactly on the top of the marker like displayed in
 requires.png(attatchment) but the popup i am getting is always on the
 top of the screen like displayed in capture.png(attatchment) How
 can i achieve that...?

 On 1/4/12, TreKingtreking...@gmail.com   wrote:
 On Tue, Jan 3, 2012 at 1:31 PM, Abhilash baddam
 abhilash.androiddevelo...@gmail.com   wrote:

 any help regading this issue...
 Maybe if you clarified what you're asking, like I asked the first
 time
 around.

 -
 TreKinghttp://sites.google.com/site/rezmobileapps/treking   -
 Chicago
 transit tracking app for Android-powered devices

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] How can i display exactly on the top....?

2012-01-04 Thread Abhilash baddam
any help on this issue...

On 1/4/12, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote:
 any help on this issue?

 On 1/4/12, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote:
 Hi poncho,

 I tried but its not working as per your suggestion.

 On 1/4/12, poncho poncho...@gmail.com wrote:
 Hi,

 What happen if you try to move the popup before displaying it using the
 following line?
  popup.layout( left, top, left + popup.getWidth(), top +
 popup.getHeight());

 /Poncho

 On 01/04/2012 11:35 AM, Abhilash baddam wrote:
 Hi poncho,

 Thanks for the reply. I did get your suggestion, can you please
 explain it clearly.

 On 1/4/12, ponchoponcho...@gmail.com  wrote:
 Hi,

 I'm not sure that I understand, what's wrong with:
   popup.layout( left, top, left + width, top + height);

 /Poncho
 On 01/04/2012 08:21 AM, Abhilash baddam wrote:
 Hi,

  My problem is when i tap on the marker i want to show the popup
 exactly on the top of the marker like displayed in
 requires.png(attatchment) but the popup i am getting is always on the
 top of the screen like displayed in capture.png(attatchment) How
 can i achieve that...?

 On 1/4/12, TreKingtreking...@gmail.com   wrote:
 On Tue, Jan 3, 2012 at 1:31 PM, Abhilash baddam
 abhilash.androiddevelo...@gmail.com   wrote:

 any help regading this issue...
 Maybe if you clarified what you're asking, like I asked the first
 time
 around.

 -
 TreKinghttp://sites.google.com/site/rezmobileapps/treking   -
 Chicago
 transit tracking app for Android-powered devices

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Fwd: How can i display exactly on the top....?

2012-01-03 Thread Abhilash baddam
Hi,

I am working maps. I am displaying different locations using
marker. When i tap on the marker i can be to display a popup which
will display always on the top screen, but how can i display exactly
on the top of marker...

here is my ItemizedOverlay Class..

private class SitesOverlay extends ItemizedOverlayOverlayItem {
private ListOverlayItem items = new ArrayListOverlayItem();
private Drawable marker = null;
private PopupPanel panel = new PopupPanel(R.layout.popup);

public SitesOverlay(Drawable marker) {
super(marker);
this.marker = marker;
for (int i = 0; i  dealersDataList.size(); i++) {
items.add(new OverlayItem(getPoint(

Double.parseDouble(dealersDataList.get(i).latitude),

Double.parseDouble(dealersDataList.get(i).longitude)), 
+ dealersDataList.get(i).id,  
+ dealersDataList.get(i).name));

}
populate();
}

@Override
public void draw(Canvas canvas, MapView mapView, boolean 
shadow) {
super.draw(canvas, mapView, shadow);

boundCenterBottom(marker);
}
public boolean onTouchEvent(MotionEvent event, MapView mapView) 
{
// ---when user lifts his finger---
if (event.getAction() == 1) {

panel.hide();

}
return false;
}

@Override
protected OverlayItem createItem(int i) {
return (items.get(i));
}

@Override
protected boolean onTap(final int i) {
Log.d(, );
OverlayItem item = getItem(i);
GeoPoint geo = item.getPoint();
Point pt = map.getProjection().toPixels(geo, null);
map.getController().setCenter(geo);
View view = panel.getView();

view.setOnTouchListener(new OnTouchListener() {
public boolean onTouch(View v, MotionEvent 
event) {
if(event.getAction() == 
MotionEvent.ACTION_UP){
// System.out.println(YAHOOO 
+dealersDataList.get(i).name);
}
return true;
}
});
//String message=+ jsonValues.get(i).name +\nBikes
:+jsonValues.get(i).bikesAvailable+
Slots:+jsonValues.get(i).emptySlots;
//Toast.makeText(getApplicationContext(), message, 
Toast.LENGTH_LONG).show();

((TextView) 
view.findViewById(R.id.longitude)).setText(Name :
+dealersDataList.get(i).name);
((TextView) 
view.findViewById(R.id.x)).setText(\nAddress :
+dealersDataList.get(i).address+ Contact Number
:+dealersDataList.get(i).phoneNum);
Button more = (Button) view.findViewById(R.id.more);
more.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View v) {
System.out.println(YAHOOO 
+dealersDataList.get(i).name);

}
});
panel.show(pt.y * 2  map.getHeight());
setPanel(panel);
return false;
}

@Override
public int size() {
return (items.size());
}

}

private void setPanel(PopupPanel panel2) {
// TODO Auto-generated method stub
panel = panel2;
}


class PopupPanel {
View popup;
boolean isVisible = false;
PopupPanel(int layout) {
ViewGroup parent = (ViewGroup) map.getParent();

popup = getLayoutInflater().inflate(layout, parent, 
false);

popup.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
hide();
}
});
}

   

Re: [android-developers] How can i display exactly on the top....?

2012-01-03 Thread Abhilash baddam
any help regading this issue...

On Tue, Jan 3, 2012 at 9:06 PM, TreKing treking...@gmail.com wrote:

 On Tue, Jan 3, 2012 at 8:41 AM, Abhilash baddam 
 abhilash.androiddevelo...@gmail.com wrote:

 When i tap on the marker i can be to display a popup which will display
 always on the top screen, but how can i display exactly on the top of marker


 You should clarify.


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] call duration...?

2012-01-03 Thread Abhilash baddam
Hi,

I want to know the call duration, when I called to other number and
when that call-ends. How can i get the call duration...?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] GIF image download

2011-04-14 Thread Abhilash baddam
Hi vani,

   try this link may be it will be helpful for u

http://androidosbeginning.blogspot.com/2010/09/gif-animation-in-android.html

On Tue, Apr 12, 2011 at 5:52 PM, vani reddy vani.redd...@gmail.com wrote:


 Hi,
   I am trying to download gif images from the server, but i am getting the
 below error.

 04-12 17:49:26.278: WARN/System.err(16768): java.io.IOException
 04-12 17:49:26.278: WARN/System.err(16768): at
 java.io.InputStream.reset(InputStream.java:204)
 04-12 17:49:26.278: WARN/System.err(16768): at
 android.graphics.Movie.decodeStream(Native Method)
 04-12 17:49:26.278: WARN/System.err(16768): at
 com.tli.gif.GIFAnimation$GIFView.init(GIFAnimation.java:40)
 04-12 17:49:26.278: WARN/System.err(16768): at
 com.tli.gif.GIFAnimation.onCreate(GIFAnimation.java:20)
 04-12 17:49:26.278: WARN/System.err(16768): at
 android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
 04-12 17:49:26.278: WARN/System.err(16768): at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
 04-12 17:49:26.278: WARN/System.err(16768): at
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
 04-12 17:49:26.278: WARN/System.err(16768): at
 android.app.ActivityThread.access$2200(ActivityThread.java:119)
 04-12 17:49:26.278: WARN/System.err(16768): at
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
 04-12 17:49:26.278: WARN/System.err(16768): at
 android.os.Handler.dispatchMessage(Handler.java:99)
 04-12 17:49:26.278: WARN/System.err(16768): at
 android.os.Looper.loop(Looper.java:123)
 04-12 17:49:26.278: WARN/System.err(16768): at
 android.app.ActivityThread.main(ActivityThread.java:4363)
 04-12 17:49:26.278: WARN/System.err(16768): at
 java.lang.reflect.Method.invokeNative(Native Method)
 04-12 17:49:26.278: WARN/System.err(16768): at
 java.lang.reflect.Method.invoke(Method.java:521)
 04-12 17:49:26.278: WARN/System.err(16768): at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
 04-12 17:49:26.278: WARN/System.err(16768): at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
 04-12 17:49:26.278: WARN/System.err(16768): at
 dalvik.system.NativeStart.main(Native Method)


 --
  Regards,
 Vani Reddy

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Rarely getting ActivityNotFoundException?

2011-04-13 Thread Abhilash baddam
Hi,

 In my app rarely it's showing ActivityNotFoundException even i have
mentioned all Activities in my manifest file. The app running properly
sometimes only
   its showing that error...? What may be the reason?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 do i upload the file from android mobile to public server

2011-04-08 Thread Abhilash baddam
Hi,

   may be this link will be helpful to u..
http://androidsnips.blogspot.com/2011_03_01_archive.html

On Fri, Apr 8, 2011 at 11:36 AM, snehalal gangadharam
snehala...@gmail.comwrote:


 hi,

 y i didnt get any reply? i have tested this application from real device. i
 am getting IO Exception. i have posted the errror log below:
 kindly guide me to solve this problem.

 /kernel  (  115): [  508.395324] device rmnet0 entered promiscuous mode
 W/System.err( 1281): java.io.IOException: Unable to connect to server:
 Unable to retrieve file: 550
 W/System.err( 1281):  at
 org.apache.harmony.luni.internal.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:203)
 W/System.err( 1281):  at
 org.apache.harmony.luni.internal.net.www.protocol.ftp.FtpURLConnection.getOutputStream(FtpURLConnection.java:339)
 W/System.err( 1281):  at
 com.example.android.uplaod.MyFileupload.upload(MyFileupload.java:102)
 W/System.err( 1281):  at
 com.example.android.uplaod.MyFileupload$1.onClick(MyFileupload.java:37)
 W/System.err( 1281):  at android.view.View.performClick(View.java:2534)
 W/System.err( 1281):  at android.view.View$PerformClick.run(View.java:9210)
 W/System.err( 1281):  at
 android.os.Handler.handleCallback(Handler.java:587)
 W/System.err( 1281):  at
 android.os.Handler.dispatchMessage(Handler.java:92)
 W/System.err( 1281):  at android.os.Looper.loop(Looper.java:123)
 W/System.err( 1281):  at
 android.app.ActivityThread.main(ActivityThread.java:3701)
 W/System.err( 1281):  at java.lang.reflect.Method.invokeNative(Native
 Method)
 W/System.err( 1281):  at java.lang.reflect.Method.invoke(Method.java:507)
 W/System.err( 1281):  at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:862)
 W/System.err( 1281):  at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
 W/System.err( 1281):  at dalvik.system.NativeStart.main(Native Method)
 I/System.out( 1281): connection opened
 W/System.err( 1281): java.io.IOException: Unable to connect to server:
 Unable to retrieve file: 550
 W/System.err( 1281):  at
 org.apache.harmony.luni.internal.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:203)
 W/System.err( 1281):  at
 org.apache.harmony.luni.internal.net.www.protocol.ftp.FtpURLConnection.getOutputStream(FtpURLConnection.java:339)
 W/System.err( 1281):  at
 com.example.android.uplaod.MyFileupload.upload(MyFileupload.java:102)
 W/System.err( 1281):  at
 com.example.android.uplaod.MyFileupload$1.onClick(MyFileupload.java:37)
 W/System.err( 1281):  at android.view.View.performClick(View.java:2534)
 W/System.err( 1281):  at android.view.View$PerformClick.run(View.java:9210)
 W/System.err( 1281):  at
 android.os.Handler.handleCallback(Handler.java:587)
 W/System.err( 1281):  at
 android.os.Handler.dispatchMessage(Handler.java:92)
 W/System.err( 1281):  at android.os.Looper.loop(Looper.java:123)
 W/System.err( 1281):  at
 android.app.ActivityThread.main(ActivityThread.java:3701)
 W/System.err( 1281):  at java.lang.reflect.Method.invokeNative(Native
 Method)

 Thanks  Regards
 Sneha


 On Thu, Mar 31, 2011 at 11:37 AM, snehalal gangadharam 
 snehala...@gmail.com wrote:

 hi , i have debuged the code, i am getting IO Exception,

 03-31 10:47:17.001: WARN/System.err(278): java.io.IOException: Unable to
 connect to server: null
 03-31 10:47:17.061: WARN/System.err(278): at
 org.apache.harmony.luni.internal.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:204)
 03-31 10:47:17.061: WARN/System.err(278): at
 org.apache.harmony.luni.internal.net.www.protocol.ftp.FtpURLConnection.getOutputStream(FtpURLConnection.java:344)
 03-31 10:47:17.061: WARN/System.err(278): at
 com.example.android.uplaod.MyFileupload.upload(MyFileupload.java:103)
 03-31 10:47:17.072: WARN/System.err(278): at
 com.example.android.uplaod.MyFileupload$1.onClick(MyFileupload.java:37)
 03-31 10:47:17.092: WARN/System.err(278): at
 android.view.View.performClick(View.java:2408)
 03-31 10:47:17.092: WARN/System.err(278): at
 android.view.View$PerformClick.run(View.java:8816)
 03-31 10:47:17.102: WARN/System.err(278): at
 android.os.Handler.handleCallback(Handler.java:587)
 03-31 10:47:17.102: WARN/System.err(278): at
 android.os.Handler.dispatchMessage(Handler.java:92)
 03-31 10:47:17.111: WARN/System.err(278): at
 android.os.Looper.loop(Looper.java:123)
 03-31 10:47:17.111: WARN/System.err(278): at
 android.app.ActivityThread.main(ActivityThread.java:4627)
 03-31 10:47:17.121: WARN/System.err(278): at
 java.lang.reflect.Method.invokeNative(Native Method)
 03-31 10:47:17.121: WARN/System.err(278): at
 java.lang.reflect.Method.invoke(Method.java:521)
 03-31 10:47:17.131: WARN/System.err(278): at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
 03-31 10:47:17.141: WARN/System.err(278): at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
 03-31 10:47:17.141: WARN/System.err(278): at
 

Re: [android-developers] Re: Marquee is not worked when screen rotate

2011-04-08 Thread Abhilash baddam
Hi pramod,

For me also it's working, whenever  the string length is
more. So that i have given the string like this
   string
 

On Fri, Apr 8, 2011 at 12:36 PM, pramod.deore deore.pramo...@gmail.comwrote:

 Hi, Zsolt Vasvari Thanks for reply. When I tried above code with large
 string message then marquee works properly. Is that mean marquee
 useful for only large string i.e to show large line data which is not
 fit into screen size?

 On Apr 8, 11:56 am, Zsolt Vasvari zvasv...@gmail.com wrote:
  Create a bug report onhttp://b.android.com  I dont' see anything
  wrong with your code.   Using the emulator, try to determine on which
  Android SDK level it broke on and file a bug report.  Put
  Regression, Honeycomb and 3.0 in the title, if it applies so
  that you get some Google people to pay attention.  Don't expect a
  respone, but with any luck, it will be fixed in the next SDK update.
 
  On Apr 8, 2:37 pm, pramod.deore deore.pramo...@gmail.com wrote:
 
 
 
 
 
 
 
   Hi all, In my application I am using marquee. It works perfectly, but
   when I rotate screen then it is not working. following is my code.
 
   public class TextViewMarquee extends Activity {
   private TextView tv;
   @Override
   protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.main);
   tv = (TextView) this.findViewById(R.id.mywidget);
   tv.setSelected(true);  // Set focus to the textview
   }
 
   }
 
   main.xml file is as
 
   ?xml version=1.0 encoding=utf-8?
   RelativeLayout
   xmlns:android=http://schemas.android.com/apk/res/android;
   android:layout_width=fill_parent
   android:layout_height=fill_parent
   TextView
   android:id=@+id/mywidget
   android:layout_width=wrap_content
   android:layout_height=wrap_content
 
   android:ellipsize=marquee
   android:fadingEdge=horizontal
   android:marqueeRepeatLimit=marquee_forever
   android:scrollHorizontally=true
   android:textColor=#ff4500
   android:text=Simple application that shows how to use
   marquee, with a long text /
   /RelativeLayout
 
   what should I have to do so marquee also works after screen rotate?
 
   Thanks in advance

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Marquee is not worked when screen rotate

2011-04-08 Thread Abhilash baddam
Hi Pramod,

   For small String its not working i am also using the same
version.

On Fri, Apr 8, 2011 at 1:42 PM, pramod.deore deore.pramo...@gmail.comwrote:

 Hi Abhilash, for lengthy string its working. try with smaller String
 like Test String and let me know marquee is working or not? I am
 using 2.1 Update1. API level is 7

 On Apr 8, 12:37 pm, Abhilash baddam
 abhilash.androiddevelo...@gmail.com wrote:
  Hi pramod,
 
  For me also it's working, whenever  the string length is
  more. So that i have given the string like this
  
 string
   
 
  On Fri, Apr 8, 2011 at 12:36 PM, pramod.deore deore.pramo...@gmail.com
 wrote:
 
 
 
 
 
 
 
   Hi, Zsolt Vasvari Thanks for reply. When I tried above code with large
   string message then marquee works properly. Is that mean marquee
   useful for only large string i.e to show large line data which is not
   fit into screen size?
 
   On Apr 8, 11:56 am, Zsolt Vasvari zvasv...@gmail.com wrote:
Create a bug report onhttp://b.android.com I dont' see anything
wrong with your code.   Using the emulator, try to determine on which
Android SDK level it broke on and file a bug report.  Put
Regression, Honeycomb and 3.0 in the title, if it applies so
that you get some Google people to pay attention.  Don't expect a
respone, but with any luck, it will be fixed in the next SDK update.
 
On Apr 8, 2:37 pm, pramod.deore deore.pramo...@gmail.com wrote:
 
 Hi all, In my application I am using marquee. It works perfectly,
 but
 when I rotate screen then it is not working. following is my code.
 
 public class TextViewMarquee extends Activity {
 private TextView tv;
 @Override
 protected void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.main);
 tv = (TextView) this.findViewById(R.id.mywidget);
 tv.setSelected(true);  // Set focus to the textview
 }
 
 }
 
 main.xml file is as
 
 ?xml version=1.0 encoding=utf-8?
 RelativeLayout
 xmlns:android=http://schemas.android.com/apk/res/android;
 android:layout_width=fill_parent
 android:layout_height=fill_parent
 TextView
 android:id=@+id/mywidget
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 
 android:ellipsize=marquee
 android:fadingEdge=horizontal
 android:marqueeRepeatLimit=marquee_forever
 android:scrollHorizontally=true
 android:textColor=#ff4500
 android:text=Simple application that shows how to use
 marquee, with a long text /
 /RelativeLayout
 
 what should I have to do so marquee also works after screen rotate?
 
 Thanks in advance
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How much time it will take approximately ?

2011-04-06 Thread Abhilash baddam
Hi,

 can anyone is having idea that  how much time it will
take approximately  to connect from one- WiFi to another WiFi. Suppose i was
connected to
 one WiFi when it is out range then how much  time the device will take
to connect to another WiFi router  which is in range...?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 can I get current running Activity from Context

2011-03-31 Thread Abhilash baddam
Hi,

may be the below link will help you.

http://qtcstation.com/2011/01/getting-info-about-your-currently-running-activities/

On Wed, Mar 30, 2011 at 12:00 PM, Takeyuki UEDA grenouill.v...@gmail.comwrote:

 Hi,

 Does anyone knows how to get current running Activity from Context?
 Because I need Activity in my junit class.

 Best regards,
 Takeyuki

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How to hide status bar..?

2011-03-24 Thread Abhilash baddam
Hi,

I referred this link
http://developer.android.com/resources/articles/on-screen-inputs.html . In
that if the user clicks on EditText(for ex To: ) at that time  keyboard will
be popped out
and at the same time the user can be able to scroll to see all remaining
views(ex: compose,subject, send button) in that screen. Similarly in my app
i have one activity in that i am having some widgets or views.
Suppose if the user clicks on Edittext which is in my Activity then
keyboard is popping out and i can be able to scroll to see remaining views.
But if i give this attribute *
android:theme=@android:style/Theme.NoTitleBar.Fullscreen* in manifest i
was unable to scroll to see remaining views but if give attribute *
android:theme=@android:style/Theme.NoTitleBar* like this in manifest i can
be able to scroll to see remaining view but there is status bar in that
screen, here i want full screen and even if the keyboard is popped out i can
be able to scroll to see remaining views..? what changes i have to made for
this..?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] how to convert...?

2011-03-17 Thread Abhilash baddam
Hi,

How to convert the timestamps having values more than year 2038 to date
format in android.

 I have to convert the timestamp which is coming from server to date format
in my android Application.
This is the timestamp, I got from Server :

 25340230079

When I convert this to date, it shows :

 1-01-01

But the actual date is :

 2038-01-19



How can i do this..?Any 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] Android developer site is not working?

2011-03-08 Thread Abhilash baddam
Hi,
   why http://www.developer.android.com is not working. Anybody is having
any idea..?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Android developer site is not working?

2011-03-08 Thread Abhilash baddam
Yes its working now. Previously sometime it shows Error 500. Now its
working.

On Tue, Mar 8, 2011 at 7:20 PM, Mark Murphy mmur...@commonsware.com wrote:

 It's also experiencing some 500 errors in general. I would use the
 local copy of your documentation, installed with your SDK, for a bit
 until they sort out the server woe.

 On Tue, Mar 8, 2011 at 8:48 AM, Florian Rohrweck f.rohrw...@gmail.com
 wrote:
  http://www.developer.android.com try it without the www
  http://developer.android.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



 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy

 Android Training Worldwide: http://commonsware.com/training

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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]

2011-03-03 Thread Abhilash baddam
Hi,

*Yappaaa..*Well r u using listview  or autocompletetextview to search
the items. Try to refresh the the listview if u r using ListView.
Send some code snippet so that we can try to resolve ur problem.






On Thu, Mar 3, 2011 at 1:12 PM, vani reddy vani.redd...@gmail.com wrote:


 Hi,
When i do a search and press search button,the searched items are
 displayed,in the same activity when i search some other item and press
 search button it displays the searched items,but when i try to scroll those,
 my application throws an arrayIndexOutOfBoundsException, how do i remove old
 view and replace it with new view..
 --
  Regards,
 Vani

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Getting Exception while creating..?

2011-02-23 Thread Abhilash baddam
Hi,
I am trying to create a table, like this


*myDB.execSQL(CREATE TABLE IF NOT EXISTS bikes_list(_id INTEGER
AUTOINCREMENT, name PRIMARY KEY VARCHAR , availablebikes INT, slots
INT,status VARCHAR););*
*
*
but i am getting this Exception,
*
*
* *ERROR/AndroidRuntime(11141):
Caused by: android.database.sqlite.SQLiteException: near AUTOINCREMENT:
syntax error: CREATE TABLE IF NOT EXISTS bikes_list(_id INTEGER
AUTOINCREMENT, name PRIMARY KEY VARCHAR , availablebikes INT, slots
INT,status VARCHAR);



what may be the reason..?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Getting Exception while creating..?

2011-02-23 Thread Abhilash baddam
Hi Mark,

   What's the solution for my problem, i want the _id column should
have integer values and there should be increment. For the column *name *i
don't want to add duplicate values. Any alternate is there.

On Wed, Feb 23, 2011 at 7:50 PM, Mark Murphy mmur...@commonsware.comwrote:

 AUTOINCREMENT is only available on INTEGER PRIMARY KEY columns:

 http://sqlite.org/lang_createtable.html
 http://sqlite.org/autoinc.html

 On Wed, Feb 23, 2011 at 9:15 AM, Abhilash baddam
 abhilash.androiddevelo...@gmail.com wrote:
  Hi,
  I am trying to create a table, like this
 
  myDB.execSQL(CREATE TABLE IF NOT EXISTS bikes_list(_id INTEGER
  AUTOINCREMENT, name PRIMARY KEY VARCHAR , availablebikes INT, slots
  INT,status VARCHAR););
  but i am getting this Exception,
   ERROR/AndroidRuntime(11141):
  Caused by: android.database.sqlite.SQLiteException: near AUTOINCREMENT:
  syntax error: CREATE TABLE IF NOT EXISTS bikes_list(_id INTEGER
  AUTOINCREMENT, name PRIMARY KEY VARCHAR , availablebikes INT, slots
  INT,status VARCHAR);
 
 
  what may be the reason..?
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en



 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy

 Android App Developer Books: http://commonsware.com/books

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Getting Exception while creating..?

2011-02-23 Thread Abhilash baddam
I used like that, but i am getting exception.../?

m*yDB.execSQL(CREATE TABLE IF NOT EXISTS bikes_list(_id INTEGER PRIMARY KEY
AUTOINCREMENT, name UNIQUE VARCHAR , availablebikes INT, slots INT,status
VARCHAR););*



On Wed, Feb 23, 2011 at 8:12 PM, Mark Murphy mmur...@commonsware.comwrote:

 Make the _ID AUTOINCREMENT and use a UNIQUE constraint on the name.

 On Wed, Feb 23, 2011 at 9:32 AM, Abhilash baddam
 abhilash.androiddevelo...@gmail.com wrote:
  Hi Mark,
 What's the solution for my problem, i want the _id column
 should
  have integer values and there should be increment. For the column name i
  don't want to add duplicate values. Any alternate is there.
 
  On Wed, Feb 23, 2011 at 7:50 PM, Mark Murphy mmur...@commonsware.com
  wrote:
 
  AUTOINCREMENT is only available on INTEGER PRIMARY KEY columns:
 
  http://sqlite.org/lang_createtable.html
  http://sqlite.org/autoinc.html
 
  On Wed, Feb 23, 2011 at 9:15 AM, Abhilash baddam
  abhilash.androiddevelo...@gmail.com wrote:
   Hi,
   I am trying to create a table, like this
  
   myDB.execSQL(CREATE TABLE IF NOT EXISTS bikes_list(_id INTEGER
   AUTOINCREMENT, name PRIMARY KEY VARCHAR , availablebikes INT, slots
   INT,status VARCHAR););
   but i am getting this Exception,
ERROR/AndroidRuntime(11141):
   Caused by: android.database.sqlite.SQLiteException: near
   AUTOINCREMENT:
   syntax error: CREATE TABLE IF NOT EXISTS bikes_list(_id INTEGER
   AUTOINCREMENT, name PRIMARY KEY VARCHAR , availablebikes INT, slots
   INT,status VARCHAR);
  
  
   what may be the reason..?
  
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
   http://groups.google.com/group/android-developers?hl=en
 
 
 
  --
  Mark Murphy (a Commons Guy)
  http://commonsware.com | http://github.com/commonsguy
  http://commonsware.com/blog | http://twitter.com/commonsguy
 
  Android App Developer Books: http://commonsware.com/books
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
 android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en



 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy

 Android App Developer Books: http://commonsware.com/books

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Getting Exception while creating..?

2011-02-23 Thread Abhilash baddam
Thanks Mark,

You are right, datatype should come first. Thanks it's working
fine..

On Wed, Feb 23, 2011 at 9:16 PM, Mark Murphy mmur...@commonsware.comwrote:

 Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
 LogCat and look at the stack trace associated with your exception.

 Your UNIQUE clause is incorrect. At minimum, the datatype needs to come
 first.

 On Wed, Feb 23, 2011 at 10:35 AM, Abhilash baddam
 abhilash.androiddevelo...@gmail.com wrote:
  I used like that, but i am getting exception.../?
  myDB.execSQL(CREATE TABLE IF NOT EXISTS bikes_list(_id INTEGER PRIMARY
 KEY
  AUTOINCREMENT, name UNIQUE VARCHAR , availablebikes INT, slots INT,status
  VARCHAR););
 
 
  On Wed, Feb 23, 2011 at 8:12 PM, Mark Murphy mmur...@commonsware.com
  wrote:
 
  Make the _ID AUTOINCREMENT and use a UNIQUE constraint on the name.
 
  On Wed, Feb 23, 2011 at 9:32 AM, Abhilash baddam
  abhilash.androiddevelo...@gmail.com wrote:
   Hi Mark,
  What's the solution for my problem, i want the _id column
   should
   have integer values and there should be increment. For the column name
 i
   don't want to add duplicate values. Any alternate is there.
  
   On Wed, Feb 23, 2011 at 7:50 PM, Mark Murphy mmur...@commonsware.com
 
   wrote:
  
   AUTOINCREMENT is only available on INTEGER PRIMARY KEY columns:
  
   http://sqlite.org/lang_createtable.html
   http://sqlite.org/autoinc.html
  
   On Wed, Feb 23, 2011 at 9:15 AM, Abhilash baddam
   abhilash.androiddevelo...@gmail.com wrote:
Hi,
I am trying to create a table, like this
   
myDB.execSQL(CREATE TABLE IF NOT EXISTS bikes_list(_id INTEGER
AUTOINCREMENT, name PRIMARY KEY VARCHAR , availablebikes INT, slots
INT,status VARCHAR););
but i am getting this Exception,
 ERROR/AndroidRuntime(11141):
Caused by: android.database.sqlite.SQLiteException: near
AUTOINCREMENT:
syntax error: CREATE TABLE IF NOT EXISTS bikes_list(_id INTEGER
AUTOINCREMENT, name PRIMARY KEY VARCHAR , availablebikes INT, slots
INT,status VARCHAR);
   
   
what may be the reason..?
   
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
  
  
  
   --
   Mark Murphy (a Commons Guy)
   http://commonsware.com | http://github.com/commonsguy
   http://commonsware.com/blog | http://twitter.com/commonsguy
  
   Android App Developer Books: http://commonsware.com/books
  
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
   android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
   http://groups.google.com/group/android-developers?hl=en
  
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
   http://groups.google.com/group/android-developers?hl=en
 
 
 
  --
  Mark Murphy (a Commons Guy)
  http://commonsware.com | http://github.com/commonsguy
  http://commonsware.com/blog | http://twitter.com/commonsguy
 
  Android App Developer Books: http://commonsware.com/books
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
 android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en



 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy

 Android App Developer Books: http://commonsware.com/books

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr

Re: [android-developers] Re: How to delete...?

2011-02-22 Thread Abhilash baddam
myDB.execSQL(DELETE FROM favourites where month= ' +str+ ' );

the above statement is working fine but if the *str*  contains apostrophe
then i am getting exception near *'s. *Otherwise working only if the str
contains apostrophe( ' ) then only i am getting problem..?How can i solve
this issue...?


On Mon, Feb 14, 2011 at 11:14 PM, macno ma...@macno.org wrote:



 On Feb 14, 3:59 pm, Abhilash baddam
 abhilash.androiddevelo...@gmail.com wrote:
  Hi,
 
   what type of mistake is i am doing?
 

 If you don't want to use bind variables, you need to add ' around non
 numeric values:

 myDB.execSQL(DELETE FROM favourites WHERE
 month='+string+',null);

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: How to delete...?

2011-02-22 Thread Abhilash baddam
Hi Carlos,

Means where exactly i am doing mistake means while inserting
values or deleting the values?

On Tue, Feb 22, 2011 at 6:12 PM, Carlos Silva r3...@r3pek.org wrote:

 On Tue, Feb 22, 2011 at 11:39, Abhilash baddam 
 abhilash.androiddevelo...@gmail.com wrote:

 myDB.execSQL(DELETE FROM favourites where month= ' +str+ ' );

 the above statement is working fine but if the *str*  contains apostrophe
 then i am getting exception near *'s. *Otherwise working only if the str
 contains apostrophe( ' ) then only i am getting problem..?How can i solve
 this issue...?


 You really should read about SQL Injection security problems.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Can we install?

2011-02-22 Thread Abhilash baddam
Hi,

can we install Android market in Emulator?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How to display,exactly?

2011-02-20 Thread Abhilash baddam
Hi,

In my app i can be able to display  maps with markers. When the user
clicks on a particular marker, it will display the details of that
particular location,
but it display's details for every marker on the top the screen. I want
to display exactly on the top marker. Hoe can i do this...?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How to rotate?

2011-02-18 Thread Abhilash baddam
Hi,

I am trying to rotate an image for every 3 secs, but it's not working. I
did like this
but not working..what may be the reason..?

public class TimerEx extends Activity {
 Timer timer;
 ImageView image;
 Bitmap bMap = null;
 Bitmap bitmap;
Matrix mat = new Matrix();
 @Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
System.out.println(Inside create);
 image = (ImageView) findViewById(R.id.test_image);
 bMap = BitmapFactory.decodeResource(getResources(), R.drawable.image);
  image.setImageBitmap(bMap);
  timer=new Timer();
  timer.schedule(new UpdateImage(),100,3000);
   }
class UpdateImage extends TimerTask
{
@Override
public void run() {
mat.postRotate(45);
bitmap=Bitmap.createBitmap(bMap,0,0, bMap.getWidth(), bMap.getHeight(),
 mat, false);
image.setImageBitmap(bitmap);
}
}
}

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 rotate?

2011-02-18 Thread Abhilash baddam
Anybody can help me to solve this issue

On Fri, Feb 18, 2011 at 5:56 PM, Kostya Vasilyev kmans...@gmail.com wrote:

  Don't use a Java Timer / TimerTask to update the UI. If you are lucky, it
 won't do anything, or else it can crash.

 This explains why and what to use instead:

 http://developer.android.com/resources/articles/timed-ui-updates.html

 -- Kostya

 18.02.2011 15:17, Abhilash baddam пишет:

 Hi,

  I am trying to rotate an image for every 3 secs, but it's not
 working. I did like this
 but not working..what may be the reason..?

  public class TimerEx extends Activity {
  Timer timer;
  ImageView image;
  Bitmap bMap = null;
  Bitmap bitmap;
  Matrix mat = new Matrix();
   @Override
  public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);
  System.out.println(Inside create);
  image = (ImageView) findViewById(R.id.test_image);
  bMap = BitmapFactory.decodeResource(getResources(), R.drawable.image);
   image.setImageBitmap(bMap);
   timer=new Timer();
   timer.schedule(new UpdateImage(),100,3000);
}
 class UpdateImage extends TimerTask
 {
  @Override
  public void run() {
  mat.postRotate(45);
  bitmap=Bitmap.createBitmap(bMap,0,0, bMap.getWidth(), bMap.getHeight(),
  mat, false);
  image.setImageBitmap(bitmap);
  }
  }
 }

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en



 --
 Kostya Vasilyev -- http://kmansoft.wordpress.com

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Exception while calling web service----java.net.SocketException: Permission denied

2011-02-17 Thread Abhilash baddam
have u given the Internet Permissions in Manifest File.

On Fri, Feb 18, 2011 at 12:49 PM, Ravi ravi.chavan...@gmail.com wrote:

 Hi,
  I am developing one application through which i am calling web
 service.
  The web Service is hosted on the local machine,but while calling
 web service i got
  java.net.SocketException: Permission denied this bug.
Mentioned internet permission in the manifest file
 although, i am getting this.
  I am looking forward for positive response.

 Thanks in Advance.
 Regards

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How to handle?

2011-02-16 Thread Abhilash baddam
Hi,

   How to handle the Home key functionality. Suppose in my app i am having 5
activities. When the user in 3rd activity if he clicks on Home button i want
to finish my app. If he starts the app again then i want to start the app
from starting onwards.

I did like this but its not working,


public boolean onKeyDown(int keyCode, KeyEvent event) {
if ((keyCode == KeyEvent.KEYCODE_HOME)) {
 //webView.goBack();
 System.out.println(HOME in TEstApps);
 finish();
return true;
}
return super.onKeyDown(keyCode, event);
}

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How to delete...?

2011-02-14 Thread Abhilash baddam
Hi,

In sqlite database, i am having some values. How can i delete a
particular value from database. I tried like but showing error..

What mistake is i am doin here..?

myDB.execSQL(DELETE FROM tablename where colname=+string);

i want to delete the value at that particulat string.

Any help regarding this 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

Re: [android-developers] How to delete...?

2011-02-14 Thread Abhilash baddam
Hi,

 i am getting that string, dynamically.

On Mon, Feb 14, 2011 at 7:54 PM, Mark Murphy mmur...@commonsware.comwrote:

 Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
 LogCat and look at your stack trace associated with your error.

 In your case, you will find that you have invalid SQL, because your
 string is not quoted. Please use:

 String[] args={string};
 myDB.execSQL(DELETE FROM tablename where colname=?, args);

 On Mon, Feb 14, 2011 at 9:15 AM, Abhilash baddam
 abhilash.androiddevelo...@gmail.com wrote:
  Hi,
  In sqlite database, i am having some values. How can i delete a
  particular value from database. I tried like but showing error..
  What mistake is i am doin here..?
  myDB.execSQL(DELETE FROM tablename where colname=+string);
  i want to delete the value at that particulat string.
  Any help regarding this 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



 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy

 Warescription: Three Android Books, Plus Updates, One Low Price!

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: How to delete...?

2011-02-14 Thread Abhilash baddam
Hi hari,

 I am getting this exception


*android.database.sqlite.SQLiteException: *
*no such column: August: , while compiling: DELETE FROM favourites WHERE
month=August*
*
*
where month is colname .



On Mon, Feb 14, 2011 at 7:54 PM, Hari Edo hari@gmail.com wrote:



 On Feb 14, 9:15 am, Abhilash baddam
 abhilash.androiddevelo...@gmail.com wrote:
  I tried like but showing error..

 Why is it so hard for people to explain WHAT error they get?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] How to delete...?

2011-02-14 Thread Abhilash baddam
Hi,

In my code i used the command like this,**
*
*
* myDB.execSQL(DELETE FROM tablename where colname=+string,null);*

  In the place of args i am passing null, is it correct what exactly i have
to pass there.


On Mon, Feb 14, 2011 at 8:06 PM, Abhilash baddam 
abhilash.androiddevelo...@gmail.com wrote:

 Hi,

  i am getting that string, dynamically.


 On Mon, Feb 14, 2011 at 7:54 PM, Mark Murphy mmur...@commonsware.comwrote:

 Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
 LogCat and look at your stack trace associated with your error.

 In your case, you will find that you have invalid SQL, because your
 string is not quoted. Please use:

 String[] args={string};
 myDB.execSQL(DELETE FROM tablename where colname=?, args);

 On Mon, Feb 14, 2011 at 9:15 AM, Abhilash baddam
 abhilash.androiddevelo...@gmail.com wrote:
  Hi,
  In sqlite database, i am having some values. How can i delete a
  particular value from database. I tried like but showing error..
  What mistake is i am doin here..?
  myDB.execSQL(DELETE FROM tablename where colname=+string);
  i want to delete the value at that particulat string.
  Any help regarding this 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



 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy

 Warescription: Three Android Books, Plus Updates, One Low Price!

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] How to delete...?

2011-02-14 Thread Abhilash baddam
Hi,

 what type of mistake is i am doing?

On Mon, Feb 14, 2011 at 8:11 PM, Abhilash baddam 
abhilash.androiddevelo...@gmail.com wrote:

 Hi,

 In my code i used the command like this,**
 *
 *
 * myDB.execSQL(DELETE FROM tablename where colname=+string,null);*

   In the place of args i am passing null, is it correct what exactly i have
 to pass there.


 On Mon, Feb 14, 2011 at 8:06 PM, Abhilash baddam 
 abhilash.androiddevelo...@gmail.com wrote:

 Hi,

  i am getting that string, dynamically.


 On Mon, Feb 14, 2011 at 7:54 PM, Mark Murphy mmur...@commonsware.comwrote:

 Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
 LogCat and look at your stack trace associated with your error.

 In your case, you will find that you have invalid SQL, because your
 string is not quoted. Please use:

 String[] args={string};
 myDB.execSQL(DELETE FROM tablename where colname=?, args);

 On Mon, Feb 14, 2011 at 9:15 AM, Abhilash baddam
 abhilash.androiddevelo...@gmail.com wrote:
  Hi,
  In sqlite database, i am having some values. How can i delete a
  particular value from database. I tried like but showing error..
  What mistake is i am doin here..?
  myDB.execSQL(DELETE FROM tablename where colname=+string);
  i want to delete the value at that particulat string.
  Any help regarding this 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



 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy

 Warescription: Three Android Books, Plus Updates, One Low Price!

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en





-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: How to delete...?

2011-02-14 Thread Abhilash baddam
Hi,

My problem was solved like this..
myDB.execSQL(DELETE FROM favourites where month=' +str1+ ' );

On Tue, Feb 15, 2011 at 4:31 AM, JAlexoid (Aleksandr Panzin) 
jalex...@gmail.com wrote:

 Learn SQL first to deal with SQLite.

 The problem with the code is that string values in SQL have to be
 enclosed in single quotes.
 DELETE FROM tablename where colname='SomeStringValue'

 And change your code to proper code that does not have the SQL
 injection problem:
 myDB.execSQL(DELETE FROM tablename where colname= ? ,new Object[]
 {string});

 Read the following chapter: Using Databases
 http://developer.android.com/intl/de/guide/topics/data/data-storage.html#db

 At the end of it, there are 2 links to examples of complete
 applications.

 On 14 фев, 16:59, Abhilash baddam
 abhilash.androiddevelo...@gmail.com wrote:
  Hi,
 
   what type of mistake is i am doing?
 
  On Mon, Feb 14, 2011 at 8:11 PM, Abhilash baddam 
 
  abhilash.androiddevelo...@gmail.com wrote:
   Hi,
 
   In my code i used the command like this,**
   *
   *
   * myDB.execSQL(DELETE FROM tablename where colname=+string,null);*
 
 In the place of args i am passing null, is it correct what exactly i
 have
   to pass there.
 
   On Mon, Feb 14, 2011 at 8:06 PM, Abhilash baddam 
   abhilash.androiddevelo...@gmail.com wrote:
 
   Hi,
 
i am getting that string, dynamically.
 
   On Mon, Feb 14, 2011 at 7:54 PM, Mark Murphy mmur...@commonsware.com
 wrote:
 
   Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
   LogCat and look at your stack trace associated with your error.
 
   In your case, you will find that you have invalid SQL, because your
   string is not quoted. Please use:
 
   String[] args={string};
   myDB.execSQL(DELETE FROM tablename where colname=?, args);
 
   On Mon, Feb 14, 2011 at 9:15 AM, Abhilash baddam
   abhilash.androiddevelo...@gmail.com wrote:
Hi,
In sqlite database, i am having some values. How can i delete a
particular value from database. I tried like but showing error..
What mistake is i am doin here..?
myDB.execSQL(DELETE FROM tablename where colname=+string);
i want to delete the value at that particulat string.
Any help regarding this 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
 
   --
   Mark Murphy (a Commons Guy)
  http://commonsware.com|http://github.com/commonsguy
  http://commonsware.com/blog|http://twitter.com/commonsguy
 
   Warescription: Three Android Books, Plus Updates, One Low Price!
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How to go to previous page..?

2011-02-10 Thread Abhilash baddam
Hi,

I have a problem, in my application i am displaying webview in customized
dialog. suppose if the user browse 5 pages in the webview how can he come
back to previous page, if i click on back button the dialog is dismissing.
So i thought i want to put a button also in dialog to achieve the
functionality of back, means if the user clicks on back buttton he will come
into previous page in dialog box...? How can i solve this 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

Re: [android-developers] How to go to previous page..?

2011-02-10 Thread Abhilash baddam
Hi Marcin,

   What u have sent the link, is helped me alot in general
webview but here i am displaying the webview in Customized Dialog.
Here i used dialog.setCancellable(false);  and i used back button
functionality like this its not working in dialog..what may be the reason.

@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if ((keyCode == KeyEvent.KEYCODE_BACK)  mWebView.canGoBack()) {
mWebView.goBack();
return true;
}
return super.onKeyDown(keyCode, event);

}

On Thu, Feb 10, 2011 at 5:13 PM, Marcin Orlowski
webnet.andr...@gmail.comwrote:

 On 10 February 2011 12:03, Abhilash baddam
 abhilash.androiddevelo...@gmail.com wrote:

  I have a problem, in my application i am displaying webview in customized
  dialog. suppose if the user browse 5 pages in the webview how can he come
  back to previous page, if i click on back button the dialog is
 dismissing.

 Read here:
 http://developer.android.com/resources/tutorials/views/hello-webview.html
 Point 9 discuss your 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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 go to previous page..?

2011-02-10 Thread Abhilash baddam
Hi,

  if i give dialog.setCancellable(true); the the dialog box is
dismissing...? what shall i do?

On Thu, Feb 10, 2011 at 6:14 PM, Abhilash baddam 
abhilash.androiddevelo...@gmail.com wrote:

 Hi Marcin,

What u have sent the link, is helped me alot in general
 webview but here i am displaying the webview in Customized Dialog.
 Here i used dialog.setCancellable(false);  and i used back button
 functionality like this its not working in dialog..what may be the reason.

 @Override
 public boolean onKeyDown(int keyCode, KeyEvent event) {

 if ((keyCode == KeyEvent.KEYCODE_BACK)  mWebView.canGoBack()) {

 mWebView.goBack();

 return true;

 }
 return super.onKeyDown(keyCode, event);

 }

 On Thu, Feb 10, 2011 at 5:13 PM, Marcin Orlowski webnet.andr...@gmail.com
  wrote:

 On 10 February 2011 12:03, Abhilash baddam
 abhilash.androiddevelo...@gmail.com wrote:

  I have a problem, in my application i am displaying webview in
 customized
  dialog. suppose if the user browse 5 pages in the webview how can he
 come
  back to previous page, if i click on back button the dialog is
 dismissing.

 Read here:
 http://developer.android.com/resources/tutorials/views/hello-webview.html
 Point 9 discuss your 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




-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 go to previous page..?

2011-02-10 Thread Abhilash baddam
hi kostya,

but if i do as u told back button is not working...? Any
alternate for this ?

On Thu, Feb 10, 2011 at 6:46 PM, Kostya Vasilyev kmans...@gmail.com wrote:

  Um, if you don't want that, call dialog.setCancellable(false) ?

 10.02.2011 15:53, Abhilash baddam пишет:

 Hi,

if i give dialog.setCancellable(true); the the dialog box is
 dismissing...? what shall i do?

 On Thu, Feb 10, 2011 at 6:14 PM, Abhilash baddam 
 abhilash.androiddevelo...@gmail.com wrote:

 Hi Marcin,

 What u have sent the link, is helped me alot in general
 webview but here i am displaying the webview in Customized Dialog.
 Here i used dialog.setCancellable(false);  and i used back button
 functionality like this its not working in dialog..what may be the reason.

  @Overridepublic boolean onKeyDown(int keyCode, KeyEvent event) {


 if ((keyCode == KeyEvent.KEYCODE_BACK)  mWebView.canGoBack()) {


 mWebView.goBack();

 return true;


 }
 return super.onKeyDown(keyCode, event);

   }

 On Thu, Feb 10, 2011 at 5:13 PM, Marcin Orlowski 
 webnet.andr...@gmail.com wrote:

 On 10 February 2011 12:03, Abhilash baddam
 abhilash.androiddevelo...@gmail.com wrote:

  I have a problem, in my application i am displaying webview in
 customized
  dialog. suppose if the user browse 5 pages in the webview how can he
 come
  back to previous page, if i click on back button the dialog is
 dismissing.

  Read here:
 http://developer.android.com/resources/tutorials/views/hello-webview.html
 Point 9 discuss your 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



  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en



 --
 Kostya Vasilyev -- WiFi Manager + pretty widget -- 
 http://kmansoft.wordpress.com

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

  1   2   >