[android-developers] Re: Map API KEY

2010-06-24 Thread SREEHARI
Hi ENSI,

 No need to open debug.keystore. You just do the following

$ keytool -list -alias androiddebugkey -keystore
path_to_debug_keystore.keystore -storepass android -keypass android

You will get Certificate Fingerprint . Then you submit that in
http://code.google. com/android/maps-api-signup.html , you will get
the Map Key.

Regards,
SREEHARI


On Jun 22, 8:16 pm, ENSI nouha.khy...@gmail.com wrote:
 hi,
 i can't read the content of the debug.keystore while opening it with
 bloc note,it's written with unreadable symbols,can anyone help me
 please?

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


[android-developers] Re: How to Draw route on Google map? not to use DrawPath

2010-06-24 Thread SREEHARI


Hi,

  Do u want to draw route connecting geo cordinates?? If so you can
store the geo coordinates and draw. If you want to draw shortest path
you can use some algorithm like Djikstras.

Regards,
SREEHARI

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

2010-06-24 Thread Mani Droid
Hi All

I downloaded the Android 2.2 source code and try to build it.

When I executed the make command, I got an error here like this

build/core/java.mk:20: *** frameworks/ex/common: Invalid LOCAL_SDK_VERSION
'8' Choices are: current 4 5 6 7.  Stop.

Then I changed the frameworks/ex/common/Android.mk to  LOCAL_SDK_VERSION = 8
from LOCAL_SDK_VERSION = 7

Next place, build/core/java.mk:20: *** external/jsr305: Invalid
LOCAL_SDK_VERSION '8' Choices are: current 4 5 6 7.  Stop.

I changed the external/jsr305/Android.mk to  LOCAL_SDK_VERSION = 8 from
LOCAL_SDK_VERSION = 7

Last one, build/core/java.mk:20: *** external/guava: Invalid
LOCAL_SDK_VERSION '8' Choices are: current 4 5 6 7.  Stop.
I changed the external/guava/Android.mk to  LOCAL_SDK_VERSION = 8 from
LOCAL_SDK_VERSION = 7

By these changes the code started the compilation.

1. Why the error occured?

2. Changes which I did is correct or not?


Any one please update me..


Thanks  Regards
Manikandan.D

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

2010-06-24 Thread davemeetsworld
I have an app that posts a status and a location to a php script.
Currently It is all performed with 2 classes. One is the main screen
where you can put the status in and click a submit button, the second
is a class that implements the LocationListener and keeps the location
up to date and handles change events to the location.

When you click submit the application hangs while it send the status
and location to the PHP page, admitedly it doesn't hang long but i
realise this is not the correct way to do it so i was wondering what
the best practice is for performing background tasks that return
results in Android is?

Thanks in advance for any help :-)

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


[android-developers] Re: How to Draw route on Google map? not to use DrawPath

2010-06-24 Thread Nicholas Albion
Try one of these links to decode the polyline

http://facstaff.unca.edu/mcmcclur/googlemaps/encodepolyline/
http://jeffreysambells.com/posts/2010/05/27/decoding-polylines-from-google-maps-direction-api-with-java/

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


[android-developers] problems about add-ons and sdk

2010-06-24 Thread yenchengwang
hi all,
I have downloaded the android sources using repo.
like the step's in this web,
http://source.android.com/source/git-repo.html
but, the source doesn't include the add-ons( Google APIs ). it just the
standard Android APIs.
so, how can I have a system.img that support both of Google + Standard
Android APIs.


-- 
Regards
Y-C Wang

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

2010-06-24 Thread Nithin
Hi,

You can also use this uri,

uri = Uri.parse(http://maps.google.com/maps?
saddr=13.042206,80.17000daddr=9.58,78.10);

specify the latitude and longitude of the two locations. Here I
specified the latitudes and longitudes for two cities in India.

Pass this Uri to an intent with action as VIEW. This will open google
map.

Nithin


On Jun 24, 11:09 am, SREEHARI sreehari.madhusooda...@wipro.com
wrote:
 Hi,

   Do u want to draw route connecting geo cordinates?? If so you can
 store the geo coordinates and draw. If you want to draw shortest path
 you can use some algorithm like Djikstras.

 Regards,
 SREEHARI

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Background apps (Instant Messaging) being killed without user notification

2010-06-24 Thread FrankG
Hello Kostya,

can you please elaborate this a little bit :

a) For me it seems, that the Notifications from a service
  without the  foreground stuff are not deleted when you kill the
service
 ( i.e. using Settings-Applications-Running Services )

b) what did you mean with 2.x -API ?

I use notify nd cancel normally.

Thanks a lot !

   Frank



On 23 Jun., 19:17, Kostya Vasilyev kmans...@gmail.com wrote:
 Simon,

 Android 2.x framework has an important change in this area, trying to
 nudge developers towards better behaving services.

 Since 2.x, marking a service as foreground requires a status bar
 notification, so the user knows that a service is running.

 Regarding lingering status bar notifications - I just verified that if a
 notification is displayed using the new 2.x API, it disappears when the
 service is killed.

 -- Kostya

 23.06.2010 20:36, Simon Broenner пишет:





  By the way: All the apps have already implemented the notifcation icon
  in the status bar. The problem is, it doesn't change when the app is
  killed in the background, so the user doesn't know that it's been
  killed.

  :(

  Kostya Vasilyev wrote:

  Simon,

  I think this should be taken up with developers of these apps.

  In particular, my recommendations to them would be:

  - Use a startForeground / setForeground call to mark the service as
  being important to the user, do it only while the user is logged in.

  - Display a notification the phone's status bar, so the user knows if
  the service is still kicked out of memory.

  - Consider using AlarmManager to restart the service and re-login if
  there is an active logged in session.

  -- Kostya

  23.06.2010 20:07, Simon Broenner пишет:

  1. Why am I, the user, not informed the the application has died, and
  hence, the connection has been lost?
  2. Why are all the IM apps being killed, and not my other background
  apps? Sipdroid and Locale have NEVER been killed in this fashion.

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

 --
 Kostya Vasilev -- WiFi Manager + pretty widget 
 --http://kmansoft.wordpress.com- Zitierten Text ausblenden -

 - Zitierten Text anzeigen -

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Poor roaming performance ! Is it an Android bug ?

2010-06-24 Thread Cydrike
I'm upping this subject to know if I'm the only one facing this
problem ?
Perhaps someone by Google can check this out ?

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


[android-developers] Random byte access from a Content URI

2010-06-24 Thread Varun Khaneja
Hi,

We are trying to access bytes in non-sequential order from a '
content:' URI that we receive in the intent from other applications.
Is there a way to do this, without buffering the bytes within the application?

We found a discussion about the same from 2008 at:
http://groups.google.com/group/android-developers/msg/49a1b7d651d4707e
Is it possible now?

Thanks,
Varun

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


[android-developers] Re: Any chance to deactivate the lock pattern in Froyo from code?

2010-06-24 Thread LeveloKment
Hi Mark.

Thanks for your answer.

I share your point of view completely.
From my experience an always on (Pattern, Pin or Password) is
something many people do not like... so they deactivate it completely.
The idea of my App was to help people to find a good compromise
between security and usability.

I already reviewed the DeviceAdmin class of Froyo as the SDK for 2.2
was released. From my point of view it is the perfect location to
implement an interface that allows the temporary deactivation of the
locks (no matter if pattern, pin or password).
My fear was, that I was missing something and there is still a way to
satisfy my users even if they are using Froyo.

An alternative to the DeviceAdmin would be collection of additional
settings in the related system settings section that give the users a
delay/timeout in Android natively (like some WinMobile devices are
doing it). That would make App's like my PatternControl needless.

What is your advice to make the development team at least aware was
this potential improvement?

Best Regards from Germany
Lars

On 23 Jun., 12:58, Mark Murphy mmur...@commonsware.com wrote:
 On Wed, Jun 23, 2010 at 4:46 AM, LeveloKment levelokm...@googlemail.com 
 wrote:
  No information?

 No, there is no way to deactivate the lock pattern that I am aware of.

  No opinion?

 My opinion is that deactivating the lock pattern via a regular setting
 was a security hole. If the user wants a lock pattern, apps should not
 change that. If the user does not want a lock pattern, the user is
 perfectly capable of disabling it using the Settings application. The
 exception would be if an enterprise would want to mandate the lock
 screen be on and not disable-able, which runs counter to your apparent
 goals.

 My hope is that eventually stuff like this and custom lock screens
 will become part of the new device admin APIs.

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

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

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


Re: [android-developers] Re: How to on Gps in emulator

2010-06-24 Thread Sohan badaya
Hi,

Thanks It works.

Sohan Badaya


On Wed, Jun 23, 2010 at 9:48 PM, HeHe cnm...@gmail.com wrote:

 DDMS perspective  Emulator Control  Location Control  Send

 On Jun 23, 7:59 am, Sohan badaya sohan.bad...@gmail.com wrote:
  Hi,
 
  How to start Gps in emulator.
 
  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

[android-developers] Android's Launcher

2010-06-24 Thread Goodwin
As we known, there are 3 home screens in the android's default
launcher . we can move the right screen or the left screen. and we
don't know how many pages are in left-hand  right hand sites .
so I want to modify the android's launcher , and add an indicator  to
show how many pages are in left-hand  right hand sites on the
android's home screen.
now, I found the Launcher source in the src/app/packages. But
which
xml shoul I modity and hown can I known the screen's move ?
Any idea would be appreciated. thanks in advance.

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


[android-developers] GUI Design Patterns of the Twitter Client presented at Google I/O

2010-06-24 Thread mboehmer
Hi there,

there was a talk at Google I/O about design patterns for Android. As
an example, the Twitter client was implemented based on the proposed
UI patterns. In the talk, they said that the code of the Twitter
client would be made available as open source. I am very interested,
especially in how the dashboard was implemented.

Does anybody know if the source code is already available?

By the way: here you can find some information on the design patterns
http://android-developers.blogspot.com/2010/05/twitter-for-android-closer-look-at.html

Best regards
Matthias

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

2010-06-24 Thread Mani Droid
Hi All

I again downloaded the code. Not its compiling.


Thanks  Regards
Manikandan.D

On Thu, Jun 24, 2010 at 2:24 PM, Mani Droid manis.dr...@gmail.com wrote:

 Hi All

 I downloaded the Android 2.2 source code and try to build it.

 When I executed the make command, I got an error here like this

 build/core/java.mk:20: *** frameworks/ex/common: Invalid LOCAL_SDK_VERSION
 '8' Choices are: current 4 5 6 7.  Stop.

 Then I changed the frameworks/ex/common/Android.mk to  LOCAL_SDK_VERSION =
 8 from LOCAL_SDK_VERSION = 7

 Next place, build/core/java.mk:20: *** external/jsr305: Invalid
 LOCAL_SDK_VERSION '8' Choices are: current 4 5 6 7.  Stop.

 I changed the external/jsr305/Android.mk to  LOCAL_SDK_VERSION = 8 from
 LOCAL_SDK_VERSION = 7

 Last one, build/core/java.mk:20: *** external/guava: Invalid
 LOCAL_SDK_VERSION '8' Choices are: current 4 5 6 7.  Stop.
 I changed the external/guava/Android.mk to  LOCAL_SDK_VERSION = 8 from
 LOCAL_SDK_VERSION = 7

 By these changes the code started the compilation.

 1. Why the error occured?

 2. Changes which I did is correct or not?


 Any one please update me..


 Thanks  Regards
 Manikandan.D




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

2010-06-24 Thread Mani Droid
Sorry, it's compiling fine.



On Thu, Jun 24, 2010 at 4:09 PM, Mani Droid manis.dr...@gmail.com wrote:

 Hi All

 I again downloaded the code. Not* its compiling.


 Thanks  Regards
 Manikandan.D

   On Thu, Jun 24, 2010 at 2:24 PM, Mani Droid manis.dr...@gmail.comwrote:

 Hi All

 I downloaded the Android 2.2 source code and try to build it.

 When I executed the make command, I got an error here like this

 build/core/java.mk:20: *** frameworks/ex/common: Invalid
 LOCAL_SDK_VERSION '8' Choices are: current 4 5 6 7.  Stop.

 Then I changed the frameworks/ex/common/Android.mk to  LOCAL_SDK_VERSION =
 8 from LOCAL_SDK_VERSION = 7

 Next place, build/core/java.mk:20: *** external/jsr305: Invalid
 LOCAL_SDK_VERSION '8' Choices are: current 4 5 6 7.  Stop.

 I changed the external/jsr305/Android.mk to  LOCAL_SDK_VERSION = 8 from
 LOCAL_SDK_VERSION = 7

 Last one, build/core/java.mk:20: *** external/guava: Invalid
 LOCAL_SDK_VERSION '8' Choices are: current 4 5 6 7.  Stop.
 I changed the external/guava/Android.mk to  LOCAL_SDK_VERSION = 8 from
 LOCAL_SDK_VERSION = 7

 By these changes the code started the compilation.

 1. Why the error occured?

 2. Changes which I did is correct or not?


 Any one please update me..


 Thanks  Regards
 Manikandan.D






-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Difference between SQLite on HTC Hero (1.5) and Nexus One (FR72)?

2010-06-24 Thread Mark Carter
Same data, same code, but different results on these two devices.

On the Nexus One, the (INNER JOIN) query runs (first call to
Cursor.moveToNext()) after a fraction of a second but on the Hero it
just hangs.

I haven't been able to reduce the scenario to something simple yet,
but it seems to involve using OR within an ON clause.

Anyone know why there might be a difference on these two 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] Help with dialog sizing in stock vs. Sense UI

2010-06-24 Thread Zsolt Vasvari
Hello, I have an AlertDialog with a custom View content.  The View is
defined as:

ScrollView xmlns:android=http://schemas.android.com/apk/res/android;
android:layout_width=fill_parent
android:layout_height=0dp
android:layout_weight=1
android:fillViewport=true
/ScrollView


On stock Android 2.1, the dialog nicely stretches to the width of the
screen (480x800) pixels, but on the Sense UI, it's only as wide as the
longest text field in the dialog.  What happens is that the rightmost
button on the bottom of the dialog is cut off and wraps to two lines
in the middle of the word.

Has anyone seen this issue or has any ideas on fixing it?

So far I've tried giving a specific width in layout_width, but it does
nothing on stock Android, and I don't have a Sense UI device to test
on.

Perhaphs a related question is, is there any way to force an
AlertDialog to use the entire available width of the screen?

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

2010-06-24 Thread lishali
In my application, I create a surfaceview which runs my game loop.
I want to exit the game without push the back button, but use a
button.
I tried to call the activity's finish() method, and the application
exit, but I always get a message Activity ***(in application ) is
not reponding. But when I use the back button to exit(call the
finish() too), it won't show this message.
And I tried use Process.kill(myid) to kill the task, I also get this
error message when I exit the application from the surfaceview.

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

2010-06-24 Thread Jiang
It is possible to implement following features:
1, Get notification when a net network connection is established by other 
applications.
2, Hook network input/output stream, or peer input/output stream, and block 
corresponding network connection if the stream contains unexpected contents.

Thanks,
-Jiang



  

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

2010-06-24 Thread Mickey
Hi,
I'm not sure if I truly understood your problem but one thing I would
suggest is to check the API Demos app that is shipped with the SDK, if
you haven't done yet.

In particular, there's a class named List11.java which gives you a
brief overview on how to use the CheckedTextView.

In the case you still have problem, you might want to post some code
in order to make this clear.

Cheers,

Mic

On Jun 8, 3:08 am, SirAndroidDev bud...@gmail.com wrote:
 I'm really frusterated at this point, three days in.  I've put many
 hours into this issu and am no closer to having a working (let alone
 proper) solution.  Why is this so painful to accomplish I wonder
 aloud.

 Problem:

 I've got a a ListView which has a row.xml for each row in the
 ListView.  That file has two TextView's, ImageView, and aCheckedTextView.

 Now, I can get oneCheckedTextViewto become checked by pressing on
 its UI area.  But, I cannnot not check any other unchecked checkbox in
 the ListView.

 Further more I see checkboxes when I scroll down that have checkmarks
 in them where I did not check such myself.

 So, what is the issue?  One of you google engineers surely can explain
 this to us end-devs, better yet please supply a sample project.  I
 have each row also where the user can select a file and work is done
 with it when that path is pasted back to the main activity (which
 works fine).

 I have half the hair I had 72 hours ago (because I pulled half out).
 Please, please help those of us struggling with this important feature
 (CheckedTextView).  As I see several posts about this, anything from
 implement Clickable on the class (which I did, both trying on the main
 java file and as a helper class) toCheckedTextViewhas to be the
 parent in the xml file (not say a LinearLayout for example).

 Please.. help... drowing . in ... stess.

 Thank you

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

2010-06-24 Thread Tomáš Hubálek
Many users don't understand difference between Home and Back button
(according my experience of support of my apps) and in this case they
don't understand why screen widget does not appear on home screen
while configuration finished with Home button.

I'm going to detect somehow that application went to background and
accept this as confirmation.

Any better idea?

Thanks
Tom



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

2010-06-24 Thread Jeeva
Hi,
 i am new to android, i want to download and set the source code
in ubuntu 9.10. please help me how to setup the environment and build
tha android application.


Thanks  regards
Jeeva

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: GUI Design Patterns of the Twitter Client presented at Google I/O

2010-06-24 Thread Tomáš Hubálek
I'm interested too. Even better would be to extract new GUI components
into separate library to allow reuse by other apps.

Tom

On 24 čvn, 10:07, mboehmer mboeh...@fh-muenster.de wrote:
 Hi there,

 there was a talk at Google I/O about design patterns for Android. As
 an example, the Twitter client was implemented based on the proposed
 UI patterns. In the talk, they said that the code of the Twitter
 client would be made available as open source. I am very interested,
 especially in how the dashboard was implemented.

 Does anybody know if the source code is already available?

 By the way: here you can find some information on the design 
 patternshttp://android-developers.blogspot.com/2010/05/twitter-for-android-cl...

 Best regards
 Matthias

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


[android-developers] android lighthouse

2010-06-24 Thread shoi
hi

i wanted to try and port qt apps to android

can anybody guide me through setting up the android lighthouse project
on Windows.
i downloaded the customised ndk but dont know how to clone the
repository
Im a beginner so please be a bit specific if you can. Since i was
unable to execute the steps given on the googlecodes page.

Thanks
Shoikat

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

2010-06-24 Thread Tomáš Hubálek
Nathan, I belive that homegrown (eg. ACRA - http://code.google.com/p/acra/)
is must untl Froyo and newer become majority. Correct me if I'm wrong
but on older version of Android there is no way how to get info about
errors.

BTW: I'm using ACRA in all my apps and it made my apps much better.
Thanks to ACRA dev.

Tom

On 24 čvn, 02:36, Nathan critter...@crittermap.com wrote:
 I've been using a home grown crash dump send during a beta period. It
 coudl be redundant - or confusing now that the market has one.

 Am I right in thinking I won't need that once the app is on the
 market?

 Or is the crash dump ability in the market limited to certain
 devices?

 Any thoughts?

 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] Re: Device Seeding Program for Top Android Market Developers

2010-06-24 Thread Tomáš Hubálek
Ayutin,

I don't think they relaunch the program. They have enough developers
and apps on the Android Market.

Tom

On 10 čvn, 11:24, ayutin ayu...@gmail.com wrote:
 I hope they can re-launch the program. I just missed the previous one!

 On 5月31日, 下午1時50分, Henrik Sandström sandstrom.hen...@gmail.com
 wrote:



  The requirement was 5000 downloads by February 28th.

  On Mon, May 31, 2010 at 7:47 AM, NightGospel wutie...@gmail.com wrote:
   Hi all,

   Does thisprogramstill continue? Because I have one app achived the
   threshold (over 5000 downloads and average rating is 3.5 up) two weeks
   ago, I hope I can be one of the receivers. :)

   NightGospel

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

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


[android-developers] Re: Difference between SQLite on HTC Hero (1.5) and Nexus One (FR72)?

2010-06-24 Thread Tomáš Hubálek
Maybe full SQL would give more clue...

Tom

On 24 čvn, 10:13, Mark Carter mjc1...@googlemail.com wrote:
 Same data, same code, but different results on these two devices.

 On the Nexus One, the (INNER JOIN) query runs (first call to
 Cursor.moveToNext()) after a fraction of a second but on the Hero it
 just hangs.

 I haven't been able to reduce the scenario to something simple yet,
 but it seems to involve using OR within an ON clause.

 Anyone know why there might be a difference on these two 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 use the contacts info in my app?

2010-06-24 Thread pranay
hi,i have an app which displays the incoming messges. I am using the
SmsMessage.getOriganatingAdress() which gives only the number of the
sender ,so how do i convert it to the corrresponding name stored in my
contacts? how should i proceed? 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: Broadcast receiver, service thread

2010-06-24 Thread Federico Paolinelli
Thanks again a lot for your replies.

On 24 Giu, 01:31, Mark Murphy mmur...@commonsware.com wrote:
 On Wed, Jun 23, 2010 at 7:24 PM, Federico Paolinelli fedep...@gmail.com 
 wrote:
  If I understood correctly, I need to bind to the service in order to
  provide it a listener, and then if I want to use the onProgressUpdate
  for an AsyncTask started from the service, I should notify the
  listener from the onProgressUpdate call. Is it correct?

 That is certainly one approach.


 I wasn't aware of the possibility to pass a listener to the service
after the bind, I thought that the bind was useful just from activity
-- service.

  I thought that the standard way to update the ui from a service was to
  send an Intent (but in this way I wouldn't be aware of the state of
  the activity).

 That is another approach. I am not sure that I would necessarily cal
 it the standard way, but you are certainly welcome to do that. In
 that case, the service would broadcast the Intent, and if an activity
 picks it up, great.

By the standard way I meant the way described in all the examples I
read (maybe I gotta read some other examples)


 --


Thanks again for the exhaustive and quick replies.

Federico

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

2010-06-24 Thread santha
Hi folks,

I need some clarification regarding Updating android OS version..

Currently my mobile is running on android-1.6 and i have installed so
many applications, some of them are dealing with the databases..
If i update my mobile with android 2.1 version, will the data still
remains same??

What about the Preference variables information that are saved in the
android phone memory if i do FACTORY RESET???

Thanks in advance for ur reply..

Thanks  Regards
Uday Kiran

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Difference between SQLite on HTC Hero (1.5) and Nexus One (FR72)?

2010-06-24 Thread Mark Carter
True - though the SQL is a little complex and I'd like to simplify it before
posting.

However, whatever the SQL is, there has to be an explanation for the
different outcome.

2010/6/24 Tomáš Hubálek tom.huba...@gmail.com

 Maybe full SQL would give more clue...

 Tom

 On 24 čvn, 10:13, Mark Carter mjc1...@googlemail.com wrote:
  Same data, same code, but different results on these two devices.
 
  On the Nexus One, the (INNER JOIN) query runs (first call to
  Cursor.moveToNext()) after a fraction of a second but on the Hero it
  just hangs.
 
  I haven't been able to reduce the scenario to something simple yet,
  but it seems to involve using OR within an ON clause.
 
  Anyone know why there might be a difference on these two 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] Re: Difference between SQLite on HTC Hero (1.5) and Nexus One (FR72)?

2010-06-24 Thread Tomáš Hubálek
SQL Lite is definitely simpler but in Oracle it sometimes happens that the
same SQL has very different performance on different versions because of
different explain plan.

Tom

On Thu, Jun 24, 2010 at 12:48 PM, Mark Carter mjc1...@googlemail.comwrote:

 True - though the SQL is a little complex and I'd like to simplify it
 before posting.

 However, whatever the SQL is, there has to be an explanation for the
 different outcome.

 2010/6/24 Tomáš Hubálek tom.huba...@gmail.com

 Maybe full SQL would give more clue...

 Tom

 On 24 čvn, 10:13, Mark Carter mjc1...@googlemail.com wrote:
  Same data, same code, but different results on these two devices.
 
  On the Nexus One, the (INNER JOIN) query runs (first call to
  Cursor.moveToNext()) after a fraction of a second but on the Hero it
  just hangs.
 
  I haven't been able to reduce the scenario to something simple yet,
  but it seems to involve using OR within an ON clause.
 
  Anyone know why there might be a difference on these two 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
---
Tom Hubalek (tom.huba...@gmail.com),
http://android.hubalek.net, http://blog.hubalek.net/
http://facebook.com/thubalek, http://www.linkedin.com/in/thubalek
http://twitter.com/thubalek, http://twitter.com/android_dev_tom

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Difference between SQLite on HTC Hero (1.5) and Nexus One (FR72)?

2010-06-24 Thread Mark Carter
Hmmm - this is a bit worrying, isn't it? How to possibly test SQL which can
potentially run so differently on different devices?

One starting point would be get a list of SQLite version numbers on each
device available...

2010/6/24 Tomáš Hubálek tom.huba...@gmail.com

 SQL Lite is definitely simpler but in Oracle it sometimes happens that the
 same SQL has very different performance on different versions because of
 different explain plan.

 Tom

 On Thu, Jun 24, 2010 at 12:48 PM, Mark Carter mjc1...@googlemail.comwrote:

 True - though the SQL is a little complex and I'd like to simplify it
 before posting.

 However, whatever the SQL is, there has to be an explanation for the
 different outcome.

 2010/6/24 Tomáš Hubálek tom.huba...@gmail.com

 Maybe full SQL would give more clue...

 Tom

 On 24 čvn, 10:13, Mark Carter mjc1...@googlemail.com wrote:
  Same data, same code, but different results on these two devices.
 
  On the Nexus One, the (INNER JOIN) query runs (first call to
  Cursor.moveToNext()) after a fraction of a second but on the Hero it
  just hangs.
 
  I haven't been able to reduce the scenario to something simple yet,
  but it seems to involve using OR within an ON clause.
 
  Anyone know why there might be a difference on these two 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --

 ---
 Tom Hubalek (tom.huba...@gmail.com),
 http://android.hubalek.net, http://blog.hubalek.net/
 http://facebook.com/thubalek, http://www.linkedin.com/in/thubalek
 http://twitter.com/thubalek, http://twitter.com/android_dev_tom



  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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: Capture home key event

2010-06-24 Thread Kostya Vasilyev

Tomas,

If the activity in question is a widget configuration activity, how 
about having a create button?


Another option is to set setResult(RESULT_OK, appWidgetId) and building 
the initial widget update in the activity's onCreate, so the widget is 
created by default.


-- Kostya

24.06.2010 14:00, Tomáš Hubálek пишет:

Many users don't understand difference between Home and Back button
(according my experience of support of my apps) and in this case they
don't understand why screen widget does not appear on home screen
while configuration finished with Home button.

I'm going to detect somehow that application went to background and
accept this as confirmation.

Any better idea?

Thanks
Tom



   



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


Re: [android-developers] Re: Capture home key event

2010-06-24 Thread Tomáš Hubálek
Kostya,

I will double check your suggestion. I'm not sure why I didn't do it in
suggested way but there was some reason.

Thanks
Tom

On Thu, Jun 24, 2010 at 1:21 PM, Kostya Vasilyev kmans...@gmail.com wrote:

 Tomas,

 If the activity in question is a widget configuration activity, how about
 having a create button?

 Another option is to set setResult(RESULT_OK, appWidgetId) and building the
 initial widget update in the activity's onCreate, so the widget is created
 by default.

 -- Kostya

 24.06.2010 14:00, Tomáš Hubálek пишет:

  Many users don't understand difference between Home and Back button
 (according my experience of support of my apps) and in this case they
 don't understand why screen widget does not appear on home screen
 while configuration finished with Home button.

 I'm going to detect somehow that application went to background and
 accept this as confirmation.

 Any better idea?

 Thanks
 Tom







 --
 Kostya Vasilev -- 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
---
Tom Hubalek (tom.huba...@gmail.com),
http://android.hubalek.net, http://blog.hubalek.net/
http://facebook.com/thubalek, http://www.linkedin.com/in/thubalek
http://twitter.com/thubalek, http://twitter.com/android_dev_tom

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

2010-06-24 Thread praveena ankitha
hi all,

I have One AutocompleTextView and I want to make the virtual keyboard
disappear when he hits DONE at the AutocompleTextView. So far, the buttons
NEXT/DONE do nothing at all Unfortunately I found no resources
addressing this problem.

Any suggestions? thanks in advance

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

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-06-24 Thread String
On Jun 24, 11:10 am, Tomáš  Hubálek tom.huba...@gmail.com wrote:

 I don't think they relaunch the program. They have enough developers
 and apps on the Android Market.

I don't think that was the reason for the program. IMHO, it was more
to get cutting-edge hardware into the hands of top devs (by some
arbitrary definitions of top, admittedly), in the hope that those
devs would keep their apps as up to date as possible. IOW, it was
about improving  maintaining the quality of the apps already in the
Market, rather than adding more.

If so, I could imagine that the program could be repeated - but
probably not for a while, until the cutting edge has moved far enough
forward again that the Nexus One and original Droid are obsolete.

String

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

2010-06-24 Thread Moto
Thanks!
Got my issue resolved :)  What a powerful tool! :)

On Jun 16, 11:54 am, David Turner di...@android.com wrote:
 If you are using the emulator, try the -tcpdump file option, it will save
 the emulated ethernet traffic into a file that you can open with WireShark.

 On Wed, Jun 16, 2010 at 7:27 AM, Moto medicalsou...@gmail.com wrote:
  Hi,

  I'm currently trying to debug an issue with my application and I
  wanted to see if my internal proxy is sending the data in the proper
  order.  Is there any way to essentially sniff my proxy pipe?

  Thanks!
  -Moto

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  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: Issue using protocol buffer in Android

2010-06-24 Thread Rashmi
I got it resolved
Below is the solution
The problem came because of the way the way bytes were extracted from
the payload after building.

This was the earlier code which caused the problem.

ByteArrayOutputStream result = new ByteArrayOutputStream();
payload.build().writeTo(result);
return result.toString().toBytes();

In this the payload once the payload is built it is being written to a
bytearray stream and then converted to a string and then is converted
to bytearray which is causing the problem because it is inserting some
invalid invariant into the byte array.

instead of which the payload class provides a convenient method
toByteArray() which have to be used.

changed the above code to

p = payload.build();   //p is a payload object.
return p.toByteArray();


Regards
Rashmi



On Jun 15, 11:26 am, Rashmi rashmi.malav...@gmail.com wrote:
 message info
 {
                required string username =1;
                required string pwd =2;
                required string pin                      =3;
                required string imei                     =4;
                required string imsi                     =5;
                required string phoneNumber              =6;
                required string deviceName               =7;
                required string userName                 =8;
                required string platform                 =9;
                required string manufacturer             =10;
                required string model                    =11;
                required string os                       =12;
                required string screenLanguage           =13;
                required string screenResolution         =14;
                required string totalExternalMemory      =15; // in MB
                required string freeExternalMemory       =16; // in MB
                required string totalPhoneMemory         =17; // in MB
                required string freePhoneMemory          =18;
                required string batteryLevel             =19;

 }

 When I try deserialising the info proto object, I get an exception
 “ProtocolMessage had invalid wire type”. This is observed in android
 build only.

 Important Note: Everything works fine when I create and run a java
 project.
 I have tried with both version ofprotocolbuffer 2.2.0 and 2.3.0.
 Any help is appreciated.

 You can browse this link for more info onprotocolbuffer 
 objecthttp://code.google.com/apis/protocolbuffers/docs/overview.html

 Thanks
 Rashmi

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Themes, Styles and Items [How to create skins for apps?]

2010-06-24 Thread Moto
I'm still looking for help on this... :(  Romain Guy probably would
know exactly if this is possible...

Help?
-Moto

On Jun 6, 11:08 am, Moto medicalsou...@gmail.com wrote:
 Any help regards to Themes? Please see first and second post of this
 thread...  I tried various things and have had no luck... :(

 Thanks!
 -Moto

 On Jun 2, 2:27 pm, Moto medicalsou...@gmail.com wrote:

  No idea what you mean about so what...

  The thing is I want my background to point to something like
  colorListItemBottom.  Than each created Theme could change the color
  property of colorListItemBottom.

  On May 30, 10:37 am, helmi.mir...@gmail.com wrote:

   So what ?
   Powered by Telkomsel BlackBerry®

   -Original Message-
   From: Moto medicalsou...@gmail.com

   Sender: android-developers@googlegroups.com
   Date: Sun, 30 May 2010 07:33:10
   To: Android Developersandroid-developers@googlegroups.com
   Reply-To: android-developers@googlegroups.com
   Subject: [android-developers] Re: Themes, Styles and Items [How to create
           skins for apps?]

   Bump?...

   On May 27, 6:57 pm, Moto medicalsou...@gmail.com wrote:
example of declared Themes, note the changes in the pointing color...
How do I use this than so that my view points to the item
colorListItemBottom??

    !-- Light Skin --
    style name=Theme.Skin.DayTime
        item name=colorListItemBottom@color/color_semi_white/item
    /style

    !-- Dark Skin --
    style name=Theme.Skin.NightTime
        item name=colorListItemBottom@color/color_semi_black/item
    /style

On May 27, 6:51 pm, Moto medicalsou...@gmail.com wrote:

 I guess this is new topic... :(

 On May 27, 3:20 pm, Moto medicalsou...@gmail.com wrote:

  I'm currently trying to create skins for my app, and the simplest 
  way
  to do it, it seems is by creatingThemesfor each skin.  I'm getting
  confused with how to use a specified item which points to a declared
  color from my Theme to a particular shape I create via xml.

  I hope I make sense...

  Thanks for any help I can get!
  -Moto

   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group 
   athttp://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: Device Seeding Program for Top Android Market Developers

2010-06-24 Thread Tomáš Hubálek
BTW: I'm developing on ADP1 so I think that next seeding program could go to
devs that bought ADP1 or ADP2 and have high quality apps although working
with such a old fashioned hardware

I have nice idea for app based on FroYo PUSH functionality, but no chance to
test it in on my old timer ;-)

Tom

-- 
---
Tom Hubalek (tom.huba...@gmail.com),
http://android.hubalek.net, http://blog.hubalek.net/
http://facebook.com/thubalek, http://www.linkedin.com/in/thubalek
http://twitter.com/thubalek, http://twitter.com/android_dev_tom

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

2010-06-24 Thread vineet
in the android 2.2, as i have read on internet it supports connecting
upto 8 WiFi hosts simultaneousy and act as a Portable hotspot.
http://developer.android.com/sdk/android-2.2-highlights.html


Can some tell about how exactly to implement that and through some
light, since i am not able to find sufficient info on this over
internet.

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] JSAPI (javax.speech.recognition) for Android?

2010-06-24 Thread GregM
Hi,

The android speech recognizer API does not support grammars. This is
very sad.

Has anyone tried to implement JSAPI (javax.speech.recognition) on top
of the Google's speech recognition API?
It seems like a worthy cause.

Links:
Google API: 
http://developer.android.com/reference/android/speech/package-summary.html
Java's speech recognition API
http://java.sun.com/products/java-media/speech/forDevelopers/jsapi-guide/Recognition.html

I'm interested to hear if anyone can provide links or opinions on the
feasibility.

Greg

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

2010-06-24 Thread Mark Murphy
On Thu, Jun 24, 2010 at 6:41 AM, santha uday.pic...@gmail.com wrote:
 If i update my mobile with android 2.1 version, will the data still
 remains same??

Yes.

 What about the Preference variables information that are saved in the
 android phone memory if i do FACTORY RESET???

No.

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

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

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


Re: [android-developers] It is possible to monitor and block network?

2010-06-24 Thread Mark Murphy
If you build your own firmware, yes. From an SDK application, no.

On Thu, Jun 24, 2010 at 4:54 AM, Jiang webs...@yahoo.cn wrote:

 It is possible to implement following features:
 1, Get notification when a net network connection is established by other
 applications.
 2, Hook network input/output stream, or peer input/output stream, and block
 corresponding network connection if the stream contains unexpected contents.

 Thanks,
 -Jiang



 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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




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

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

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

Re: [android-developers] Re: Any chance to deactivate the lock pattern in Froyo from code?

2010-06-24 Thread Mark Murphy
On Thu, Jun 24, 2010 at 3:27 AM, LeveloKment levelokm...@googlemail.com wrote:
 What is your advice to make the development team at least aware was
 this potential improvement?

Post something on http://b.android.com -- short of contributing a
patch (or at least discussing contributing a patch), this is the
primary repository of other ideas.

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

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

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


[android-developers] Re: Mail Java API issues

2010-06-24 Thread jack.n
This may be a dumb question, but how do I add the Mail Java API App
Engine classes to an Android project? Android, Java programming, XML,
and the Eclipse development environment are (unfortunately) all new to
me and I didn't find a quick answer in any of the CommonsWare Android
books.

On Jun 23, 6:23 pm, Mark Murphy mmur...@commonsware.com wrote:
 That is because Android does not have these classes. App Engine may,
 but App Engine is not Android.

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

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

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


Re: [android-developers] Re: Protect the Shared Data between service and thread

2010-06-24 Thread Mark Murphy
On Wed, Jun 23, 2010 at 10:46 PM, tarek attia tarek.m.at...@gmail.com wrote:
 Yes,I mean that,as in my service there's an array to be accessed also by a
 thread exists in this service ,so how do I protect the array from being a
 race condition between the service and the thread?

Comparing services and threads is like comparing apples and shoes.

You do not protect the array from being a race condition between the
service and the thread.

You may wish to protect the array from being a race condition
between two threads. Services by default use only the main application
thread, unless you are arranging for work to be done in another thread
yourself (e.g., AsyncTask). In that case, you would want to use
java.util.concurrent classes, or the synchronization keyword, as Mr.
Boston suggests. The use of these classes is not specific to Android,
as they have been in Java for some time.

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

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

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


Re: [android-developers] Re: Mail Java API issues

2010-06-24 Thread Mark Murphy
On Thu, Jun 24, 2010 at 8:29 AM, jack.n cti1...@gmail.com wrote:
 This may be a dumb question, but how do I add the Mail Java API App
 Engine classes to an Android project?

You don't. You add Mail Java API App Engine classes to an App Engine
project, to run on App Engine (or an App Engine-compatible host).
Android does not run on App Engine; App Engine does not run on
Android.

 Android, Java programming, XML,
 and the Eclipse development environment are (unfortunately) all new to
 me and I didn't find a quick answer in any of the CommonsWare Android
 books.

Because I don't cover App Engine, and the Mail Java API App Engine
classes have nothing to do with Android, any more than they have to do
with can openers, AFAIK.

Can we back up a few steps? Ignore App Engine and the Mail Java API
App Engine classes for a bit. What is it that you're trying to do,
from a high level standpoint?

-- 
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: Any chance to deactivate the lock pattern in Froyo from code?

2010-06-24 Thread Sean Hodges
On Thu, Jun 24, 2010 at 1:24 PM, Mark Murphy mmur...@commonsware.com wrote:
 On Thu, Jun 24, 2010 at 3:27 AM, LeveloKment levelokm...@googlemail.com 
 wrote:
 What is your advice to make the development team at least aware was
 this potential improvement?

 Post something on http://b.android.com -- short of contributing a
 patch (or at least discussing contributing a patch), this is the
 primary repository of other ideas.


Do my emails not get through on the mailing list anymore? :(

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Any chance to deactivate the lock pattern in Froyo from code?

2010-06-24 Thread Mark Murphy
On Thu, Jun 24, 2010 at 8:59 AM, Sean Hodges
seanhodge...@googlemail.com wrote:
 Do my emails not get through on the mailing list anymore? :(

Yes, but the OP asked, so I figured I'd repeat the point. I apologize
for not crediting you with mentioning it previously on the thread.

-- 
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] Re: Android libraries

2010-06-24 Thread deg
Thanks.

It would be great if you could publish a roadmap of how the library
feature will look in the future.
For example, it would be great if library project could depend on
another library project. (Yes, I know I can use an external jar
instead. I'm doing that now, but the experience is not as smooth as
I'd like).

Also, per my original message, above, I sometimes see cases where
an .apk compiles without errors but does not include the library
classes.

David

On Jun 23, 8:03 pm, Xavier Ducrohet x...@android.com wrote:
 That's correct.

 At the moment the manifest of the library is only used to compile the
 resource of the library and figure out its package name, so it doesn't
 need to contain permissions, activities, services, etc... used by the
 library.

 However, all projects using the library must include those in their
 own manifest.

 In the future (hopefully not too distant) we'll be able to merge the
 content of the library manifest so that you don't have to do it
 manually for all projects using the library.

 Xav





 On Wed, Jun 23, 2010 at 8:52 AM, String sterling.ud...@googlemail.com wrote:
  On Jun 23, 11:06 am, deg d...@degel.com wrote:

  Also, what are the rules for AndroidManifest elements?
  - Does the main package or an Android library (or both) need to
  declare a uses-permission for something that happens in library code?
  - If a library implements a BroadcastReceiver should it be declared in
  its manifest, or that of the application (or both)?
  - etc.

  The library's manifest ONLY needs a manifest element with a
  package=com.mylibrary.packagename attribute. This isn't in the docs
  AFAIK, but was stated in a post on this group by the Android platform
  dev responsible for libraries. I can attest that I've done mine this
  way and it works fine.

  String

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

 --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.

 Please do not send me questions directly. Thanks!- 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


Re: [android-developers] Re: Unmarshal Parcleable in Broadcast Reviever

2010-06-24 Thread TreKing
On Thu, Jun 17, 2010 at 10:30 AM, mac-systems jens.h...@gmx.de wrote:

 But its always wise to keep informations together without always asking the
 Database.


I ran into this as well - instead of making a class Parcelable, I made it be
bundleable - i.e., give it two methods to convert it to and from a Bundle,
which you can pass as a single object in Intent extras. It's slightly more
verbose than the Parcelable method, but solves the problem since no class
loader is required and keeps you data together and prevents duplicating code
of putting and retrieving individual intent extras.

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] AutoCompleteTextView DropDown leaves ghost elements in View / IME area

2010-06-24 Thread TheGroove
When typing in an AutoCompleteTextView, when the list shrinks because
the number of matches goes down, the DropDown leaves several ghost
elements on the screen. This only seems to happen when an IME is
visible, and visually, it appears to be limited to the area that shows
the autocomplete suggestions for the input method, so quite possibly
it's happening in what is part of the IME's layout.
This occurs in 2.0.1, 2.1 and 2.2 emulators, and most likely on
devices as well (confirmed at least on Milestone running 2.1-
upgrade1). It _does not_ seem to happen in an 1.6 emulator.

I've posted a bug report here: 
http://code.google.com/p/android/issues/detail?id=9304
(with screenshot)

For now I'm desperate to find a workaround, I can't push this feature
in my app in its current condition.
One idea I thought of is to force the IME to refresh its View,
however, I have no idea how to access that from my code (if it's at
all possible).

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


[android-developers] Hiding application's icon from main menu.

2010-06-24 Thread Amit
Hi,

I want to hide my application icon from main menu at the run time. I
believe that a filter with category Launcher in the application's
manifest file is responsible for the application's presence in the
main menu. Is there any way to change the category at run time? or any
other way to hide the icon from main menu ?

Thanks in advance,
Amit

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

2010-06-24 Thread Davide
Hi,

I have some issue about performance. I have found how to reduce the
number of objects I create
to increase speed.

But still there is a high garbage activity like this:

06-24 13:22:25.443: DEBUG/dalvikvm(1591): GC freed 20150 objects /
681720 bytes in 187ms
06-24 13:22:26.392: DEBUG/dalvikvm(1591): GC freed 22898 objects /
782912 bytes in 197ms
06-24 13:22:27.454: DEBUG/dalvikvm(1591): GC freed 23471 objects /
811376 bytes in 252ms

Is possible to know the kind of object are garbaged? So I can try to
reduce the instances?
Methods call even will allocate objects?


-- 
  _|  _.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] OpenGL draws nothing when projection matrix is set to identity

2010-06-24 Thread sold
I have an OpenGL app that manipulates it's geometry in screen space to
acheive some effects, and therefore bypasses OpenGL's matrices by
setting modelview and projection to identity. For some reason,
Android's OpenGL implementation seems to be unhappy with this, and
doesn't draw anything.

The same app, compiled from the same source, works fine on windows
and iphone. If I load the app's projection matrix into GL's matrix,
and multiply it's inverse with the final geometry prior to drawing,
then it displays correctly.

App is native and OpenGL is 1.x if it matters.

Any ideas?

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

2010-06-24 Thread Mark Murphy
On Thu, Jun 24, 2010 at 9:25 AM, Amit magic.man.a...@gmail.com wrote:
 Is there any way to change the category at run time?

Not that I am aware of.

 or any
 other way to hide the icon from main menu ?

You can disable the activity completely using the PackageManager.

-- 
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: help on singleinstance launchmode

2010-06-24 Thread Vibhor Mahajan
Hello,

I am still waiting and hoping for some suggestions on single instance.

As per my experiments results, either I have not understood Google
documentation properly or its behavior is different from Google
documentation.

Kindly suggest.

Thanks,
Vibhor

On Tue, Jun 22, 2010 at 3:00 PM, Vibhor Mahajan mahajan.vib...@gmail.comwrote:

 Hello,

 Simply saying, I am trying to understand the behavior of singleinstance in
 detail. I found 2 different behaviors when a activity with singleinstance
 launchmode, launches an another activity.

 Based on your reply, I understood SINGLEINSTANCE activity is launching an
 activity in new task and because destination activity is already on top of
 desired task, task is brought to foreground and new instance is not created.
 I accept, it is special and should be used carefully.

 But, it is contradicting to results stated in my previous message. Kindly
 give suggestions for the questions in my previous message for better
 understanding.

 Thanks,
 Vibhor


 On Tue, Jun 22, 2010 at 2:07 PM, Dianne Hackborn hack...@android.comwrote:

 Yes that is working as intended, you have B and C together in their own
 task, and A can't be in it because it is single instance.

 Again, just ignore single instance unless you have a clear reason for
 using it, and then you will want to structure the rest of your interaction
 to work well with it.

 At this point I would suggest focusing questions on what you are actually
 trying to accomplish.


 On Tue, Jun 22, 2010 at 1:31 AM, Vibhor Mahajan mahajan.vib...@gmail.com
  wrote:

 Hello,

 Thanks Dianne for reply. I understood your point. But after doing some
 more tests I have confusions. Kindly provide some suggestions.

 Activity A has SINGLEINSTANCE and B  C has STANDARD launch mode.
 Execute below steps:
 1. Start A from launcher
 2. Launch B from A. (oncreate of B is called)
 3. Launch A from B. (re-starts A because A has SINGLEINSTANCE launchmode)
 4. Launch C from A. (oncreate of C is called)
 5. Launch A from C. (re-starts A because A has SINGLEINSTANCE launchmode)
 6. Launch B from A again.

 From step 6 above, instance of B is NOT CREATED instead task containing
 activity B  C comes in foreground, with last state of C (from step4)
 displayed. (because C was on top of this task).

 Similar behavior is documented in
 http://developer.android.com/guide/topics/fundamentals.html link. If it
 does, it is not in position to handle the intent, and the intent is dropped.
 (Even though the intent is dropped, its arrival would have caused the task
 to come to the foreground, where it would remain.)

 Q1) Why new instance of B is not created even though B has standard
 launch mode and also not top of destination task?

 Now if I change the implementation as below:
 Activity A has STANDARD and B has SINGLEINSTANCE launch mode.
 Repeat same steps again:
 1. Start A from launcher
 2. Launch B from A. (oncreate of B is called)
 3. Launch A from B. (a new instance of A is created, in the same task in
 which A's instance was created in step 1. Now stack is A - A)
 4. Launch B from A re-starts B.
 5. Launch A from B. (a new instance of A is created, in the same task in
 which A's instance was created in step 1. Now stack is A - A - A)

 Executing step 4  5 repeatedly, creates multiple instances of A.

 Q2) Step 3  5, B creates an intent to start A with
 FLAG_ACTIVITY_NEW_TASK. Why new instance of A is created in same task in
 which A was launched from launcher?
 Q3) Shouldn't the behavior be same as explained in previous message i.e.
 A should be brought to foreground?

 Thanks,
 Vibhor

   On Tue, Jun 22, 2010 at 10:41 AM, Dianne Hackborn hack...@android.com
  wrote:

  First, you almost certainly don't want to use singleInstance.  It is
 for very special situations, and has significant repercussions on UI flow
 that you need to understand before touching it.

 The key point about this is this statement in Launch modes
 http://developer.android.com/guide/topics/fundamentals.html#lmodes

  
 http://developer.android.com/guide/topics/fundamentals.html#lmodes*Whether
 the instance can have other activities in its task*. A singleInstance
 activity stands alone as the only activity in its task. If it starts 
 another
 activity, that activity will be launched into a different task regardless 
 of
 its launch mode — as if FLAG_ACTIVITY_NEW_TASK was in the intent. In
 all other respects, the singleInstance mode is identical to 
 singleTask.

 This means that when you launch B, it is the root of its own new task.
  When you launch B again, the task for it already exists, then the current
 task will be brought to the foreground instead of starting a new instance.
  You have effectively turned yourself into a launcher, so get the behavior
 expected for a launcher.

   On Mon, Jun 21, 2010 at 9:45 PM, Vibhor Mahajan 
 mahajan.vib...@gmail.com wrote:

  Hello,

 As per the documentation, standard and singletop differ in just one
 way, standard activity 

Re: [android-developers] Re: help on singleinstance launchmode

2010-06-24 Thread Mark Murphy
On Thu, Jun 24, 2010 at 9:40 AM, Vibhor Mahajan
mahajan.vib...@gmail.com wrote:
 I am still waiting and hoping for some suggestions on single instance.

 As per my experiments results, either I have not understood Google
 documentation properly or its behavior is different from Google
 documentation.

 Kindly suggest.

If you feel you have found a bug in the documentation, create sample
projects implementing your scenarios and post them to
http://b.android.com, preferably with a link back to this thread.

-- 
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: Google Maps and KMZ Files...Please help

2010-06-24 Thread TreKing
On Thu, Jun 17, 2010 at 1:14 PM, Tommy droi...@gmail.com wrote:

 Anyone have any suggestions on how I can get radar loops to display in my
 App?


You may want to elaborate and provide more details. I personally have no
idea what NOAA is or what you mean by radar loops.

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

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

2010-06-24 Thread Jens
Hi: I have a background service and want to listen to clicks on the
screen by the user. Is there any standard procedure or experience in
doing this?

-Jens

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


[android-developers] Re: Any chance to deactivate the lock pattern in Froyo from code?

2010-06-24 Thread LeveloKment
Thanks again Mark


On 24 Jun., 14:24, Mark Murphy mmur...@commonsware.com wrote:
 On Thu, Jun 24, 2010 at 3:27 AM, LeveloKment levelokm...@googlemail.com 
 wrote:
  What is your advice to make the development team at least aware was
  this potential improvement?

 Post something onhttp://b.android.com-- short of contributing a
 patch (or at least discussing contributing a patch), this is the
 primary repository of other ideas.

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

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

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


[android-developers] Watch Live Argentina Vs Mexico Football world Cup 2010

2010-06-24 Thread xexna
Argentina Vs Mexico Football world Cup 2010

visit http://www.worldpakistan.com/?page_id=20974

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


Re: [android-developers] Recognize clicks on screen in background service

2010-06-24 Thread Mark Murphy
On Thu, Jun 24, 2010 at 10:02 AM, Jens jens.is.loca...@googlemail.com wrote:
 Hi: I have a background service and want to listen to clicks on the
 screen by the user. Is there any standard procedure or experience in
 doing this?

That's not possible, sorry. Only the foreground activity can listen
to clicks on the screen by the user.

-- 
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: Using SyncAdapter for syncing application data

2010-06-24 Thread Connick
p.s. I should add to this that if u set to sync automatically ...it can
respond to a network tickle pre-2.2. At least according to the docs. I would
guess this would work via google's cloud messaging.

-Stace


On Wed, Jun 23, 2010 at 8:25 AM, Connick oconn...@gmail.com wrote:

 I've been using a sync adapter for application data and it worked out
 really well. The downside is that there is no API to set the sync interval
 unless you're targeting froyo. (at least to my knowledge) Kind of defeats
 the purpose. I've had to roll with alarm manager for pre-froyo clients. My
 main reason for going the sync adapter route was to play nice with the users
 ability to manage background sync globally.

 -Stace



 On Wed, Jun 23, 2010 at 8:18 AM, Hugo Visser botte...@gmail.com wrote:

 Let me clarify: In this case I don't need or want to have the sync be
 very visible. I just want to enter some data on the device and sync it
 to the server eventually, so when the network connection is available.
 Batching would be OK too.
 Because that's kind of like editing a contact or updating a calendar I
 thought it would be suitable for a sync adapter, and I guess the sync
 framework also takes care of some things that I otherwise have to
 manage myself.

 Could you elaborate on your statement that a sync adapter would be the
 right choice when it's tied to UI redrawing? I'd guess that the
 opposite would be true?

 Hugo

 On Jun 23, 11:34 am, Gyan gnanesh@gmail.com wrote:
  Nice thought. But do you really think you need an adapter to answer
 this.
  This is just a data sync functionality! If its tightly tied to UI
  re-drawing/customization then you might go with writing SyncAdapter
  otherwise you can, very well, stick with an interface!
 
  Thanks
  Gyan

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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] Alarms after an update ?

2010-06-24 Thread mac-systems
Hello,

how will android handle an update of an app which comes from the
market ? Will pending alarm intents still invoked ?

thanks for reply,
Jens

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

2010-06-24 Thread vineet
i know there had been a buzz around push messaging.
my client has a chat application that allows chat/collaboration on
desktops on which i use AJAX. We are using PHP for this on server end.

What i have to develop a client for android.
here i have to develop a system using Push Technology, since it is not
expected when the next message come.

Can someone help me out in this stuff. I cannot use polling (at
specified time) since this will cause battery lag.

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: push messaging / notification

2010-06-24 Thread vineet
EDIT: Also we use Xtify or 3party server sice the collaborative data
is for corporates and confidential

On Jun 24, 7:34 pm, vineet ma...@vineetyadav.com wrote:
 i know there had been a buzz around push messaging.
 my client has a chat application that allows chat/collaboration on
 desktops on which i use AJAX. We are using PHP for this on server end.

 What i have to develop a client for android.
 here i have to develop a system using Push Technology, since it is not
 expected when the next message come.

 Can someone help me out in this stuff. I cannot use polling (at
 specified time) since this will cause battery lag.

 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


Re: [android-developers] Re: Change background after an Orientation change

2010-06-24 Thread Thierry Legras
I have the similar issue, the answer is interesting but i am wondering if i
can avoid specifying an alternate landscape layout just for that in my case:
indeed i don't want to have 2 different background pictures for
horizontal/vertical layout but just to fit to screen with height/width ratio
preserved and to crop what can not fit in the screen but default behaviour
is to shrink without preserving aspect ratio.

Anyway to tune that? Or at least maybe using an imageview in the background
would avoir replicate the layout just for that?

Thierry.

2010/6/10 Kumar Bibek coomar@gmail.com

 Sure, you have to create a different layout file for the landscape
 mode with a different background image in the layout-land folder.

 Try searching for it in the docs and you will get an idea on what and
 how to do it.

 http://tech-droid.blogspot.com/2009/10/orientation-independent-applications.html

 Thanks and Regards,
 Kumar Bibek
 http://tech-droid.blogspot.com

 On Jun 9, 1:08 am, ChadS cspren...@osthoff.com wrote:
  I have an image set as my background and when it is vertical, the
  image looks fine.  However, when the orentation is changed, the image
  get streched out.  If there a way that I can change the image based on
  the orentation of the device?

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




-- 
Thierry.

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

2010-06-24 Thread pranay
i have tried using :
Cursor cursor =
context.getContentResolver().query(Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI,
address), new String[]{PhoneLookup.DISPLAY_NAME}, null, null, null);

but i get a null pointer exception during Runtime, is there some
mistake or any other way?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Will data remain after updating android os in mobile phones

2010-06-24 Thread MobDev
Actually,
in my specific case (HTC Hero with 1.5) the manufacturer (HTX) will
bring out an update to 2.1 but they have already stated that
everything has to backed up because it will whipe the whole system (as
in installed apps, db's etc)...
I can't remember exactly where I read that, it has been such a ongoing
drama for the Hero update...

On 24 jun, 14:20, Mark Murphy mmur...@commonsware.com wrote:
 On Thu, Jun 24, 2010 at 6:41 AM, santha uday.pic...@gmail.com wrote:
  If i update my mobile with android 2.1 version, will the data still
  remains same??

 Yes.

  What about the Preference variables information that are saved in the
  android phone memory if i do FACTORY RESET???

 No.

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

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

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


[android-developers] Re: Crash dumps - Market vs Homegrown

2010-06-24 Thread MobDev
afaik not ALL existing devices will get an update to Froyo, so yes I
guess there is still use for ACRA !

On 24 jun, 12:08, Tomáš  Hubálek tom.huba...@gmail.com wrote:
 Nathan, I belive that homegrown (eg. ACRA -http://code.google.com/p/acra/)
 is must untl Froyo and newer become majority. Correct me if I'm wrong
 but on older version of Android there is no way how to get info about
 errors.

 BTW: I'm using ACRA in all my apps and it made my apps much better.
 Thanks to ACRA dev.

 Tom

 On 24 čvn, 02:36, Nathan critter...@crittermap.com wrote:

  I've been using a home grown crash dump send during a beta period. It
  coudl be redundant - or confusing now that the market has one.

  Am I right in thinking I won't need that once the app is on the
  market?

  Or is the crash dump ability in the market limited to certain
  devices?

  Any thoughts?

  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


Re: [android-developers] Re: Will data remain after updating android os in mobile phones

2010-06-24 Thread Mark Murphy
On Thu, Jun 24, 2010 at 10:47 AM, MobDev developm...@mobilaria.com wrote:
 Actually,
 in my specific case (HTC Hero with 1.5) the manufacturer (HTX) will
 bring out an update to 2.1 but they have already stated that
 everything has to backed up because it will whipe the whole system (as
 in installed apps, db's etc)...
 I can't remember exactly where I read that, it has been such a ongoing
 drama for the Hero update..

That's really bad.

-- 
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] Re: Streaming audio AAC format

2010-06-24 Thread MobDev
Actually on this same group there have been several reports of the new
2.2 Mediaplayer being a step backwards, as in many good-running apps
seem to break on Froyo...
Btw, might I ask how you stream aac directly from an url ?

On 23 jun, 04:51, kabson kabson.andr...@gmail.com wrote:
 Hello all,
   I have developed a streaming app for Android. My app is streaming
 AAC audio. The app works fine on 1.5, 1.6, and 2.1.
  I tested it on Froyo, the android 2.2 and it does not work there. I
 have try everthing
  - Streaming directly from server url
  - Download incrementaly the content, store in a temp file, start
 reading.
  - Download incrementaly the content, store in a ContentProvider and
 start reading.

  No luck, I always got errors :
    06-23 02:47:02.257: ERROR/MediaPlayer(266): Unable to to create
 media player
 06-23 02:47:02.257: INFO/System.out(266): setDataSourceFD failed.:
 status=0x8000

 Does Froyo support AAC ?

 Anyone happens to stream AAC ?

 Need some help.

 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


Re: [android-developers] Re: Crash dumps - Market vs Homegrown

2010-06-24 Thread Kostya Vasilyev
There is one other important benefit to homegrown solutions: they can 
provide more information than just the stack trace.


Not all problems are crashes or ANRs, and even then, not all of them can 
be understood by looking at a stack trace.


Building app-specific logs with relevant info on e.g. various state 
changes can only be done with custom solutions for now.


-- Kostya

24.06.2010 18:51, MobDev пишет:

afaik not ALL existing devices will get an update to Froyo, so yes I
guess there is still use for ACRA !

On 24 jun, 12:08, Tomáš  Hubálektom.huba...@gmail.com  wrote:
   

Nathan, I belive that homegrown (eg. ACRA -http://code.google.com/p/acra/)
is must untl Froyo and newer become majority. Correct me if I'm wrong
but on older version of Android there is no way how to get info about
errors.

BTW: I'm using ACRA in all my apps and it made my apps much better.
Thanks to ACRA dev.

Tom

On 24 čvn, 02:36, Nathancritter...@crittermap.com  wrote:

 

I've been using a home grown crash dump send during a beta period. It
coudl be redundant - or confusing now that the market has one.
   
 

Am I right in thinking I won't need that once the app is on the
market?
   
 

Or is the crash dump ability in the market limited to certain
devices?
   
 

Any thoughts?
   
 

Nathan
   


 
   



--
Kostya Vasilev -- 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: got a problem to learn Android

2010-06-24 Thread MobDev
you can buy a  book,
and even though this might be wrongly interpreted as some kind of
publicity I'd like to advise you to buy Mark Murphy's books.
He has a beginners version and an advanced one, and in my opinion they
are very very understandable (I have read some very techincal Android
books as well, but those became very boring very fast)...
http://commonsware.com/


On 22 jun, 11:13, ben linus benzhe...@gmail.com wrote:
 Hi ,
 Does anyone can tell me how to master android fast, i am a beginner.
 The official doc is so tedious, i have no clue to learn it.
 expect your reply and thanks for it.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: AutoCompleteTextView DropDown leaves ghost elements in View / IME area

2010-06-24 Thread TheGroove
I found a fix that will suffice for now: if I set
android:dropDownHeight=fill_parent, the autocomplete box will always
take up the space that's left over by the IME. There's one
consequence: if there's only a few matches (left), a large empty (in
my case white) box remains, but for now that's acceptable and much
better than broken view remnants.

I found one more occurence on the 'net:
http://groups.google.com/group/android-developers/browse_thread/thread/11aae5b37699accf/119841f8b7f2da3e?show_docid=119841f8b7f2da3e
but otherwise there seems to be no record of this issue at all.

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


[android-developers] Problem in getting height of web-view

2010-06-24 Thread brijesh
hello,
I have a HTML file in a  web view.

I want to find the length of the content of that HTML file.

I have tried methods like getContentHeight() at onPageFinished() but
it still giving me 0.

I had also put a thread which start after onPageFinished() and waits
till 10-15 sec but I am still not able to find the Height Please help
me.

==
regards,
Brijesh Masrani

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

2010-06-24 Thread Mark Murphy
Thanks for the vote of confidence!

On Thu, Jun 24, 2010 at 11:06 AM, MobDev developm...@mobilaria.com wrote:
 you can buy a  book,
 and even though this might be wrongly interpreted as some kind of
 publicity I'd like to advise you to buy Mark Murphy's books.
 He has a beginners version and an advanced one, and in my opinion they
 are very very understandable (I have read some very techincal Android
 books as well, but those became very boring very fast)...
 http://commonsware.com/


 On 22 jun, 11:13, ben linus benzhe...@gmail.com wrote:
 Hi ,
 Does anyone can tell me how to master android fast, i am a beginner.
 The official doc is so tedious, i have no clue to learn it.
 expect your reply and thanks for it.

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

2010-06-24 Thread Paul Gee
ACRA looks very useful and potentially more robust than my current method. 
However I notice that it uses a class (CrashReportingApplication) extended from 
android.app.Application. 

I already have a class in my app extended from android.app.Application so does 
that mean I cannot use ACRA or that I somehow have to combine my class with the 
ACRA one? Or can I have two classes extended from android.app.Application in my 
program?

Regards, Paul
--
PuzzleQube - the 3D picture puzzle
Grey Knotts Software - www.greyknotts.com


-Original Message-
From: android-developers@googlegroups.com 
[mailto:android-develop...@googlegroups.com] On Behalf Of Kostya Vasilyev
Sent: 24 June 2010 16:04
To: android-developers@googlegroups.com
Subject: Re: [android-developers] Re: Crash dumps - Market vs Homegrown

There is one other important benefit to homegrown solutions: they can 
provide more information than just the stack trace.

Not all problems are crashes or ANRs, and even then, not all of them can 
be understood by looking at a stack trace.

Building app-specific logs with relevant info on e.g. various state 
changes can only be done with custom solutions for now.

-- Kostya

24.06.2010 18:51, MobDev пишет:
 afaik not ALL existing devices will get an update to Froyo, so yes I
 guess there is still use for ACRA !

 On 24 jun, 12:08, Tomáš  Hubálektom.huba...@gmail.com  wrote:

 Nathan, I belive that homegrown (eg. ACRA -http://code.google.com/p/acra/)
 is must untl Froyo and newer become majority. Correct me if I'm wrong
 but on older version of Android there is no way how to get info about
 errors.

 BTW: I'm using ACRA in all my apps and it made my apps much better.
 Thanks to ACRA dev.

 Tom

 On 24 čvn, 02:36, Nathancritter...@crittermap.com  wrote:

  
 I've been using a home grown crash dump send during a beta period. It
 coudl be redundant - or confusing now that the market has one.

  
 Am I right in thinking I won't need that once the app is on the
 market?

  
 Or is the crash dump ability in the market limited to certain
 devices?

  
 Any thoughts?

  
 Nathan


  



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

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

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


[android-developers] Re: got a problem to learn Android

2010-06-24 Thread MobDev
hehe,
if you earned it you earned it ;)
There are other interesting books as well, but some are a little too
short, a little too outdated, or less understandable...
Anyways, I do advise a book because it's simple to keep on ur desk
while working and look up stuff fast... Or get an Android Ipad (if it
exists) full of ebook versions :P

On 24 jun, 17:13, Mark Murphy mmur...@commonsware.com wrote:
 Thanks for the vote of confidence!



 On Thu, Jun 24, 2010 at 11:06 AM, MobDev developm...@mobilaria.com wrote:
  you can buy a  book,
  and even though this might be wrongly interpreted as some kind of
  publicity I'd like to advise you to buy Mark Murphy's books.
  He has a beginners version and an advanced one, and in my opinion they
  are very very understandable (I have read some very techincal Android
  books as well, but those became very boring very fast)...
 http://commonsware.com/

  On 22 jun, 11:13, ben linus benzhe...@gmail.com wrote:
  Hi ,
  Does anyone can tell me how to master android fast, i am a beginner.
  The official doc is so tedious, i have no clue to learn it.
  expect your reply and thanks for it.

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


Re: [android-developers] Re: Smooth Image Rotation with Gesture Control?

2010-06-24 Thread TreKing
On Fri, Jun 18, 2010 at 12:01 AM, ocdtrekkie jtn...@gmail.com wrote:

 Can anyone help get me started?  I can program all the logic I need for my
 program really well, I just need some help with designing the UI to function
 the way I want it to.


What exactly do you expect us to do for you?
How are we supposed to help you design a UI for your app?

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

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

2010-06-24 Thread TreKing
On Fri, Jun 18, 2010 at 12:58 AM, Nithin nithin.war...@gmail.com wrote:

 Here layout is an object of LinearLayout.


And this LinearLayout is placed where exactly?

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

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

2010-06-24 Thread Wayne Wenthin
I'll second that.  And Mark is a stand up guy he is all over these groups.

On Thu, Jun 24, 2010 at 8:06 AM, MobDev developm...@mobilaria.com wrote:

 you can buy a  book,
 and even though this might be wrongly interpreted as some kind of
 publicity I'd like to advise you to buy Mark Murphy's books.
 He has a beginners version and an advanced one, and in my opinion they
 are very very understandable (I have read some very techincal Android
 books as well, but those became very boring very fast)...
 http://commonsware.com/


 On 22 jun, 11:13, ben linus benzhe...@gmail.com wrote:
  Hi ,
  Does anyone can tell me how to master android fast, i am a beginner.
  The official doc is so tedious, i have no clue to learn it.
  expect your reply and thanks for it.

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




-- 
Follow us on Twitter  @fuliginsoftware
Join the forums.
http://www.fuligin.com/forums

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

2010-06-24 Thread Krishna Shetty
It became clear now. Thank you Mark.
The problem was, I am having my AIDL interface in a different package.
And I have included the same AIDL interface package in both Service
and Client application. But  the   intent-filter  of the Service had
action string with package name of the Service.

So we can follow below while adding intent-filter, so trhat trick
IScript.class.getName() will work.

service android:name=.serviceName android:exported=true
android:enabled=true
intent-filter
action android:name=package name of aidl interface.Interface name /

/intent-filter
/service

thanks,
Krishna

On Jun 23, 7:02 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Wed, Jun 23, 2010 at 9:57 AM, Krishna Shetty

 krishna.shett...@gmail.com wrote:
  Thank you very much Mark, Joe.

  But below call i.e., binding with the Interface name is not working. I
  got the same error, not able to bind, service not found..
  bindService(new Intent(IScript.class.getName()), svcConn,
  Context.BIND_AUTO_CREATE);

 That means you have no service with an intent-filter containing an
 action string that matches the value generated by
 IScript.class.getName(). If you are taking that code from one of my
 samples, the corresponding manifest from those samples is set up
 properly:

 http://github.com/commonsguy/cw-advandroid/tree/master/AdvServices/Re...

  But, below way of binding works. i.e., Binding with the exported
  Service.
  Intent i = new Intent();
  i.setClassName(com.mt.TestRemoteService,
  com.mt.TestRemoteService.MyService);
  bindService(i, svcConn, Context.BIND_AUTO_CREATE);

 This is extremely fragile. If the other application refactors its
 code, your code will break.

  Why bind with Interface name is not working for me?
  ( Note: I have added an intent-filter on the service with a
  Interface action )

 Whatever you think you did, it is not working.

 Rather than use my IScript.class.getName() trick, it is probably
 simpler for you to just use the literal string. Copy whatever string
 is in your action and paste it as a string literal in your Intent
 constructor.

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

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

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


[android-developers] Notification Error - contentIntent

2010-06-24 Thread Donal Rafferty
I have a service running that updates a notification in the notification bar
when it recieves a message saying it has to be changed.

However I get the following error sometimes when the notification is to be
updated

java.lang.IllegalArgumentException: contentIntent required

Here is my code:

Variable setup

---

int icon = R.drawable.notification;
CharSequence tickerText = Test;
long when = System.currentTimeMillis();
PendingIntent contentIntent;

Notification notification = new Notification(icon, tickerText, when);

NotificationManager mNotificationManager;

---

NotificationManager Creation

---

String ns = Context.NOTIFICATION_SERVICE;
mNotificationManager = (NotificationManager) getSystemService(ns);

---

Notification Creation

---


Intent notificationIntent = new Intent(this, TestsApp.class);
contentIntent = PendingIntent.getActivity(this, 0,
notificationIntent, 0);
notification.flags |= Notification.FLAG_NO_CLEAR;
notification.icon = R.drawable.notification3;
notification.setLatestEventInfo(this, Registering, Test,
contentIntent);
mNotificationManager.notify(1, notification);

---

Update of Notification

---

notification.icon = R.drawable.notification2;
notification.setLatestEventInfo(getApplicationContext(),
Registered, Test, contentIntent);
mNotificationManager.notify(1, notification);

---

So something is happening my contentIntent somewhere along the line, would
that be correct?

It is declared at the top of my Service class as a member variable and is
not used anywhere else in the code apart from shown above, so where could it
be getting reset to null?

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

Re: [android-developers] Alarms after an update ?

2010-06-24 Thread Dianne Hackborn
You need to re-schedule your alarms.  Since anything about the app could
have changed, including the component that the alarms are targeting, that
state can't be kept around.

On Thu, Jun 24, 2010 at 7:31 AM, mac-systems jens.h...@gmx.de wrote:

 Hello,

 how will android handle an update of an app which comes from the
 market ? Will pending alarm intents still invoked ?

 thanks for reply,
 Jens

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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




-- 
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: ItemizedOverlay using both onTap methods

2010-06-24 Thread TreKing
On Jun 15, 9:15 am, tfriest tfri...@kc.rr.com wrote:
 Does anyone know of a better way to do this?

As you've seen, the maps documentation is pretty pathetic. What I know
of the onTap functions has been gleamed from trial and error and
experimentation. This is how I believe it works:

onTap(int) determines whether the item at the specified index will
handle tap events at all. If you return false, the other onTap
function will always return false.

onTap(Point, MapView) determines whether an item in the overlay was
tapped given the touch point, if onTap(int) return true for it's
index.

OK, with that, what you can do is:
return true for onTap(int) always.
in onTap(Point, MapView) call through to the base implementation to
determine if something was tapped. And that's it.

public boolean onTap(point, mapview)
{
 boolean tapped = super.onTap(point, mapView);
 if (tapped)
 showInfo();
else
 dropNewItem(point);

return true; // irrelevant if you only have one itemized overlay
}

Hope that helps.

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

2010-06-24 Thread Dianne Hackborn
So far as I have explained what you say you are seeing is consistent with
the intended behavior, and how I believe it is documented.

You need to read through all of the documentation on launch modes, tasks,
taskAffinities, and activity stacks.  The singleInstance mode imposes
constraints on the activity that you can't understand without understanding
these other things.  As I said, it means any activity you launch outside of
the single instance activity will be launched as if you are using NEW_TASK.

On Thu, Jun 24, 2010 at 6:40 AM, Vibhor Mahajan mahajan.vib...@gmail.comwrote:

 Hello,

 I am still waiting and hoping for some suggestions on single instance.

 As per my experiments results, either I have not understood Google
 documentation properly or its behavior is different from Google
 documentation.

 Kindly suggest.

 Thanks,
 Vibhor

 On Tue, Jun 22, 2010 at 3:00 PM, Vibhor Mahajan 
 mahajan.vib...@gmail.comwrote:

 Hello,

 Simply saying, I am trying to understand the behavior of singleinstance in
 detail. I found 2 different behaviors when a activity with singleinstance
 launchmode, launches an another activity.

 Based on your reply, I understood SINGLEINSTANCE activity is launching an
 activity in new task and because destination activity is already on top of
 desired task, task is brought to foreground and new instance is not created.
 I accept, it is special and should be used carefully.

 But, it is contradicting to results stated in my previous message. Kindly
 give suggestions for the questions in my previous message for better
 understanding.

 Thanks,
 Vibhor


 On Tue, Jun 22, 2010 at 2:07 PM, Dianne Hackborn hack...@android.comwrote:

 Yes that is working as intended, you have B and C together in their own
 task, and A can't be in it because it is single instance.

 Again, just ignore single instance unless you have a clear reason for
 using it, and then you will want to structure the rest of your interaction
 to work well with it.

 At this point I would suggest focusing questions on what you are actually
 trying to accomplish.


 On Tue, Jun 22, 2010 at 1:31 AM, Vibhor Mahajan 
 mahajan.vib...@gmail.com wrote:

 Hello,

 Thanks Dianne for reply. I understood your point. But after doing some
 more tests I have confusions. Kindly provide some suggestions.

 Activity A has SINGLEINSTANCE and B  C has STANDARD launch mode.
 Execute below steps:
 1. Start A from launcher
 2. Launch B from A. (oncreate of B is called)
 3. Launch A from B. (re-starts A because A has SINGLEINSTANCE
 launchmode)
 4. Launch C from A. (oncreate of C is called)
 5. Launch A from C. (re-starts A because A has SINGLEINSTANCE
 launchmode)
 6. Launch B from A again.

 From step 6 above, instance of B is NOT CREATED instead task containing
 activity B  C comes in foreground, with last state of C (from step4)
 displayed. (because C was on top of this task).

 Similar behavior is documented in
 http://developer.android.com/guide/topics/fundamentals.html link. If
 it does, it is not in position to handle the intent, and the intent is
 dropped. (Even though the intent is dropped, its arrival would have caused
 the task to come to the foreground, where it would remain.)

 Q1) Why new instance of B is not created even though B has standard
 launch mode and also not top of destination task?

 Now if I change the implementation as below:
 Activity A has STANDARD and B has SINGLEINSTANCE launch mode.
 Repeat same steps again:
 1. Start A from launcher
 2. Launch B from A. (oncreate of B is called)
 3. Launch A from B. (a new instance of A is created, in the same task in
 which A's instance was created in step 1. Now stack is A - A)
 4. Launch B from A re-starts B.
 5. Launch A from B. (a new instance of A is created, in the same task in
 which A's instance was created in step 1. Now stack is A - A - A)

 Executing step 4  5 repeatedly, creates multiple instances of A.

 Q2) Step 3  5, B creates an intent to start A with
 FLAG_ACTIVITY_NEW_TASK. Why new instance of A is created in same task in
 which A was launched from launcher?
 Q3) Shouldn't the behavior be same as explained in previous message i.e.
 A should be brought to foreground?

 Thanks,
 Vibhor

   On Tue, Jun 22, 2010 at 10:41 AM, Dianne Hackborn 
 hack...@android.com wrote:

  First, you almost certainly don't want to use singleInstance.  It is
 for very special situations, and has significant repercussions on UI flow
 that you need to understand before touching it.

 The key point about this is this statement in Launch modes
 http://developer.android.com/guide/topics/fundamentals.html#lmodes

  
 http://developer.android.com/guide/topics/fundamentals.html#lmodes*Whether
 the instance can have other activities in its task*. A singleInstance
 activity stands alone as the only activity in its task. If it starts 
 another
 activity, that activity will be launched into a different task regardless 
 of
 its launch mode — as if FLAG_ACTIVITY_NEW_TASK was in the 

Re: [android-developers] Re: Any chance to deactivate the lock pattern in Froyo from code?

2010-06-24 Thread Dianne Hackborn
Hi,

The DeviceAdmin API is not going to contain this kind of functionality.
 That API is for apps to specify security limits they have; disabling the
lock screen is not a security limit, but a removal.  The admin API is
carefully designed so that any constraints one admin specifies can not
conflict with those of another; this is a situation we want to maintain,
since otherwise there would need to be some way to decide which one wins
(probably requiring the user to specify this), along with a way for an admin
to find out when its requests are losing so it can deal with that.

Also typically an admin is there imposing requirements from a server, so if
it can't impose those requirements it needs to stop pulling data from the
service and erase any data it has from the service.  Having that kind of
thing happen at regularly times do to temporary conflicts with another admin
would be fairly undesirable.

The new device admin APIs also drove the changes to the lock screen
interaction.  For those APIs to work, we can't have a setting for someone
else to disable the lock screen (and we had to change those settings anyway
as the lock screen got more complicated in Froyo).  For this reason the
keyguard API to temporarily hide the keyguard no long does anything if there
is any admin that is requiring a lock screen.

We would certainly at some point like to support third party lock screens.
 However:

(1) For the last two years this has been a low priority compared to many
other things, and I can't say when that will change.  Certainly not this
year.
(2) It will require some major refactoring of the current code, since the
lock screen has very deep interactions with the window manager, power
manager, telephony, etc.
(3) A reasonable API will probably involve allowing an app to control the
contents of the lock screen, but not when it is enabled, shown, etc (because
those things require deep interactions with the rest of the system and so
far have changed in every single update we have done).
(4) If a device admin has imposed requirements on the lock screen, we would
not be able to allow a third party lock screen because we have no way of
trusting that it will impose the requirements that are being requested.

On Thu, Jun 24, 2010 at 12:27 AM, LeveloKment levelokm...@googlemail.comwrote:

 Hi Mark.

 Thanks for your answer.

 I share your point of view completely.
 From my experience an always on (Pattern, Pin or Password) is
 something many people do not like... so they deactivate it completely.
 The idea of my App was to help people to find a good compromise
 between security and usability.

 I already reviewed the DeviceAdmin class of Froyo as the SDK for 2.2
 was released. From my point of view it is the perfect location to
 implement an interface that allows the temporary deactivation of the
 locks (no matter if pattern, pin or password).
 My fear was, that I was missing something and there is still a way to
 satisfy my users even if they are using Froyo.

 An alternative to the DeviceAdmin would be collection of additional
 settings in the related system settings section that give the users a
 delay/timeout in Android natively (like some WinMobile devices are
 doing it). That would make App's like my PatternControl needless.

 What is your advice to make the development team at least aware was
 this potential improvement?

 Best Regards from Germany
 Lars

 On 23 Jun., 12:58, Mark Murphy mmur...@commonsware.com wrote:
  On Wed, Jun 23, 2010 at 4:46 AM, LeveloKment levelokm...@googlemail.com
 wrote:
   No information?
 
  No, there is no way to deactivate the lock pattern that I am aware of.
 
   No opinion?
 
  My opinion is that deactivating the lock pattern via a regular setting
  was a security hole. If the user wants a lock pattern, apps should not
  change that. If the user does not want a lock pattern, the user is
  perfectly capable of disabling it using the Settings application. The
  exception would be if an enterprise would want to mandate the lock
  screen be on and not disable-able, which runs counter to your apparent
  goals.
 
  My hope is that eventually stuff like this and custom lock screens
  will become part of the new device admin APIs.
 
  --
  Mark Murphy (a Commons Guy)http://commonsware.com|
 http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
 
  _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.6
  Available!

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

Re: [android-developers] Re: got a problem to learn Android

2010-06-24 Thread John T. Haggerty
I recently looked at the oreilley text and found it to be not a very good
stop especially for a beginner, let alone an intermediate programer

On Jun 24, 2010 9:29 AM, MobDev developm...@mobilaria.com wrote:
 hehe,
 if you earned it you earned it ;)
 There are other interesting books as well, but some are a little too
 short, a little too outdated, or less understandable...
 Anyways, I do advise a book because it's simple to keep on ur desk
 while working and look up stuff fast... Or get an Android Ipad (if it
 exists) full of ebook versions :P

 On 24 jun, 17:13, Mark Murphy mmur...@commonsware.com wrote:
 Thanks for the vote of confidence!



 On Thu, Jun 24, 2010 at 11:06 AM, MobDev developm...@mobilaria.com
wrote:
  you can buy a  book,
  and even though this might be wrongly interpreted as some kind of
  publicity I'd like to advise you to buy Mark Murphy's books.
  He has a beginners version and an advanced one, and in my opinion they
  are very very understandable (I have read some very techincal Android
  books as well, but those became very boring very fast)...
 http://commonsware.com/

  On 22 jun, 11:13, ben linus benzhe...@gmail.com wrote:
  Hi ,
  Does anyone can tell me how to master android fast, i am a beginner.
  The official doc is so tedious, i have no clue to learn it.
  expect your reply and thanks for it.

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

 --
 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.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: Alarms after an update ?

2010-06-24 Thread mac-systems
Ok, i thought i have to do this.
Is there any Intent which get broadcasted on update ? Or simlar
mechanism ?

rega

On 24 Jun., 18:47, Dianne Hackborn hack...@android.com wrote:
 You need to re-schedule your alarms.  Since anything about the app could
 have changed, including the component that the alarms are targeting, that
 state can't be kept around.





 On Thu, Jun 24, 2010 at 7:31 AM, mac-systems jens.h...@gmx.de wrote:
  Hello,

  how will android handle an update of an app which comes from the
  market ? Will pending alarm intents still invoked ?

  thanks for reply,
  Jens

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  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


Re: [android-developers] Re: ItemizedOverlay using both onTap methods

2010-06-24 Thread Carlos Silva
On Thu, Jun 24, 2010 at 17:49, TreKing treking...@gmail.com wrote:

 On Jun 15, 9:15 am, tfriest tfri...@kc.rr.com wrote:
  Does anyone know of a better way to do this?

 As you've seen, the maps documentation is pretty pathetic. What I know
 of the onTap functions has been gleamed from trial and error and
 experimentation. This is how I believe it works:

 onTap(int) determines whether the item at the specified index will
 handle tap events at all. If you return false, the other onTap
 function will always return false.

 onTap(Point, MapView) determines whether an item in the overlay was
 tapped given the touch point, if onTap(int) return true for it's
 index.

 OK, with that, what you can do is:
 return true for onTap(int) always.
 in onTap(Point, MapView) call through to the base implementation to
 determine if something was tapped. And that's it.

 public boolean onTap(point, mapview)
 {
  boolean tapped = super.onTap(point, mapView);
  if (tapped)
  showInfo();
 else
  dropNewItem(point);

 return true; // irrelevant if you only have one itemized overlay
 }

 Hope that helps.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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



I don't really agree with this.

I use onTap(int) to detect if an overlayItem was clicked. And use
onTap(point, mapview) to handle every other click on the map. I use the
first to show a ballow, and the second to hide it.

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

2010-06-24 Thread TreKing
On Jun 17, 6:40 pm, ADman adapp...@gmail.com wrote:
 In my case, i have two apps- one runs as a service and collects data, the 
 other
 displays it.

Why do you have two apps?

 Any suggestions on how to achieve this?

Ask the users to start your app immediately?
You can't do this programmatically, for good reasons.
Why is your app so dependent on starting immediately? What is it doing
that it can't recover from?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: button OnClick method won't fire - no matter what

2010-06-24 Thread TreKing
On Jun 17, 3:42 pm, Nick Longinow nicklongi...@gmail.com wrote:
 The other activity, the method *never* fires.  I've added
 Log statements to the onClick, and have put breakpoints into the
 onClick, and it is never called.

Post the code where you set up the 2nd click listener...

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

2010-06-24 Thread Robert Macaulay
On Thu, Jun 24, 2010 at 11:56 AM, mac-systems jens.h...@gmx.de wrote:
 Ok, i thought i have to do this.
 Is there any Intent which get broadcasted on update ? Or simlar
 mechanism ?

You can add a receiver for PACKAGE_REPLACED
receiver android:name=.OnPackageChangeStarter
intent-filter
   action 
android:name=android.intent.action.PACKAGE_REPLACED /
!-- This doesn't work
  data android:scheme=package 
android:path=your.package.name /
--
/intent-filter
/receiver

and in the OnPackageChangeStarter, add an if

if(! 
intent.getDataString().startsWith(package:your.package.name)){
return;
}

At least on 2.1 Droid, the intent.getData().getPath()  portion of
the intent is null, so the intent-filter doesn't seem to work.
Including it gets my receiver called for every package change.
The package name is in the intent.getData().getSchemeSpecificPart()

Anyone know if this is a bug? Or is this the right way to accomplish this?

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


[android-developers] Re: Activity lifecycle difference between device and emulator

2010-06-24 Thread TreKing
On Jun 18, 1:18 pm, Jay jband...@gmail.com wrote:
 In the emulator, the
 calling activity is paused, and right after the new activity is
 resumed, the calling activity is destroyed.

More than likely the emulator is simply running out of memory, so it's
destroying the first activity to make room. There's probably some way
to boost the memory size on it and see if it still happens.

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

2010-06-24 Thread Albert
Hi there,

Is there a way to know if there is an instance of your widget
currently on the homescreen? I always end up using variables that
change state with onUpdate() and onDeleted()  calls, but that
obviously that isn't effective in every scenario.

Thanks in advance

Alberto

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