Re: [android-developers] location receiver

2010-10-13 Thread A N K ! T
how to get current location first time...i can be notified when location
change but what abt first location..
i am using getlastKnownLocation but it is returning  nullis there any
other method to use

On Tue, Oct 12, 2010 at 7:01 PM, Mark Murphy mmur...@commonsware.comwrote:

 Use MyLocationOverlay.

 On Tue, Oct 12, 2010 at 9:28 AM, A N K ! T ankit.awasth...@gmail.com
 wrote:
  not workingi just want to do the thingmenu item my location  do
 on
  google map..
  is there any example for that
 
  On Tue, Oct 12, 2010 at 6:13 PM, Mark Murphy mmur...@commonsware.com
  wrote:
 
  On Tue, Oct 12, 2010 at 8:29 AM, A N K ! T ankit.awasth...@gmail.com
  wrote:
   2) if location change and user open my app it shud show him current
   location
   like google maps shows..
   but i am not getting how to make zoom till that label..
 
  Call setCenter() and setZoom() on your MapController, obtained via
  getMapController() from your MapView.
 
  --
  Mark Murphy (a Commons Guy)
  http://commonsware.com | http://github.com/commonsguy
  http://commonsware.com/blog | http://twitter.com/commonsguy
 
  Android 2.2 Programming 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
 
 
  --
 
   A N K ! T..
 
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en



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

 Android 2.2 Programming 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




-- 

 A N K ! T..

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

[android-developers] Do you spend any time sending DMCA notices

2010-10-13 Thread JonFHancock
Just curiosity mostly.  I make an effort send DMCA notices to file
sharing sites whenever I notice my app being distributed.  I'm
wondering if you spend time on it, or leave the pirates to their
plunder?

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

2010-10-13 Thread ko5tik
Where ist he located physically?  It may be criminal offence in his
home jurisdiction,
and surely a case for lawsuit.  Maybe he is accessible this 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] Routing audio to bluetooth earpiece...again.

2010-10-13 Thread Nolan Darilek
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Didn't get an answer to my last question, so perhaps I should just ask
it differently.

I'm trying to route preferably all audio but if that isn't possible only
TTS from my app through a bluetooth SCO earpiece. I'm aware that the
quality will be low but don't care in this instance.

I've dug around and have found the intents that are triggered when a
bluetooth headset changes state. I can't, however, ever get my app's
audio playing through the earpiece. I don't know what I'm doing here,
and am just trying a bunch of things that work. Likely, this solution
isn't complete, and I'm sure it needs to handle SCO connection failure,
but for the moment I'm just trying to get something working.

I have the following Scala code running when the earpiece
disconnects/reconnects. There are various niceties that aren't stock
Android, but hopefully it's plain what I'm doing.

  if(on) {
actor {
  // Wait 5 seconds in the background to see if an A2DP headset
connects first.
  Thread.sleep(5000)
  if(!audioManager.isBluetoothA2dpOn) {
TTS.stream = AudioManager.STREAM_VOICE_CALL
audioManager.setMode(AudioManager.MODE_IN_CALL) // Needed?
audioManager.setBluetoothScoOn(true) // How about this?
audioManager.startBluetoothSco() // And this? Do I need both
on and start?
  }
}
  } else if(!on) {
TTS.stream = AudioManager.STREAM_MUSIC
audioManager.setBluetoothScoOn(false)
audioManager.stopBluetoothSco()
audioManager.setMode(AudioManager.MODE_NORMAL)
  }

The one possibility I thought of when I asked my last question was that
perhaps TTS audio is stereo and SCO specifically requires a mono stream,
which is why I asked about changing the stream format, but maybe someone
else has solved this problem and can point me in the right direction.
Clearly someone has, as there's a paid app on the market that does this,
but I'd very much like to fold this particular feature into my own app.
Android a11y is already a mess of first install a screen reader, next
install the settings app, then install one or more additional
AccessibilityServices... If I can avoid adding yet another app to my
own experience, which I've thus far kept consolidated to just a single
install, then that'd rock.

I'm really confused about the various SCO/A2DP methods in AudioManager.
What's the difference between setting SCO on and starting a connection?
Does the latter imply the former? The docs on this might need some work. :)

Thanks.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAky1UkkACgkQIaMjFWMehWIwtACdH8UwoYqpZ/NQhNwyjmU0tFoI
p2sAn1U4Uu1xE+os30q38nqEA0+Tp7/d
=Dvzi
-END PGP SIGNATURE-

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

2010-10-13 Thread Doug
On Oct 12, 6:53 am, Lance Nanek lna...@gmail.com wrote:
 There are many game developers who would prefer to have enhanced
 subscriber experiences or purchasable digital goods options built-in
 to their free apps instead of as paid apps. These ways of making money
 are huge hits in the industry. I'm amazed Android has such poor
 support for them. No wonder a recent presentation I saw someone from
 Flurry give showed so many more developers writing for iOS than
 Android.

And how does Flurry know what ALL developers are doing, given that
they can only show stats for the apps using service?  And how does
that play into the fact that Android is growing faster than iOS?

The Paypal X SDK doesn't seem to be limited if you want to distribute
your app through another means, such as SlideME.  If you're not
distributing through the Android Market, I can't imagine that you'd be
constrained by its limitations.  You could even develop a free app on
Android Market without the ability to do in-app purchasing, and then,
if they want to buy something, redirect users to an alternative apk
download from anywhere else that isn't limited by the market.

If you don't like the market, then don't use it, or look for
alternatives.  But the market today, by far, gets more eyeballs than
other distributors, that I can assure you.

Doug

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


[android-developers] Re: getdeviceid() causing invocation target exception

2010-10-13 Thread Bret Foreman
Sounds like you might be missing a permission. Check the logcat for a
message to that effect and update your manifest.

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

2010-10-13 Thread Dianne Hackborn
Note that code is very broken -- it is putting a class in the android
namespace, which it is not allowed to do.  PLEASE change this to a valid
namespace before using it.  You are likely to break shortly if you don't.
 Thanks.

On Tue, Oct 12, 2010 at 10:56 PM, mr.winky mr0wi...@gmail.com wrote:

 I've been using the GLWallpaperService as posted by Robert Green
 (http://www.rbgrn.net/content/354-glsurfaceview-adapted-3d-live-
 wallpapers), which has worked so far for the live wallpapers but I'm
 hitting a wall when it comes to performance. The GL code is executing
 at the expected speed when swapping (about 14ms after the swap
 occurs), but there seems to be an extreme overhead with the wallpaper
 code of 33ms.

 For example, if I was to implement a basic live wallpaper that only
 called gl.glClearColor and nothing else, the maximum framerate I can
 achieve is 30fps (33ms), which is far lower than it should be. Now the
 phone refresh rate is 16ms, from what I have read, so I could
 understand hitting a wall at 60 fps.

 The question is if there is an alternative way out there? I tried
 naively using the GLSurfaceView with no luck and am looking for
 suggestions from those who may have encountered this issue or know of
 a solution. I have been googling but all posts send me back to the
 above site from Robert Green as the only way to do this, and I have
 had no luck finding a live wallpaper sample from the SDK that uses
 OpenGL while they state that you have access to OpenGL from here:

 http://developer.android.com/resources/articles/live-wallpapers.html

 I tried searching for the code for the bundled live wallpapers with no
 luck, if anyone could throw me a link to one of the wallpapers that
 uses OpenGL that would more than enough for me to figure it out (if a
 different method is used ;)).

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

Re: [android-developers] Re: Proxy related code changes needed in Apps

2010-10-13 Thread Nitin Mahajan
HI!

On Thu, Sep 30, 2010 at 1:56 AM, Prajakta Shitole prajakt...@gmail.comwrote:

 Hi,
 Thanks for your reply. I am using HttpURLConnection to access data from
 servers. Will look into the details that you have mentioned below.



You could find out, how the Proxy Authentication has to be set in an Android
device?

regards
-Nitin

 Thanks,
 Prajakta


 On Wed, Sep 29, 2010 at 1:11 PM, ADRA dche...@gmail.com wrote:

 I'm doing HTTPClient (Through the API's) on a carrier proxy just fine
 without needing to fiddle with anything. Are you attempting to do
 HTTPClient or socket programming or what? My carrier doesn't use
 authentication, so maybe its something to do with authenticated
 proxies. *Shrugs*

 Just briefly reading over the socket implementation, it has a
 workaround to enable explicit proxy access.

   public Socket (Proxy proxy)
   Since: API Level 1
   Creates a new unconnected socket using the given proxy type. When a
 SocketImplFactory is defined it creates the internal socket
 implementation, otherwise the default socket implementation will be
 used for this socket.

   Example that will create a socket connection through a SOCKS proxy
 server:
   Socket sock = new Socket(new Proxy(Proxy.Type.SOCKS, new
 InetSocketAddress(test.domain.org, 2130)));
   Parameters
   proxythe specified proxy for this socket.

 The proxyselector class is designed to allow for the system to
 enumerate the available proxies that the system is using, and as long
 as android is passing the APN proxy settings down to your application,
 you should just implement a proxyselector / socket shim if you needed
 to do proxy passthrough. If I recall in java, one such proxy instance
 was DIRECT which was always available as a 'no proxy' option.

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


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


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

[android-developers] Re: Differences between Android Button and JAVA buttons

2010-10-13 Thread Zsolt Vasvari
My guess is that you would have to handle your own touch events and
only pass it down to the subclass if your hit region was touched.

On Oct 13, 12:28 pm, Kumar Bibek coomar@gmail.com wrote:
 You can have that, but again, the the effective view area is still a
 rectangle, isn't it?





 On Wed, Oct 13, 2010 at 9:44 AM, DanH danhi...@ieee.org wrote:
  I mean, eg, provide an image of a circle, and have only the area
  inside the circle (where alpha is non-zero) be sensitive.

  On Oct 12, 10:58 pm, Kumar Bibek coomar@gmail.com wrote:
   Ummm, What do you mean by modify that default? All the views take of a
   rectangular estate area. This is generally the way how widgets are laid
  out
   virtually everywhere. Even while you are designing HTML pages, everything
  is
   a rectangle.

   The boundaries of a view is always a rectangle.

   On Wed, Oct 13, 2010 at 9:22 AM, DanH danhi...@ieee.org wrote:
I know that's the default.  But other platforms have a way to modify
that default.

On Oct 12, 10:41 pm, Kumar Bibek coomar@gmail.com wrote:
 By default it is a rectangle. All the views are rectangles as well.
  As
Mark
 said, they look different because of the backgrounds.

 On Wed, Oct 13, 2010 at 9:02 AM, DanH danhi...@ieee.org wrote:
  That is an interesting question:  I haven't run across any way in
  Android to control the shape of the sensitive area of a button.  Is
  it
  always a rectangle, or can it be made circular, triangular, etc, by
  making it conform to the shape of an image?

  On Oct 11, 6:03 pm, Mark Murphy mmur...@commonsware.com wrote:
   A button is shaped like a button courtesy of its background. In
  the
   case of a button, that is a StateListDrawable consisting of a
  series
   of nine-patch (stretchable) PNG files representing different
  states
   (normal, pressed, focused, disabled, etc.).

   On Mon, Oct 11, 2010 at 7:01 PM, Dancing Fingers 
  batym...@gmail.com

  wrote:
Hi guys,
I'm working on my own Hexagonal button which works in JAVA.  I
  was
studying Android Button.java:

@RemoteView
public class Button extends TextView {
   public Button(Context context) {
       this(context, null);
   }

   public Button(Context context, AttributeSet attrs) {
       this(context, attrs,
com.android.internal.R.attr.buttonStyle);
   }

   public Button(Context context, AttributeSet attrs, int
  defStyle)
{
       super(context, attrs, defStyle);
   }
}

I don't understand where it gets it shape.  If you're adding an
anClickListener of does button know the geometry that's within
  it's
boundries?

Any enlightenment would be appreciated.

--
You received this message because you are subscribed to the
  Google
Groups Android Developers group.
To post to this group, send email to
  android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubs­cr...@googlegroups.com
  android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bu­nsubscr...@googlegroups.com

android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bu­nsubscr...@googlegroups.com
  android-developers%252bunsubscr...@googlegroups.comandroid-developers%252­52bunsubscr...@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/commonsguyhttp://github.com/commonsguyhttp://commonsware.com/blog%7Chttp://twit...
  http://github.com/commonsguyhttp://commonsware.com/blog%7Chttp://twit...

 http://github.com/commonsguyhttp://commonsware.com/blog%7Chttp://twit...

   Android Training...At Your Office:
 http://commonsware.com/training

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubs­cr...@googlegroups.com
  android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bu­nsubscr...@googlegroups.com

android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bu­nsubscr...@googlegroups.com
  android-developers%252bunsubscr...@googlegroups.comandroid-developers%252­52bunsubscr...@googlegroups.com

  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

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

--
You received this 

[android-developers] Re: Google TV

2010-10-13 Thread Howard M. Harte


On Oct 12, 1:34 pm, Shane Isbell shane.isb...@gmail.com wrote:
 Does anyone know the release date? I could have sworn that Amazon said it
 was October 15th, but now I just see on my order - We need a little more
 time to provide you with a good estimate.

This is what I received from Logitech yesterday about my preorder:
Thank you for your recent pre-order from Logitech. This e-mail is to
inform you that the product availability date has been delayed.
Your pre-ordered product is now scheduled to be available on the date
listed below.
10/21/10 00:00:00

-Howard


 On Tue, Oct 12, 2010 at 1:10 PM, Shane Isbell shane.isb...@gmail.comwrote:



  The announcements I read was an SDK isn't being released yet for the Google
  TV (I also have one on order). Google is releasing the Android Market on the
  revue sometime in QI of next year, so it's got to happen by then if they
  want Google TV specific apps. My hope is someone will hack the system well
  before then so I can play freely with it.

  I'm pretty sure with the Sony Google TV such an SDK will never be available
  (but hey even Verizon changed its strips), but don't hold your breathe
  there.

  Shane

  On Tue, Oct 12, 2010 at 12:51 PM, Kumar Bibek coomar@gmail.comwrote:

  Well, I guess, it might need specific drivers for the set top box or
  TV, but we can never be sure until there's an official announcement.
  Everybody is waiting for that, me too :)

  On Oct 13, 12:42 am, Spiral123 cumis...@gmail.com wrote:
   I'm thinking of getting a Google TV box when it comes out in a few
   weeks.

   I know that there is going to be an SDK released for the box at some
   point.  Has anyone here heard any news about if we will be able to
   connect to the Logitech device via USB in order to test our
   applications, or if will there be some sort of separate Google
   hardware device or an emulator 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%2bunsubs­cr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en- Hide quoted text -

 - Show quoted text -

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


[android-developers] Re: Write data into SDCard while mounted

2010-10-13 Thread FrankG
Hi Perumal

more and more phone provide different usb modes .. and some
manufacturer make
an implicit usb mode switch, means they load at first a driver and
software ( from a cdrom image
on the phone) and then change to a complex usb mode. You will also
find
phones which make an automount of the sdcard during the mode switch,
but you cannot rely
on it. I think too you should better use wifi for your ideas, as the
different phones can behave very different
in relation to usb.

Good luck  !

  Frank




On 13 Okt., 03:06, perumal316 perumal...@gmail.com wrote:
 Hi Mark,

 Yes, wifi and Bluetooth can be used. But I am wondering if it is
 possible through USB as the phone will be connected to the PC. I
 method I thought is by writing to sdcard and the desktop application
 can copy from it. But it is not possible to write to sdcard while it
 is mounted. Is it possible to mount programmatically?

 Thanks and Regards,
 Perumal

 On Oct 13, 8:58 am, Mark Murphy mmur...@commonsware.com wrote:



  On Tue, Oct 12, 2010 at 8:56 PM, perumal316 perumal...@gmail.com wrote:
   Thanks for the reply. So is there any other method to pass some data
   into the Android phone from a desktop application which will be used
   by an Android application and at the same time copy some data from the
   phone into the desktop application?

  WiFi. Possibly Bluetooth.

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

  Android 2.2 Programming Books:http://commonsware.com/books- 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] aceess resources of computer through android application

2010-10-13 Thread pramod.deore
Hello everybody I want to acess computer resources through android
appllication. is it possible? suppose I want to create one file on
hard disk through android application. if this is possible then tell
me how to do this?

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] Fwd: how to make center image bigger than rest images , in gallery

2010-10-13 Thread Abdul Mateen
inherrit Gallery class , override getChildStaticTransformation , use
android.graphics.camera to scale it.

Thanks,
Abdul Mateen.
On Tue, Oct 12, 2010 at 11:22 PM, Babita kumari babita.permeat...@gmail.com
 wrote:



 -- Forwarded message --
 From: Babita kumari babita.permeat...@gmail.com
 Date: Tue, Oct 12, 2010 at 10:55 AM
 Subject: how to make center image bigger than rest images , in gallery
 To: android-developers@googlegroups.com


 I am designing a screen , in which I am showing a gallery along with other
 UI components . The selected item of the gallery comes in its center . I
 want to make the selected item size somewhat bigger than the rest items of
 gallery . How I can do that  .

 Please reply . Its  very urgent.


 thanks
 Babita

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




-- 
Regards,
Abdul Mateen,
Software Engineer at Rounded Labs Ltd.
Linux Administrator at Addictive Mobility Inc
Mobile : +92-333-3265875.

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

2010-10-13 Thread Kostya Vasilyev
There are phones that provide USB based networking in their firmware: my
Motorola Milestone does this, maybe some of the newer HTC phones as well
(although that one is just a guess, based on them having USB tethering).

The phone, then, looks like a USB network adapter to the computer, with its
own address.

The downside is that it's only available on certain phones, and is affected
by the USB mode that can be changed by the user.

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

13.10.2010 11:16 пользователь FrankG frankgru...@googlemail.com написал:

Hi Perumal

more and more phone provide different usb modes .. and some
manufacturer make
an implicit usb mode switch, means they load at first a driver and
software ( from a cdrom image
on the phone) and then change to a complex usb mode. You will also
find
phones which make an automount of the sdcard during the mode switch,
but you cannot rely
on it. I think too you should better use wifi for your ideas, as the
different phones can behave very different
in relation to usb.

Good luck  !

 Frank





On 13 Okt., 03:06, perumal316 perumal...@gmail.com wrote:
 Hi Mark,

 Yes, wifi and Bluetoo...
  Android 2.2 Programming Books:http://commonsware.com/books- Zitierten
Text ausblenden -

 - Zitierten Text anzeigen -


-- 
You received this message because you are subscribed to the Google
Groups Android Developers ...

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

2010-10-13 Thread kevens hao
When invoke super.onRestoreInstanceState, occur exception.
[Code]
@Override
protected void onRestoreInstanceState(Bundle savedInstanceState) {
Log.d(LOGTAG, + onRestoreInstanceState());

mFrequency = savedInstanceState.getInt(Constants.CURRENT_FRE);
mCurrentFre = savedInstanceState.getInt(Constants.CURRENT_FRE);
mStationName = 
savedInstanceState.getString(Constants.STATION_NAME);

mStationIndex =
savedInstanceState.getInt(Constants.STATIONPLAY_INDEX,
-1);
mStarCheckBox.setText(mStationName);

boolean isStaron = savedInstanceState
.getBoolean(Constants.CURRENT_STAR);
mStarCheckBox.setChecked(isStaron);
if (isStaron) {

mStarCheckBox.setButtonDrawable(R.drawable.starcheckedbtn);
}
else {
mStarCheckBox.setButtonDrawable(R.drawable.starbtn);
}

boolean isRecording = savedInstanceState
.getBoolean(Constants.CURRENT_RECORDING);
// if (isRecording) {
// startRecord();
// }
mOnOrOff = savedInstanceState.getBoolean(Constants.ONOFF_FLAG);
mHeadSet = 
savedInstanceState.getBoolean(Constants.ONOFF_HeadSet);

if (mOnOrOff) {
turnON();
// fmOn();
}

mIsBack = true;

super.onRestoreInstanceState(savedInstanceState);

Log.d(LOGTAG, - onRestoreInstanceState());
}

[Log]
01-01 08:53:48.560 E/AndroidRuntime( 5107): FATAL EXCEPTION: main
01-01 08:53:48.560 E/AndroidRuntime( 5107):
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.spreadcomm.fmradio/com.spreadcomm.fmradio.FMRadio}:
java.lang.RuntimeException: Parcel android.os.par...@32aed580:
Unmarshalling unknown type code 51 at offset 492
01-01 08:53:48.560 E/AndroidRuntime( 5107): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2663)
01-01 08:53:48.560 E/AndroidRuntime( 5107): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2679)
01-01 08:53:48.560 E/AndroidRuntime( 5107): at
android.app.ActivityThread.access$2300(ActivityThread.java:125)
01-01 08:53:48.560 E/AndroidRuntime( 5107): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
01-01 08:53:48.560 E/AndroidRuntime( 5107): at
android.os.Handler.dispatchMessage(Handler.java:99)
01-01 08:53:48.560 E/AndroidRuntime( 5107): at
android.os.Looper.loop(Looper.java:123)
01-01 08:53:48.560 E/AndroidRuntime( 5107): at
android.app.ActivityThread.main(ActivityThread.java:4627)
01-01 08:53:48.560 E/AndroidRuntime( 5107): at
java.lang.reflect.Method.invokeNative(Native Method)
01-01 08:53:48.560 E/AndroidRuntime( 5107): at
java.lang.reflect.Method.invoke(Method.java:521)
01-01 08:53:48.560 E/AndroidRuntime( 5107): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:930)
01-01 08:53:48.560 E/AndroidRuntime( 5107): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:688)
01-01 08:53:48.560 E/AndroidRuntime( 5107): at
dalvik.system.NativeStart.main(Native Method)
01-01 08:53:48.560 E/AndroidRuntime( 5107): Caused by:
java.lang.RuntimeException: Parcel android.os.par...@32aed580:
Unmarshalling unknown type code 51 at offset 492
01-01 08:53:48.560 E/AndroidRuntime( 5107): at
android.os.Parcel.readValue(Parcel.java:1838)
01-01 08:53:48.560 E/AndroidRuntime( 5107): at
android.os.Parcel.readSparseArrayInternal(Parcel.java:2037)
01-01 08:53:48.560 E/AndroidRuntime( 5107): at
android.os.Parcel.readSparseArray(Parcel.java:1493)
01-01 08:53:48.560 E/AndroidRuntime( 5107): at
android.os.Parcel.readValue(Parcel.java:1828)
01-01 08:53:48.560 E/AndroidRuntime( 5107): at
android.os.Parcel.readMapInternal(Parcel.java:2008)
01-01 08:53:48.560 E/AndroidRuntime( 5107): at
android.os.Bundle.unparcel(Bundle.java:208)
01-01 08:53:48.560 E/AndroidRuntime( 5107): at
android.os.Bundle.getSparseParcelableArray(Bundle.java:1167)
01-01 08:53:48.560 E/AndroidRuntime( 5107): at
com.android.internal.policy.impl.PhoneWindow.restoreHierarchyState(PhoneWindow.java:
1496)
01-01 08:53:48.560 E/AndroidRuntime( 5107): at
android.app.Activity.onRestoreInstanceState(Activity.java:843)
01-01 08:53:48.560 E/AndroidRuntime( 5107): at
com.spreadcomm.fmradio.FMRadio.onRestoreInstanceState(FMRadio.java:
867)
01-01 08:53:48.560 E/AndroidRuntime( 5107): at
android.app.Activity.performRestoreInstanceState(Activity.java:815)
01-01 08:53:48.560 E/AndroidRuntime( 5107): at
android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java:
1096)
01-01 08:53:48.560 E/AndroidRuntime( 5107): at

[android-developers] app not yet shipped? help

2010-10-13 Thread A-Droid
Hi,

I've uploaded my first paid app to the market.
Google checkout says not yet shipped on yhe order detail pages.
Also, there is a send shipment notice button and a chargeable
label on each order's details page.

I'm confused. Do I have to do anything? Isn't it automatic?

Thanks for any help.
A-Droid

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

2010-10-13 Thread pramod.deore
I think it is stupid question still to make confirmation I am asking
this question  - Can we run android application on directly computer
without using emulator?

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


[android-developers] Re: app not yet shipped? help

2010-10-13 Thread Sudsak
No, it's automatic, you don't have to do anything.

On Oct 13, 3:55 am, A-Droid st...@netplusz.hu wrote:
 Hi,

 I've uploaded my first paid app to the market.
 Google checkout says not yet shipped on yhe order detail pages.
 Also, there is a send shipment notice button and a chargeable
 label on each order's details page.

 I'm confused. Do I have to do anything? Isn't it automatic?

 Thanks for any help.
 A-Droid

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

2010-10-13 Thread { Devdroid }
On 13 October 2010 09:59, pramod.deore deore.pramo...@gmail.com wrote:
 I think it is stupid question still to make confirmation I am asking
 this question  - Can we run android application on directly computer
 without using emulator?

If by computer you mean your desktop say Windows/Linux box then No.

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

2010-10-13 Thread { Devdroid }
On 13 October 2010 01:57, William Ferguson
william.ferguson...@gmail.com wrote:


 IMEI changes as they move device

No, IMEI does not change unless you manually reflash firware with
different IMEI.
http://en.wikipedia.org/wiki/International_Mobile_Equipment_Identity

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

2010-10-13 Thread pramod.deore
Actually I want to develop an application for some board (just like
android tablet) but board is not still ready and I want to test the
application. How should I test it? Only emulator is choice or there is
something else is also?

On Oct 13, 1:14 pm, { Devdroid } webnet.andr...@gmail.com wrote:
 On 13 October 2010 09:59, pramod.deore deore.pramo...@gmail.com wrote:

  I think it is stupid question still to make confirmation I am asking
  this question  - Can we run android application on directly computer
  without using emulator?

 If by computer you mean your desktop say Windows/Linux box then No.

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

2010-10-13 Thread Gibson
You need this  android.permission.READ_PHONE_STATE

public String getDeviceId ()
Since: API Level 1

Returns the unique device ID, for example, the IMEI for GSM and the
MEID for CDMA phones. Return null if device ID is not available.

Requires Permission: READ_PHONE_STATE


On 10月13日, 下午1时22分, A N K ! T ankit.awasth...@gmail.com wrote:
 hey i am trying to get imei no of the phone..
 for that i am using
 telephonyManagerObject.getDeviceID()
 but it is causing invocationTargetExceptioni am using it in my
 MapActivity class
 what is wrong with it
 --

  A N K ! T..

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


Re: [android-developers] Re: Stolen app on market

2010-10-13 Thread Edmund Higgins
I'm not sure why your upset. Isn't the original owner of the arcade game 
snake have more reason to be angry than you? I'm just saying.

On Tue, Oct 12, 2010 at 11:19 PM, ko5tik kpriblo...@yahoo.com wrote:

 Where ist he located physically?  It may be criminal offence in his
 home jurisdiction,
 and surely a case for lawsuit.  Maybe he is accessible this 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.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] Hero performance reported as slow

2010-10-13 Thread Shawn Brown
Hi,

We released an app recently and Hero users report it as lagging in performance.

We developed on the G1 and G2 and our tests show only about 15% of cpu is used.

We have a SurfaceHolder thread that redraws once every 100ms and
mostly sleeps in between draws.
We have a thread reading incoming BT (well nothing to read actually,
the connected device isn't sending much).

Tests on the G2 show that sleeping the BT doesn't change performance
and I've a user (hopefully) who will test the HERO with a BT thread
that sleeps for intervals.

Is there anything that pops into your mind about what may be different
about the HERO.  All other users give us 5 starts but the HERO folks
say it's un-usably slow.

Thanks,

Shawn

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


[android-developers] Re: using long touch to set a seekbar

2010-10-13 Thread bagelboy
@Kumar,

I implemented that and it works like a charm, thanks for the
suggestion!
-BB

On Oct 12, 5:23 pm, Kumar Bibek coomar@gmail.com wrote:
 ACTION_CANCEL might help you to exit your custom event.



 On Tue, Oct 12, 2010 at 9:51 PM, bagelboy greg.do...@gmail.com wrote:
  OK, I solved this myself by attaching an onTouchListener to each
  button and listening for ACTION_DOWN and ACTION_UP events. the only
  problem is that if a user moves their finger off the button while
  holding it the ACTION_UP event is lost. This doesn't seem to be a
  major problem as all they have to do is tap the button again to stop,
  but if it gives any trouble I'll simply have to add a generic
  ACTION_UP listener.

  Hope this is useful to someone,
  -BB

  On Oct 12, 11:25 am, bagelboy greg.do...@gmail.com wrote:
   I have an app that uses seekbars with buttons on either side for fine
   adjustments. Right now I use simple onclick events for the buttons,
   every click changes the seekbar 1 unit.

   What I would like to do is use a long press to quickly scroll, so if a
   user holds down a button for say 800 millis it will start adding ten
   units per second.

   What I'm thinking my approach should be is to use onKeyDown and
   onKeyUp events, but is there a better way? OnLongClickListener won't
   work as far as I can tell because it doesn't detect key-up.

   Is my approach correct?

   Thanks!
   -BB

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

 --
 Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.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] error - ANR in com.sent.mail (com.sent.mail/.SentMail) with keyDispatchingTimedOut

2010-10-13 Thread RKJ (Android developer)
Hey,
I'm trying to send a Email, thrugh the GMailSende, but I'm getting
error like...
Can any one describe me what is ANR, how to read the /data/anr/
trace.txt file.


10-13 13:56:19.624: ERROR/ActivityManager(59): ANR in com.sent.mail
(com.sent.mail/.SentMail)
10-13 13:56:19.624: ERROR/ActivityManager(59): Reason:
keyDispatchingTimedOut
10-13 13:56:19.624: ERROR/ActivityManager(59): Load: 0.37 / 0.15 /
0.14
10-13 13:56:19.624: ERROR/ActivityManager(59): CPU usage from 214673ms
to 34ms ago:
10-13 13:56:19.624: ERROR/ActivityManager(59):   system_server: 2% =
1% user + 0% kernel / faults: 2235 minor 32 major
10-13 13:56:19.624: ERROR/ActivityManager(59):   logcat: 0% = 0% user
+ 0% kernel / faults: 176 minor
10-13 13:56:19.624: ERROR/ActivityManager(59):   ndroid.launcher: 0% =
0% user + 0% kernel / faults: 913 minor 2 major
10-13 13:56:19.624: ERROR/ActivityManager(59):   adbd: 0% = 0% user +
0% kernel / faults: 23 minor
10-13 13:56:19.624: ERROR/ActivityManager(59):   m.android.phone: 0% =
0% user + 0% kernel / faults: 270 minor
10-13 13:56:19.624: ERROR/ActivityManager(59):   events/0: 0% = 0%
user + 0% kernel
10-13 13:56:19.624: ERROR/ActivityManager(59):   ronsoft.openwnn: 0% =
0% user + 0% kernel / faults: 252 minor
10-13 13:56:19.624: ERROR/ActivityManager(59):   .quicksearchbox: 0% =
0% user + 0% kernel / faults: 199 minor
10-13 13:56:19.624: ERROR/ActivityManager(59):   rild: 0% = 0% user +
0% kernel / faults: 29 minor
10-13 13:56:19.624: ERROR/ActivityManager(59):   zygote: 0% = 0% user
+ 0% kernel / faults: 123 minor
10-13 13:56:19.624: ERROR/ActivityManager(59):   id.defcontainer: 0% =
0% user + 0% kernel / faults: 125 minor
10-13 13:56:19.624: ERROR/ActivityManager(59):   android.protips: 0% =
0% user + 0% kernel / faults: 123 minor
10-13 13:56:19.624: ERROR/ActivityManager(59):   m.android.email: 0% =
0% user + 0% kernel / faults: 170 minor
10-13 13:56:19.624: ERROR/ActivityManager(59):   com.sybase.mo: 0% =
0% user + 0% kernel / faults: 173 minor
10-13 13:56:19.624: ERROR/ActivityManager(59):   sh: 0% = 0% user + 0%
kernel / faults: 117 minor
10-13 13:56:19.624: ERROR/ActivityManager(59):   zygote: 0% = 0% user
+ 0% kernel / faults: 169 minor
10-13 13:56:19.624: ERROR/ActivityManager(59):   com.svox.pico: 0% =
0% user + 0% kernel / faults: 123 minor
10-13 13:56:19.624: ERROR/ActivityManager(59):   d.process.acore: 0% =
0% user + 0% kernel / faults: 127 minor
10-13 13:56:19.624: ERROR/ActivityManager(59):   android.browser: 0% =
0% user + 0% kernel / faults: 174 minor
10-13 13:56:19.624: ERROR/ActivityManager(59):  +com.sent.mail: 0% =
0% user + 0% kernel
10-13 13:56:19.624: ERROR/ActivityManager(59):  +com.sent.mail: 0% =
0% user + 0% kernel
10-13 13:56:19.624: ERROR/ActivityManager(59): TOTAL: 4% = 2% user +
1% kernel + 0% iowait + 0% irq + 0% softirq
10-13 13:56:19.764: DEBUG/dalvikvm(59): GC_FOR_MALLOC freed 3497
objects / 733040 bytes in 107ms
10-13 13:56:19.844: DEBUG/dalvikvm(59): GC_FOR_MALLOC freed 335
objects / 345000 bytes in 84ms

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

2010-10-13 Thread Hatch
Hi all.

I have a fixed toolbar on the bottom of my screen and would like it to
remain static while flipping through views.

Is that possible ?

Currently my flipper will change the whole screen including the
toolbar (and a custom made view that displays the currently active
view, those small circles with the active one slightly larger size and
brighter color ).

Regards,

Tomislav

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

2010-10-13 Thread Kumar Bibek
Don't put your toolbar inside your flipper then So that it won't change
when the flipper changes the views.

On Wed, Oct 13, 2010 at 2:56 PM, Hatch tomislav.hecimo...@gmail.com wrote:

 Hi all.

 I have a fixed toolbar on the bottom of my screen and would like it to
 remain static while flipping through views.

 Is that possible ?

 Currently my flipper will change the whole screen including the
 toolbar (and a custom made view that displays the currently active
 view, those small circles with the active one slightly larger size and
 brighter color ).

 Regards,

 Tomislav

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




-- 
Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.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] how to get current location

2010-10-13 Thread A N K ! T
am trying to develop an app that show current location.

but i am having one prob. my application is showing location on location
change occur.*
but how to show location first time. *
i want to take location manually..not by onlocationchange Method in location
manager
wot to do?

-- 

 A N K ! T..

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

Re: [android-developers] Re: Stack trace Exception

2010-10-13 Thread Desu Vinod Kumar
http://android-er.blogspot.com/2009/08/how-to-create-android-virtual-device.html

CHECK THIS LIKE FROM BASIC RUN OF EMULATOR

On Wed, Jul 28, 2010 at 9:53 PM, rashmi rashmi2...@gmail.com wrote:

 Please help me out  i really need to develop d project in android

 On Jul 27, 6:14 pm, rashmi rashmi2...@gmail.com wrote:
  Hello frenz,
 i have written an application in eclipse to run on android emulator
  but the application is not deploying  on emulator and it says Failed
  to load properties file for project helloworld.
  in the error report it says An exception for stack trace is not
  available.
  I am not able to understand what to do as i am new to android.
  Please help me  to find d sol for this problem.

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




-- 
Regards
---
D Vinod Kumar
R  D Engineer - Android Platform
Mobile : 09916009493

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

2010-10-13 Thread Robert Green
It was originally a submission for android master is why it is in that
namespace :)

Yes, if you use it (and be aware that it does NOT reset the gl context
on orientation changes so do not reload vram content like normal or at
least make sure to delete first) you will definitely want to put it in
your own package/namespace.

FYI - it doesn't delete the context because for some unknown reason
many phones like to hard freeze right in eglMakeDisplayCurrent with
the SharedBuffer timed out problem.  Leaving the context in tact
worked around it for some phones but there are other issues on other
phones as well.

On Oct 13, 1:43 am, Dianne Hackborn hack...@android.com wrote:
 Note that code is very broken -- it is putting a class in the android
 namespace, which it is not allowed to do.  PLEASE change this to a valid
 namespace before using it.  You are likely to break shortly if you don't.
  Thanks.









 On Tue, Oct 12, 2010 at 10:56 PM, mr.winky mr0wi...@gmail.com wrote:
  I've been using the GLWallpaperService as posted by Robert Green
  (http://www.rbgrn.net/content/354-glsurfaceview-adapted-3d-live-
  wallpapers), which has worked so far for the live wallpapers but I'm
  hitting a wall when it comes to performance. The GL code is executing
  at the expected speed when swapping (about 14ms after the swap
  occurs), but there seems to be an extreme overhead with the wallpaper
  code of 33ms.

  For example, if I was to implement a basic live wallpaper that only
  called gl.glClearColor and nothing else, the maximum framerate I can
  achieve is 30fps (33ms), which is far lower than it should be. Now the
  phone refresh rate is 16ms, from what I have read, so I could
  understand hitting a wall at 60 fps.

  The question is if there is an alternative way out there? I tried
  naively using the GLSurfaceView with no luck and am looking for
  suggestions from those who may have encountered this issue or know of
  a solution. I have been googling but all posts send me back to the
  above site from Robert Green as the only way to do this, and I have
  had no luck finding a live wallpaper sample from the SDK that uses
  OpenGL while they state that you have access to OpenGL from here:

 http://developer.android.com/resources/articles/live-wallpapers.html

  I tried searching for the code for the bundled live wallpapers with no
  luck, if anyone could throw me a link to one of the wallpapers that
  uses OpenGL that would more than enough for me to figure it out (if a
  different method is used ;)).

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  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] Fwd: how to make center image bigger than rest images , in gallery

2010-10-13 Thread Babita kumari
Thanks Abdul , But I want to set custom border for all images . And the
item's border should be changed to different one when selected

Thanks
Babita



On Wed, Oct 13, 2010 at 12:54 PM, Abdul Mateen abmat...@gmail.com wrote:


 inherrit Gallery class , override getChildStaticTransformation , use
 android.graphics.camera to scale it.

 Thanks,
 Abdul Mateen.
 On Tue, Oct 12, 2010 at 11:22 PM, Babita kumari 
 babita.permeat...@gmail.com wrote:



 -- Forwarded message --
 From: Babita kumari babita.permeat...@gmail.com
 Date: Tue, Oct 12, 2010 at 10:55 AM
 Subject: how to make center image bigger than rest images , in gallery
 To: android-developers@googlegroups.com


 I am designing a screen , in which I am showing a gallery along with other
 UI components . The selected item of the gallery comes in its center . I
 want to make the selected item size somewhat bigger than the rest items of
 gallery . How I can do that  .

 Please reply . Its  very urgent.


 thanks
 Babita

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




 --
 Regards,
 Abdul Mateen,
 Software Engineer at Rounded Labs Ltd.
 Linux Administrator at Addictive Mobility Inc
 Mobile : +92-333-3265875.

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

2010-10-13 Thread Zarah Dominguez
Hi guys!

Just got back to this thread.

Hi String, so you ended up updating with a fresh install? I would hate
to do that on my other workstation.  Seems like too much work for an
update, and so my laptop is stuck with ADT 0.9.7.


Thanks,
Zarah.



On Oct 7, 4:22 am, String sterling.ud...@googlemail.com wrote:
 On Oct 6, 6:53 pm, Xavier Ducrohet x...@android.com wrote:

  I'm not sure why Eclipse wouldn't be able to change this file. Is it
  on a source control system that is not integrated in Eclipse.

 No, this is plain-vanilla Eclipse 3.5 SR2, freshly installed. The only
 plugin is ADT 0.9.9. No other dev tools involved.

 The pattern that seems to be emerging is that once I get rid of the
 errors, it's OK until I need to restart Eclipse. Then SOME of my
 library-using projects are FUBAR as described in my earlier post.
 Interestingly, it's not ALL the projects which use libraries, and I
 can't work out any difference between those that work and those that
 don't.

 Any further ideas? I second authorwjf - I'm none too impressed with
 this update.

 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] CheckBox problem

2010-10-13 Thread Ahmed Shoeib
hi all,

i have custom ArrayAdapter to make listView each row contain ( image 
text  checkBox )

i made the xml file to make the standard layout for row

and make the default visibility for checkBox false

in getView function that draw the listview

get the checkBox using id and assign specific tag for it to enable me
to get it

on the onListItemClick function

i made this code :

   CheckBox check = (CheckBox)v.findViewWithTag(position);
check.setVisibility(0);

to get the current checkbox and make it visible

but when i choose specific row i found that some of the other rows
checkbox become visible
and current row checkbox not change ??

what is the problem ???
how can isolve it

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: Run application without emulator

2010-10-13 Thread { Devdroid }
On 13 October 2010 10:24, pramod.deore deore.pramo...@gmail.com wrote:
 Actually I want to develop an application for some board (just like
 android tablet) but board is not still ready and I want to test the
 application. How should I test it? Only emulator is choice or there is
 something else is also?

If it's for Android then use simulator. Not really understand what's your
problem with it (besides possible non existing hardware support)?

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

2010-10-13 Thread Mark Murphy
There is no current location most of the time. Please wait for the
first location fix to arrive to your LocationListener.

On Wed, Oct 13, 2010 at 2:15 AM, A N K ! T ankit.awasth...@gmail.com wrote:
 how to get current location first time...i can be notified when location
 change but what abt first location..
 i am using getlastKnownLocation but it is returning  nullis there any
 other method to use

-- 
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 Android Development_ Version 3.1 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] out of memory, VM won't let us allocate,.

2010-10-13 Thread n2v2rda2
below is my Bitmap-decode code
http://blogfiles.naver.net/20101013_243/n2v2rda2_1286967839304A2tK1_jpg/1_n2v2rda2.jpg

below is logcat-error
http://blogfiles.naver.net/20101013_56/n2v2rda2_1286967839856K6VDi_jpg/2_n2v2rda2.jpg

i am making live-cam-viewer
when changing cam-address from cam1 to cam4
occasionally, out of memory, VM won't let us allocate,. error is
occered

i 've read all script i can read
and did what script describe

it is hard to find solution
i am so tired ,please help me

i am waiting for your warm answer ,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: Write data into SDCard while mounted

2010-10-13 Thread Mark Murphy
2010/10/13 Kostya Vasilyev kmans...@gmail.com:
 There are phones that provide USB based networking in their firmware: my
 Motorola Milestone does this, maybe some of the newer HTC phones as well
 (although that one is just a guess, based on them having USB tethering).

 The phone, then, looks like a USB network adapter to the computer, with its
 own address.

 The downside is that it's only available on certain phones, and is affected
 by the USB mode that can be changed by the user.

Have you tried accessing that from the phone side, though? Just
because the computer sees it as an adapter with an IP address does not
necessarily mean the phone can see that same IP address.

-- 
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 Android Development_ Version 3.1 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] sqlite with ç/ñ

2010-10-13 Thread iñaki
Hi, in my db i have some rows with characters like 'Ç' or 'Ñ'.
When i query some of this fields with like expression, i don´t get rows...
But if I query without 'Ç'  I get rows...
What is the problem?
I have a table called android_metadata with Locale (en_US)...  I don´t want
to change for ES or something like that...


Regards

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

[android-developers] Re: out of memory, VM won't let us allocate,.

2010-10-13 Thread n2v2rda2
ok,i will try

On 10월13일, 오후1시31분, Kumar Bibek coomar@gmail.com wrote:
 Well, I would say, that System.gc() won't help you much. Since the purpose
 of yours is to stream an image from the internet, the best approach would
 probably be to write that stream into a file first. When that is done, you
 can create a Bitmap from this file.



 On Wed, Oct 13, 2010 at 9:32 AM, DanH danhi...@ieee.org wrote:
  I'm guessing it has to do with the bitmap size here:
   Out of memory: Heap Size=5639KB, Allocated=3134KB, Bitmap Size=18669KB

  The Android has a mysterious and troublesome bitmap caching scheme,
  and sometimes this requires the explicit issuance of System.gc
  calls, even though the Java book says that should never be necessary.
  And the programmer can exacerbate the situation by not cleaning up
  old images properly, though I'm a babe in the woods in terms of
  understanding that snake pit.

  On Oct 12, 9:58 pm, n2v2rda2 l...@unimocnc.co.kr wrote:
   below is my code to make bitmap from network-jpeg-stream whose size
   is 360*288
   i don't know how to handle it ,

  ---
           private void makeImage() {
                   try {
                           System.arraycopy(BA.toByteArray(), 0,
  temporaryBA, 0, BA.length());
                           int tempBALength = BA.length();

                           if (BA.byteAt(startJpeg) == (byte) 0xff 
  BA.byteAt(startJpeg + 1)
   == (byte) 0xD8) {
                                   if ((BA.byteAt(endJpeg - 1) == (byte)
  0xff  BA.byteAt(endJpeg)
   == (byte) 0xD9)
                                                   || (BA.byteAt(endJpeg -
  2) == (byte) 0xff  BA.byteAt(endJpeg -
   1) == (byte) 0xD9)) {

                                           BitmapFactory.Options options =
  new BitmapFactory.Options();
                                           options.inSampleSize = 2;
                                           options.inTempStorage = new
  byte[256];

                                           Bitmap orgBitmap =
  BitmapFactory.decodeByteArray(temporaryBA,
   startJpeg, endJpeg - startJpeg +1,options);
                                           Bitmap bitmap =
  Bitmap.createScaledBitmap(orgBitmap, width,
   (height / 2) , true);
                                           if (bitmap != null) {
                                                   screenshot = new
  byte[endJpeg - startJpeg +1];

  System.arraycopy(temporaryBA, startJpeg, screenshot, 0, endJpeg
   - startJpeg +1);

                                                   Message msg =
  Message.obtain(handler, 0, current_ch, 0, bitmap);
                                                   handler.sendMessage(msg);
                                           } else {
                                                   BA.clear();
                                           }
                                   }else{
                                           BA.clear();
                                   }
                           }else {
                                   BA.clear();
                           }
                           BA.clear();
                           BA.setLength(0);
                           BA.append(temporaryBA, iEndMarkIndex,
  tempBALength -
   iEndMarkIndex);
                   } catch (IllegalArgumentException e) {
                           BA.clear();
                   } catch (OutOfMemoryError om) {
                           BA.clear();
                   } catch (NullPointerException np) {
                           BA.clear();
                   } catch (IndexOutOfBoundsException io) {
                           BA.clear();
                   }
           }
   ---logcat -
   error

   10-13 11:22:03.472: ERROR/dalvikvm-heap(6060): 384000-byte external
   allocation too large for this process.
   10-13 11:22:03.472: ERROR/dalvikvm(6060): Out of memory: Heap
   Size=5639KB, Allocated=3134KB, Bitmap Size=18669KB
   10-13 11:22:03.472: ERROR/(6060): VM won't let us allocate 384000
   bytes
   10-13 11:22:03.582: INFO/DEBUG(5641): *** *** *** *** *** *** *** ***
   *** *** *** *** *** *** *** ***
   10-13 11:22:03.582: INFO/DEBUG(5641): Build fingerprint: 'skt_kr/
   htc_bravo/bravo/bravo:2.1-update1/ERE27/171460:user/release-keys'
   10-13 11:22:03.582: INFO/DEBUG(5641): pid: 6060, tid: 6081    rams
   
   10-13 11:22:03.582: INFO/DEBUG(5641): signal 11 (SIGSEGV), fault addr
   
   10-13 11:22:03.582: INFO/DEBUG(5641):  r0 003d48d0  r1   r2
     r3 003d48f4
   10-13 11:22:03.582: INFO/DEBUG(5641):  r4 003d48d0  r5   r6
     r7 
   10-13 11:22:03.582: INFO/DEBUG(5641):  r8 483b3d08  r9 42ea2ed4  10
   483b3e38  fp 42ea2ed4
   10-13 11:22:03.582: INFO/DEBUG(5641):  ip 003d48d0  sp 483b3ae8  lr
     pc 

Re: [android-developers] how to get current location

2010-10-13 Thread Mark Murphy
On Wed, Oct 13, 2010 at 5:51 AM, A N K ! T ankit.awasth...@gmail.com wrote:
 am trying to develop an app that show current location.

 but i am having one prob. my application is showing location on location
 change occur.
 but how to show location first time.
 i want to take location manually..not by onlocationchange Method in location
 manager
 wot to do?

There is no current location most of the time. For example, the GPS
radio is normally off, to save power. Please wait for the first fix to
arrive to your LocationListener.

-- 
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 Android Development_ Version 3.1 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] Closing current activity when an action happens in custom view.

2010-10-13 Thread Hatch
Hi all.

I have a toolbar view set for most of my activities.

The toolbar has several buttons which all trigger certain intents.
Now, the problem is:
how can I close current activity before starting another one ?

Problem 1) Activity cones
For instance one of the buttons ('A') starts activity A.
Activity A also has toolbar.
If you press on the 'A' button, a new A activity will be started.
I suppose I can look at Activity.getInstanceCount(), right ?

Problem 2) Unnecessary activities
The activity X is not needed any more if the opts for A. I just want A
then.
How can I remove X from toolbar which only has access to context ?

I, of course could find toolbar view inside activity X and override
the onClicks, but in general this would mean doing so for all my
activities !?

Am I on the right track ?

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

2010-10-13 Thread Mark Murphy
On Wed, Oct 13, 2010 at 3:23 AM, pramod.deore deore.pramo...@gmail.com wrote:
 Hello everybody I want to acess computer resources through android
 appllication. is it possible?

No, sorry.

-- 
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 Android Development_ Version 3.1 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: Rotate bitmap in opengl

2010-10-13 Thread Alistair.
After a great deal of searching I have discovered that you cannot use
glRotate and glDrawTexfOES. I will have to use the quad grid from the
SpriteMethodTest in apps-for-android.


On Oct 10, 6:16 pm, Alistair. alistair.rutherf...@gmail.com wrote:
 I am trying to rotate a bitmap in OpenGL. I have searched around and
 come up with this

     public void drawTexture(Texture texture, int index, float x, float
 y, float angle)
     {
         int[] ids = texture.getTextureIds();

         if (ids != null)
         {
             surface.glEnable(GL10.GL_TEXTURE_2D);

             surface.glBindTexture(GL10.GL_TEXTURE_2D, ids[index]);

             // Draw using the DrawTexture extension.
             int drawWidth = texture.getDrawWidth();
             int drawHeight = texture.getDrawHeight();

             surface.glPushMatrix();

             surface.glLoadIdentity();

             surface.glRotatef(angle, 0.0f, 0.0f, 1.0f);

             ((GL11Ext) surface).glDrawTexfOES(x, screenHeight -
 drawHeight - y, 0, drawWidth, drawHeight);

             surface.glPopMatrix();

             surface.glDisable(GL10.GL_TEXTURE_2D);

         }
     }

 Drawing the bitmaps indicated with the ids works fine but no
 rotation happens. I am no expert at openGL. Is is possible I need to
 set some sort of mode prior to the rotation?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Closing current activity when an action happens in custom view.

2010-10-13 Thread Mark Murphy
On Wed, Oct 13, 2010 at 7:16 AM, Hatch tomislav.hecimo...@gmail.com wrote:
 I have a toolbar view set for most of my activities.

 The toolbar has several buttons which all trigger certain intents.
 Now, the problem is:
 how can I close current activity before starting another one ?

 Problem 1) Activity cones
 For instance one of the buttons ('A') starts activity A.
 Activity A also has toolbar.
 If you press on the 'A' button, a new A activity will be started.

Disable that toolbar button. Or, remove that toolbar button. Or, on a
click of that toolbar button, see that you are are an instance of
Activity A and ignore the click.

 I suppose I can look at Activity.getInstanceCount(), right ?

I seem to recall that this is unreliable.

 Problem 2) Unnecessary activities
 The activity X is not needed any more if the opts for A. I just want A
 then.
 How can I remove X from toolbar which only has access to context ?

Your toolbar is some sort of ViewGroup. Call removeView() on the
toolbar to get rid of your button.

-- 
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 Android Development_ Version 3.1 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: Stolen app on market

2010-10-13 Thread Yahel
Because I care about the Android project which I find to be such a
great idea on paper and such a poor realisation. Well the framework is
ok but the market ?
I spend a lot of time in and around that piece of junk and it slowly
building a huge itch, so much so that I bought a Mac.

That's why ... But I'm an entrepreneur, I'm suppose to thrive on
constraints and use them at my advantage to make my business flourish
and if the Market allows that kind of behavior, I know now exactly
what to do next ;) What's the name of your app by the way ? ;)

Yahel

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

2010-10-13 Thread A-Droid
Thank you.

On Oct 13, 9:07 am, Sudsak jpidd...@gmail.com wrote:
 No, it's automatic, you don't have to do anything.

 On Oct 13, 3:55 am, A-Droid st...@netplusz.hu wrote:



  Hi,

  I've uploaded my first paid app to the market.
  Google checkout says not yet shipped on yhe order detail pages.
  Also, there is a send shipment notice button and a chargeable
  label on each order's details page.

  I'm confused. Do I have to do anything? Isn't it automatic?

  Thanks for any help.
  A-Droid

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

2010-10-13 Thread Sarwar Erfan
Hi,
I can't understand it. How can someone steal an app? Did he just
renamed the apk?
As far as I know, you upload signed apk to the marketplace. So, the
thief can only rename the apk, but cannot alter the contents.
And, the application display name comes from the application itself,
not the apk file name.
Where is the missing link in my idea?

I will be glad if someone clears my concept. Thanks in advance.

Regards
Sarwar Erfan


On Oct 4, 11:14 pm, Nightwolf mikh...@gmail.com wrote:
 Recently I've discovered that our app Little Python is distributed by
 developer who call himself Adam Gates. He renamed our app to snake,
 replaced icon and changed AdMob id.
 He has 55 published apps. Please take a look may be you'll find yours.
 Is there any way to shut him down? Please advise.

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

2010-10-13 Thread n2v2rda2
if your phone is client
on your computer , there have to be program acting server
and communicate eachother
i think cgi or javascript is good choice


On 10월13일, 오후4시23분, pramod.deore deore.pramo...@gmail.com wrote:
 Hello everybody I want to acess computer resources through android
 appllication. is it possible? suppose I want to create one file on
 hard disk through android application. if this is possible then tell
 me how to do this?

 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: Run application without emulator

2010-10-13 Thread Sarwar Erfan


On Oct 13, 2:24 pm, pramod.deore deore.pramo...@gmail.com wrote:
 Actually I want to develop an application for some board (just like
 android tablet) but board is not still ready and I want to test the
 application. How should I test it?

Years ago, engineers faced this issue and invented the idea of
Emulator.

Regards
Sarwar Erfan

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


Re: [android-developers] Re: Stolen app on market

2010-10-13 Thread Edmund Higgins
Lol you know it! Good show good sir. And I bought a MAC too. I like the idea
of open source but when the market gets overtaken by horrible apps and the
system is too easy to manipulateits time to go elsewhere. I would rather
have controlled quality in my market than chaotic crap!
On Oct 13, 2010 4:22 AM, Yahel kaye...@gmail.com wrote:
 Because I care about the Android project which I find to be such a
 great idea on paper and such a poor realisation. Well the framework is
 ok but the market ?
 I spend a lot of time in and around that piece of junk and it slowly
 building a huge itch, so much so that I bought a Mac.

 That's why ... But I'm an entrepreneur, I'm suppose to thrive on
 constraints and use them at my advantage to make my business flourish
 and if the Market allows that kind of behavior, I know now exactly
 what to do next ;) What's the name of your app by the way ? ;)

 Yahel

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

2010-10-13 Thread Daniel Drozdzewski
On Wed, Oct 13, 2010 at 9:24 AM, pramod.deore deore.pramo...@gmail.com wrote:
 Actually I want to develop an application for some board (just like
 android tablet) but board is not still ready and I want to test the
 application. How should I test it? Only emulator is choice or there is
 something else is also?

If you are testing an application that runs only within Dalvik VM
(i.e. only Java, no use of NDK) then emulator is your best bet to
develop ahead of your target platform being available.
You can specify many parameters of the device you emulate, like heap
size, SD card presence and size, display resolution and density.
The reason Android is so appealing is that as long as your target
platform passes compatibility tests, your application should simply
run on it*

*obviously should is not would

If you are looking for running Andoid on a PC, try live CD:
http://code.google.com/p/live-android/

-- 
Daniel Drozdzewski

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


Re: [android-developers] how to get current location

2010-10-13 Thread A N K ! T
hey mark ...thanks a lot...i did that application and it is showing exact
locations.. one thing that remaining  is after restarting of mobile...or
after getting my application close..
it is not getting notify on location changed.so wot to do for that
thanks agarin..

On Wed, Oct 13, 2010 at 4:45 PM, Mark Murphy mmur...@commonsware.comwrote:

 On Wed, Oct 13, 2010 at 5:51 AM, A N K ! T ankit.awasth...@gmail.com
 wrote:
  am trying to develop an app that show current location.
 
  but i am having one prob. my application is showing location on location
  change occur.
  but how to show location first time.
  i want to take location manually..not by onlocationchange Method in
 location
  manager
  wot to do?

 There is no current location most of the time. For example, the GPS
 radio is normally off, to save power. Please wait for the first fix to
 arrive to your LocationListener.

 --
 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 Android Development_ Version 3.1 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




-- 

 A N K ! T..

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

[android-developers] Re: User Identity

2010-10-13 Thread William Ferguson
Thanks Devdroid - I understand that.
By move device I mean trade up to another physical phone (or other
device).
I'm looking for continuity for the user.

On Oct 13, 6:19 pm, { Devdroid } webnet.andr...@gmail.com wrote:
 On 13 October 2010 01:57, William Ferguson

 william.ferguson...@gmail.com wrote:
  IMEI changes as they move device

 No, IMEI does not change unless you manually reflash firware with
 different 
 IMEI.http://en.wikipedia.org/wiki/International_Mobile_Equipment_Identity

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

2010-10-13 Thread DanH
The effective view area can be the whole screen with an alpha
channel.  I've had components layered 10 deep on other platforms.

On Oct 12, 11:28 pm, Kumar Bibek coomar@gmail.com wrote:
 You can have that, but again, the the effective view area is still a
 rectangle, isn't it?



 On Wed, Oct 13, 2010 at 9:44 AM, DanH danhi...@ieee.org wrote:
  I mean, eg, provide an image of a circle, and have only the area
  inside the circle (where alpha is non-zero) be sensitive.

  On Oct 12, 10:58 pm, Kumar Bibek coomar@gmail.com wrote:
   Ummm, What do you mean by modify that default? All the views take of a
   rectangular estate area. This is generally the way how widgets are laid
  out
   virtually everywhere. Even while you are designing HTML pages, everything
  is
   a rectangle.

   The boundaries of a view is always a rectangle.

   On Wed, Oct 13, 2010 at 9:22 AM, DanH danhi...@ieee.org wrote:
I know that's the default.  But other platforms have a way to modify
that default.

On Oct 12, 10:41 pm, Kumar Bibek coomar@gmail.com wrote:
 By default it is a rectangle. All the views are rectangles as well.
  As
Mark
 said, they look different because of the backgrounds.

 On Wed, Oct 13, 2010 at 9:02 AM, DanH danhi...@ieee.org wrote:
  That is an interesting question:  I haven't run across any way in
  Android to control the shape of the sensitive area of a button.  Is
  it
  always a rectangle, or can it be made circular, triangular, etc, by
  making it conform to the shape of an image?

  On Oct 11, 6:03 pm, Mark Murphy mmur...@commonsware.com wrote:
   A button is shaped like a button courtesy of its background. In
  the
   case of a button, that is a StateListDrawable consisting of a
  series
   of nine-patch (stretchable) PNG files representing different
  states
   (normal, pressed, focused, disabled, etc.).

   On Mon, Oct 11, 2010 at 7:01 PM, Dancing Fingers 
  batym...@gmail.com

  wrote:
Hi guys,
I'm working on my own Hexagonal button which works in JAVA.  I
  was
studying Android Button.java:

@RemoteView
public class Button extends TextView {
   public Button(Context context) {
       this(context, null);
   }

   public Button(Context context, AttributeSet attrs) {
       this(context, attrs,
com.android.internal.R.attr.buttonStyle);
   }

   public Button(Context context, AttributeSet attrs, int
  defStyle)
{
       super(context, attrs, defStyle);
   }
}

I don't understand where it gets it shape.  If you're adding an
anClickListener of does button know the geometry that's within
  it's
boundries?

Any enlightenment would be appreciated.

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

android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com
  android-developers%252bunsubscr...@googlegroups.comandroid-developers%25252bunsubscr...@googlegroups.com

For more options, visit this group at
   http://groups.google.com/group/android-developers?hl=en

   --
   Mark Murphy (a Commons Guy)http://commonsware.com|

 http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguyhttp://github.com/commonsguyhttp://commonsware.com/blog%7Chttp://twit...
  http://github.com/commonsguyhttp://commonsware.com/blog%7Chttp://twit...

 http://github.com/commonsguyhttp://commonsware.com/blog%7Chttp://twit...

   Android Training...At Your Office:
 http://commonsware.com/training

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

android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com
  android-developers%252bunsubscr...@googlegroups.comandroid-developers%25252bunsubscr...@googlegroups.com

  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

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

--
You received this message because 

[android-developers] How to launch Android Market application from customized Home application

2010-10-13 Thread Durg
Hi All,

I would like to know the package name and class name (launcher
activity) of Android Market application, which is available in my
device. As I'm developing a customized home application, I need to
launch the Android Market application from it by clicking on a icon/
button. For all other applications like Gmail, Gtalk, Google Maps and
Calendar, I got the package names and launcher activity class names.

Please help me to get this information, as I need it urgently.

I tried in all the groups related to Android for this information, but
not succeeded.

Thanks  Regards,
Durg.

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

2010-10-13 Thread JP


On Oct 13, 4:37 am, Sarwar Erfan erfanonl...@gmail.com wrote:
 Hi,
 I can't understand it. How can someone steal an app? Did he just
 renamed the apk?
 As far as I know, you upload signed apk to the marketplace. So, the
 thief can only rename the apk, but cannot alter the contents.
We've had this a bunch of times before.
It's the easiest thing to crack open an .apk package, extract and
modify the content, then repackage it and sign that.
Signature != encryption

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


[android-developers] Re: Google TV

2010-10-13 Thread Spiral123
WellI can answer at least part of my own question.

Reading through the developer FAQ (http://code.google.com/tv/web/
faq.html) as the very last point it states that an emulator will be
made available with the SDK.



On Oct 12, 3:42 pm, Spiral123 cumis...@gmail.com wrote:
 I'm thinking of getting a Google TV box when it comes out in a few
 weeks.

 I know that there is going to be an SDK released for the box at some
 point.  Has anyone here heard any news about if we will be able to
 connect to the Logitech device via USB in order to test our
 applications, or if will there be some sort of separate Google
 hardware device or an emulator 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: Stolen app on market

2010-10-13 Thread JP


On Oct 13, 4:51 am, Edmund Higgins ehiggins...@gmail.com wrote:
 I would rather
 have controlled quality in my market than chaotic crap!

O well who wouldn't agree. It'll be interesting to see if Amazon can
come up with compelling terms to attract a sufficient critical mass
of quality apps, offer decent discoverability, presentation with
customer appeal, easy payment, in app payment - short, offer all
that's missing in Android Market to emphasize monetization for devs
that put in the effort. If these guys take off, they might be able to
stick Android Market with the crap. It's a longshot though.

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

2010-10-13 Thread Amit Mangal
Hi every one,
Hope you all are doing good.
i am having query to place button in my main view. This is the code but it
creates button on upper part in center but i want to shift it bit down
wards. Any body knows how can i place button in main view where i want ?
Button android:text=@+id/Button01
android:id=@+id/Button01
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_marginBottom=20dip
android:layout_gravity=center_horizontal
android:padding=10dip
android:background=#AA00
android:textColor=#
/

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] getting eclipse sdk to work with ubuntu 10.10

2010-10-13 Thread Will
after upgrading Ubuntu to 10.10, my android projects in Eclipse stop
working.

Lots of people seem to have this problem: 
http://forum.xda-developers.com/showthread.php?p=8591101

please, has anyone got a solution?

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

2010-10-13 Thread gjs
Hi,

Maybe alter you question slightly, try asking  -

How NOT to develop a android app store

- wait a few moments for the thousands of opinionated responses,
quickly assess the answers, examine the endless complaints about other
app stores, then arrange your bits accordingly and put them on the
internet.

tuddahh, prefect android app store...

Regards

On Oct 13, 4:57 pm, mr.winky mr0wi...@gmail.com wrote:
 Please dont forget the thousands of required We have all apps, only
 9.99 per year!

 On Oct 12, 10:02 pm, Kumar Bibek coomar@gmail.com wrote:



  Pretty amazing imagination :)

  On Wed, Oct 13, 2010 at 10:30 AM, metal mikey coref...@gmail.com wrote:
   Here's some suggestions (I used my imagination):

   1) Employ tens of thousands of monkeys to do random stuff, eventually
   they may serve the correct .apk file to a request made by one of the
   Users of your device.

   2) Put your Apps on Android Market as paid Apps. Some dodgy,
   unofficial market may steal your Apps and host them for free or for a
   yearly paid fee. Users of your device might find the Apps there.

   3) Receive an email request for one of your Apps from one of the Users
   of your device, reply to that email and include the appropriate .apk
   as an attachment.

   4) Similar to above, but instead of emailing, use pelicans.

   5) Potentially you could do something with a webserver, website, and
   that kind of stuff. Clearly an over-engineered approach. Pelicans are
   probably better because they eat fish. Your device may not have access
   to the Internet, another reason why pelicans are a better approach. Am
   pretty sure pelicans can fly anywhere.

   On Oct 13, 3:08 pm, Nitin Mahajan np.maha...@gmail.com wrote:
HI!

On Tue, Oct 12, 2010 at 9:04 PM, TreKing treking...@gmail.com wrote:
 On Tue, Oct 12, 2010 at 1:25 AM, Nitin Mahajan np.maha...@gmail.com
   wrote:

 How can we develop an Android app store, to distribute apps/upgrades
 specific to a product, which is a non mobile device?

 Your question is ridiculously broad and generic. I doubt anyone is
   going to
 give you an adequate answer that outlines everything that needs to be
   done
 to develop an app store.

To be very specific,  if I am creating an android based(non-mobile 
phone)
device with some specific apps, developed by me and selling those 
devices
   in
market.

I want to make the updates/upgrades for those apps to be available to
customers and also some new apps in future. For this purpose, I want to
create an Android app store of mine.

Hope I have clarified the scenario. Can you give me some suggestions, 
how
this can be achieved.

thanks and regards
-Nitin

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

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

  --
  Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com-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] How to place buton on desired place.

2010-10-13 Thread Kostya Vasilyev

 Use layout_marginTop.

13.10.2010 16:38, Amit Mangal пишет:

Hi every one,
Hope you all are doing good.
i am having query to place button in my main view. This is the code 
but it creates button on upper part in center but i want to shift it 
bit down wards. Any body knows how can i place button in main view 
where i want ?

Button android:text=@+id/Button01
android:id=@+id/Button01
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_marginBottom=20dip
android:layout_gravity=center_horizontal
android:padding=10dip
android:background=#AA00
android:textColor=#
/

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 



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

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


Re: [android-developers] Re: User Identity

2010-10-13 Thread Kostya Vasilyev

 William,

If you're looking for continuity, then you can't use any ID tied to the 
phone.


This excludes using the IMEI or ANDROID_ID.

-- Kostya

13.10.2010 16:09, William Ferguson пишет:

Thanks Devdroid - I understand that.
By move device I mean trade up to another physical phone (or other
device).
I'm looking for continuity for the user.

On Oct 13, 6:19 pm, { Devdroid }webnet.andr...@gmail.com  wrote:

On 13 October 2010 01:57, William Ferguson

william.ferguson...@gmail.com  wrote:

IMEI changes as they move device

No, IMEI does not change unless you manually reflash firware with
different 
IMEI.http://en.wikipedia.org/wiki/International_Mobile_Equipment_Identity



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

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


Re: [android-developers] Re: Kill an app / package in API 8 (Froyo)

2010-10-13 Thread Jerry Fan
You can use getRunningTaskInfo compare against getRunningAppProcessInfo. If
process of particular component is not in runnAppProcess list, then you know
it is deleted. I used this trick to work around the new kill process
behavior.

On Thu, Jul 22, 2010 at 11:12 PM, Marcin_GUmeR
marcin.bogdan...@gmail.comwrote:

 Is there any way to replicate old behavior of task killers in froyo?
 (i.e. kill everything associated with an app, including notifications
 etc. and make it never come back, unless manually restarted)

 It can be from command line using root.

 Thanks

 On Jun 16, 12:10 am, Happy C. taiwanhappin...@gmail.com wrote:
  Hi Dianne,
 
  Sorry to bother you.
 
  Does the Force stop in the setting of android 2.2 also use
  KillBackgroundProcess or use the system level API (developer can't
  use directly) to make it?
 
  I have tried the KillBackgroundProcess and adding the related
  permission, but it can't stop the running app either or  running
  service like Force stop does.
 
  //ddms under Force stop
  06-15 22:08:10.505: INFO/ActivityManager(62): Force stopping package
  com.MyTestApp/com uid=10037
  06-15 22:08:10.505: INFO/Process(62): Sending signal. PID: 647 SIG: 9
 
  //ddms under my KillBackgroundProcess
  06-15 22:05:32.725: INFO/Process(62): Sending signal. PID: 638 SIG: 9
  06-15 22:05:32.754: INFO/WindowManager(62): WIN DEATH:
  Window{43f4b2d8  com.MyTestApp/com.MyTestApp.act1 paused=false}
  06-15 22:05:32.754: INFO/WindowManager(62): WIN DEATH: Window{43fbd930
  com.MyTestApp/com.MyTestApp.act2
   paused=false}
 
  Force stop  and my  KillBackgroundProcess seems to have sent the
  same signal 9. but they behave differently.
  I don't know why it doesn't work in my  KillBackgroundProcess.
 
  Thanks very much!
 
  On 6月3日, 上午6時41分, Dianne Hackborn hack...@android.com wrote:
 
   On Wed, Jun 2, 2010 at 1:18 AM, Lee lee.wil...@googlemail.com wrote:
   killBackgroundProcessesworks (you need a permission for it), but it
merely restarts the background services, so it's a little poorly
named.
 
   Actually it does exactly what it says -- it kills a process.  If an
   application has a service that it wants to keep running, the normal
 behavior
   of the system kicks in to restart the service for the app.  As the
   documentation says, this allows the app to do the same thing is the out
 of
   memory killer (killing processes) without breaking applications by
 causing
   their services to be stopped when they don't expect (or unregister
 their
   alarms or the other things that fully stopping an app does).
 
   --
   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.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: How to develop a android app store

2010-10-13 Thread gjs
I think www.andappstore.com sells off the shelf app stores.

Regards

On Oct 14, 12:26 am, gjs garyjamessi...@gmail.com wrote:
 Hi,

 Maybe alter you question slightly, try asking  -

 How NOT to develop a android app store

 - wait a few moments for the thousands of opinionated responses,
 quickly assess the answers, examine the endless complaints about other
 app stores, then arrange your bits accordingly and put them on the
 internet.

 tuddahh, prefect android app store...

 Regards

 On Oct 13, 4:57 pm, mr.winky mr0wi...@gmail.com wrote:



  Please dont forget the thousands of required We have all apps, only
  9.99 per year!

  On Oct 12, 10:02 pm, Kumar Bibek coomar@gmail.com wrote:

   Pretty amazing imagination :)

   On Wed, Oct 13, 2010 at 10:30 AM, metal mikey coref...@gmail.com wrote:
Here's some suggestions (I used my imagination):

1) Employ tens of thousands of monkeys to do random stuff, eventually
they may serve the correct .apk file to a request made by one of the
Users of your device.

2) Put your Apps on Android Market as paid Apps. Some dodgy,
unofficial market may steal your Apps and host them for free or for a
yearly paid fee. Users of your device might find the Apps there.

3) Receive an email request for one of your Apps from one of the Users
of your device, reply to that email and include the appropriate .apk
as an attachment.

4) Similar to above, but instead of emailing, use pelicans.

5) Potentially you could do something with a webserver, website, and
that kind of stuff. Clearly an over-engineered approach. Pelicans are
probably better because they eat fish. Your device may not have access
to the Internet, another reason why pelicans are a better approach. Am
pretty sure pelicans can fly anywhere.

On Oct 13, 3:08 pm, Nitin Mahajan np.maha...@gmail.com wrote:
 HI!

 On Tue, Oct 12, 2010 at 9:04 PM, TreKing treking...@gmail.com wrote:
  On Tue, Oct 12, 2010 at 1:25 AM, Nitin Mahajan np.maha...@gmail.com
wrote:

  How can we develop an Android app store, to distribute 
  apps/upgrades
  specific to a product, which is a non mobile device?

  Your question is ridiculously broad and generic. I doubt anyone is
going to
  give you an adequate answer that outlines everything that needs to 
  be
done
  to develop an app store.

 To be very specific,  if I am creating an android based(non-mobile 
 phone)
 device with some specific apps, developed by me and selling those 
 devices
in
 market.

 I want to make the updates/upgrades for those apps to be available to
 customers and also some new apps in future. For this purpose, I want 
 to
 create an Android app store of mine.

 Hope I have clarified the scenario. Can you give me some suggestions, 
 how
 this can be achieved.

 thanks and regards
 -Nitin

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

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

   --
   Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com-Hidequoted 
   text -

   - Show quoted text -

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


[android-developers] Re: Alternative to GLWallpaperService, OpenGL Live Wallpaper

2010-10-13 Thread mr.winky
Thats fine, but you didnt answer the original question which was.
What is the right way to do this? You say its supported on your
website but offer no clue as to how to do it the correct way. Is
what Robert Green posted the right way to go about it or is there
another method. If there is, could you please point me in that
direction Diane, and if its something google has overlooked, then just
tell me.

On Oct 13, 3:16 am, Robert Green rbgrn@gmail.com wrote:
 It was originally a submission for android master is why it is in that
 namespace :)

 Yes, if you use it (and be aware that it does NOT reset the gl context
 on orientation changes so do not reload vram content like normal or at
 least make sure to delete first) you will definitely want to put it in
 your own package/namespace.

 FYI - it doesn't delete the context because for some unknown reason
 many phones like to hard freeze right in eglMakeDisplayCurrent with
 the SharedBuffer timed out problem.  Leaving the context in tact
 worked around it for some phones but there are other issues on other
 phones as well.

 On Oct 13, 1:43 am, Dianne Hackborn hack...@android.com wrote:



  Note that code is very broken -- it is putting a class in the android
  namespace, which it is not allowed to do.  PLEASE change this to a valid
  namespace before using it.  You are likely to break shortly if you don't.
   Thanks.

  On Tue, Oct 12, 2010 at 10:56 PM, mr.winky mr0wi...@gmail.com wrote:
   I've been using the GLWallpaperService as posted by Robert Green
   (http://www.rbgrn.net/content/354-glsurfaceview-adapted-3d-live-
   wallpapers), which has worked so far for the live wallpapers but I'm
   hitting a wall when it comes to performance. The GL code is executing
   at the expected speed when swapping (about 14ms after the swap
   occurs), but there seems to be an extreme overhead with the wallpaper
   code of 33ms.

   For example, if I was to implement a basic live wallpaper that only
   called gl.glClearColor and nothing else, the maximum framerate I can
   achieve is 30fps (33ms), which is far lower than it should be. Now the
   phone refresh rate is 16ms, from what I have read, so I could
   understand hitting a wall at 60 fps.

   The question is if there is an alternative way out there? I tried
   naively using the GLSurfaceView with no luck and am looking for
   suggestions from those who may have encountered this issue or know of
   a solution. I have been googling but all posts send me back to the
   above site from Robert Green as the only way to do this, and I have
   had no luck finding a live wallpaper sample from the SDK that uses
   OpenGL while they state that you have access to OpenGL from here:

  http://developer.android.com/resources/articles/live-wallpapers.html

   I tried searching for the code for the bundled live wallpapers with no
   luck, if anyone could throw me a link to one of the wallpapers that
   uses OpenGL that would more than enough for me to figure it out (if a
   different method is used ;)).

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

 - Show quoted text -

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


[android-developers] Re: Can´t animate ImageView

2010-10-13 Thread Alexander
i think the problem is that i'm calling it on the onDraw method.
i will try to create an init function to start the animation so it
doesn't keep doing it when
drawing on canvas.

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


[android-developers] Re: Can´t animate ImageView

2010-10-13 Thread Alexander
Yes that was it.
apparently i was creating a new animation every time i entered the
onDraw,
so i was always watching the first frame.

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

2010-10-13 Thread Shane Isbell
On Tue, Oct 12, 2010 at 11:59 PM, Howard M. Harte hhar...@gmail.com wrote:



 This is what I received from Logitech yesterday about my preorder:
 Thank you for your recent pre-order from Logitech. This e-mail is to
 inform you that the product availability date has been delayed.
 Your pre-ordered product is now scheduled to be available on the date
 listed below.
 10/21/10 00:00:00

Thanks. I'm impatient for new gadgets. I cancelled mine. The Sony Blu-ray
Google TV for 100 more looks like a better deal and is shipping earlier. My
only concern is a bunch of DRM gunk. I'll wait a bit for the reviews.

Shane




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

2010-10-13 Thread Marcin Orlowski
On 13 October 2010 14:09, William Ferguson
william.ferguson...@gmail.com wrote:

 By move device I mean trade up to another physical phone (or other
 device). I'm looking for continuity for the user.

Then this may be a bit tricky as there's no guarantee that the same
user will i.e. use the same google account with new device (they usually
do but...). So you may try to ie. read all accounts available on device
and store it along with imei - bu that's bit risky as I would kick your
app out of my device for that as you would asking for far too much data
in my opinion. I'd rather recommend letting users to register somehow
but if they do not decide to, just i.e. use IMEI alone.

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

2010-10-13 Thread Bret Foreman
Try using double quotes around your strings rather than single.
Something like this:

String myCondition = field == \Ç\;

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

2010-10-13 Thread Bret Foreman
When the AVD screen is in an Eclipse frame there is a button on the
frame to rotate orientation. How do I cause the same action when the
AVD screen is floating outside Eclipse?

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

2010-10-13 Thread Daniel Drozdzewski
Ctrl+F11 (please make sure your keys are not FLocked).


On Wed, Oct 13, 2010 at 4:12 PM, Bret Foreman bret.fore...@gmail.com wrote:
 When the AVD screen is in an Eclipse frame there is a button on the
 frame to rotate orientation. How do I cause the same action when the
 AVD screen is floating outside Eclipse?

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



-- 
Daniel Drozdzewski

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

2010-10-13 Thread Mark Murphy
http://developer.android.com/guide/developing/tools/emulator.html#controlling

Switch to previous layout orientation (for example, portrait,
landscape)  KEYPAD_7, Ctrl-F11

Switch to next layout orientation (for example, portrait,
landscape)  KEYPAD_9, Ctrl-F12

On Wed, Oct 13, 2010 at 11:12 AM, Bret Foreman bret.fore...@gmail.com wrote:
 When the AVD screen is in an Eclipse frame there is a button on the
 frame to rotate orientation. How do I cause the same action when the
 AVD screen is floating outside Eclipse?

-- 
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 Android Development_ Version 3.1 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] How to place buton on desired place.

2010-10-13 Thread Amit Mangal
Great it is working.
Thanks Man

On Wed, Oct 13, 2010 at 7:22 PM, Kostya Vasilyev kmans...@gmail.com wrote:

  Use layout_marginTop.

 13.10.2010 16:38, Amit Mangal пишет:

 Hi every one,
 Hope you all are doing good.
 i am having query to place button in my main view. This is the code but it
 creates button on upper part in center but i want to shift it bit down
 wards. Any body knows how can i place button in main view where i want ?
 Button android:text=@+id/Button01
 android:id=@+id/Button01
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:layout_marginBottom=20dip
 android:layout_gravity=center_horizontal
 android:padding=10dip
 android:background=#AA00
 android:textColor=#
 /

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



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

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

2010-10-13 Thread Marcin Orlowski
On 13 October 2010 17:12, Bret Foreman bret.fore...@gmail.com wrote:
 When the AVD screen is in an Eclipse frame there is a button on the
 frame to rotate orientation. How do I cause the same action when the
 AVD screen is floating outside Eclipse?

CTRL-F11

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

2010-10-13 Thread Tudor Tihan
Hello everyone,

What do you think is the best phone for OpenGL ES based game
development?

Large screen, OS 2.0.1+. Maybe even having the shaders path accessible
from NDK.

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: New ADT available.

2010-10-13 Thread String
Yes, that is what I did, and (as mentioned in my earlier posts) it's
still not working right. My conclusion is that 0.9.9 is not ready for
prime time; I recommend everyone to avoid it.

String

On Oct 13, 11:48 am, Zarah Dominguez zarahj...@gmail.com wrote:
 Hi guys!

 Just got back to this thread.

 Hi String, so you ended up updating with a fresh install? I would hate
 to do that on my other workstation.  Seems like too much work for an
 update, and so my laptop is stuck with ADT 0.9.7.

 Thanks,
 Zarah.

 On Oct 7, 4:22 am, String sterling.ud...@googlemail.com wrote:



  On Oct 6, 6:53 pm, Xavier Ducrohet x...@android.com wrote:

   I'm not sure why Eclipse wouldn't be able to change this file. Is it
   on a source control system that is not integrated in Eclipse.

  No, this is plain-vanilla Eclipse 3.5 SR2, freshly installed. The only
  plugin is ADT 0.9.9. No other dev tools involved.

  The pattern that seems to be emerging is that once I get rid of the
  errors, it's OK until I need to restart Eclipse. Then SOME of my
  library-using projects are FUBAR as described in my earlier post.
  Interestingly, it's not ALL the projects which use libraries, and I
  can't work out any difference between those that work and those that
  don't.

  Any further ideas? I second authorwjf - I'm none too impressed with
  this update.

  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: User Identity

2010-10-13 Thread tanstaafa
The only sure way to identify returning users is to  maintain your own
User database, and ask users to sign-in the first time they use the
app.   Using OpenID or  Facebook Connect  can avoid the need for the
user to create yet another set of login credentials.   Netmobo can
provide the User repository - we offer a comprehensive User Management
system that is available thru Android SDK or REST API.



On Oct 13, 9:52 am, Kostya Vasilyev kmans...@gmail.com wrote:
   William,

 If you're looking for continuity, then you can't use any ID tied to the
 phone.

 This excludes using the IMEI or ANDROID_ID.

 -- Kostya


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

2010-10-13 Thread android_developer
Hi,
I was looking at Android music code to understand what party shuffle
does. It appears that all that party shuffle does is to create a
playlist whose length is the position of the song on the list + 7, and
add a random selection of songs from the phone on to this list. Unlike
normal shuffle, it seems a party shuffle does not care if the songs
are repeated.
Is this correct? And what is the big picture behind this feature?
Thanks,
Rahul

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


Re: [android-developers] [Android] java.lang.RuntimeException: Unable to start activity ComponentInfo

2010-10-13 Thread TreKing
On Wed, Oct 13, 2010 at 2:41 AM, kevens hao ithjf.kev...@gmail.com wrote:

 When invoke super.onRestoreInstanceState, occur exception.


Step through the debugger to determine which line, specifically, is causing
the issue, then go from there.

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

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

Re: [android-developers] CheckBox problem

2010-10-13 Thread TreKing
On Wed, Oct 13, 2010 at 5:52 AM, Ahmed Shoeib ahmedelsayed.sho...@gmail.com
 wrote:

 what is the problem ???


ListView recycles views so the one you're setting the check state on may be
re-used and re-drawn somewhere else. Don't use findViewWithTag() - set the
checked state in getView().

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

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

[android-developers] Does Quick Search Box on Froyo (2.2) limit the number of suggestions?

2010-10-13 Thread gnugu
Hi,
I have an app that integrates with Quick Search Box. In suggestions
(when my app's search is selected) it only shows up to 50 results even
if there is plenty more.

Is this some sort of limitation in QSB in Froyo?

Did Froyo change the way we should integrate with QSB?

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: Writing to disk

2010-10-13 Thread kypriakos

He he - I knew I was going to hear all that ;)

Well these are two separate projects that eventually co-operate with
each other
using that shared space. So yes if I could give specific access to a
particular
app to access that space that would be fine. Else, I will need to find
another
way to approach it. Generating such a shared space on the sdcard is a
better
idea?

On Oct 12, 5:08 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Tue, Oct 12, 2010 at 5:04 PM, kypriakos demet...@ece.neu.edu wrote:
  On a related note - can apps give permissions to other apps to read
  write from/into their sandboxes? (/data/data/app/files?

 Yes, but it is a terrible idea. As in epic fail level of terrible.

 Provide some sort of managed access (remote service via AIDL,
 command-style IntentService, ContentProvider) to work with the local
 data. Unless, of course, you don't mind other applications deleting
 your data, etc.

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

 Android 2.2 Programming 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] Linkify colors

2010-10-13 Thread Bret Foreman
When I Linkify a TextView the default color is navy blue. I'd like to
change this to something with more contrast. Are default link colors
something that are supposed to be set by the user and I should respect
or are they arbitrary?

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

2010-10-13 Thread Mark Murphy
On Wed, Oct 13, 2010 at 12:07 PM, kypriakos demet...@ece.neu.edu wrote:
 Well these are two separate projects that eventually co-operate with
 each other
 using that shared space. So yes if I could give specific access to a
 particular
 app to access that space that would be fine. Else, I will need to find
 another
 way to approach it. Generating such a shared space on the sdcard is a
 better
 idea?

If these are two projects of yours, then you can use the
android:sharedUserId attribute in your manifest. Give both apps the
same user ID and sign both with the same signing key. Then they will
run as the same Linux user, and they can access each other's files
without further modification. And, the files will still be protected
from other apps.

-- 
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 Android Development_ Version 3.1 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: Writing to disk

2010-10-13 Thread Bret Foreman
You should try Amazon S3. I use it for holding large amounts of app
data and and I'm very happy with the performance, reliability, and
ease of use. This also makes it easy to share data across any number
of phones at the same time, which opens up lots of possibilities for
neat app features.

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

2010-10-13 Thread TreKing
On Wed, Oct 13, 2010 at 2:55 AM, A-Droid st...@netplusz.hu wrote:

 Google checkout says not yet shipped on yhe order detail pages. Also,
 there is a send shipment notice button and a chargeable label on each
 order's details page.


Just to clarify, this stuff is for physical goods sold via Google Checkout -
like if you were an Amazon-like store and sold books or something that you
had to ship to your buyers. Obviously this does not apply to Android Apps.

Google Checkout was not designed for virtual goods and was really just
hacked on to work for Android, so much of it does not apply or make sense in
this context.

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

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

[android-developers] Description of how RelativeLayout works?

2010-10-13 Thread DanH
Can anyone point me to a good one?

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

2010-10-13 Thread Elias Mårtenson
This is not the first time someone has this problem. When googling
I've found plenty of questions from people having similar problems to
the one I'm describing below, but no satisfactory answer. I've been
trying to get this to work reliably for weeks now (not 100% of the
time, of course) but I just can't make it work.

What I'm doing is that I'm putting a HorizontalScrollView that
contains a series of ImageView instances inside a ListView row. The
ListView can have tens up to maybe 100 rows, but only one of the rows
(the first one) contain the HorizontalScrollView. Essentially, the
first ron contains the description and a horizontally scrollable list
of photos, and the remaining rows are people's comments to it.

Now, what happens is a bit tricky to explain; the horizontal scrolling
works fine initially. Initially, horizontal scrolling works fine.
However, once the user taps on a comment row the HorizontalScrollView
gets stuck. It's not completely stuck though. If I swipe it after it
gets stuck, nothing happens until I tap somewhere else (for example on
the descriptive TextView associated with the photos, or on one of the
comments). At this point, the HorizontalScrollView immediate snaps to
the correct location. It's like it stops animating the scrolling,
although the swipe events still comes through (since it snaps to
exactly the correct position once I tap somewhere else).

I've experimented with various combinations of attributes to prevent
focusability of the HorizontalScrollView which was suggested in one of
the forums I found when googling for this problem. It helped for him,
but makes absolutely no difference in my case.

Does anyone have any suggestions as to what could be the cause of this
problem?

For the record: I'm using a Nexus 1 with 2.2, and I also get the
problem using the emulator.

Regards,
Elias

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

2010-10-13 Thread Jiang
In my application, I need to restart the application itself (kill it, and then 
relaunch it), how to implement this feature?

I tried ActivitiManager.restartPackage(), but seems the application doesn't be 
killed.

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: Application Testing Group anyone?

2010-10-13 Thread tyal8r
Hi Sanjay,

I'd be interested in participating in a shared test group.
What device do you have?
How far along are you with your app?
How much experience do you have with programming with Android?

I will have the Archos 101 as soon as it comes out, ETA Oct 15.

Regards,
Tom.


On Oct 8, 5:27 am, Sanjay Parekh objectprofession...@gmail.com
wrote:
 Would anyone be interested in setting up an application testing group
 where various beta apps could be tested by individuals on DIFFERENT
 phone models to help ensure the stability of new apps + provide
 concise feedback to the developer...
 I ran into this problem because for some types of apps the emulator
 setting dont seem to be a good enough and reliable indication of
 whether the app will ACTUALLY work on different phones...

 Anyone interested?
 It should be easy enough to get to the downloads to share and I would
 be happy to provide feedback on other's apps for a little more
 constructive + informed criticism of my own, espcially infroming of
 exceptions more descriptively

 Comments?
 Sanjay

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 close all activities in Activity stack and start a new one

2010-10-13 Thread nakvic
What just came in my mind, if it would suite your requirements: Start
activities with startActivityForResult. When an activity started,
register for broadcast and send the broadcast from your timer service.
The last started activity recieves broadcast and calls its finish with
result code, which you passes back to previous activity in stack. Once
activity receives the code it also calls  its finish passing result
code to its previous etc. The last activity (A) starts your (E).

It might be better to put the logic in one place, either in activity
class, the other will inherit, or in deligate class, if you use
different kind of activities (list, map etc) and cannot inherit single
one.

Oh, yeah, and dont forget to unregister broadcast once an activity is
paused.

I guess, you cannot use this approach, if top activity in the stack is
pause, therefore, you might try to use preferences to put a flag
close there. When activity is resumed it can check the flag and call
its finish with result code to inform parent activities to close.

It would be interested if anyone knows other way.

Regards,
nakvic


On Oct 9, 11:11 am, Jiang webs...@yahoo.cn wrote:
 When some activities is created, such as A-B-C-D, and in a timer, I need 
 to close all activities in Ativity stack in the order D-C-B-A (the timer 
 don't know what activities have been created), and then start a new Activity 
 E.

 How to implement this feature?

 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] Host not resolved issue

2010-10-13 Thread if05041
Use 10.0.2.2
Powered by Telkomsel BlackBerry®

-Original Message-
From: Rajesh Pelluru mail2pell...@gmail.com
Sender: android-developers@googlegroups.com
Date: Mon, 11 Oct 2010 10:30:23 
To: android-developers@googlegroups.com
Reply-To: android-developers@googlegroups.com
Subject: [android-developers] Host not resolved issue

Hi,
 If i try to open connection for http://localhost:5001 using
HttpURLConnection in my android app, i am getting host not resolved issue in
my android emulator.
Internet connection is working in my emulator and I am able to browse the
web sites using my emulator.

I tried below options

1. Created new AVD

2. Restarted both Eclipse IDE and AVD

3. Instead of localhost , i used ipaddress of the machine

None of the above options  didn't work for me.

Could anyone help me on the same.

--Rajesh

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Email.apk creating multiple alarms in logcat on HTC branded Evo

2010-10-13 Thread Niku
I am running HTC branded Sprint EVO under Stock 3.29 ROM. It comes
with mail.apk (heavily customized mail app).

In addition to this, I installed AOSP email.apk to enjoy multiple
Exchange inboxes. I have so far added my work and Hotmail exchange
accounts.

If I turn off background data and let my phone sit idle and then in
logcat I see com.android.email.apk is creating multiple alarms as
noted below.

With background data turned on MFLOPS is 33, after background data is
turned off MFLOPS is down to 2 (using linpack for android). I have
also noticed that if I manually refresh each account by going into
each inbox, performance is restored in few seconds. Otherwise it
becomes painfully slow.

I am attaching snippet of logcat...any insight is appreciated.

Thanks,
Niku

---

D/dalvikvm( 1528): GC_FOR_MALLOC freed 1586 objects / 67376 bytes in
61ms
V/AlarmManager(  240): Adding Alarm{46e02848 type 2 com.android.email}
Dec 31 08
:10:06 pm
V/AlarmManager(  240): Adding Alarm{46cccaf8 type 2 com.android.email}
Dec 31 06
:05:00 pm
V/AlarmManager(  240): Alarm triggering: Alarm{46cccaf8 type 2
com.android.email
}
V/AlarmManager(  240): Adding Alarm{46bbdb78 type 2 com.android.email}
Dec 31 08
:10:06 pm
V/AlarmManager(  240): Adding Alarm{46bb2458 type 2 com.android.email}
Dec 31 06
:05:00 pm
V/AlarmManager(  240): Alarm triggering: Alarm{46bb2458 type 2
com.android.email
}
V/AlarmManager(  240): Adding Alarm{46b79b28 type 2 com.android.email}
Dec 31 08
:10:06 pm
V/AlarmManager(  240): Adding Alarm{46b79a50 type 2 com.android.email}
Dec 31 06
:05:00 pm
V/AlarmManager(  240): Alarm triggering: Alarm{46b79a50 type 2
com.android.email
}
V/AlarmManager(  240): Adding Alarm{46b39d50 type 2 com.android.email}
Dec 31 08
:10:06 pm
V/AlarmManager(  240): Adding Alarm{46b286a8 type 2 com.android.email}
Dec 31 06
:05:00 pm
V/AlarmManager(  240): Alarm triggering: Alarm{46b286a8 type 2
com.android.email
}
V/AlarmManager(  240): Adding Alarm{46acb500 type 2 com.android.email}
Dec 31 08
:10:06 pm
V/AlarmManager(  240): Adding Alarm{46ac70b8 type 2 com.android.email}
Dec 31 06
:05:00 pm
V/AlarmManager(  240): Alarm triggering: Alarm{46ac70b8 type 2
com.android.email
}
V/AlarmManager(  240): Adding Alarm{46aaa9b8 type 2 com.android.email}
Dec 31 08
:10:06 pm
V/AlarmManager(  240): Adding Alarm{46aa4b60 type 2 com.android.email}
Dec 31 06
:05:00 pm
V/AlarmManager(  240): Alarm triggering: Alarm{46aa4b60 type 2
com.android.email
}
V/AlarmManager(  240): Adding Alarm{46a642e0 type 2 com.android.email}
Dec 31 08
:10:06 pm
V/AlarmManager(  240): Adding Alarm{46a60b88 type 2 com.android.email}
Dec 31 06
:05:00 pm
V/AlarmManager(  240): Alarm triggering: Alarm{46a60b88 type 2
com.android.email
}
V/AlarmManager(  240): Adding Alarm{46a1b7b8 type 2 com.android.email}
Dec 31 08
:10:06 pm
V/AlarmManager(  240): Adding Alarm{46a18c48 type 2 com.android.email}
Dec 31 06
:05:00 pm
V/AlarmManager(  240): Alarm triggering: Alarm{46a18c48 type 2
com.android.email
}
V/AlarmManager(  240): Adding Alarm{469f0d90 type 2 com.android.email}
Dec 31 08
:10:06 pm
V/AlarmManager(  240): Adding Alarm{469edb90 type 2 com.android.email}
Dec 31 06
:05:00 pm
V/AlarmManager(  240): Alarm triggering: Alarm{469edb90 type 2
com.android.email
}
V/AlarmManager(  240): Adding Alarm{469ad980 type 2 com.android.email}
Dec 31 08
:10:06 pm
V/AlarmManager(  240): Adding Alarm{46951200 type 2 com.android.email}
Dec 31 06
:05:00 pm
V/AlarmManager(  240): Alarm triggering: Alarm{46951200 type 2
com.android.email
}
V/AlarmManager(  240): Adding Alarm{468e6e08 type 2 com.android.email}
Dec 31 08
:10:06 pm
V/AlarmManager(  240): Adding Alarm{468afbb0 type 2 com.android.email}
Dec 31 06
:05:00 pm
V/AlarmManager(  240): Alarm triggering: Alarm{468afbb0 type 2
com.android.email
}
V/AlarmManager(  240): Adding Alarm{46881740 type 2 com.android.email}
Dec 31 08
:10:06 pm
V/AlarmManager(  240): Adding Alarm{46860a78 type 2 com.android.email}
Dec 31 06
:05:00 pm
V/AlarmManager(  240): Alarm triggering: Alarm{46860a78 type 2
com.android.email
}
V/AlarmManager(  240): Adding Alarm{468212d8 type 2 com.android.email}
Dec 31 08
:10:06 pm
V/AlarmManager(  240): Adding Alarm{46800330 type 2 com.android.email}
Dec 31 06
:05:00 pm
V/AlarmManager(  240): Alarm triggering: Alarm{46800330 type 2
com.android.email
}
V/AlarmManager(  240): Adding Alarm{467a7de0 type 2 com.android.email}
Dec 31 08
:10:07 pm
V/AlarmManager(  240): Adding Alarm{467657c0 type 2 com.android.email}
Dec 31 06
:05:00 pm
V/AlarmManager(  240): Alarm triggering: Alarm{467657c0 type 2
com.android.email
}
V/AlarmManager(  240): Adding Alarm{466fddc8 type 2 com.android.email}
Dec 31 08
:10:07 pm
V/AlarmManager(  240): Adding Alarm{466b2e88 type 2 com.android.email}
Dec 31 06
:05:00 pm
V/AlarmManager(  240): Alarm triggering: Alarm{466b2e88 type 2
com.android.email
}
V/AlarmManager(  240): Adding Alarm{466489e8 type 2 com.android.email}
Dec 31 08
:10:07 pm
V/AlarmManager(  240): Adding 

[android-developers] Blank screen appear when EditText get focus in ldpi(240*320) mode

2010-10-13 Thread Wilder
Hi All,

I found that when EditText in placing at the bottom of screen, and the
activity's android:windowSoftInputMode=adjustPan, and the apps run
in ldpi(240*320) mode, then when EditText has focus, the content of
the activity is panned too far to the above, thus leaving a blank
screen between the content of the window and the soft input panel.

You can see the screenshot of this problem at 
https://sites.google.com/site/wilderwang/android

Also, the source code to repro this problem can also be get at
https://sites.google.com/site/wilderwang/android

When I test further, if the same apps run in hdpi(480*800), when
EditText got focus, the content of the window panned too small thus
causing the soft input window cover the EditText view. It seems the
distance of the window panned not compute the screen density.

Is this a known bug? Any method to workaround this?

Thanks
Wilder

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

2010-10-13 Thread KANTESH BABANNAVAR
I think actoin should be android.intent.category.CAR_DOCK.

On Oct 11, 7:57 am, zachariahyoung zpyo...@gmail.com wrote:
 I'm trying to write a program to send an email when the phone is
 placed in the car dock.  I have create a Android Project with no
 Activities.

 Below is the one class I have created.  It just has a Toast so I can
 see that it is working.  Below is the code which I think is correct.

 package com.demo.carmode;

 import android.content.BroadcastReceiver;
 import android.content.Context;
 import android.content.Intent;
 import android.util.Log;
 import android.widget.Toast;

 public class CarMode extends BroadcastReceiver {

         @Override
         public void onReceive(Context arg0, Intent intent) {
                 Toast.makeText(arg0, Hello Car Mode, 
 Toast.LENGTH_SHORT).show();
                 Log.d(ExmampleBroadcastReceiver, intent= + intent);
                 Log.i(CarMod, hello world);
         }

 }

 My mainfest is real simple also.

 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=http://schemas.android.com/apk/res/android;
         package=com.demo.carmode android:versionCode=1
 android:versionName=1.0
         application android:icon=@drawable/icon android:label=@string/
 app_name
                 receiver android:name=.CarMode android:enabled=true
                         intent-filter
                                 action 
 android:name=android.intent.action.MAIN/action
                                 category 
 android:name=android.intent.category.CAR_DOCK/
 category
                         /intent-filter
                 /receiver
         /application
 /manifest

 I'm testing the code by click on the phone Car Home app.  Would this
 not be the same thing as docking the phone?

 Have I not setup my manifest correctly?  Could I be missing something
 else.  Seems like this should work.  I also see the active and
 category appear on my logcat.

 Thanks for the help

 Zach

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

2010-10-13 Thread Brian
I want the user to be able to click the generate button multiple
times, but it can only be clicked once after the start screen.  I have
my screen change to a different view based on which random number is
made.  I want my program to generate another random number as many
times as the user wants.  But my program only allows it to happen
once.  Any way I can make it so that it is clickable an infinite
number of times?

My code is below:

package org.factgenerator;

import java.util.Random;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

public class Facts extends Activity implements OnClickListener{

Random rand = new Random();
int randomNumber;
View generateButton;
boolean clicked = false;

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

View generateButton = findViewById(R.id.generate_button);
if(!clicked){
generateButton.setOnClickListener(this);
}
}

public void generateNumber(){
int n = 5;
randomNumber = rand.nextInt(n+1);
}

@Override
public void onClick(View v) {
clicked = true;
generateNumber();
switch(randomNumber){
case 1:
setContentView(R.layout.fact1);
generateNumber();
clicked = false;
break;
case 2:
setContentView(R.layout.fact2);
generateNumber();
clicked = false;
break;
case 3:
setContentView(R.layout.fact3);
generateNumber();
clicked = false;
break;
}
//generateButton.setOnClickListener(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] G2 vs. Samsung Android phone

2010-10-13 Thread olegkon
Hi,

I would like to try Flex/AIR development on Android phones [have lots
of Flex/AIR + Java experience on PCs].

With T-mobile Android phone G2 and Samsung Vibrant seem to be the
better
choice to buy for development, of which Vibrant has more memory,
faster processor and screen resolution,
lighter, cheaper  but Vibrant has Android 2.1, and G2 - 2.2.
Is it easy to upgrade ?

Which one would you recommend for development ?


TIA,
Oleg.

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


  1   2   3   4   >