[android-developers] It is posible create folders with permissions?

2010-11-24 Thread Lisa
hello everybody, (^_^)/

I have a question, I to create folders on the SD memory card with
permission.
How do you make?
is that I want to create a folder with permission,
so when the music players make search, I do not want to display my
folder.

It is this possible? if yes, how could it? (·_·?)

thank you very much in advance for your assistance. m(_ _)m
Greetings. (^ O ^) /

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

2010-11-24 Thread Kumar Bibek
Nope, Not possible.


Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Wed, Nov 24, 2010 at 1:41 PM, Lisa lpk...@gmail.com wrote:

 hello everybody, (^_^)/

 I have a question, I to create folders on the SD memory card with
 permission.
 How do you make?
 is that I want to create a folder with permission,
 so when the music players make search, I do not want to display my
 folder.

 It is this possible? if yes, how could it? (·_·?)

 thank you very much in advance for your assistance. m(_ _)m
 Greetings. (^ O ^) /

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=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] It is posible create folders with permissions in the SD card?

2010-11-24 Thread Lisa
hello everybody, (^_^)/

I have a question, I to create folders on the SD memory card with
permission.
How do you make?
is that I want to create a folder with permission,
so when the music players make search, I do not want to display my
folder.

It is this possible? if yes, how could it? (·_·?)

thank you very much in advance for your assistance.
Greetings. (^ O ^) /

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Json paser showing array length as 0.. pls help

2010-11-24 Thread Sarwar Erfan


On Nov 24, 12:33 pm, Atik atik0...@gmail.com wrote:
 hi guys this the class where i m parsing the values

                         resultsJsonArray = jsonObject.getJSONArray(resuslt);



Is this spelling mistake in your actual code? (You wrote resuslt
instead results)

Regards
Sarwar Erfan

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

2010-11-24 Thread Atik
hi..
can we create magnifier in android to read the text on some surface
like newspaper etc. i need to save the zoom level for that perticluar
appl ..is it possible in android..

pls reply

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


[android-developers] Re: How to get MAC address?

2010-11-24 Thread Sarwar Erfan
Hi,
Try getMacAddress() in WifiInfo class.


http://developer.android.com/reference/android/net/wifi/WifiInfo.html


Regards
Sarwar Erfan


On Nov 24, 9:21 am, Alex Xin xinxi...@gmail.com wrote:
 Hi, guys

 I'd like to know how to get WIFI MAC address on Android system? Does anyone
 know how to do this? Thanks in advance!

 Alex

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

2010-11-24 Thread m88m
Thanks Guys!

On Nov 24, 8:58 am, Dianne Hackborn hack...@android.com wrote:
 http://developer.android.com/reference/android/content/pm/PackageMana...,
 int)

 http://developer.android.com/reference/android/content/pm/PackageMana...,
 int)With

 http://developer.android.com/reference/android/content/pm/PackageMana...









 On Tue, Nov 23, 2010 at 11:30 PM, m88m m...@walla.com wrote:
  Hey Guys!

  How one Android application can query other applications (permissions
  and usage)?
  The  'mylookout' app doing that (without rooting the device!).

  [checkhttps://www.mylookout.com/premium/- Under 'Privacy
  Dashboard': View a consolidated list of apps that can access your
  private information, including: Location, Text messages and Identity
  info.]

  I thought that my app cannot be access by other apps, am I right?
  Can a extract information on other apps in the system? And if yes how?

  Regards,
   M

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


[android-developers] Re: Json paser showing array length as 0.. pls help

2010-11-24 Thread Atik
thx bro..aftre changing the key now its giving me null pointer
exception for the same code.. for the following lines
line number 51 in JSONHelper Class
JSONObject jsonObject = getJSONObject(httpResponse);
line number 160 in JSONHelper Class
if (httpResponse.getStatusLine().toString().equals(HTTP/1.1 200 OK))

line number 18 in First Class
jsoNhelper.getJson();

why its giving null here.some time before it was giving me
arraylentg =0..

pls reply

On Nov 24, 1:26 pm, Sarwar Erfan erfanonl...@gmail.com wrote:
 On Nov 24, 12:33 pm, Atik atik0...@gmail.com wrote:

  hi guys this the class where i m parsing the values

                          resultsJsonArray = 
  jsonObject.getJSONArray(resuslt);

 Is this spelling mistake in your actual code? (You wrote resuslt
 instead results)

 Regards
 Sarwar Erfan

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

2010-11-24 Thread Suresh Pal
Hi guys,

Currently, I am studying handling configuration changes. In this
process I look in this method   onRetainNonConfigurationInstance(). As
par APIs it is called whenever the activity is restarted because of
configuration changes.
I have also looked the onSaveInstanceState() method, which is called
whenever the activity is going to get killed.

It means both of these methods are called whenever there is
configuration changes - because my understanding is restart is also
killing the activity.
So, I wonder what are differences between the two methods and in why
should one not use  onSaveInstanceState() instead of
onRetainNonConfigurationInstance() for the configuration changes.

Please share your information on this.

Thanks,
Suresh Pal
LinkedIn:  http://www.linkedin.com/in/sapientsuresh
Blogs:http://www.sapientsuresh.blogspot.com
Twitter: http://twitter.com/sapientsuresh

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

2010-11-24 Thread m88m
Hey guys!
 Is it possible for an application to transfer itself to a system app
on not-rooted devices?
 (Of course with the permission of the user).

Thanks M.

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

2010-11-24 Thread Kostya Vasilyev

No.

System apps are signed with the platform key, and you can only do this 
if you build your own firmware.


-- Kostya

24.11.2010 11:58, m88m пишет:

Hey guys!
  Is it possible for an application to transfer itself to a system app
on not-rooted devices?
  (Of course with the permission of the user).

Thanks M.




--
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


[android-developers] Help needed for Context object: GPS implementation

2010-11-24 Thread cool.manish
In my application I want to start GPS. I have to pass context object
to it. Can I start my GPS listener from one activity and can fetch
coordinate in some other activity?
We get locationManager object using Context. Now if I have get
LocationManager using first activity's context then can't I use the
same locationManager to fetch the coordinates.

On Nov 24, 12:24 pm, Kumar Bibek coomar@gmail.com wrote:
 Yes, Contexts are specific to components.

 Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com

 On Wed, Nov 24, 2010 at 12:52 PM, cool.manish mannishga...@gmail.comwrote:



  Hi All,

  I want to know about the Context class object. In lots of APIs we send
  Context object. Is context object is associated with the application
  and this object remains same throughout the application? Or it is
  associated with the components like activity and every component
  initiate its own context object?

  I guess last one is right as Context is the super class of the
  Activity class. So every time there will be different object.

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

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Intents doesn't resume my activity properly

2010-11-24 Thread umakantpatil
As i told that I used

EditText content = (EditText) findViewById(R.id.content);
twitter.updateStatus(content.getText().toString() +  #testing);

If i remove
EditText content = (EditText) findViewById(R.id.content);

and  directly post.
twitter.updateStatus(Testing my tweets #testing);
then it works and my list of articles is listed.

On Nov 24, 12:55 pm, Kumar Bibek coomar@gmail.com wrote:
 The textview from which you want to read the text is in the same activity
 where onResume/onActivityResult is there?

 BTW, there is no such thing as onResumeActivity. You should be overriding
 the onActivityResult method.

 Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com

 On Wed, Nov 24, 2010 at 1:16 PM, umakantpatil umakantpat...@gmail.comwrote:









  I'm integrating twitter OAuth in my app. He can share article on
  twitter by posting it.

  So when i click on option share button. I show user a TextView where
  he can add extra content.

  I got how to do OAuth from this tutorial

 http://vasudevkamath.blogspot.com/2010/09/android-oauth-authenticatio...

  It works fine. But after giving username and password to twitter it
  redirects me back to my app.
  After coming to my app. In onResumeActivity I want to post status.
  So I want to read what user wants to post. So i read TextView value
  (using findViewById) but it gives error.
  If i post dummy text then it works and It doesn't come to the same
  page where i showed him textview. I think it restarts my activity.

  So i want something that in resume activity I can read user value
  which he entered in textview to post. Whats the problem I cant find
  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.comandroid-developers%2Bunsubs 
  cr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: Json paser showing array length as 0.. pls help

2010-11-24 Thread Sarwar Erfan
I think you understand that it has nothing to do with the line you
specified.

However, I suggest you do the followings:

#1: Check whether you have added the INTERNET permission to android
menifest. You need to add this:
uses-permission android:name=android.permission.INTERNET /
It is required to be added to the AndroidMenifest.xml file. Under
menifest tag.
http://developer.android.com/guide/topics/security/security.html


#2: I had a quick overview of your code and the response of the url
(http://ajax.googleapis.com/ajax/services/search/local?
v=1.0sll=48.8565,2.3509q=restaurant)
I found that, there is a bug in your code.
In your getResultsArrayList function you have:
resultsJsonArray = jsonObject.getJSONArray(results);
Which should be:
resultsJsonArray =
jsonObject.getJSONObject(responseData).getJSONArray(results);


Regards
Sarwar Erfan


On Nov 24, 2:40 pm, Atik atik0...@gmail.com wrote:
 thx bro..aftre changing the key now its giving me null pointer
 exception for the same code.. for the following lines
 line number 51 in JSONHelper Class
 JSONObject jsonObject = getJSONObject(httpResponse);
 line number 160 in JSONHelper Class
 if (httpResponse.getStatusLine().toString().equals(HTTP/1.1 200 OK))

 line number 18 in First Class
 jsoNhelper.getJson();

 why its giving null here.some time before it was giving me
 arraylentg =0..

 pls reply

 On Nov 24, 1:26 pm, Sarwar Erfan erfanonl...@gmail.com wrote:







  On Nov 24, 12:33 pm, Atik atik0...@gmail.com wrote:

   hi guys this the class where i m parsing the values

                           resultsJsonArray = 
   jsonObject.getJSONArray(resuslt);

  Is this spelling mistake in your actual code? (You wrote resuslt
  instead results)

  Regards
  Sarwar Erfan

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

2010-11-24 Thread Ruben
Hi Miguel,

Thanks for the suggestions.

Egg Savior relies a lot on scroll, so updating just the modified part
of the screen would only help on some situations. I have a HUD on top
of the scroll, which voids the typical scroll optimizations also.

First of all, I would suggest using traceview to identify the
bottleneck. Are you sure that it is in the rendering phase?

In OpenGL, having a lot of individual textures hurts performance a
lot, because you have to issue a lot of state changes. Try to avoid
state changes as much as possible. Most engines, sort objects by state
before drawing, to increase state reuse. In your case, I would go with
a texture atlas with every asset on it, and use texture coordinates
for indexing each individual image before rendering.

By the way, another optimization that I have already implemented is to
bake all the static objects in a single image. For example, all the
platforms are baked into the background at game start, avoiding a lot
of drawBitmap calls. Then, I just have a bunch of rectangles for
collision detection with platforms. I understand that in your case
this is a bit more difficult because the character can walk behind
static objects, but at least you could bake one-cell objects or even
bake everything and just redraw one object again when the character
walks behind it. What do you think?

I have seen your map editor in HTML/JS, it is pretty awesome. I
thought something similar for Egg Savior, but ended with plain old
ASCII text for the maps :)

Regards.

On 24 nov, 00:01, Miguel Morales therevolti...@gmail.com wrote:
 Thanks for the response, you are actually getting a better framerate
 than I am and I'm using OpenGL.
 However, my approach is pretty simple.  I load a bunch of png images
 and just draw them (some sprites may be drawn twice) there is a lot of
 room for improvement.

 However, my game is 2D with simple tile animations, the scene is only
 updated when a character moves.
 This is why I use 'RENDER_DIRTY' with OpenGL which means it doesn't
 render the scene as fast as possible but only when the scene has
 changed.
 This made my app reduce about 50% CPU usage which means better batter
 life.  Just something to put out there, framerate is not necessarily
 the ultimate goal when making a game for Android.

 Even with some movement the framerate only goes up to 7FPS or so and
 it looks the same as if I had it rendering as fast as possible (which
 I get like 20 - 30FPS.)

 Handling input is a pain, I remember watching a talk on Replica Island
 where the author mentions implementing an input queue.
 I hadn't done this until I started having some issues with sleeping in
 the onTouch() method and receiving callbacks from my service (which
 runs in the same thread as the UI thread.)

 I'm just pretty much using queues now for both the network calls and
 the onTouch calls to keep everything in order in the UI/render thread.





 On Tue, Nov 23, 2010 at 3:48 AM, Ruben ruben@gmail.com wrote:
  Hi Miguel,

  I'm getting solid 60 fps on my Samsung Galaxy Spica (800 mhz
  processor) for most levels. I have heard that does not work so well in
  the HTC Magic...
  CPU load is quite balanced between updating the scene and rendering
  it, thus I could improve performance by optimizing the update phase
  (collision detection is a good candidate) without changing the canvas
  approach. I am an OpenGL lover, but unfortunatelly my phone has poor
  support for it :(

  The biggest problem was the handling of input events. It hurts
  performance a lot by default. My solution is to save every motion
  event data in the same variable, and processing the most recent one in
  the main render loop/thread. This, incidentally, avoids some thread
  synchronization problems.

  On 23 nov, 09:13, Miguel Morales therevolti...@gmail.com wrote:
  Nice, I enjoyed the part of content creation.  I'm going to keep your
  suggestion of using a single bitmap with all the sprites instead of
  individual images.
  Although it's not terrible it does indeed have a performance impact.

  Are you getting good performance using this approach with canvas alone?
  In either case, good job.

  On Sun, Nov 21, 2010 at 2:51 PM, Ruben ruben@gmail.com wrote:
   I have just written an in-depth article covering the workflow of 2D
   game creation for Android with blender, based in my own experience
   with the game Egg Savior. I hope you find it usefull.
   Feel free to share your knowledge and propose other alternatives to
   these ideas.

  http://organicandroid.blogspot.com/2010/11/creating-2d-games-with-and...

   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to android-developers@googlegroups.com
   To unsubscribe from this group, 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: Json paser showing array length as 0.. pls help

2010-11-24 Thread Atik
i have checked the permission in menifest and  i replaced the code
snippet as u gave me , but still its giving me null pointer exception
and i m still too much worried..

thx for the help sir..

waiting for ur helpfull  reply

On Nov 24, 2:23 pm, Sarwar Erfan erfanonl...@gmail.com wrote:
 I think you understand that it has nothing to do with the line you
 specified.

 However, I suggest you do the followings:

 #1: Check whether you have added the INTERNET permission to android
 menifest. You need to add this:
 uses-permission android:name=android.permission.INTERNET /
 It is required to be added to the AndroidMenifest.xml file. Under
 menifest tag.http://developer.android.com/guide/topics/security/security.html

 #2: I had a quick overview of your code and the response of the url
 (http://ajax.googleapis.com/ajax/services/search/local?
 v=1.0sll=48.8565,2.3509q=restaurant)
 I found that, there is a bug in your code.
 In your getResultsArrayList function you have:
 resultsJsonArray = jsonObject.getJSONArray(results);
 Which should be:
 resultsJsonArray =
 jsonObject.getJSONObject(responseData).getJSONArray(results);

 Regards
 Sarwar Erfan

 On Nov 24, 2:40 pm, Atik atik0...@gmail.com wrote:

  thx bro..aftre changing the key now its giving me null pointer
  exception for the same code.. for the following lines
  line number 51 in JSONHelper Class
  JSONObject jsonObject = getJSONObject(httpResponse);
  line number 160 in JSONHelper Class
  if (httpResponse.getStatusLine().toString().equals(HTTP/1.1 200 OK))

  line number 18 in First Class
  jsoNhelper.getJson();

  why its giving null here.some time before it was giving me
  arraylentg =0..

  pls reply

  On Nov 24, 1:26 pm, Sarwar Erfan erfanonl...@gmail.com wrote:

   On Nov 24, 12:33 pm, Atik atik0...@gmail.com wrote:

hi guys this the class where i m parsing the values

                        resultsJsonArray = 
jsonObject.getJSONArray(resuslt);

   Is this spelling mistake in your actual code? (You wrote resuslt
   instead results)

   Regards
   Sarwar Erfan

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Intents doesn't resume my activity properly

2010-11-24 Thread umakantpatil
I posted two messages here. One of them is missing...

Let again explain everything..

I do all this stuff in single activity.
onCreate I list articles.. On click on any single article I open that
article.
So there are options to share. On click of that I open a page in same
activity using setcontentview.
It has edittext and button. Now on click of button browser opens. User
provides username and password.
Twitter passed me back auth. After that
onResume  ( onResumeActivity i wrote by mistake )
I wrote such code.
protected void onResume() {
super.onResume();
Uri uri = this.getIntent().getData();
//
// Here its more to get data
//
EditText content2 = (EditText) findViewById(R.id.content);

twitter.updateStatus(content2.getText().toString()+..#testing);
  }

It gives me error. Well if remove Edit text and post some dummy status
then it works and I can see all articles list instead of that share
page.


On Nov 24, 2:17 pm, umakantpatil umakantpat...@gmail.com wrote:
 As i told that I used

 EditText content = (EditText) findViewById(R.id.content);
 twitter.updateStatus(content.getText().toString() +  #testing);

 If i remove
 EditText content = (EditText) findViewById(R.id.content);

 and  directly post.
 twitter.updateStatus(Testing my tweets #testing);
 then it works and my list of articles is listed.

 On Nov 24, 12:55 pm, Kumar Bibek coomar@gmail.com wrote:







  The textview from which you want to read the text is in the same activity
  where onResume/onActivityResult is there?

  BTW, there is no such thing as onResumeActivity. You should be overriding
  the onActivityResult method.

  Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com

  On Wed, Nov 24, 2010 at 1:16 PM, umakantpatil 
  umakantpat...@gmail.comwrote:

   I'm integrating twitter OAuth in my app. He can share article on
   twitter by posting it.

   So when i click on option share button. I show user a TextView where
   he can add extra content.

   I got how to do OAuth from this tutorial

  http://vasudevkamath.blogspot.com/2010/09/android-oauth-authenticatio...

   It works fine. But after giving username and password to twitter it
   redirects me back to my app.
   After coming to my app. In onResumeActivity I want to post status.
   So I want to read what user wants to post. So i read TextView value
   (using findViewById) but it gives error.
   If i post dummy text then it works and It doesn't come to the same
   page where i showed him textview. I think it restarts my activity.

   So i want something that in resume activity I can read user value
   which he entered in textview to post. Whats the problem I cant find
   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.comandroid-developers%2Bunsubs
cr...@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] Google Map Pin

2010-11-24 Thread pedr0
Hi at all,

I am looking for a default marker for overlay items in the maps, but I
haven't finded it, something is wrong or really Google Map API don't
offers this feature?
I have to draw manually my pin or make it via some graphic tool like
GIMP?

Another question is about the copyright of pin Google Maps, I found
the pin image over internet but I don't know if I can really use it,
is this image under some copyright?

Thanks a lot.

pedr0

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

2010-11-24 Thread pedr0
Hmm it's okay, but there isn't a way to show the activity stack of my
application?



On 23 Nov, 07:33, Kumar Bibek coomar@gmail.com wrote:
 YEs, Switch to the Logcat window, and you will see it, else type adb
 logcat in the commant prompt, and it will show you the logs.

 On Nov 22, 2:00 pm,pedr0pulsarpie...@gmail.com wrote:







  Hi at all,

  I want see the state of my activity (Pause Stop Resume etc etc)
  without override each methods like this:

  onPause(){
  super();
  Log.d(TAG, this activity+name+will come in Pause state);

  }

  There is a way to see that using an Android tools ?DDMS allow to see
  this, I think not but I ask for be sure.

  Thanks a lot.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Intents doesn't resume my activity properly

2010-11-24 Thread Kumar Bibek
Umm,

I am still confused. How are you changing the content view of the Activity.
Is it really required? If you are getting NullPointer exception, then it
means that the EditText that you are trying to initialize is not presently
on the Activity. It's simple enough, if you see the EditText on your
activity, only then you can initialize it through the findViewById call.

Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Wed, Nov 24, 2010 at 3:07 PM, umakantpatil umakantpat...@gmail.comwrote:

 I posted two messages here. One of them is missing...

 Let again explain everything..

 I do all this stuff in single activity.
 onCreate I list articles.. On click on any single article I open that
 article.
 So there are options to share. On click of that I open a page in same
 activity using setcontentview.
 It has edittext and button. Now on click of button browser opens. User
 provides username and password.
 Twitter passed me back auth. After that
 onResume  ( onResumeActivity i wrote by mistake )
 I wrote such code.
protected void onResume() {
super.onResume();
Uri uri = this.getIntent().getData();
//
// Here its more to get data
//
EditText content2 = (EditText) findViewById(R.id.content);

  twitter.updateStatus(content2.getText().toString()+..#testing);
  }

 It gives me error. Well if remove Edit text and post some dummy status
 then it works and I can see all articles list instead of that share
 page.


 On Nov 24, 2:17 pm, umakantpatil umakantpat...@gmail.com wrote:
  As i told that I used
 
  EditText content = (EditText) findViewById(R.id.content);
  twitter.updateStatus(content.getText().toString() +  #testing);
 
  If i remove
  EditText content = (EditText) findViewById(R.id.content);
 
  and  directly post.
  twitter.updateStatus(Testing my tweets #testing);
  then it works and my list of articles is listed.
 
  On Nov 24, 12:55 pm, Kumar Bibek coomar@gmail.com wrote:
 
 
 
 
 
 
 
   The textview from which you want to read the text is in the same
 activity
   where onResume/onActivityResult is there?
 
   BTW, there is no such thing as onResumeActivity. You should be
 overriding
   the onActivityResult method.
 
   Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com
 
   On Wed, Nov 24, 2010 at 1:16 PM, umakantpatil umakantpat...@gmail.com
 wrote:
 
I'm integrating twitter OAuth in my app. He can share article on
twitter by posting it.
 
So when i click on option share button. I show user a TextView where
he can add extra content.
 
I got how to do OAuth from this tutorial
 
   
 http://vasudevkamath.blogspot.com/2010/09/android-oauth-authenticatio...
 
It works fine. But after giving username and password to twitter it
redirects me back to my app.
After coming to my app. In onResumeActivity I want to post status.
So I want to read what user wants to post. So i read TextView value
(using findViewById) but it gives error.
If i post dummy text then it works and It doesn't come to the same
page where i showed him textview. I think it restarts my activity.
 
So i want something that in resume activity I can read user value
which he entered in textview to post. Whats the problem I cant find
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.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs
 cr...@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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Re: Intents doesn't resume my activity properly

2010-11-24 Thread umakantpatil
See..
I have page which show article. On menu click a function it sets new
content as below

setContentView(R.layout.sharing);

Now this layout has edittext and button. On click on button ..It goes
as given in that tutorial..
But when use authenticates..

Then in onResume I get error because I think he cant find that
edittext.

But as our activity is resuming, then that our last layout was
R.layout.sharing
It should open na ? And as i said that layout has edittext where has
typed something.
..

One more input ..
I added log in my onCreate and onResume
So when user comes back from broswser. onCreate is also getting
called. and after that onresume is getting called.
Just because oncreate is getting called. our last layout is not there.
It just shows articles list.






On Nov 24, 2:46 pm, Kumar Bibek coomar@gmail.com wrote:
 Umm,

 I am still confused. How are you changing the content view of the Activity.
 Is it really required? If you are getting NullPointer exception, then it
 means that the EditText that you are trying to initialize is not presently
 on the Activity. It's simple enough, if you see the EditText on your
 activity, only then you can initialize it through the findViewById call.

 Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com

 On Wed, Nov 24, 2010 at 3:07 PM, umakantpatil umakantpat...@gmail.comwrote:







  I posted two messages here. One of them is missing...

  Let again explain everything..

  I do all this stuff in single activity.
  onCreate I list articles.. On click on any single article I open that
  article.
  So there are options to share. On click of that I open a page in same
  activity using setcontentview.
  It has edittext and button. Now on click of button browser opens. User
  provides username and password.
  Twitter passed me back auth. After that
  onResume  ( onResumeActivity i wrote by mistake )
  I wrote such code.
         protected void onResume() {
                 super.onResume();
                 Uri uri = this.getIntent().getData();
                 //
                 // Here its more to get data
                 //
                 EditText content2 = (EditText) findViewById(R.id.content);

   twitter.updateStatus(content2.getText().toString()+..#testing);
       }

  It gives me error. Well if remove Edit text and post some dummy status
  then it works and I can see all articles list instead of that share
  page.

  On Nov 24, 2:17 pm, umakantpatil umakantpat...@gmail.com wrote:
   As i told that I used

   EditText content = (EditText) findViewById(R.id.content);
   twitter.updateStatus(content.getText().toString() +  #testing);

   If i remove
   EditText content = (EditText) findViewById(R.id.content);

   and  directly post.
   twitter.updateStatus(Testing my tweets #testing);
   then it works and my list of articles is listed.

   On Nov 24, 12:55 pm, Kumar Bibek coomar@gmail.com wrote:

The textview from which you want to read the text is in the same
  activity
where onResume/onActivityResult is there?

BTW, there is no such thing as onResumeActivity. You should be
  overriding
the onActivityResult method.

Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com

On Wed, Nov 24, 2010 at 1:16 PM, umakantpatil umakantpat...@gmail.com
  wrote:

 I'm integrating twitter OAuth in my app. He can share article on
 twitter by posting it.

 So when i click on option share button. I show user a TextView where
 he can add extra content.

 I got how to do OAuth from this tutorial

 http://vasudevkamath.blogspot.com/2010/09/android-oauth-authenticatio...

 It works fine. But after giving username and password to twitter it
 redirects me back to my app.
 After coming to my app. In onResumeActivity I want to post status.
 So I want to read what user wants to post. So i read TextView value
 (using findViewById) but it gives error.
 If i post dummy text then it works and It doesn't come to the same
 page where i showed him textview. I think it restarts my activity.

 So i want something that in resume activity I can read user value
 which he entered in textview to post. Whats the problem I cant find
 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.comandroid-developers%2Bunsubs
  cr...@googlegroups.comandroid-developers%2Bunsubs
  cr...@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
  

Re: [android-developers] Re: Intents doesn't resume my activity properly

2010-11-24 Thread Kumar Bibek
I really cannot suggest you anything without looking at your whole code now.
Sorry.

Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Wed, Nov 24, 2010 at 3:23 PM, umakantpatil umakantpat...@gmail.comwrote:

 See..
 I have page which show article. On menu click a function it sets new
 content as below

 setContentView(R.layout.sharing);

 Now this layout has edittext and button. On click on button ..It goes
 as given in that tutorial..
 But when use authenticates..

 Then in onResume I get error because I think he cant find that
 edittext.

 But as our activity is resuming, then that our last layout was
 R.layout.sharing
 It should open na ? And as i said that layout has edittext where has
 typed something.
 ..

 One more input ..
 I added log in my onCreate and onResume
 So when user comes back from broswser. onCreate is also getting
 called. and after that onresume is getting called.
 Just because oncreate is getting called. our last layout is not there.
 It just shows articles list.






 On Nov 24, 2:46 pm, Kumar Bibek coomar@gmail.com wrote:
  Umm,
 
  I am still confused. How are you changing the content view of the
 Activity.
  Is it really required? If you are getting NullPointer exception, then it
  means that the EditText that you are trying to initialize is not
 presently
  on the Activity. It's simple enough, if you see the EditText on your
  activity, only then you can initialize it through the findViewById call.
 
  Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com
 
  On Wed, Nov 24, 2010 at 3:07 PM, umakantpatil umakantpat...@gmail.com
 wrote:
 
 
 
 
 
 
 
   I posted two messages here. One of them is missing...
 
   Let again explain everything..
 
   I do all this stuff in single activity.
   onCreate I list articles.. On click on any single article I open that
   article.
   So there are options to share. On click of that I open a page in same
   activity using setcontentview.
   It has edittext and button. Now on click of button browser opens. User
   provides username and password.
   Twitter passed me back auth. After that
   onResume  ( onResumeActivity i wrote by mistake )
   I wrote such code.
  protected void onResume() {
  super.onResume();
  Uri uri = this.getIntent().getData();
  //
  // Here its more to get data
  //
  EditText content2 = (EditText)
 findViewById(R.id.content);
 
twitter.updateStatus(content2.getText().toString()+..#testing);
}
 
   It gives me error. Well if remove Edit text and post some dummy status
   then it works and I can see all articles list instead of that share
   page.
 
   On Nov 24, 2:17 pm, umakantpatil umakantpat...@gmail.com wrote:
As i told that I used
 
EditText content = (EditText) findViewById(R.id.content);
twitter.updateStatus(content.getText().toString() +  #testing);
 
If i remove
EditText content = (EditText) findViewById(R.id.content);
 
and  directly post.
twitter.updateStatus(Testing my tweets #testing);
then it works and my list of articles is listed.
 
On Nov 24, 12:55 pm, Kumar Bibek coomar@gmail.com wrote:
 
 The textview from which you want to read the text is in the same
   activity
 where onResume/onActivityResult is there?
 
 BTW, there is no such thing as onResumeActivity. You should be
   overriding
 the onActivityResult method.
 
 Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com
 
 On Wed, Nov 24, 2010 at 1:16 PM, umakantpatil 
 umakantpat...@gmail.com
   wrote:
 
  I'm integrating twitter OAuth in my app. He can share article on
  twitter by posting it.
 
  So when i click on option share button. I show user a TextView
 where
  he can add extra content.
 
  I got how to do OAuth from this tutorial
 
  http://vasudevkamath.blogspot.com/2010/09/android-oauth-authenticatio.
 ..
 
  It works fine. But after giving username and password to twitter
 it
  redirects me back to my app.
  After coming to my app. In onResumeActivity I want to post
 status.
  So I want to read what user wants to post. So i read TextView
 value
  (using findViewById) but it gives error.
  If i post dummy text then it works and It doesn't come to the
 same
  page where i showed him textview. I think it restarts my
 activity.
 
  So i want something that in resume activity I can read user value
  which he entered in textview to post. Whats the problem I cant
 find
  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.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs
 

[android-developers] Re: Intents doesn't resume my activity properly

2010-11-24 Thread umakantpatil
Emailed you the code. Its not that complicated.
I have also described in email , which functions does what..
Hope you help me out.. My head has gone mad. I cant get it anymore..

Thanks

On Nov 24, 2:58 pm, Kumar Bibek coomar@gmail.com wrote:
 I really cannot suggest you anything without looking at your whole code now.
 Sorry.

 Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com

 On Wed, Nov 24, 2010 at 3:23 PM, umakantpatil umakantpat...@gmail.comwrote:







  See..
  I have page which show article. On menu click a function it sets new
  content as below

  setContentView(R.layout.sharing);

  Now this layout has edittext and button. On click on button ..It goes
  as given in that tutorial..
  But when use authenticates..

  Then in onResume I get error because I think he cant find that
  edittext.

  But as our activity is resuming, then that our last layout was
  R.layout.sharing
  It should open na ? And as i said that layout has edittext where has
  typed something.
  ..

  One more input ..
  I added log in my onCreate and onResume
  So when user comes back from broswser. onCreate is also getting
  called. and after that onresume is getting called.
  Just because oncreate is getting called. our last layout is not there.
  It just shows articles list.

  On Nov 24, 2:46 pm, Kumar Bibek coomar@gmail.com wrote:
   Umm,

   I am still confused. How are you changing the content view of the
  Activity.
   Is it really required? If you are getting NullPointer exception, then it
   means that the EditText that you are trying to initialize is not
  presently
   on the Activity. It's simple enough, if you see the EditText on your
   activity, only then you can initialize it through the findViewById call.

   Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com

   On Wed, Nov 24, 2010 at 3:07 PM, umakantpatil umakantpat...@gmail.com
  wrote:

I posted two messages here. One of them is missing...

Let again explain everything..

I do all this stuff in single activity.
onCreate I list articles.. On click on any single article I open that
article.
So there are options to share. On click of that I open a page in same
activity using setcontentview.
It has edittext and button. Now on click of button browser opens. User
provides username and password.
Twitter passed me back auth. After that
onResume  ( onResumeActivity i wrote by mistake )
I wrote such code.
       protected void onResume() {
               super.onResume();
               Uri uri = this.getIntent().getData();
               //
               // Here its more to get data
               //
               EditText content2 = (EditText)
  findViewById(R.id.content);

 twitter.updateStatus(content2.getText().toString()+..#testing);
     }

It gives me error. Well if remove Edit text and post some dummy status
then it works and I can see all articles list instead of that share
page.

On Nov 24, 2:17 pm, umakantpatil umakantpat...@gmail.com wrote:
 As i told that I used

 EditText content = (EditText) findViewById(R.id.content);
 twitter.updateStatus(content.getText().toString() +  #testing);

 If i remove
 EditText content = (EditText) findViewById(R.id.content);

 and  directly post.
 twitter.updateStatus(Testing my tweets #testing);
 then it works and my list of articles is listed.

 On Nov 24, 12:55 pm, Kumar Bibek coomar@gmail.com wrote:

  The textview from which you want to read the text is in the same
activity
  where onResume/onActivityResult is there?

  BTW, there is no such thing as onResumeActivity. You should be
overriding
  the onActivityResult method.

  Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com

  On Wed, Nov 24, 2010 at 1:16 PM, umakantpatil 
  umakantpat...@gmail.com
wrote:

   I'm integrating twitter OAuth in my app. He can share article on
   twitter by posting it.

   So when i click on option share button. I show user a TextView
  where
   he can add extra content.

   I got how to do OAuth from this tutorial

   http://vasudevkamath.blogspot.com/2010/09/android-oauth-authenticatio.
  ..

   It works fine. But after giving username and password to twitter
  it
   redirects me back to my app.
   After coming to my app. In onResumeActivity I want to post
  status.
   So I want to read what user wants to post. So i read TextView
  value
   (using findViewById) but it gives error.
   If i post dummy text then it works and It doesn't come to the
  same
   page where i showed him textview. I think it restarts my
  activity.

   So i want something that in resume activity I can read user value
   which he entered in textview to post. Whats the problem I cant
  find
   this.

   --
   You received this message because you are subscribed to the
  

Re: [android-developers] Re: Creating 2D games with Android and Blender

2010-11-24 Thread Miguel Morales
Thanks for your tips,

I'm fairly sure that the 30FPS limit I'm getting is due to the
rendering not being optimized.  I've tried turning off the network
thread and the logic thread with the same results.  This is my first
game using OpenGL, thanks for the info about sorting the objects
before rendering.  This will be the easiest to implement.

I'll definitely keep your suggestion of using a texture atlas,
although at the moment I have so many other things to work on that I
don't want to waste time over-optimizing it.


 By the way, another optimization that I have already implemented is to
 bake all the static objects in a single image. For example, all the
 platforms are baked into the background at game start, avoiding a lot
 of drawBitmap calls. Then, I just have a bunch of rectangles for
 collision detection with platforms. I understand that in your case
 this is a bit more difficult because the character can walk behind
 static objects, but at least you could bake one-cell objects or even
 bake everything and just redraw one object again when the character
 walks behind it. What do you think?


Hmm, I'm not sure if that'll work for me.  I've heard that rendering
large bitmaps/textures with OpenGL can also hurt performance.  So you
have to break those large textures into small ones. I'd have to find a
nice medium.  Not really necessary in my case.  But thanks though, if
I ever want to improve the framerate I'll keep your suggestions in
mind.

Good luck with your game!

 I have seen your map editor in HTML/JS, it is pretty awesome. I
 thought something similar for Egg Savior, but ended with plain old
 ASCII text for the maps :)

 Regards.

 On 24 nov, 00:01, Miguel Morales therevolti...@gmail.com wrote:
 Thanks for the response, you are actually getting a better framerate
 than I am and I'm using OpenGL.
 However, my approach is pretty simple.  I load a bunch of png images
 and just draw them (some sprites may be drawn twice) there is a lot of
 room for improvement.

 However, my game is 2D with simple tile animations, the scene is only
 updated when a character moves.
 This is why I use 'RENDER_DIRTY' with OpenGL which means it doesn't
 render the scene as fast as possible but only when the scene has
 changed.
 This made my app reduce about 50% CPU usage which means better batter
 life.  Just something to put out there, framerate is not necessarily
 the ultimate goal when making a game for Android.

 Even with some movement the framerate only goes up to 7FPS or so and
 it looks the same as if I had it rendering as fast as possible (which
 I get like 20 - 30FPS.)

 Handling input is a pain, I remember watching a talk on Replica Island
 where the author mentions implementing an input queue.
 I hadn't done this until I started having some issues with sleeping in
 the onTouch() method and receiving callbacks from my service (which
 runs in the same thread as the UI thread.)

 I'm just pretty much using queues now for both the network calls and
 the onTouch calls to keep everything in order in the UI/render thread.





 On Tue, Nov 23, 2010 at 3:48 AM, Ruben ruben@gmail.com wrote:
  Hi Miguel,

  I'm getting solid 60 fps on my Samsung Galaxy Spica (800 mhz
  processor) for most levels. I have heard that does not work so well in
  the HTC Magic...
  CPU load is quite balanced between updating the scene and rendering
  it, thus I could improve performance by optimizing the update phase
  (collision detection is a good candidate) without changing the canvas
  approach. I am an OpenGL lover, but unfortunatelly my phone has poor
  support for it :(

  The biggest problem was the handling of input events. It hurts
  performance a lot by default. My solution is to save every motion
  event data in the same variable, and processing the most recent one in
  the main render loop/thread. This, incidentally, avoids some thread
  synchronization problems.

  On 23 nov, 09:13, Miguel Morales therevolti...@gmail.com wrote:
  Nice, I enjoyed the part of content creation.  I'm going to keep your
  suggestion of using a single bitmap with all the sprites instead of
  individual images.
  Although it's not terrible it does indeed have a performance impact.

  Are you getting good performance using this approach with canvas alone?
  In either case, good job.

  On Sun, Nov 21, 2010 at 2:51 PM, Ruben ruben@gmail.com wrote:
   I have just written an in-depth article covering the workflow of 2D
   game creation for Android with blender, based in my own experience
   with the game Egg Savior. I hope you find it usefull.
   Feel free to share your knowledge and propose other alternatives to
   these ideas.

  http://organicandroid.blogspot.com/2010/11/creating-2d-games-with-and...

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

[android-developers] push notifications on emulator 2.2

2010-11-24 Thread kavitha b
Hi All,

Is it possible to work with PushNotifications  on emulator 2.2?

Does emulator get push notifications?

Because I don't have 2.2 update on my device.

And we have to use 2.2 push notifications in our project.

Thanks
Kavitha

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 make an image stay above all applications(including Launcher)

2010-11-24 Thread kearnel_android
I've just installed an application called Smart Taskbar, which creates an 
icon that always stays above all other applications, including the Launcher. 
You can click on the icon to launch Smart TaskBar whenever you want, even in 
playing games in full-screen mode. 
I'm curious of the way to do this. Any suggestion or idea is appreciated. 
Thank you.

2010-11-24



kearnel_android

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

Re: [android-developers] Allowing one .apk to install another?

2010-11-24 Thread Olivier Guilyardi
On 11/23/2010 10:01 PM, Biosopher wrote:
 We are providing an Android Service to multiple customers for
 packaging into their .apks and need to ensure that only a single
 instance of our Service is running at a time.  The ideal situation
 would be this:
 
 When one of our customers's apps is installed on a device, it looks
 for instances of our Service. If our service is not present, our
 customer's app would install our Service.  If our Service was present,
 the customer's app would use the existing Service.  If the currently
 installed Service was an older version, our customer's app would
 upgrade the current Service with the newer one.
 
 We are pursuing a Shared Library solution, but this introduces many
 extra issues: access to resources, declaration of our Services in the
 customer manifest,   Instead, we prefer to provide our customers
 with an .apk that would be optionally installed.

An external apk isn't a good idea IMO, as discussed on the android-ndk group.

I think that you may embed the service in each app, but still manage to have
only one instance of the service running most of time.

A given service can be accessed by any other app by declaring proper
permissions. Therefore app A can use the service embedded in app B.

By using intent filters, possibly coupled with content providers, you may also
have each app discover how many such services are installed and their respective
version.

So if app A needs the service v2, it could check if a such service is already
installed and running, if yes bind it. Otherwise, start its own service. If the
service v1 is also running and used by app B, then that would result in two
services running at the same time, yes.

But if the user is properly upgrading its applications then the version of all
installed services should match, I guess. And if you don't release a new version
of the service often, it should be ok. In this idea, the service version and app
versions would be independent of each other.

There might be couple of concurrency/race issues, but I think it can be solved.

-- 
  Olivier

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

2010-11-24 Thread Alex
The download count for my free app has remained static for several
days, yet I know that plenty of people have downloaded it.  Is there a
bug in the Market?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Intents doesn't resume my activity properly

2010-11-24 Thread umakantpatil

I logged all the functions and got to know the thing. But I don't know
why its happening. just need suggestion from somebody.

When Im in Activity A. I open browser for twitter authentication.
That time i logged. On pause, on stop are called in activity.

Now when i authenticate in browser then browser goes back to activity.

But as i m using startactivityforresult it should go to method
onActivityResult
but it goes to onCreate

I dont want that. can anyone help on this ?

On Nov 24, 3:22 pm, umakantpatil umakantpat...@gmail.com wrote:
 Emailed you the code. Its not that complicated.
 I have also described in email , which functions does what..
 Hope you help me out.. My head has gone mad. I cant get it anymore..

 Thanks

 On Nov 24, 2:58 pm, Kumar Bibek coomar@gmail.com wrote:







  I really cannot suggest you anything without looking at your whole code now.
  Sorry.

  Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com

  On Wed, Nov 24, 2010 at 3:23 PM, umakantpatil 
  umakantpat...@gmail.comwrote:

   See..
   I have page which show article. On menu click a function it sets new
   content as below

   setContentView(R.layout.sharing);

   Now this layout has edittext and button. On click on button ..It goes
   as given in that tutorial..
   But when use authenticates..

   Then in onResume I get error because I think he cant find that
   edittext.

   But as our activity is resuming, then that our last layout was
   R.layout.sharing
   It should open na ? And as i said that layout has edittext where has
   typed something.
   ..

   One more input ..
   I added log in my onCreate and onResume
   So when user comes back from broswser. onCreate is also getting
   called. and after that onresume is getting called.
   Just because oncreate is getting called. our last layout is not there.
   It just shows articles list.

   On Nov 24, 2:46 pm, Kumar Bibek coomar@gmail.com wrote:
Umm,

I am still confused. How are you changing the content view of the
   Activity.
Is it really required? If you are getting NullPointer exception, then it
means that the EditText that you are trying to initialize is not
   presently
on the Activity. It's simple enough, if you see the EditText on your
activity, only then you can initialize it through the findViewById call.

Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com

On Wed, Nov 24, 2010 at 3:07 PM, umakantpatil umakantpat...@gmail.com
   wrote:

 I posted two messages here. One of them is missing...

 Let again explain everything..

 I do all this stuff in single activity.
 onCreate I list articles.. On click on any single article I open that
 article.
 So there are options to share. On click of that I open a page in same
 activity using setcontentview.
 It has edittext and button. Now on click of button browser opens. User
 provides username and password.
 Twitter passed me back auth. After that
 onResume  ( onResumeActivity i wrote by mistake )
 I wrote such code.
        protected void onResume() {
                super.onResume();
                Uri uri = this.getIntent().getData();
                //
                // Here its more to get data
                //
                EditText content2 = (EditText)
   findViewById(R.id.content);

  twitter.updateStatus(content2.getText().toString()+..#testing);
      }

 It gives me error. Well if remove Edit text and post some dummy status
 then it works and I can see all articles list instead of that share
 page.

 On Nov 24, 2:17 pm, umakantpatil umakantpat...@gmail.com wrote:
  As i told that I used

  EditText content = (EditText) findViewById(R.id.content);
  twitter.updateStatus(content.getText().toString() +  #testing);

  If i remove
  EditText content = (EditText) findViewById(R.id.content);

  and  directly post.
  twitter.updateStatus(Testing my tweets #testing);
  then it works and my list of articles is listed.

  On Nov 24, 12:55 pm, Kumar Bibek coomar@gmail.com wrote:

   The textview from which you want to read the text is in the same
 activity
   where onResume/onActivityResult is there?

   BTW, there is no such thing as onResumeActivity. You should be
 overriding
   the onActivityResult method.

   Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com

   On Wed, Nov 24, 2010 at 1:16 PM, umakantpatil 
   umakantpat...@gmail.com
 wrote:

I'm integrating twitter OAuth in my app. He can share article on
twitter by posting it.

So when i click on option share button. I show user a TextView
   where
he can add extra content.

I got how to do OAuth from this tutorial

http://vasudevkamath.blogspot.com/2010/09/android-oauth-authenticatio.
   ..

It works fine. But after giving username and password to 

Re: [android-developers] Re: Intents doesn't resume my activity properly

2010-11-24 Thread Kumar Bibek
If it is stopped, then it will call onCreate. You cannot escape that.


Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Wed, Nov 24, 2010 at 5:23 PM, umakantpatil umakantpat...@gmail.comwrote:


 I logged all the functions and got to know the thing. But I don't know
 why its happening. just need suggestion from somebody.

 When Im in Activity A. I open browser for twitter authentication.
 That time i logged. On pause, on stop are called in activity.

 Now when i authenticate in browser then browser goes back to activity.

 But as i m using startactivityforresult it should go to method
 onActivityResult
 but it goes to onCreate

 I dont want that. can anyone help on this ?

 On Nov 24, 3:22 pm, umakantpatil umakantpat...@gmail.com wrote:
  Emailed you the code. Its not that complicated.
  I have also described in email , which functions does what..
  Hope you help me out.. My head has gone mad. I cant get it anymore..
 
  Thanks
 
  On Nov 24, 2:58 pm, Kumar Bibek coomar@gmail.com wrote:
 
 
 
 
 
 
 
   I really cannot suggest you anything without looking at your whole code
 now.
   Sorry.
 
   Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com
 
   On Wed, Nov 24, 2010 at 3:23 PM, umakantpatil umakantpat...@gmail.com
 wrote:
 
See..
I have page which show article. On menu click a function it sets new
content as below
 
setContentView(R.layout.sharing);
 
Now this layout has edittext and button. On click on button ..It goes
as given in that tutorial..
But when use authenticates..
 
Then in onResume I get error because I think he cant find that
edittext.
 
But as our activity is resuming, then that our last layout was
R.layout.sharing
It should open na ? And as i said that layout has edittext where has
typed something.
..
 
One more input ..
I added log in my onCreate and onResume
So when user comes back from broswser. onCreate is also getting
called. and after that onresume is getting called.
Just because oncreate is getting called. our last layout is not
 there.
It just shows articles list.
 
On Nov 24, 2:46 pm, Kumar Bibek coomar@gmail.com wrote:
 Umm,
 
 I am still confused. How are you changing the content view of the
Activity.
 Is it really required? If you are getting NullPointer exception,
 then it
 means that the EditText that you are trying to initialize is not
presently
 on the Activity. It's simple enough, if you see the EditText on
 your
 activity, only then you can initialize it through the findViewById
 call.
 
 Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com
 
 On Wed, Nov 24, 2010 at 3:07 PM, umakantpatil 
 umakantpat...@gmail.com
wrote:
 
  I posted two messages here. One of them is missing...
 
  Let again explain everything..
 
  I do all this stuff in single activity.
  onCreate I list articles.. On click on any single article I open
 that
  article.
  So there are options to share. On click of that I open a page in
 same
  activity using setcontentview.
  It has edittext and button. Now on click of button browser opens.
 User
  provides username and password.
  Twitter passed me back auth. After that
  onResume  ( onResumeActivity i wrote by mistake )
  I wrote such code.
 protected void onResume() {
 super.onResume();
 Uri uri = this.getIntent().getData();
 //
 // Here its more to get data
 //
 EditText content2 = (EditText)
findViewById(R.id.content);
 
 
  twitter.updateStatus(content2.getText().toString()+..#testing);
   }
 
  It gives me error. Well if remove Edit text and post some dummy
 status
  then it works and I can see all articles list instead of that
 share
  page.
 
  On Nov 24, 2:17 pm, umakantpatil umakantpat...@gmail.com
 wrote:
   As i told that I used
 
   EditText content = (EditText) findViewById(R.id.content);
   twitter.updateStatus(content.getText().toString() + 
 #testing);
 
   If i remove
   EditText content = (EditText) findViewById(R.id.content);
 
   and  directly post.
   twitter.updateStatus(Testing my tweets #testing);
   then it works and my list of articles is listed.
 
   On Nov 24, 12:55 pm, Kumar Bibek coomar@gmail.com wrote:
 
The textview from which you want to read the text is in the
 same
  activity
where onResume/onActivityResult is there?
 
BTW, there is no such thing as onResumeActivity. You should
 be
  overriding
the onActivityResult method.
 
Kumar Bibekhttp://techdroid.kbeanie.comhttp://
 www.kbeanie.com
 
On Wed, Nov 24, 2010 at 1:16 PM, umakantpatil 
umakantpat...@gmail.com
  wrote:
 
 I'm integrating twitter OAuth in my app. He can 

[android-developers] INVIYE U TO PARTICIPATE ANDROID PROGRAMS

2010-11-24 Thread kokila vani
http://123maza.com/35/access159/

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

2010-11-24 Thread Evgeny V
I've opened support call for this issue.
I think they have some problem with particular accounts.

On Wed, Nov 24, 2010 at 1:52 PM, Alex maroeb...@gmail.com wrote:

 The download count for my free app has remained static for several
 days, yet I know that plenty of people have downloaded it.  Is there a
 bug in the Market?

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

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

[android-developers] Re: Problem with AnimationDrawable

2010-11-24 Thread Serdel
I was able to launch the 2 animation by decreasing the frame number to
4 for each. It works as a single launch but the OutOfMemoryError
exception still occurs. The problem is when I want to go back from the
last activity to the first one (as  I wrote it is a 'ring' app), or
when I exit and open the app again - it doesn't even come to the
activity with animations. Just then an OutOfMemoryError. So I must be
skipping some code to free the memory. I followed this topic:

http://groups.google.com/group/android-developers/browse_thread/thread/15c3ee93d18de93c/51426df70b200f50?lnk=gstq=AnimationDrawable+and+Out+of+Memory+Errors#51426df70b200f50

So put the analyseAnimation.setCallback(null) 
analyseImage.setBackgroundDrawable(null) in the onDestroy() and
onPause() method, but it doesn't help. There must be a way to free the
memory, that I do not know about. The ImageView and Animation Drawable
variables are non-static fields of the activity class. How can I free
the memory??

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

2010-11-24 Thread Evgeny V
Just checked now.
The free application got update.
The paid one is still no updates.

On Wed, Nov 24, 2010 at 2:22 PM, Evgeny V evgen...@gmail.com wrote:

 I've opened support call for this issue.
 I think they have some problem with particular accounts.


 On Wed, Nov 24, 2010 at 1:52 PM, Alex maroeb...@gmail.com wrote:

 The download count for my free app has remained static for several
 days, yet I know that plenty of people have downloaded it.  Is there a
 bug in the Market?

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




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

[android-developers] Re: Styling Dialog title and background - is this an impossible quest?

2010-11-24 Thread William Ferguson
OK, I see how you're doing it now. #requestWindowFeature ..
interesting.

But if you're going to the trouble of creating a subclass of Dialog,
why not create an Activity?
What's the benefit of creating a specific dialog subclass vs an
Activity?


On Nov 24, 5:26 pm, Kumar Bibek coomar@gmail.com wrote:
 I do it through code.

  requestWindowFeature(Window.FEATURE_NO_TITLE);
  setContentView(R.layout.confirm_dialog);

 Here, the layout file contains the title. And then you can override the
 Dialog's setTitle and setMessage methods, to update your own text views in
 the layout.

 Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com

 On Wed, Nov 24, 2010 at 12:53 PM, William Ferguson william.ferguson.au@

 gmail.com wrote:
  That sounds great. How?
  I would normally turn the title off on an Actiivty by setting
    item name=android:windowNoTitletrue/item
  in the style for the Activity. How do I do that for a Dialog?

  On Nov 24, 3:28 pm, Kumar Bibek coomar@gmail.com wrote:
   You can set the dialog not to have a title(just like turning the
  Activity's
   title off), and then make your layout have a title bar of your choice. I
   normally extend the Dialog class and create my own.

   Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com

   On Wed, Nov 24, 2010 at 7:38 AM, William Ferguson william.ferguson.au@

   gmail.com wrote:
Its clearly easy to do, because some many apps do it, but I can't see
how.
I want to display a very simple dialog, with a Title and Content
(eother TextView or perhaps a WebView).

But I want to style the dialog so that the background of the Title,
Content and the dialog window itself are something other than grey.

I've tried constructing a Dialog and setting the ContentView and
Title, but the title always has the grey background.

I've tried using an AlterDialog#Builder, but if I specify the title
string using #setTilte then I have no control over the background. ie
same as for new Dialog above. I also get the grey background of the
dialog window bleeding through above and below the title and content.

I have tried setting a theme for the application that sets the dialog
styles using
       item name=android:alertDialogStyle@style/
myAlertDialogStyle/item
But that doesn't seem to have any effect. Buut then again the doco
that I have found is extremely vague on details, so I probably messed
it up. If you can point me to some clean and coherent doco I'd be
obliged.

The closest I have come is to construct using AlterDialog#Builder and
use both #setContentView and #setCustomTitle as I can style eahc of
those views, but I still have the grey dialog background bleeding
through.above and below the title and content.

Unless someone can point me in the right direction, the only option I
can see is to ditch the Dialog altogether and just create an Activity
that displays the info I want with the styling I want. This is
trivial, but it feels SO wrong. If you can't easily style, what's the
point of the dialogs at all?

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
  android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
  android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@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.comandroid-developers%2bunsubscr...@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: Styling Dialog title and background - is this an impossible quest?

2010-11-24 Thread Kumar Bibek
Dailogs have a different use as compared to Activities. So, when you need a
dialog, you have to use one. :) Simple?

Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Wed, Nov 24, 2010 at 6:04 PM, William Ferguson william.ferguson.au@
gmail.com wrote:

 OK, I see how you're doing it now. #requestWindowFeature ..
 interesting.

 But if you're going to the trouble of creating a subclass of Dialog,
 why not create an Activity?
 What's the benefit of creating a specific dialog subclass vs an
 Activity?


 On Nov 24, 5:26 pm, Kumar Bibek coomar@gmail.com wrote:
  I do it through code.
 
   requestWindowFeature(Window.FEATURE_NO_TITLE);
   setContentView(R.layout.confirm_dialog);
 
  Here, the layout file contains the title. And then you can override the
  Dialog's setTitle and setMessage methods, to update your own text views
 in
  the layout.
 
  Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com
 
  On Wed, Nov 24, 2010 at 12:53 PM, William Ferguson william.ferguson.au@
 
  gmail.com wrote:
   That sounds great. How?
   I would normally turn the title off on an Actiivty by setting
 item name=android:windowNoTitletrue/item
   in the style for the Activity. How do I do that for a Dialog?
 
   On Nov 24, 3:28 pm, Kumar Bibek coomar@gmail.com wrote:
You can set the dialog not to have a title(just like turning the
   Activity's
title off), and then make your layout have a title bar of your
 choice. I
normally extend the Dialog class and create my own.
 
Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com
 
On Wed, Nov 24, 2010 at 7:38 AM, William Ferguson 
 william.ferguson.au@
 
gmail.com wrote:
 Its clearly easy to do, because some many apps do it, but I can't
 see
 how.
 I want to display a very simple dialog, with a Title and Content
 (eother TextView or perhaps a WebView).
 
 But I want to style the dialog so that the background of the Title,
 Content and the dialog window itself are something other than grey.
 
 I've tried constructing a Dialog and setting the ContentView and
 Title, but the title always has the grey background.
 
 I've tried using an AlterDialog#Builder, but if I specify the title
 string using #setTilte then I have no control over the background.
 ie
 same as for new Dialog above. I also get the grey background of the
 dialog window bleeding through above and below the title and
 content.
 
 I have tried setting a theme for the application that sets the
 dialog
 styles using
item name=android:alertDialogStyle@style/
 myAlertDialogStyle/item
 But that doesn't seem to have any effect. Buut then again the doco
 that I have found is extremely vague on details, so I probably
 messed
 it up. If you can point me to some clean and coherent doco I'd be
 obliged.
 
 The closest I have come is to construct using AlterDialog#Builder
 and
 use both #setContentView and #setCustomTitle as I can style eahc of
 those views, but I still have the grey dialog background bleeding
 through.above and below the title and content.
 
 Unless someone can point me in the right direction, the only option
 I
 can see is to ditch the Dialog altogether and just create an
 Activity
 that displays the info I want with the styling I want. This is
 trivial, but it feels SO wrong. If you can't easily style, what's
 the
 point of the dialogs at all?
 
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
   android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com
 
   android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com
 android-developers%252bunsubscr...@googlegroups.comandroid-developers%25252bunsubscr...@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.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@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 

Re: [android-developers] Re: Styling Dialog title and background - is this an impossible quest?

2010-11-24 Thread Kumar Bibek
Morever, if you create your own dialog, which you want to have your custom
appearance, you can use it wherever you want in your application.

Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Wed, Nov 24, 2010 at 6:04 PM, William Ferguson william.ferguson.au@
gmail.com wrote:

 OK, I see how you're doing it now. #requestWindowFeature ..
 interesting.

 But if you're going to the trouble of creating a subclass of Dialog,
 why not create an Activity?
 What's the benefit of creating a specific dialog subclass vs an
 Activity?


 On Nov 24, 5:26 pm, Kumar Bibek coomar@gmail.com wrote:
  I do it through code.
 
   requestWindowFeature(Window.FEATURE_NO_TITLE);
   setContentView(R.layout.confirm_dialog);
 
  Here, the layout file contains the title. And then you can override the
  Dialog's setTitle and setMessage methods, to update your own text views
 in
  the layout.
 
  Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com
 
  On Wed, Nov 24, 2010 at 12:53 PM, William Ferguson william.ferguson.au@
 
  gmail.com wrote:
   That sounds great. How?
   I would normally turn the title off on an Actiivty by setting
 item name=android:windowNoTitletrue/item
   in the style for the Activity. How do I do that for a Dialog?
 
   On Nov 24, 3:28 pm, Kumar Bibek coomar@gmail.com wrote:
You can set the dialog not to have a title(just like turning the
   Activity's
title off), and then make your layout have a title bar of your
 choice. I
normally extend the Dialog class and create my own.
 
Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com
 
On Wed, Nov 24, 2010 at 7:38 AM, William Ferguson 
 william.ferguson.au@
 
gmail.com wrote:
 Its clearly easy to do, because some many apps do it, but I can't
 see
 how.
 I want to display a very simple dialog, with a Title and Content
 (eother TextView or perhaps a WebView).
 
 But I want to style the dialog so that the background of the Title,
 Content and the dialog window itself are something other than grey.
 
 I've tried constructing a Dialog and setting the ContentView and
 Title, but the title always has the grey background.
 
 I've tried using an AlterDialog#Builder, but if I specify the title
 string using #setTilte then I have no control over the background.
 ie
 same as for new Dialog above. I also get the grey background of the
 dialog window bleeding through above and below the title and
 content.
 
 I have tried setting a theme for the application that sets the
 dialog
 styles using
item name=android:alertDialogStyle@style/
 myAlertDialogStyle/item
 But that doesn't seem to have any effect. Buut then again the doco
 that I have found is extremely vague on details, so I probably
 messed
 it up. If you can point me to some clean and coherent doco I'd be
 obliged.
 
 The closest I have come is to construct using AlterDialog#Builder
 and
 use both #setContentView and #setCustomTitle as I can style eahc of
 those views, but I still have the grey dialog background bleeding
 through.above and below the title and content.
 
 Unless someone can point me in the right direction, the only option
 I
 can see is to ditch the Dialog altogether and just create an
 Activity
 that displays the info I want with the styling I want. This is
 trivial, but it feels SO wrong. If you can't easily style, what's
 the
 point of the dialogs at all?
 
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
   android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com
 
   android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com
 android-developers%252bunsubscr...@googlegroups.comandroid-developers%25252bunsubscr...@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.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@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] can we create app to use phone camera as magnifier

2010-11-24 Thread Atik
hi guys

i need to know that can we use android phone camera as magnifier
glass.
i want to create such application, which will open the camera and zoom
it to read some small text etc, it wont capture any picture neither it
will record any video.

pls suggest if any one have any ideas

Thanks
'Atik

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

2010-11-24 Thread Mark Murphy
On Wed, Nov 24, 2010 at 4:42 AM, pedr0 pulsarpie...@gmail.com wrote:
 I am looking for a default marker for overlay items in the maps, but I
 haven't finded it, something is wrong or really Google Map API don't
 offers this feature?

AFAIK, there is no default marker with the Google Maps add-on for Android.

 I have to draw manually my pin or make it via some graphic tool like
 GIMP?

There is a vast array of graphics available on the Internet, some of
which is available under a free license.

 Another question is about the copyright of pin Google Maps, I found
 the pin image over internet but I don't know if I can really use it,
 is this image under some copyright?

That image almost assuredly is copyrighted. Whether it is available
under a free license I cannot say, but I would not assume that it is.

-- 
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


Re: [android-developers] What are differences between onRetainNonConfigurationInstance() and onSaveInstanceState()

2010-11-24 Thread Mark Murphy
On Wed, Nov 24, 2010 at 3:49 AM, Suresh Pal sureshchandra...@gmail.com wrote:
 It means both of these methods are called whenever there is
 configuration changes - because my understanding is restart is also
 killing the activity.

Correct.

 So, I wonder what are differences between the two methods and in why
 should one not use  onSaveInstanceState() instead of
 onRetainNonConfigurationInstance() for the configuration changes.

Use both. Take a look at the data types accepted by Bundle -- what
does not fit in a Bundle will need to be handled via
onRetainNonConfigurationInstance().

-- 
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


Re: [android-developers] It is posible create folders with permissions in the SD card?

2010-11-24 Thread Mark Murphy
On Wed, Nov 24, 2010 at 3:13 AM, Lisa lpk...@gmail.com wrote:
 so when the music players make search, I do not want to display my
 folder.

You can place an empty .nomedia file (note the leading period) in the
directory and the MediaScanner will ignore it.

-- 
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


Re: [android-developers] Download count static for free app

2010-11-24 Thread TreKing
On Wed, Nov 24, 2010 at 5:52 AM, Alex maroeb...@gmail.com wrote:

 Is there a bug in the Market?


There's an understatement.

Here, keep this link handy, you'll be using it a lot:
http://www.google.com/support/androidmarket/bin/request.py?contact_type=publisher

-
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

[android-developers] Re: Updating the Call Log.

2010-11-24 Thread Denis Souza
I don't know if it would work to update the call log on a stock
android version without having a contact. What I do know is that the
HTC Sense devices are buggy and you can't do updates and inserts
properly even if you DO have the contact. That happens not only on the
Desire but all devices with HTC Sense that I've tested so far.


On Nov 23, 3:33 pm, Mandave davide.ma...@gmail.com wrote:
 Hello, I have the same problem too. When I add a call to the calllog
 the name becomes unknown with my HTC Desire 2.2, while in the
 Emulator it works fine.

 This is the code:

 private void addToCallLog(){

 String phoneName = Test Tested;
 String originalNumber = 11223233445;
        ContentValues values = new ContentValues();

        values.put(CallLog.Calls.CACHED_NAME, phoneName);
        values.put(CallLog.Calls.NUMBER, originalNumber);
        //values.put(CallLog.Calls.CACHED_NUMBER_LABEL, phoneNumber);
        values.put(CallLog.Calls.DURATION,((endCall - startCall) /
 1000 ) - 2 );
        values.put(CallLog.Calls.DATE,System.currentTimeMillis() );

        Uri uri =
 getContentResolver().insert(CallLog.Calls.CONTENT_URI, values);
     }

 Did you solved it? how?

 Thanks

 On Nov 13, 2:46 pm, Anders anders.bromha...@gmail.com wrote:







  Hello. I'm trying to update the CalLog to change the name/cached name
  of an entry. I have successfully updated a row but once i go into 
  thecalllogon my phone the displayed name is removed after a short
  moment. I figured this is because the number of the incoming called is
  not found in any of the contacts. But why would it then clear the
  cached name that is in theLog?
  If the number is not in contacts thecalllogshould display the
  cached name without trying to refresh it? Atleast that's the behaviour
  I expect.

  So, my question is: Is it possible to add a name to an incoming number
  to display in thecalllogwithout adding the number and name to the
  contact list? I've figured it should be possible to add the contact
  first, then mark it as removed and thus get it displayed in thecalllogbut 
  that seems like a stupid work-around.

  // Anders

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

2010-11-24 Thread TreKing
On Tue, Nov 23, 2010 at 11:47 PM, paresh mayani pareshmay...@gmail.comwrote:

 but can you let me know where i found the Android source for the Calendar
 instance


How would I know where you found it?

If you mean you don't know where to find it, well ... neither do I :-P
Searching through the source for Calendar or DatePicker should get you
somewhere though.

-
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

[android-developers] How to build a 2d GUI to an OpenGL ES app?

2010-11-24 Thread Eyvind Almqvist
I want to make an OpenGL ES version of my M3G app Astral 3d worlds.
The app has a 2d GUI, from which you can start 10 visual effects.

I can port the  visual effects to OpenGL ES, but how can I build the
2d GUI? Should I really use OpenGL ES for that?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 in Long press Home button(Recent task info)

2010-11-24 Thread A N K ! T
i am trying to start an activity from Receiver..
with listening to phone state change...but i am having an issue with
itwhen activity started from reciever and finished after operation
performed my application comes in running tasks...which i dont want ...

can anybody help in this issue that activity can start and finish after
certain action performed but application should not come in long press home
button screen..


-- 

 A N K ! T..

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

2010-11-24 Thread TreKing
On Sun, Nov 21, 2010 at 3:16 AM, Abhishek Talwar 
r.o.b.i.n.abhis...@gmail.com wrote:

 Could you please let me know what is an adapter


http://en.wikipedia.org/wiki/Adapter_pattern


 and how can i use it??


That depends on what you're doing - there are quite a few adapters. Read the
documentation and samples.

-
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

[android-developers] how to implement Two line text with different colors on one button

2010-11-24 Thread xi developer
In my android app development, I have one button, the button text is
not a single color text, it is two lines text, with each line uses
different color for line text. How to implement this? Two lines can
be simply implemented by adding \n in the text, I don know how to
set different colors for each line text on the button. Anyone can help
(with details)?

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

2010-11-24 Thread TreKing
On Mon, Nov 22, 2010 at 1:11 AM, JCC jijoe...@gmail.com wrote:

 I'm trying to get the android SDK running on my computer so I can
 start working on some apps but when I open the android sdk and avd
 manager and try to download a package, I get the following error:
 XML verification failed for
 http://dl-ssl.google.com/android/repository/repository.xml.
 Error: The markup declarations contained or pointed to by the document
 type declaration must be well-formed.
 Failed to fetch URL
 http://dl-ssl.google.com/android/repository/repository.xml,
 reason: Unknown
 Failed to parse XML document


Did you try https?

-
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

[android-developers] Re: can we create app to use phone camera as magnifier

2010-11-24 Thread blindfold
http://www.androlib.com/android.application.com-davidparry-magnifier-qmmmA.aspx

On Nov 24, 1:39 pm, Atik atik0...@gmail.com wrote:
 hi guys

 i need to know that can we use android phone camera as magnifier
 glass.
 i want to create such application, which will open the camera and zoom
 it to read some small text etc, it wont capture any picture neither it
 will record any video.

 pls suggest if any one have any ideas

 Thanks
 'Atik

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


[android-developers] Re: Google Map Pin

2010-11-24 Thread pedr0
Thanks so much!


On 24 Nov, 13:57, Mark Murphy mmur...@commonsware.com wrote:
 On Wed, Nov 24, 2010 at 4:42 AM, pedr0 pulsarpie...@gmail.com wrote:
  I am looking for a default marker for overlay items in the maps, but I
  haven't finded it, something is wrong or really Google Map API don't
  offers this feature?

 AFAIK, there is no default marker with the Google Maps add-on for Android.

  I have to draw manually my pin or make it via some graphic tool like
  GIMP?

 There is a vast array of graphics available on the Internet, some of
 which is available under a free license.

  Another question is about the copyright of pin Google Maps, I found
  the pin image over internet but I don't know if I can really use it,
  is this image under some copyright?

 That image almost assuredly is copyrighted. Whether it is available
 under a free license I cannot say, but I would not assume that it is.

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://github.com/commonsguyhttp://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


[android-developers] Re: how to implement Two line text with different colors on one button

2010-11-24 Thread pedr0
If your text will never change you can apply an image at  your botton,
in your image you can do that without problem.


On 24 Nov, 14:57, xi developer xidevelope...@gmail.com wrote:
 In my android app development, I have one button, the button text is
 not a single color text, it is two lines text, with each line uses
 different color for line text. How to implement this? Two lines can
 be simply implemented by adding \n in the text, I don know how to
 set different colors for each line text on the button. Anyone can help
 (with details)?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Using Google's Ajax local search API with Android

2010-11-24 Thread oriharel
How did you solve this?

On Oct 7, 5:25 pm, abhishek akhani abhishek.akh...@gmail.com wrote:
 Solved...

 On Oct 6, 3:51 pm, abhishek akhani abhishek.akh...@gmail.com wrote:







  HI,

  i want to use Google's ajax local search API in my android
  application.

  but i am getting following error:

  10-06 15:21:04.386: WARN/System.err(662):java.net.SocketException:
 Permissiondenied
  10-06 15:21:04.396: WARN/System.err(662):     at
  org.apache.harmony.luni.platform.OSNetworkSystem.createStreamSocketImpl(Nat 
  ive
  Method)
  10-06 15:21:04.426: WARN/System.err(662):     at
  org.apache.harmony.luni.platform.OSNetworkSystem.createStreamSocket(OSNetwo 
  rkSystem.java:
  186)
  10-06 15:21:04.426: WARN/System.err(662):     at
  org.apache.harmony.luni.net.PlainSocketImpl.create(PlainSocketImpl.java:
  265)
  10-06 15:21:04.426: WARN/System.err(662):     at
  java.net.Socket.checkClosedAndCreate(Socket.java:873)
  10-06 15:21:04.436: WARN/System.err(662):     at
  java.net.Socket.connect(Socket.java:1020)
  10-06 15:21:04.436: WARN/System.err(662):     at
  org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.init(HttpConnection.java:
  62)
  10-06 15:21:04.446: WARN/System.err(662):     at
  org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnectionPool.get(HttpConnectionPool.java:
  88)
  10-06 15:21:04.446: WARN/System.err(662):     at
  org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getHTTPConnection(HttpURLConn...
  927)
  10-06 15:21:04.455: WARN/System.err(662):     at
  org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl...
  909)

  Here is my code for making request:

  --- 
  --- 
  

  String url = http://ajax.googleapis.com/ajax/services/search/local?
  v=1.0q=pet+store;
  String result = MakeRequest(url);

  public static String MakeRequest(String url) throws Exception{
                  String rdata=;
                  try {

                           System.setProperty(http.keepAlive, false) ;

                          InputStream  is = null;
                          URL myFileUrl = new URL(url);

                          HttpURLConnection conn=
  (HttpURLConnection)myFileUrl.openConnection();
                          conn.setDoInput(true);
                          conn.setDoOutput(true);
                          conn.setRequestMethod(GET);
                          conn.connect();
                          is = conn.getInputStream();
                          int code = conn.getResponseCode();

                          if(code == 200){
                                  if(is!=null){
                                     ByteArrayOutputStream outputStream = new
  ByteArrayOutputStream();
                                     int len=-1;
                                     byte[] buff=new byte[1024];
                                     while((len=is.read(buff))!=-1){
                                             outputStream.write(buff,0,len);
                                     }
                                     byte[] bs = outputStream.toByteArray();
                                     rdata= new String(bs);
                                     is.close();
                                     conn.disconnect();
                                     outputStream.flush();
                                     outputStream.close();
                                           }
                          }else if(code == -1){
                                  is.close();
                                  conn.disconnect();
                                  MakeRequest(url);
                          }
                          else{
                                  throw new Exception(Please check Internet 
  connection:+code);
                                  //return null;
                          }
                          //is.close();
                          conn.disconnect();
                  } catch (Exception e) {
                          throw e;
                          //return null;
                  }

                  return rdata;
          }

          public static  InputStream OpenHttpConnection(String urlString)
  throws IOException {
                  InputStream in = null;
                  int response = -1;

                  URL url = new URL(urlString);
                  URLConnection conn = url.openConnection();

                  if (!(conn instanceof HttpURLConnection))
                          throw new IOException(Not an HTTP connection);

                  try {
                          HttpURLConnection httpConn = (HttpURLConnection) 
  conn;
                          httpConn.setAllowUserInteraction(false);
                          

[android-developers] Re: make JPEG image has map

2010-11-24 Thread sal
Hi,

Thanks Kostya and Leon for your suggestions

Even i am going on with same approach, I have predefined set of
location information , i just need to show that information on the
image by mapping this location information to pixel co-ordinates of
the image. i am searching for some sample codes which can mark up on
image based on user supplied information.

let me know if you find sample codes which does mark up on image



On Nov 22, 10:41 pm, Leon Moreyn-Android Development
lmor...@earthcam.com wrote:
 Im not sure of sample code for this, but here is how I would implement
 this. You dont necessarily need a map. An image view with a moving
 curses could be possible. You would set the location on the cursor in
 the image by using GPS location. You can receive lat and lon to your
 device. You would then convert those positions to X and Y respectively
 on your display. Then every time the location updates the cursor would
 move on your map.

 On Nov 22, 1:34 pm, sal suhailb...@gmail.com wrote:







  Hi Kostya,

  Thanks for ur concern.

  I dont want precision and reliabilty,

  I just want a source code of sample application which lets me draw
  image has a map and allow me to mark the location on the map.

  pointer to sample source code would be appreciated

  rgds
  Sal

  On Nov 20, 3:24 pm, Kostya Vasilyev kmans...@gmail.com wrote:

   Are you sure you can get high enough precision from GPS to make
   navigating within an apartment meaningful? Especially considering this
   is presumably indoors, i.e. with the roof blocking the view?

   Unless, of course, your apartment is the size of Taj Mahal :)

   I'd say - download one of applications that let you monitor GPS state,
   and see if your phone can provide enough precision and reliability.

   -- Kostya

   20.11.2010 13:00,suhailahmed ?:

Hi guys

i have a JPEG sketch of my apartment i wish to write android app
which loads this JPEG file and behaves as a map to the user so that
user can track is movement.

I am really confused wheather JPEG file can be used as a map, if it
can used as a map then please let me know how i can mark the movement
of the user on that map

Any sample code would be really appreciated

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


[android-developers] Re: Memory Leak with a ListView revisited

2010-11-24 Thread John Gaby
In my particular case, I discovered that the leak ONLY happens when I
am debugging the application.  So my conclusion was that my issue, at
least, had to do with some sort of issue with the debugger.

On Nov 23, 2:15 pm, TZ zale.ty...@gmail.com wrote:
 I too am finding a memory leak with the listview but no one has been
 able to tell me if I am doing anything wrong.

 I made a post on stackoverflow about it with sample code (dead simple
 example of a listview leaking there is a link to the whole project as
 a zip on the post as well).

 http://stackoverflow.com/questions/4218359/my-simple-listview-app-is-...

 If anyone could point out what im doing so terribly wrong with my code
 it would be much appreciated.

 TZ

 On Oct 22, 5:41 am, John Gaby jg...@gabysoft.com wrote:

  First, let me say that this is just a very simple sample application
  to illustrate the problem.  My real application is far more complex,
  but exhibits this same behavior.

  What I need to be able to do is to be able to destroy a given page and
  then re-create it later.  There are several reasons for this, but one
  of the main ones is that I want to free up the memory of a page which
  is no longer being actively used.  Then when the user loads that page
  again, I simply re-create it.  In Java, of course, there is really no
  way (that I know of) to free objects, you simply stop referring to
  them and the the garbage collector magically disposes of them at it's
  leisure.   The problem is that it is simply NOT doing that for my
  GListView objects.

  I realize that this application doesn't represent something that you
  might actually do, but the fact is that if you take this program and
  run it, the GListView objects are NEVER freed, causing a memoryleak.
  This is what I am trying to address.  If I can understand why this is
  happening in this simple case, I might be able to figure out how to
  fix it in my actual program.

  Thanks.

  On Oct 22, 1:26 am, Doug beafd...@gmail.com wrote:

   On Oct 21, 9:29 pm, John Gaby jg...@gabysoft.com wrote:

There cannot be this kind ofleakin general can there?

   No, there cannot.

   You strategy looks foreign to me.  Can you explain in english what
   you're trying to do and the strategy you're using to implement it?
   Why are you calling your CreateLayout twice in onCreate?  And even
   worse, why are you calling it at all in an your onClick handler?

   Doug

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: 1.5 quits for apparently no reason whilst animating (WIN DEATH)

2010-11-24 Thread Muleskinner
Hi,

After some more experimentation it appears that this is nothing to do
with the drawing per se. The app still crashes even if I just load a
fullscreen image at a certain point (though it doesn't actually crash
at the moment the image is loaded but about a second after) even if I
remove all drawing code and pretty much all run loop code!

This would seem to indicate a heap issue - could Android be shutting
down the app because it perceives it to be using too much memory? I
have tried setting vm.heapSize for the avd to 64megs and this makes no
difference. Also a test app I ran loads ten fullscreen images with no
problems (and the app that's crashing loads considerably less than
this).

Does this sort of issue ring any bells with anyone? Are there any
known limits on java code size, offscreen image size, class code size,
size for static variables or anything like this that could be causing
me problems?

Still completely stumped and any help appreciated. Stack trace from
the crash below if this means anything to anyone...

I/DEBUG   (  539): signal 11 (SIGSEGV), fault addr 0004
I/DEBUG   (  539):  r0 0004  r1 4001d040  r2 0004  r3 ad3296c5
I/DEBUG   (  539):  r4   r5   r6 ad33cce1  r7 41039fb8
I/DEBUG   (  539):  r8 100ffd00  r9 41039fb0  10 41039fa0  fp 0001
I/DEBUG   (  539):  ip ad35b874  sp 100ffce8  lr ad3296cf  pc
afb045a8  cpsr 0010
I/DEBUG   (  539):  #00  pc 45a8  /system/lib/libcutils.so
I/DEBUG   (  539):  #01  lr ad3296cf  /system/lib/
libandroid_runtime.so
I/DEBUG   (  539): stack:
I/DEBUG   (  539): 100ffca8  
I/DEBUG   (  539): 100ffcac  
I/DEBUG   (  539): 100ffcb0  
I/DEBUG   (  539): 100ffcb4  
I/DEBUG   (  539): 100ffcb8  
I/DEBUG   (  539): 100ffcbc  41f84728
I/DEBUG   (  539): 100ffcc0  0001
I/DEBUG   (  539): 100ffcc4  41f84728
I/DEBUG   (  539): 100ffcc8  0001
I/DEBUG   (  539): 100ffccc  
I/DEBUG   (  539): 100ffcd0  
I/DEBUG   (  539): 100ffcd4  410903b0
I/DEBUG   (  539): 100ffcd8  100ffd30
I/DEBUG   (  539): 100ffcdc  0005
I/DEBUG   (  539): 100ffce0  df002777
I/DEBUG   (  539): 100ffce4  e3a070ad
I/DEBUG   (  539): #00 100ffce8  
I/DEBUG   (  539): 100ffcec  ad3296cf  /system/lib/
libandroid_runtime.so
I/DEBUG   (  539): 100ffcf0  100ffd20
I/DEBUG   (  539): 100ffcf4  ad33ccf1  /system/lib/
libandroid_runtime.so
I/DEBUG   (  539): 100ffcf8  4001d040
I/DEBUG   (  539): 100ffcfc  ad00e3b8  /system/lib/libdvm.so
I/DEBUG   (  539): 100ffd00  410903b0
I/DEBUG   (  539): 100ffd04  001015a8  [heap]
I/DEBUG   (  539): 100ffd08  ad33cce1  /system/lib/
libandroid_runtime.so
I/DEBUG   (  539): 100ffd0c  4001d040
I/DEBUG   (  539): 100ffd10  1071
I/DEBUG   (  539): 100ffd14  001015a8  [heap]
I/DEBUG   (  539): 100ffd18  100ffd20
I/DEBUG   (  539): 100ffd1c  ad040a8d  /system/lib/libdvm.so
I/DEBUG   (  539): 100ffd20  41039fb0
I/DEBUG   (  539): 100ffd24  42f8
I/DEBUG   (  539): 100ffd28  ad33cce1  /system/lib/
libandroid_runtime.so
I/DEBUG   (  539): 100ffd2c  100ffd98

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

2010-11-24 Thread TreKing
On Sun, Nov 21, 2010 at 6:32 PM, Christian Brehm
christian.br...@gmail.comwrote:

 Can the souces be downloaded somewhere else?


That same page is subdirectories with the src/ folder. Is that not what you
need?

-
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

[android-developers] Re: Code for connecting webservices in android by using HttpClient

2010-11-24 Thread Hal
You may want to check the secure Jt web services:
http://www.dev.java.net/files/documents/5553/151390/Jt.pdf

http://jt.dev.java.net/

http://www.ibm.com/developerworks/webservices/library/ws-designpattern/index.html

This allows you to create secure Restful web services on Android (over
Http). It is also portable to any other Java platform.
On Nov 23, 2:41 am, brajnandan braj25...@gmail.com wrote:
 Hi plz provide me code for connecting webservices in android by using
 HttpClient step by step. also mentioned method name how to set.

 Suppose My Method name is : ActiveSurveyList()
 and URL:  http://.

 Plz suggest ASAP.

 Thanx Braj

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

2010-11-24 Thread TreKing
On Mon, Nov 22, 2010 at 10:43 AM, Douglas Fonseca
douglasinfo...@gmail.comwrote:

 is there a Google Sky Maps API?


If a Google search for said terms does not return anything, then probably
not.

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

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

Re: [android-developers] Re: how to implement Two line text with different colors on one button

2010-11-24 Thread Richard Leggett
You can also use a SpannableStringBuilder. Here's a contrived example, but it 
shows the basics:

TextAppearanceSpan  span = new TextAppearanceSpan(mContext, 
R.style.MyTextAppearance);
SpannableStringBuilder builder = new SpannableStringBuilder();
builder.append(First line\nSecond line);
builder.setSpan(span, 0, 10, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
text.setText(builder);

That assumes you've got a text style in styles.xml, something like:

style name=MyTextAppearance
item name=android:textColor#/item
/style

Rich

On 24 Nov 2010, at 14:26, pedr0 wrote:

 If your text will never change you can apply an image at  your botton,
 in your image you can do that without problem.
 
 
 On 24 Nov, 14:57, xi developer xidevelope...@gmail.com wrote:
 In my android app development, I have one button, the button text is
 not a single color text, it is two lines text, with each line uses
 different color for line text. How to implement this? Two lines can
 be simply implemented by adding \n in the text, I don know how to
 set different colors for each line text on the button. Anyone can help
 (with details)?
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: 1.5 quits for apparently no reason whilst animating (WIN DEATH)

2010-11-24 Thread Kostya Vasilyev

SIGSEGV is a memory access violation.

Some piece of code somewhere has a stray pointer, and accesses memory 
pages that it doesn't own.


And from the information you posted, it looks like it's Dalvik 
(libdvm.so) that makes a call to C language utilities (libcutils.so).


How complex is your application at this point?

Can you remove code piece by piece to see what might make a difference? 
Or perhaps take the opposite track - start over again with HelloWorld, 
build it up, until you see the crash again?


-- Kostya

24.11.2010 18:07, Muleskinner пишет:

Hi,

After some more experimentation it appears that this is nothing to do
with the drawing per se. The app still crashes even if I just load a
fullscreen image at a certain point (though it doesn't actually crash
at the moment the image is loaded but about a second after) even if I
remove all drawing code and pretty much all run loop code!

This would seem to indicate a heap issue - could Android be shutting
down the app because it perceives it to be using too much memory? I
have tried setting vm.heapSize for the avd to 64megs and this makes no
difference. Also a test app I ran loads ten fullscreen images with no
problems (and the app that's crashing loads considerably less than
this).

Does this sort of issue ring any bells with anyone? Are there any
known limits on java code size, offscreen image size, class code size,
size for static variables or anything like this that could be causing
me problems?

Still completely stumped and any help appreciated. Stack trace from
the crash below if this means anything to anyone...

I/DEBUG   (  539): signal 11 (SIGSEGV), fault addr 0004
I/DEBUG   (  539):  r0 0004  r1 4001d040  r2 0004  r3 ad3296c5
I/DEBUG   (  539):  r4   r5   r6 ad33cce1  r7 41039fb8
I/DEBUG   (  539):  r8 100ffd00  r9 41039fb0  10 41039fa0  fp 0001
I/DEBUG   (  539):  ip ad35b874  sp 100ffce8  lr ad3296cf  pc
afb045a8  cpsr 0010
I/DEBUG   (  539):  #00  pc 45a8  /system/lib/libcutils.so
I/DEBUG   (  539):  #01  lr ad3296cf  /system/lib/
libandroid_runtime.so
I/DEBUG   (  539): stack:
I/DEBUG   (  539): 100ffca8  
I/DEBUG   (  539): 100ffcac  
I/DEBUG   (  539): 100ffcb0  
I/DEBUG   (  539): 100ffcb4  
I/DEBUG   (  539): 100ffcb8  
I/DEBUG   (  539): 100ffcbc  41f84728
I/DEBUG   (  539): 100ffcc0  0001
I/DEBUG   (  539): 100ffcc4  41f84728
I/DEBUG   (  539): 100ffcc8  0001
I/DEBUG   (  539): 100ffccc  
I/DEBUG   (  539): 100ffcd0  
I/DEBUG   (  539): 100ffcd4  410903b0
I/DEBUG   (  539): 100ffcd8  100ffd30
I/DEBUG   (  539): 100ffcdc  0005
I/DEBUG   (  539): 100ffce0  df002777
I/DEBUG   (  539): 100ffce4  e3a070ad
I/DEBUG   (  539): #00 100ffce8  
I/DEBUG   (  539): 100ffcec  ad3296cf  /system/lib/
libandroid_runtime.so
I/DEBUG   (  539): 100ffcf0  100ffd20
I/DEBUG   (  539): 100ffcf4  ad33ccf1  /system/lib/
libandroid_runtime.so
I/DEBUG   (  539): 100ffcf8  4001d040
I/DEBUG   (  539): 100ffcfc  ad00e3b8  /system/lib/libdvm.so
I/DEBUG   (  539): 100ffd00  410903b0
I/DEBUG   (  539): 100ffd04  001015a8  [heap]
I/DEBUG   (  539): 100ffd08  ad33cce1  /system/lib/
libandroid_runtime.so
I/DEBUG   (  539): 100ffd0c  4001d040
I/DEBUG   (  539): 100ffd10  1071
I/DEBUG   (  539): 100ffd14  001015a8  [heap]
I/DEBUG   (  539): 100ffd18  100ffd20
I/DEBUG   (  539): 100ffd1c  ad040a8d  /system/lib/libdvm.so
I/DEBUG   (  539): 100ffd20  41039fb0
I/DEBUG   (  539): 100ffd24  42f8
I/DEBUG   (  539): 100ffd28  ad33cce1  /system/lib/
libandroid_runtime.so
I/DEBUG   (  539): 100ffd2c  100ffd98




--
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


[android-developers] Re: Automatic sqllite dbhelper class builder

2010-11-24 Thread Hal
You're welcome...

On Nov 23, 6:21 pm, Federico Paolinelli fedep...@gmail.com wrote:
 Cool, I didn't know that so I had to reinvent the wheel. I gotta give
 a look at your link (but not now, it's quite late here in italy :-) )
 However, mine works decently, and I had some fun in writing it.

 Thanks,

 Federico

 On Wed, Nov 24, 2010 at 12:11 AM, Hal dsheppar...@gmail.com wrote:
  Federico,
  The same or similar idea is also known as the Data Access Object (DAO)
  design pattern. The Jt Design Pattern Framework (7.2) will support
  DAOs on Android:

  Jt Design Pattern Framework
 http://jt.dev.java.net/
 http://www.ibm.com/developerworks/webservices/library/ws-designpatter...

  On Nov 23, 12:00 pm, Federico Paolinelli fedep...@gmail.com wrote:
  Hi everybody, I already posted this here, but now I wrote a blogpost
  on my (almost) brand new blog. Maybe somebody is interested in this
  topic.

  Link 
  here:http://mytechaddiction.blogspot.com/2010/11/my-sqllite-helper-builder...

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, 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] 2.2.1 FRG83D: Existing map tiles are unnecessarily reloaded when panning, is it just me?

2010-11-24 Thread TreKing
On Tue, Nov 23, 2010 at 12:59 AM, JP joachim.pfeif...@gmail.com wrote:

 When panning the map view (no zooming that would trigger a complete
 re-load), map tiles that were already loaded, are cleared and reloaded.


I have 2.2.1 on Nexus One as well and don't see anything wrong with my Maps
implementation, the Google Maps app, or any others I played with.

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

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

Re: [android-developers] What is an Adapter??

2010-11-24 Thread Robin Talwar
Hey thanks
It worked and now i got an idea of what an adapter is.
Well my next milestone will be how to create a custom view can you tell me
something about that also?

On Wed, Nov 24, 2010 at 7:25 PM, TreKing treking...@gmail.com wrote:

 On Sun, Nov 21, 2010 at 3:16 AM, Abhishek Talwar 
 r.o.b.i.n.abhis...@gmail.com wrote:

 Could you please let me know what is an adapter


 http://en.wikipedia.org/wiki/Adapter_pattern


 and how can i use it??


 That depends on what you're doing - there are quite a few adapters. Read
 the documentation and samples.


 -
 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.comandroid-developers%2bunsubscr...@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] Appearance updated application as Just in - wait 12-14 days between updates?

2010-11-24 Thread EvgenyV
Hi all,

I didn't find my recently updated application in Just In view after
some investigation I got answer from developer:
If you recently released it won't show in Just In again, you have
to wait like 12 - 14 days or something

Is it some new Market rule struggling with spam programs?

Thanks,
Evgeny

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

2010-11-24 Thread Rich
Unless I'm doing something wrong and have wrong information, whenever
I have a new device that I want to deploy an application to from a
Windows dev machine, I have to make sure that I have the device ID in
my android_winusb.inf file.  When I switched phones recently, this was
the solution I came up with by googling the problem (new phone not
showing up in launch dialog) and it worked.

My coworker has a Motorola Devour and I'm having the same problem.  I
plug his phone into my dev machine and attempt to deploy, but his
device doesn't show up in the list (he has debugging turned on, my app
has debugging enabled in the manifest, and the USB connected alerts
show up on his phone when connected).

I can't find a device id for my inf file for a Motorola Devour
anywhere online.  Anyone have any ideas?  Thanks!

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


[android-developers] Re: SSL from Android

2010-11-24 Thread Hal
You probably want to consider secure web services based. The Jt Design
Pattern Framework already implements secure web services for Android:




a) Java Pattern Oriented Framework, An application of the Messaging
Design Pattern
IBM Technical Library
http://www.ibm.com/developerworks/webservices/library/ws-designpattern/index.html

b) Messaging Design Pattern (MDP) and pattern implementation -
Published in the 17th conference on Pattern Languages of Programs
(PLoP 2010).
https://jt.dev.java.net/files/documents/5553/150311/designPatterns.pdf

c) Messaging Design Pattern and a distributed Component/Service Model
https://jt.dev.java.net/files/documents/5553/149793/MDPdistributedModel.pdf

Jt web services for Android provide encryption and authentication.
They are also based on a messaging approach which allow for selective
encryption of messages. This improves performance.

The documentation contains several working examples (Certificates,
symmetric/Asymmetric encryption, session key, etc).


On Nov 23, 2:55 pm, Anm andrew.n.marsh...@gmail.com wrote:
 What is the preferred way to do SSL on Android?

 Coming from a long time Java background, I have tended to jump to a
 https protocol URLConnection:

         // URL connection channel.
         HttpURLConnection url_connnection =
 (HttpURLConnection)url.openConnection();

         // Let the RTS know that we want to do output.
         url_connnection.setDoOutput( true );

         // No caching, we want the real thing.
         url_connnection.setUseCaches( false );

         // Send POST output.
         if( post_params!=null  !post_params.isEmpty() ) {
             uploadPostParameters( post_params, url_connnection );
         }

         // Get Input
         input_stream = url_connection.getInputStream();

 But this code is running into all sorts of problems on varying
 platforms and OS versions:
   javax.net.ssl.SSLException: Write error: ssl=0x8f548: I/O error
 during system call, Broken pipe
   Empty string responses (no error thrown) with no sign of an external
 connection on the server logs
   java.io.IOException: SSL handshake failure: I/O error during system
 call, Connection reset by peer
   java.io.IOException: SSL handshake failure: Failure in SSL library,
 usually a protocol error
        error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown
 protocol (external/openssl/ssl/s23_clnt.c:585 0xaf58a49b:0x)

 The first two usually go away by repeating it (which is consistent
 with Android issue 8625).  The handshake exceptions do not seem to go
 away once present.

 To be clear, this is not a self-signed certificate on my SSL server.

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

2010-11-24 Thread Kostya Vasilyev
A few things you can try are:

- Check Motorola's developer network site for their own driver

- Use a hardware information program, such as Lavalys Everest or Piriform
Speccy to find out the USB vendor and device ids (the latter is free, the
former is more comprehensive and has a trial version).

--
Kostya Vasilyev -- http://kmansoft.wordpress.com
24.11.2010 19:39 пользователь Rich aguynamedr...@gmail.com написал:
 Unless I'm doing something wrong and have wrong information, whenever
 I have a new device that I want to deploy an application to from a
 Windows dev machine, I have to make sure that I have the device ID in
 my android_winusb.inf file. When I switched phones recently, this was
 the solution I came up with by googling the problem (new phone not
 showing up in launch dialog) and it worked.

 My coworker has a Motorola Devour and I'm having the same problem. I
 plug his phone into my dev machine and attempt to deploy, but his
 device doesn't show up in the list (he has debugging turned on, my app
 has debugging enabled in the manifest, and the USB connected alerts
 show up on his phone when connected).

 I can't find a device id for my inf file for a Motorola Devour
 anywhere online. Anyone have any ideas? 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.comandroid-developers%2bunsubscr...@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 in Long press Home button(Recent task info)

2010-11-24 Thread Kostya Vasilyev
That's not a running task list - it's a recent task list. I *think* there is
a flag you can set in the Intent when launching the activity to prevent it
from showing up in this list.

Look up Intent in the reference, the flag starts with FLAG_ACTIVITY_

--
Kostya Vasilyev -- http://kmansoft.wordpress.com
24.11.2010 19:50 пользователь A N K ! T ankit.awasth...@gmail.com
написал:
 i am trying to start an activity from Receiver..
 with listening to phone state change...but i am having an issue with
 itwhen activity started from reciever and finished after operation
 performed my application comes in running tasks...which i dont want ...

 can anybody help in this issue that activity can start and finish after
 certain action performed but application should not come in long press
home
 button screen..


 --

 A N K ! T..

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=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 use Apex Google Api in Android

2010-11-24 Thread TreKing
On Tue, Nov 23, 2010 at 2:39 AM, Maks maks@gmail.com wrote:

 Could any body provide me  any help gerarding it.


Help with what? You're going to have to provide much more information on
what you need help with if you expect to get any replies.

-
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

[android-developers] content://telephony/carriers and HTC Incredible

2010-11-24 Thread Dan
I have code to get the current apn that looks like:

private String m_apnString;

private void updateApn(Context ctx) {
   Cursor mCursor =
ctx.getContentResolver().query(Uri.parse(content://telephony/
carriers), new String[] {apn}, current=1, null, null);
   if (mCursor!=null) {
 try {
   if (mCursor.moveToFirst()) {
m_apnString  = mCursor.getString(0);
   }
 } finally {
  mCursor.close();
}
  }
}

It seems to work on my test phone (htc hero) but I'm always getting
a null string back from the new htc incredible.

I've found:

http://androidforums.com/incredible-support-troubleshooting/73550-incredible-apn-quick-settings-bug-mobile-data-switch-issue.html

and my test user that reported the issue says all her text messages
were erased.

Has anybody else seen/resolved something like this?

Thanks for your time!

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


Re: [android-developers] What is an Adapter??

2010-11-24 Thread TreKing
On Wed, Nov 24, 2010 at 10:27 AM, Robin Talwar r.o.b.i.n.abhis...@gmail.com
 wrote:

 Well my next milestone will be how to create a custom view can you tell me
 something about that also?


Please spend some time reading the documentation. Like this:
http://developer.android.com/guide/topics/ui/custom-components.html

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

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

Re: [android-developers] content://telephony/carriers and HTC Incredible

2010-11-24 Thread Kumar Bibek
Do not use uri's that are strings. You cannot be sure that your code will
work on all devices. Use the documented uris for all the system content
providers.

Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Wed, Nov 24, 2010 at 11:11 PM, Dan dan.schm...@gmail.com wrote:

 I have code to get the current apn that looks like:

 private String m_apnString;

 private void updateApn(Context ctx) {
   Cursor mCursor =
 ctx.getContentResolver().query(Uri.parse(content://telephony/
 carriers), new String[] {apn}, current=1, null, null);
   if (mCursor!=null) {
 try {
   if (mCursor.moveToFirst()) {
m_apnString  = mCursor.getString(0);
   }
 } finally {
  mCursor.close();
}
  }
 }

 It seems to work on my test phone (htc hero) but I'm always getting
 a null string back from the new htc incredible.

 I've found:


 http://androidforums.com/incredible-support-troubleshooting/73550-incredible-apn-quick-settings-bug-mobile-data-switch-issue.html

 and my test user that reported the issue says all her text messages
 were erased.

 Has anybody else seen/resolved something like this?

 Thanks for your time!

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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] content://telephony/carriers and HTC Incredible

2010-11-24 Thread Mark Murphy
content://telephony/carriers is not part of the Android SDK. There's
no telling what it does or does not do on any given device.

On Wed, Nov 24, 2010 at 12:41 PM, Dan dan.schm...@gmail.com wrote:
 I have code to get the current apn that looks like:

 private String m_apnString;

 private void updateApn(Context ctx) {
   Cursor mCursor =
 ctx.getContentResolver().query(Uri.parse(content://telephony/
 carriers), new String[] {apn}, current=1, null, null);
   if (mCursor!=null) {
     try {
           if (mCursor.moveToFirst()) {
                m_apnString  = mCursor.getString(0);
           }
     } finally {
          mCursor.close();
    }
  }
 }

 It seems to work on my test phone (htc hero) but I'm always getting
 a null string back from the new htc incredible.

 I've found:

 http://androidforums.com/incredible-support-troubleshooting/73550-incredible-apn-quick-settings-bug-mobile-data-switch-issue.html

 and my test user that reported the issue says all her text messages
 were erased.

 Has anybody else seen/resolved something like this?

 Thanks for your time!

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




-- 
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


Re: [android-developers] What is an Adapter??

2010-11-24 Thread Robin Talwar
Hey thanks man
Can you provide me a link to some basic tutorial which over-rides existing
button may be
or just a simple custom view cause this link which you give is heavy :)
I am sorry i am a beginner but quick learner

Thanks once again

On Wed, Nov 24, 2010 at 11:12 PM, TreKing treking...@gmail.com wrote:

 On Wed, Nov 24, 2010 at 10:27 AM, Robin Talwar 
 r.o.b.i.n.abhis...@gmail.com wrote:

 Well my next milestone will be how to create a custom view can you tell me
 something about that also?


 Please spend some time reading the documentation. Like this:
 http://developer.android.com/guide/topics/ui/custom-components.html



 -
 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.comandroid-developers%2bunsubscr...@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] java.lang.IllegalArgumentException: View not attached to window manager

2010-11-24 Thread TreKing
On Sat, Nov 20, 2010 at 4:45 AM, PaulJ pjablonsk...@gmail.com wrote:

 Problem occurs when a dialog progress appears and I change my phone
 orientation, it freezes and crashes.


If you use showDialog() to show a dialog, use dismissDialog() to dismiss it.

On Tue, Nov 23, 2010 at 5:35 AM, viktor victor.scherb...@gmail.com wrote:

 You are dismissing dialog in a Runnable, thats why you have exception.

 Try do it in UI Thread, I mean obtain message and send it to Handler.


Looks like he's posting the Runnable on the UI thread, which has the same
effect as sending a message.

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

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

Re: [android-developers] What is an Adapter??

2010-11-24 Thread Mark Murphy
On Wed, Nov 24, 2010 at 12:56 PM, Robin Talwar
r.o.b.i.n.abhis...@gmail.com wrote:
 Hey thanks man
 Can you provide me a link to some basic tutorial which over-rides existing
 button may be
 or just a simple custom view cause this link which you give is heavy :)
 I am sorry i am a beginner but quick learner

Here is a free excerpt from one of my books that covers the process
for creating custom ListAdapters:

http://commonsware.com/Android/excerpt.pdf

-- 
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


Re: [android-developers] Re: How to embed an external Activity inside one of mine?

2010-11-24 Thread TreKing
On Tue, Nov 23, 2010 at 6:08 AM, Francesco Vadicamo f.vadic...@gmail.comwrote:

 Is there any way for doing it?


Nope, sorry.

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

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

Re: [android-developers] Runtime Exception in MediaRecorder.setAudioSource() method

2010-11-24 Thread TreKing
On Tue, Nov 23, 2010 at 6:15 AM, David_Fisher davidfsh...@gmail.com wrote:

 But right after this when i do the
 mediaRecorder.setAudioSource(MediaRecorder.setAudioSource.MIC), I get  a
 RunTime exception.


And the exception and stack trace is what exactly?

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

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

Re: [android-developers] What are differences between onRetainNonConfigurationInstance() and onSaveInstanceState()

2010-11-24 Thread Suresh Chandra Pal
Thanks for your comments mark.

Just for curiosity, are there any other differences besides the bundle and
Object point.
What will be order of execution of these methods.

Also in API reference for onSaveInstance() the following is mentioned:

*'Do not confuse this method with activity lifecycle callbacks such as
onPause()http://developer.android.com/reference/android/app/Activity.html#onPause%28%29,
which is always called when an activity is being placed in the background or
on its way to destruction, or
onStop()http://developer.android.com/reference/android/app/Activity.html#onStop%28%29which
is called before destruction.'
*
So will this method be always called when the configuration changes take
place. and if not what such cases can be? I mean in what situations
onSaveInstance() can not be called for configuration changes.


-- 

Thanks,



Suresh Pal

  http://www.facebook.com/people/Suresh-Chandra-Pal/676583036

*LinkedIn: * http://www.linkedin.com/in/sapientsuresh

*Blogs:  *  http://www.sapientsuresh.blogspot.com

*Twitter: *http://twitter.com/sapientsuresh

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

2010-11-24 Thread Mark Murphy
On Wed, Nov 24, 2010 at 1:16 PM, Suresh Chandra Pal
sureshchandra...@gmail.com wrote:
 Thanks for your comments mark.

 Just for curiosity, are there any other differences besides the bundle and
 Object point.
 What will be order of execution of these methods.

They will occur in some order. Your code should not care what the order is.

 Also in API reference for onSaveInstance() the following is mentioned:

 'Do not confuse this method with activity lifecycle callbacks such as
 onPause(), which is always called when an activity is being placed in the
 background or on its way to destruction, or onStop() which is called before
 destruction.'

 So will this method be always called when the configuration changes take
 place.

Yes, it will.

-- 
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


Re: [android-developers] What are differences between onRetainNonConfigurationInstance() and onSaveInstanceState()

2010-11-24 Thread Suresh Chandra Pal
Thanks Mark for clearing my doubts.
-- 

Thanks,



Suresh Pal
*LinkedIn: * http://www.linkedin.com/in/sapientsuresh

*Blogs:  *  http://www.sapientsuresh.blogspot.com

*Twitter: *http://twitter.com/sapientsuresh

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

2010-11-24 Thread TreKing
On Tue, Nov 23, 2010 at 12:13 PM, nixspirit nixspi...@gmail.com wrote:

 Probably this question is answered. If it is, could you point me in the
 right direction then.


http://developer.android.com/reference/android/widget/ScrollView.html

-
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

[android-developers] Re: content://telephony/carriers and HTC Incredible

2010-11-24 Thread Dan
On Nov 24, 9:48 am, Mark Murphy mmur...@commonsware.com wrote:
 content://telephony/carriers is not part of the Android SDK. There's
 no telling what it does or does not do on any given device.

So pretty much outside of contacts, media store, and sync state,
portable programs shouldn't use any other content providers?

And since I already know that the apn extra attached to the
network state change intent is even less predictable than the
content://telephony/carriers provider I'm stumped as to what
is the portable way to find the current apn string.

Any 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


[android-developers] Re: Transfer Preferences from demo to paid app

2010-11-24 Thread Nathan

 The major caveat here is that your free version needs to have created
 the prefs as WORLD_READABLE. I did that because I thought I might do
 something like this someday, and my prefs aren't anything sensitive.
 But if you didn't do that, then this approach won't work.


I checked and I haven't used WORLD_READABLE yet. I don't what to
expect if I changed the DEMO app to start using WORLD_READABLE in the
next revision, then roll out the FULL version. Can it change the
permissions on shared preferences after the fact?

If this doesn't work, I'd have to roll the demo version anyway to do
an export function.

Nathan

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

2010-11-24 Thread Abhishek Talwar
Hi guys
I have to make a custom ToggleButton view.
The purpose of that view should be that :-

When the user clicks the button the background image should change
thats it

Please tell me how to achieve this
or direct me to some tutorials for beginners.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Windows drivers, inf file, and device ID's

2010-11-24 Thread Rich
Thanks...you were right.  Motorola has their own drivers I had to
install.

On Nov 24, 12:12 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 A few things you can try are:

 - Check Motorola's developer network site for their own driver

 - Use a hardware information program, such as Lavalys Everest or Piriform
 Speccy to find out the USB vendor and device ids (the latter is free, the
 former is more comprehensive and has a trial version).

 --
 Kostya Vasilyev --http://kmansoft.wordpress.com
 24.11.2010 19:39 пользователь Rich aguynamedr...@gmail.com написал:







  Unless I'm doing something wrong and have wrong information, whenever
  I have a new device that I want to deploy an application to from a
  Windows dev machine, I have to make sure that I have the device ID in
  my android_winusb.inf file. When I switched phones recently, this was
  the solution I came up with by googling the problem (new phone not
  showing up in launch dialog) and it worked.

  My coworker has a Motorola Devour and I'm having the same problem. I
  plug his phone into my dev machine and attempt to deploy, but his
  device doesn't show up in the list (he has debugging turned on, my app
  has debugging enabled in the manifest, and the USB connected alerts
  show up on his phone when connected).

  I can't find a device id for my inf file for a Motorola Devour
  anywhere online. Anyone have any ideas? 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.comandroid-developers%2Bunsubs 
  cr...@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 create a custom View

2010-11-24 Thread Kumar Bibek
Use a simple ImageButton, and handle the click events to change the Images
for the ImageButton.
Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Thu, Nov 25, 2010 at 12:26 AM, Abhishek Talwar 
r.o.b.i.n.abhis...@gmail.com wrote:

 Hi guys
 I have to make a custom ToggleButton view.
 The purpose of that view should be that :-

 When the user clicks the button the background image should change
 thats it

 Please tell me how to achieve this
 or direct me to some tutorials for beginners.

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

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

[android-developers] Re: ClassNotFoundException crash reports from Market

2010-11-24 Thread Moss
Could it be that the class loader is failing to find the right
package? I just saw that you are using 'com.company.app' as your
package name. Googling a bit I found that there are many apps that use
the same schema. Normally I use my domain to identify my packages in a
unique way like 'com.myweb.myapp'.

I just tried to reproduce your error and creating 2 apps that use the
same base package name I just get the error when launching them. I
think that the class loader will pickup the first listed package and
then try to load the class (which is not there :P):
 - com.package.app.ActivityA
 - com.package.app.ActivityB

If I load com.package.app.ActivityB I'm getting the same error.

Hope this can help you a bit.

Cheers,
Moss

On Nov 23, 5:58 pm, Emanuel Moecklin emanuel.moeck...@1gravity.com
wrote:
 Tauno Talimaa tauntz at gmail.com writes:



    Hi all,

  I'm seeing some strange crash reports in Android Market and I can't
  really tell how this could be caused by our application. The reason is
  always ClassNotFoundException or NoClassDefFoundError.
  The exact traces come in various flavors and they have happened for a
  total of ~100 times - here's one (reported 37 times):

  java.lang.RuntimeException: Unable to instantiate application
  com.company.product.MyApplication: java.lang.ClassNotFoundException:
  com.company.product.MyApplication in loader
  dalvik.system.PathClassLoader[/data/app-private/com.company.product-1.apk]
  at

 android.app.ActivityThread$PackageInfo.makeApplication(ActivityThread.java:649)
  at
  android.app.ActivityThread.handleBindApplication(ActivityThread.java:4232)
  at android.app.ActivityThread.access$3000(ActivityThread.java:125)
  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2071)
  at android.os.Handler.dispatchMessage(Handler.java:99)
  at android.os.Looper.loop(Looper.java:123)
  at android.app.ActivityThread.main(ActivityThread.java:4627)
  at java.lang.reflect.Method.invokeNative(Native Method)
  at java.lang.reflect.Method.invoke(Method.java:521)
  at

 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
  at dalvik.system.NativeStart.main(Native Method)
  Caused by: java.lang.ClassNotFoundException:
  com.company.product.MyApplication in loader
  dalvik.system.PathClassLoader[/data/app-private/com.company.product-1.apk]
  at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
  at android.app.Instrumentation.newApplication(Instrumentation.java:942)
  at

 android.app.ActivityThread$PackageInfo.makeApplication(ActivityThread.java:644)

  ... 11 more

  We've tested the same .apk on a number of devices and we've never
  encountered issues like this - what could cause such issues in the first
  place - custom ROMs / broken devices / something that we're doing wrong? :/

  Tauno

 Hi Tauno

 I'm getting the same error reports in my developer console:

 java.lang.RuntimeException: Unable to instantiate activity
 ComponentInfo{com.company.app/com.company.app.InitializeActivity}:
 java.lang.ClassNotFoundException: com.company.app.InitializeActivity in loader
 dalvik.system.PathClassLoader[/mnt/asec/com.company.app-1/pkg.apk]
 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585)
 at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
 at android.app.ActivityThread.access$2300(ActivityThread.java:125)
 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
 at android.os.Handler.dispatchMessage(Handler.java:99)
 at android.os.Looper.loop(Looper.java:123)
 at android.app.ActivityThread.main(ActivityThread.java:4627)
 at java.lang.reflect.Method.invokeNative(Native Method)
 at java.lang.reflect.Method.invoke(Method.java:521)
 at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:876)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:634)
 at dalvik.system.NativeStart.main(Native Method)
 Caused by: java.lang.ClassNotFoundException: 
 com.company.app.InitializeActivity
 in loader dalvik.system.PathClassLoader[/mnt/asec/com.company.app-1/pkg.apk]
 at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
 at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
 ... 11 more

 This one has been reported ~20 times. I'm not using any static initializers,
 don't use code that is non-compliant with Android 1.5 (app is tested on 1.5
 devices) and I already spent quite some time to fix this but without success 
 so
 far. If you have a solution by now I'd very much appreciate if you could let 
 me
 know.

 Emanuel

-- 
You received 

Re: [android-developers] How to create a custom View

2010-11-24 Thread Robin Talwar
No
i dont want to do it this way.
I have done this much.
This time i want to learn how to create a custom view.
Please help

On Thu, Nov 25, 2010 at 12:28 AM, Kumar Bibek coomar@gmail.com wrote:

 Use a simple ImageButton, and handle the click events to change the Images
 for the ImageButton.
 Kumar Bibek
 http://techdroid.kbeanie.com
 http://www.kbeanie.com




 On Thu, Nov 25, 2010 at 12:26 AM, Abhishek Talwar 
 r.o.b.i.n.abhis...@gmail.com wrote:

 Hi guys
 I have to make a custom ToggleButton view.
 The purpose of that view should be that :-

 When the user clicks the button the background image should change
 thats it

 Please tell me how to achieve this
 or direct me to some tutorials for beginners.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=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.comandroid-developers%2bunsubscr...@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] draw button's background as a filled circle with transparent background

2010-11-24 Thread gato chlr
Hi, I'm trying to customize a button in order to have a rounded
button. Also i can't use an image s background. So i need to do draw
a circle and set it as the background of the button.

I have been trying to draw a shape and use it as button's background
but, it looks like a rectangle button, with a circle inside. I'm sure
there is an easy way to do it, thanks for your help

my shape

shape xmlns:android=http://schemas.android.com/apk/res/android;
  android:shape=oval
  solid android:color=#0099FF
stroke android:width=4dp android:color=#FF00
/stroke
  /solid
/shape

My button

Button xmlns:android=http://schemas.android.com/apk/res/android;
 android:id=@+id/btnOval
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:text=Click Me2
 android:background=@drawable/shape
 android:width=150px
 android:height=150px
 android:textSize=25sp
 android:layout_marginLeft=100px
 android:layout_marginRight=100px
 android:layout_marginBottom=5px
 android:layout_marginTop=5px
 /Button

i have attached the current result in a gif.

thanks for the 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=enattachment: shape.GIF

Re: [android-developers] How to create a custom View

2010-11-24 Thread Kumar Bibek
Well, the ToggleButton control basically does the same thing (sure enough).

For creating custom views, you would have to either extend any of the
ViewGroups/Views.

You have to tell your specific requirements. Most of the time, creating
custom views from scratch, ie. extending ViewGroup/View class is too
complex, instead you should be extending one of the specialized View classes
like Button, TextView, ImageView etc.

Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Thu, Nov 25, 2010 at 12:31 AM, Robin Talwar r.o.b.i.n.abhis...@gmail.com
 wrote:

 No
 i dont want to do it this way.
 I have done this much.
 This time i want to learn how to create a custom view.
 Please help

 On Thu, Nov 25, 2010 at 12:28 AM, Kumar Bibek coomar@gmail.comwrote:

 Use a simple ImageButton, and handle the click events to change the Images
 for the ImageButton.
 Kumar Bibek
 http://techdroid.kbeanie.com
 http://www.kbeanie.com




 On Thu, Nov 25, 2010 at 12:26 AM, Abhishek Talwar 
 r.o.b.i.n.abhis...@gmail.com wrote:

 Hi guys
 I have to make a custom ToggleButton view.
 The purpose of that view should be that :-

 When the user clicks the button the background image should change
 thats it

 Please tell me how to achieve this
 or direct me to some tutorials for beginners.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=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.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@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: content://telephony/carriers and HTC Incredible

2010-11-24 Thread Mark Murphy
On Wed, Nov 24, 2010 at 1:43 PM, Dan dan.schm...@gmail.com wrote:
 On Nov 24, 9:48 am, Mark Murphy mmur...@commonsware.com wrote:
 content://telephony/carriers is not part of the Android SDK. There's
 no telling what it does or does not do on any given device.

 So pretty much outside of contacts, media store, and sync state,
 portable programs shouldn't use any other content providers?

Those are the main ones from Android proper. Third parties might have
documented and supported content providers.

Now, frankly, I've been somewhat stumped as to why
android.provider.Telephony is in this strange state, where it is not
part of the SDK yet is critical for various things (e.g., receiving
SMS). I've been waiting for this to get cleaned up one way or another,
yet I still wait.

 And since I already know that the apn extra attached to the
 network state change intent is even less predictable than the
 content://telephony/carriers provider I'm stumped as to what
 is the portable way to find the current apn string.

 Any suggestions?

I can barely spell ANP. PAN. NAP. Whatever.

:-)

I'm certainly not aware of any way to work with the APN values in
Android that stays within the SDK bounds. I poked around
ConnectivityManager and TelephonyManager and nothing much leapt out at
me.

-- 
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


Re: [android-developers] draw button's background as a filled circle with transparent background

2010-11-24 Thread Kumar Bibek
Well, you could use a 9 patch png for your button's background. Your
approach is also fine. I guess, you need a little modificaton with your
shape file.


Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Thu, Nov 25, 2010 at 12:35 AM, gato chlr dany...@gmail.com wrote:

 Hi, I'm trying to customize a button in order to have a rounded
 button. Also i can't use an image s background. So i need to do draw
 a circle and set it as the background of the button.

 I have been trying to draw a shape and use it as button's background
 but, it looks like a rectangle button, with a circle inside. I'm sure
 there is an easy way to do it, thanks for your help

 my shape

 shape xmlns:android=http://schemas.android.com/apk/res/android;
  android:shape=oval
  solid android:color=#0099FF
stroke android:width=4dp android:color=#FF00
/stroke
  /solid
 /shape

 My button

 Button xmlns:android=http://schemas.android.com/apk/res/android;
  android:id=@+id/btnOval
  android:layout_width=wrap_content
  android:layout_height=wrap_content
  android:text=Click Me2
  android:background=@drawable/shape
  android:width=150px
  android:height=150px
  android:textSize=25sp
  android:layout_marginLeft=100px
  android:layout_marginRight=100px
  android:layout_marginBottom=5px
  android:layout_marginTop=5px
  /Button

 i have attached the current result in a gif.

 thanks for the 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.comandroid-developers%2bunsubscr...@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] Accessing Video Thumbnail

2010-11-24 Thread Julius Spencer
Hi,

I am having trouble getting a thumbnail for a video.

I am targeting 2.1 update 1. (API level 7)

I would like to use MediaStore.Video.Thumbnails.getThumbnail. This works 
perfectly if the SD Card has been mounted / unmounted.

However, when a video is first created I would like it to be scanned (by the 
MediaScanner I believe) so it is indexed and I can show a preview immediately 
using the getThumbnail method. Looking at the source I suspect this is a device 
specific class.

I have tried creating a class that implements MediaScannerConnectionClient but 
onScanCompleted never seems to get called. Has anyone had any success making 
thumbnails like this?

Any direction would be really helpful :)

Regards,
Julius.

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

2010-11-24 Thread TreKing
On Tue, Nov 23, 2010 at 12:45 PM, Ahmed Shoeib 
ahmedelsayed.sho...@gmail.com wrote:

 - how to check the Norwegian language using xml file ?


Not sure what you're asking.


  - and what the value for local if the device language is Norwegian ???


http://www.google.com/search?q=norwegian+locale

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

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

Re: [android-developers] Appearance updated application as Just in - wait 12-14 days between updates?

2010-11-24 Thread TreKing
On Wed, Nov 24, 2010 at 10:33 AM, EvgenyV evgen...@gmail.com wrote:

 Is it some new Market rule struggling with spam programs?


This has always been the case, AFAIK.

-
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

[android-developers] create an activity floating on another activity

2010-11-24 Thread cindy
Hi there,

Is that possible to create an activity that will float on an other
activity, like dialog ?

Thanks!

Cindy

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

2010-11-24 Thread Mark Murphy
http://developer.android.com/guide/topics/ui/themes.html#ApplyATheme

You can use:

android:theme=@android:style/Theme.Dialog

in your activity element in the manifest.

On Wed, Nov 24, 2010 at 2:54 PM, cindy ypu01...@yahoo.com wrote:
 Hi there,

 Is that possible to create an activity that will float on an other
 activity, like dialog ?

 Thanks!

 Cindy

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


[android-developers] My app deleted from android market console

2010-11-24 Thread Nicolas Thibaut
My app does'nt appear on the console.

I have do this when upgrading:

- add hight res icon with bad size.
- try to publish
- error : ok
- upload apk saved to draft : ok
- click on save : ok

the app just disappear.
?

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