[android-developers] Re: Dynamically including a custom view defined in another app

2011-03-21 Thread Doug
Just for the sake of argument, what do you think is the worst thing that a 
malicious app can do if one of its classes is loaded into another app that 
is using this technique?  I understand there could be problems if you call 
methods on a loaded class and happen to pass it a reference to something 
sensitive.  But just loading a class?

Doug

On Thursday, March 10, 2011 11:32:31 AM UTC-8, Shri wrote:

 With Context.createPackageContext, you can use the 
 CONTEXT_IGNORE_SECURITY flag along with CONTEXT_INCLUDE_CODE to load 
 the code in the apk. You will then need to do your own security 
 checks, which is probably making sure that the .apk you are loading is 
 signed with the same certificate as your own. Yup, you do need to be 
 careful here to avoid creating security bugs. 
 http://commonsware.com/training

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

[android-developers] Re: Widgets in SD installed application

2011-03-21 Thread siliconeagle
this has been disallowd as the sd card can be unmounted.

http://code.google.com/p/android/issues/detail?id=11283

On Mar 21, 9:27 am, Joan Pujol joanpu...@gmail.com wrote:
 Did widgets work in a SD installed application?

 According Android javadoc it seems that can work:

 App Widgets
 Your A file:///C:/java/android/docs/guide/topics/appwidgets/index.htmlpp
 Widgets will be removed from the home screen. When external storage is
 remounted, your App Widget will *not* be available for the user to select
 until the system resets the home application (usually not until a system
 reboot).

 But I tried in my application and if it's moved to the SD the widgets
 disappear from the home screen and also from the list of available widgets
 and it is not possible to add another time. (I tested with Nexus S with
 2.3.2 with reboot included)

 I read also in StackOverflow an entry saying that widgets didn't work on 
 sdhttp://stackoverflow.com/questions/4747395/android-widget-from-sd-card

 They work or not?

 A lot of 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] Stop USB Port programmatically

2011-03-21 Thread Luiz Felipe Puccinelli Glingani
Is it possible to stop/disable the USB port programmatically ?

Thanks,
Luiz

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

2011-03-21 Thread Krischik Martin
On 18 Mrz., 09:05, guiridemeer guiridem...@gmail.com wrote:

 I need to hide or change the battery-low dialog.

Would you please tell my which application you are working on so I can
make sure I never install it.

Martin

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

2011-03-21 Thread Doug
http://code.google.com/android/c2dm/


On Saturday, March 19, 2011 1:50:17 AM UTC-7, Prashant wrote:

 Hey Guys 

 I was wondering if there is someone on this list involved in developing an 
 app /service using   cloud to device  push notification api on Android  or 
 you know of some good use case /instances of an Android application using 
 the same ?   if you know of any write up where i can get a sense of scope 
 and pitfall of this service from a design  perspective ( i have studied the 
 tech spec ) Please share that too . 

 Thanks in anticipation 

 Regards
 -- 
 Prashant Singh
 Product Manager, Spice Labs.
 Blog : http://blog.spicelabs.in
 If someone's using a PC to demo the Next Big Thing... then it's not the 
 next big thing.~Russell Beattie


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

2011-03-21 Thread Prashant
Thanks for your revert . I know that page I have seen those two app
mentioned there . i was looking for more of the example . I am
surprised why this functionality has not been picked up by developer
community . it hold so much possibility . is there any performance
issue or its just not ready for prime time yet ?

On Mar 21, 11:37 am, Doug beafd...@gmail.com wrote:
 http://code.google.com/android/c2dm/On Saturday, March 19, 2011 1:50:17 AM 
 UTC-7, Prashant wrote:

  Hey Guys

  I was wondering if there is someone on this list involved in developing an
  app /service using   cloud to device  push notification api on Android  or
  you know of some good use case /instances of an Android application using
  the same ?   if you know of any write up where i can get a sense of scope
  and pitfall of this service from a design  perspective ( i have studied the
  tech spec ) Please share that too .

  Thanks in anticipation

  Regards
  --
  Prashant Singh
  Product Manager, Spice Labs.
  Blog :http://blog.spicelabs.in
  If someone's using a PC to demo the Next Big Thing... then it's not the
  next big thing.~Russell Beattie

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

2011-03-21 Thread Eric Wong (hdmp4.com)
Check other posts.

Many have complained that the emulator does not support mic.

On Mar 21, 5:31 am, Balu Varanasi vab...@gmail.com wrote:
 Hi all :)

  I'm trying to implement a Voice recognition application in android 2.2
 emulator. I'm getting an error that Recognizer not present. How to
 implement this. Is my windows 7 operating system requires additional Voice
 recognition softwares?? How to install Google Voice app into adroid
 emulator??

 Here is the link for the example I'm 
 doing.http://www.jameselsey.co.uk/blogs/techblog/android-how-to-implement-v...

 Thank you

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


[android-developers] Re: How to stop ActivityManager logging

2011-03-21 Thread Will
David and Mark,

Thanks for your answers.  I was just trying to prevent, at some level,
visibility into a users activity.  From a security angle that would be
preferable to ward off haphazard snooping in the logs.  Nothing is
ever 100% secure, it's all about levels :-)

But, from your answers it seems like there is no easy way to do this.
Thank you both for the confirmation on this topic.

Cheers

On Mar 18, 6:06 pm, David Caunt dca...@gmail.com wrote:
 You know that even if you achieve this, someone can still list your
 activities using aapt? What exactly are you trying to achieve?
 On 18 Mar 2011 13:44, Mark Murphy mmur...@commonsware.com wrote:



  On Thu, Mar 17, 2011 at 1:19 PM, Will wjelli...@gmail.com wrote:
  The ActivityManager is logging every time it starts one of my
  activities.

  Yes.

  We could obfuscate the activity names, but I'd rather not do that as
  well.  So my question: is there any way to stop the ActivityManager
  from logging every time one of my activities starts?

  Write your own firmware, one where you comment out the ActivityManager
  logging information. There is no way to control this from the SDK
  level that I am aware of.

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

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

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

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


[android-developers] android:textAppearance on button

2011-03-21 Thread Sebastian Roth
Hello:

Suppose I have this button:

Button
android:layout_width=179dp
android:layout_height=match_parent
android:layout_centerHorizontal=true

android:background=@drawable/bg_act_incall_actions_end_call

android:text=End Call
android:textAppearance=@style/TextInCallEndCallButton
style=@style/SimpleBlackShadow
/

and a TextInCallEndCallButton style:

style name=TextInCallEndCallButton
item name=android:textSize20sp/item
item name=android:textColor#ff/item
item name=android:textStylebold/item
/style

The button color (the text) will stay BLACK.

Now, when I'm setting android:textColor directly on the Button, it works.

So, supposed textAppearance is not working, the button label would still be
BOLD and in the specified size of 20sp.

Is this a bug to report or a behavior to avoid?

Android 2.2, HTC Desire.

Thanks!

Sebastian

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

2011-03-21 Thread FrankG
Hi Luiz,

I think you must give some details concerning your aim.

But the sdk has no support for
lower level usb functionality.

Good luck ! Frank



On 21 Mrz., 07:29, Luiz Felipe Puccinelli Glingani
luizfelip...@gmail.com wrote:
 Is it possible to stop/disable the USB port programmatically ?

 Thanks,
 Luiz

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

2011-03-21 Thread guiridemeer
I am developing an application for people with disabilities (down
syndrome and so on) and I need to take the control of every window in
the phone and Battery-Low Dialog is a window with two buttons and i
need to change it with an easier dialog with only a Pictogram and a
voice signal or something like this.

I dont want to cheat the user...i want to make my own battery-low
dialog to avoid people with dificulties to learn and use a celular
phone to be confused and to go (through battery-state button) to a
part of  phone skills they are not able to deal with.

Thats all.

I see that is not possible without changing the firmware so I will
try.

Thanks to everyone.

On 21 mar, 07:33, Krischik Martin martin.krisc...@noser.com wrote:
 On 18 Mrz., 09:05, guiridemeer guiridem...@gmail.com wrote:

  I need to hide or change the battery-low dialog.

 Would you please tell my which application you are working on so I can
 make sure I never install it.

 Martin

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

2011-03-21 Thread dashman
I'm building an AlertDialog where i display
a message.

but at the bottom - i would like a checkbox
w/ label do not show again.

any way to do this.

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


[android-developers] Re: can i hide or change battery-low dialog?

2011-03-21 Thread Krischik Martin
On 21 Mrz., 08:59, guiridemeer guiridem...@gmail.com wrote:

 I am developing an application for people with disabilities

You should have said that in the first post and you would have got
more and better answers. You should understand that on a phone for
normal enabled users what you have asked for is considered evil.

Regards

Martin

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

2011-03-21 Thread Marcin Orlowski
On 21 March 2011 07:29, Luiz Felipe Puccinelli Glingani 
luizfelip...@gmail.com wrote:

 Is it possible to stop/disable the USB port programmatically ?



Whatever you mean by stop USB port it would be rather not possible to
regular application.

Regards,
Marcin Orlowski

Tray Agenda http://bit.ly/trayagenda - keep you daily schedule handy...




 Thanks,
 Luiz

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

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

[android-developers] Re: can i hide or change battery-low dialog?

2011-03-21 Thread guiridemeer
On 21 mar, 09:28, Krischik Martin martin.krisc...@noser.com wrote:
 On 21 Mrz., 08:59, guiridemeer guiridem...@gmail.com wrote:
 You should have said that in the first post and you would have got
 more and better answers. You should understand that on a phone for
 normal enabled users what you have asked for is considered evil.

Of course I understand...

I should have said but i forgot. No problem :-)

I make my application as HOME default app and i can control the keys
and the notification bar but i cant hide the system dialogs and i dont
want my users to go out my app and make something they don't want or
they don't know... and in Battery-low dialog there are two
buttons...one is acceptable because only close the dialog, but the
other (at least en Android 2.1) lets the user go to BatteryStatus
window and that is not desireable.

I would try with the firmware but i think it would be too much for
me ;-)

Regards

Enrique

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

2011-03-21 Thread a a
Hi all,

  How can i write a tag like string Dog on the picture. Can anyone
paste his/her code on here?

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

2011-03-21 Thread Kostya Vasilyev
You can specify your own layout for the alert dialog, which would 
include the check box.


http://developer.android.com/reference/android/app/AlertDialog.Builder.html#setView(android.view.View)

-- Kostya

21.03.2011 11:27, dashman пишет:

I'm building an AlertDialog where i display
a message.

but at the bottom - i would like a checkbox
w/ label do not show again.

any way to do this.




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

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


Re: [android-developers] write tag with opengl on android

2011-03-21 Thread Marcin Orlowski
On 21 March 2011 09:48, a a harvey.a...@gmail.com wrote:

   How can i write a tag like string Dog on the picture.


Use Canvas to paint on your bitmap.
http://developer.android.com/reference/android/graphics/Canvas.html

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

[android-developers] Re: Restart Service after it has been killed by the system

2011-03-21 Thread Paolo
Hi TreKing,
for short time I mean at least 30min, not more.

Using START_STICKY my service doesn't restart anymore. It has happened
to start again only once, but after 6 hours more or less... I'd like
to understand if this is the normal behaviour or there is something
wrong.


On 19 Mar, 02:55, TreKing treking...@gmail.com wrote:
 On Fri, Mar 18, 2011 at 6:02 AM, Paolo brand...@gmail.com wrote:
  How can avoid it?

 You can't.

  Or at least how can I restart my service as soon as possible?

 Attach it to an ongoing notification to indicate it's something the user
 cares about and should have slightly higher priority.

  I found that can return from onStartCommand START_REDELIVER_INTENT
  or START_STIKY. They seem to be what I'm looking for, but the Service seems
  not to restart in a short time...

 Define in a short time.

  Could someone get me some suggestions or clarify it to me this situation?
  Is there a trick?

 Not really. It should just work this way by default.

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

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


Re: [android-developers] Re: 2d game development

2011-03-21 Thread a a
2011/3/2 Riyad rka...@gmail.com:
 In addition to TreKing's reply, you will want to decide if you are
 going to hand draw this stuff or use OpenGL, I'm going to assume you
 will be using OpenGL if you want lots of layers and spirtes moving
 performantly across each other and possibly add some effects.

 So the next part of your question is how do I get started with
 OpenGL -- I'd suggest searching around for it, and you will probably
 want to start with a good game engine that'll make your life easier;
 some framework that makes loading images, animating them, etc. etc.
 easier.

 For that, I'd look at libgdx as a jumping off point.
 http://code.google.com/p/libgdx/

My god, this code is too large, as a new member game developer, it is
very hard to understand.

 The forums for the engine are fantastic:
 http://www.badlogicgames.com/forum/

 and the wiki is chalk full of information:
 http://www.badlogicgames.com/wiki/index.php/Main_Page


 If you have done Java 2D in depth before, a lot of that knowledge gets
 you off the ground pretty quick (as far as being familiar with how
 graphic basics work, painting, etc.) if you have done very little Java
 and no Java 2D, you'll want to grab a good OpenGL ES book and start
 from scratch. Just get familiar with things.

 and after you get through the first few tutorials, write the next
 Gears of War for Android, shoot for the moon!

 On Feb 25, 9:43 pm, CONORxx conisdab...@hotmail.co.uk wrote:
 Is it possible to create a 2d, touch based game for android devices
 using Eclips and xml. And where about do new comers go to learn to
 write the xml code for android apps and games.

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

2011-03-21 Thread rishabh agrawal
When i run my application on api level 4 then it create unecpected
error but when i run on api level 8 then it not create any error,i
also set the
 uses-sdk
 android:minSdkVersion=4
android:maxSdkVersion=10 /

application android:icon=@drawable/sai11
 android:label=@string/app_name 
activity android:name=.shirdi


so how to remove these error,please guide me.

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

2011-03-21 Thread vamsi
Hi

Does anyone knows how to extend the time period for voice recognition?
According to my application user need to say any words, through voice
recognition my application will return some output. For that the time
period should be more to recognize the complete word from user. To
improve waiting time to retrieve the total input from user, what
should i do? Please give some suggestion. Any response would be
appreciated.

Thanks in advance

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


Re: [android-developers] Unexpected error

2011-03-21 Thread Marcin Orlowski
 so how to remove these error,please guide me.


That's simple - fix it. That usually works for untold issues.
And in general - you forgot to quite your crash log

Regards,
Marcin Orlowski

Tray Agenda http://bit.ly/trayagenda - keep you daily schedule handy...






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

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

Re: [android-developers] using the keytool for getting google-maps-API-key returns unrecognized option error

2011-03-21 Thread Bob Kerns
I mean to say Note: no -keypass parameter. It is not legal  Not 
-storepass.  Sorry if I added to anyone's confusion!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] using the keytool for getting google-maps-API-key returns unrecognized option error

2011-03-21 Thread Kostya Vasilyev

21.03.2011 13:36, Bob Kerns пишет:
I mean to say Note: no -keypass parameter. It is not legal Not 
-storepass. Sorry if I added to anyone's confusion! 


It makes sense that getting a list of keys requires the keystore 
password, not passwords for individual keys.


However, this only highlights the fact that the OP was getting a version 
of keytool that did not come from the Sun / Oracle JDK.


Android docs say this:

http://developer.android.com/guide/publishing/app-signing.html#setup

If you are developing on a version of Linux that originally came with 
GNU Compiler for Java, make sure that the system is using the JDK 
version of Keytool, rather than the gcj version. If Keytool is already 
in your PATH, it might be pointing to a symlink at /usr/bin/keytool. 
In this case, check the symlink target to be sure it points to the 
Keytool in the JDK.


I don't know what's different about the keytool in GCJ to warrant this 
warning, but - there it is.


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

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


[android-developers] Re: How to use the static fragment library in legacy apps?

2011-03-21 Thread AMGG

I don't understand why Google doesn't provide a good and easy-to-use
example... kind of PlugPlay.

I have tried the API Demos example that Google provides and it just
gives a bunch of compilation errors.

At the end I have had to waste my time creating a new project to make
it work. Just adding the Fragment*Support java files didn't work,
because some of them make use of other files like
CheckableFrameLayout.java or SendResult.java.

I think it's not a good experience for developers who try to learn
some new features if they need to fix the example first.

Please, take this as a constructive note. :)


Btw, for anyone with the same problems, I have get it working on
phones running Android 2.2, if anyone is interested:
http://www.ideaknow.com/downloads/APIDemos_FragmentTests.zip



On 5 mar, 18:54, Dianne Hackborn hack...@android.com wrote:
 On Sat, Mar 5, 2011 at 5:08 AM, Alessio Grumiro a.grum...@gmail.com wrote:
  Can you give me another sample app, please?

 Um, no.  I've already written a lot of samples.  I'd suggest as a first step
 copying the code from one of the 10 or so samples in ApiDemos and making
 sure it works in your project.  Be sure it is one of the ones with the name
 of the form Fragment*Support.java; the ones that don't end in support
 are for using the HC framework APIs.  (I realize it would be better to have
 these samples off in a different package; I'll move them for a future
 version.)

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

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

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


[android-developers] Free Text Search

2011-03-21 Thread وماتوفيقيإلابالله
How to search for a phrase in a huge, unindexed file?  And highlight the 
results among the file?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Dynamically including a custom view defined in another app

2011-03-21 Thread Mark Murphy
On Mon, Mar 21, 2011 at 2:06 AM, Doug beafd...@gmail.com wrote:
 Just for the sake of argument, what do you think is the worst thing that a
 malicious app can do if one of its classes is loaded into another app that
 is using this technique?  I understand there could be problems if you call
 methods on a loaded class and happen to pass it a reference to something
 sensitive.  But just loading a class?

First, just loading a class would invoke all static initializers;
otherwise, it would be loaded.

Second, nobody would be just loading a class in all likelihood. For
example, the OP wants to load in a custom View from another app, and
that will involve a wee bit more than just loading a class, such as
invoking constructors and methods.

In either case, the third-party code can get control and do whatever
it wants within that process (read a database, delete files, perform
actions using permissions, etc.).

-- 
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.5 Available!

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


Re: [android-developers] Re: AppWidget Stopped !!!

2011-03-21 Thread Mark Murphy
On Mon, Mar 21, 2011 at 12:29 AM, hardrock hardrock...@gmail.com wrote:
 However, another problem is ACTION_TIME_CHANGED or
 ACTION_TIMEZONE_CHANGED.

 If receiver has died from system, we also can NOT receive above
 broadcast messages.

If your BroadcastReceivers for these are registered in the manifest,
they cannot have died from system.

-- 
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.5 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] Can i disable Home Button in Android for my application only.???

2011-03-21 Thread Onkar Dhane,Trainee Software Developer,Alphabricks Technology pvt. ltd
Hi,i have created one application in which i have put one image on
layout.and now i want to control home button..if user click on home
button then also it must not take user to home button..i.e to disable
home button..if any one have an idea to control home button then
please give me.

Thanks in Advance--
Onkar D. Dhane..

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


Re: [android-developers] Can i disable Home Button in Android for my application only.???

2011-03-21 Thread Mark Murphy
Write your own firmware.

Or, turn your application into a home screen replacement and convince
the users to use it.

Otherwise, you cannot control home button.

On Mon, Mar 21, 2011 at 7:26 AM, Onkar Dhane,Trainee Software
Developer,Alphabricks Technology pvt. ltd dhane.on...@gmail.com
wrote:
 Hi,i have created one application in which i have put one image on
 layout.and now i want to control home button..if user click on home
 button then also it must not take user to home button..i.e to disable
 home button..if any one have an idea to control home button then
 please give me.

 Thanks in Advance--
 Onkar D. Dhane..

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




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

_The Busy Coder's Guide to Android Development_ Version 3.5 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: json data to array list

2011-03-21 Thread DanH
You run the JSON through a JSON parser.  There's one built in to the
SDK if you look for it.

On Mar 20, 11:10 pm, acr acr...@gmail.com wrote:
 Hi,
 I have looked everywhere and feel like I am going in circles at this
 point what I am trying to do seems simple enough.. I a, trying to take
 json data parsed from my mysql server and send the info to an array
 list in android.

 I can return the json strings with no problem, eg.
 json_data.getString(username) gives me a username in string format,
 but how do I put them into the a simple arraylist

 for example how can I plug this into..

  setListAdapter(new ArrayAdapterString(this,
                 android.R.layout.simple_list_item_1, mStrings));
         getListView().setTextFilterEnabled(true);
     }

     private String[] mStrings = {
             Abbaye de Belloc, Abbaye du Mont des Cats};

 please help.. thanks,
 Albert

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

2011-03-21 Thread rishabh agrawal
03-21 11:49:32.092: ERROR/AndroidRuntime(234): Uncaught handler:
thread main exiting due to uncaught exception


these error is occures how to remove it


On Mar 21, 2:30 pm, Marcin Orlowski webnet.andr...@gmail.com wrote:
  so how to remove these error,please guide me.

 That's simple - fix it. That usually works for untold issues.
 And in general - you forgot to quite your crash log

 Regards,
 Marcin Orlowski

 Tray Agenda http://bit.ly/trayagenda - keep you daily schedule handy...





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

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


[android-developers] Re: Does emulator destinguishes the voice of two persons?

2011-03-21 Thread Balu Varanasi
Hi Eric :)

Thank you for you reply. Could you please suggest me an Idea of how to 
implement Voice Recognition in Android 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] Quick Search Box Limit

2011-03-21 Thread Nesim TUNÇ
Hi,

Do you know my QSB suggestion show only one result even my cursor has 10 row
of result?

-- 
Nesim TUNÇ
Senior Software Developer of Distributed Applications

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

2011-03-21 Thread Nesim TUNÇ
Hi Great Developers,

I have a job that needs to check if the time's up. Now, I do that with a
normal Android Service. I wonder is there anything to handle such of those
things? I don't want to that via while loop because of cpu and battery
spending.

Thanks in advance.

-- 
Nesim TUNÇ
Senior Software Developer of Distributed Applications

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

2011-03-21 Thread David Caunt
Hi Androiders,

I've received a few stack traces which contain only references to framework
code, for example:

java.lang.NullPointerException
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1366)
at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
at android.view.View.draw(View.java:6796)
at android.widget.FrameLayout.draw(FrameLayout.java:354)
at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
at android.view.View.draw(View.java:6796)
at android.widget.FrameLayout.draw(FrameLayout.java:354)
at
com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:1894)
at android.view.ViewRoot.draw(ViewRoot.java:1432)
at android.view.ViewRoot.performTraversals(ViewRoot.java:1174)
at android.view.ViewRoot.handleMessage(ViewRoot.java:1752)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4627)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
at dalvik.system.NativeStart.main(Native Method)

How does one go about dealing with these reports and fixing the causes?

Regards

David

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] using the keytool for getting google-maps-API-key returns unrecognized option error

2011-03-21 Thread Syed Rakib Al Hasan
On Mon, Mar 21, 2011 at 4:48 PM, Kostya Vasilyev kmans...@gmail.com wrote:

 Android docs say this:

 http://developer.android.com/guide/publishing/app-signing.html#setup

  If you are developing on a version of Linux that originally came with GNU
 Compiler for Java, make sure that the system is using the JDK version of
 Keytool, rather than the gcj version. If Keytool is already in your PATH, it
 might be pointing to a symlink at /usr/bin/keytool. In this case, check the
 symlink target to be sure it points to the Keytool in the JDK.


DAMN!.. how could i not previously. i was
SOO looking for a pointer like this all over the android
developer guide.. a pointer which would tell me how to ensure my
signing tools are properly setup.

regards
Rakib

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

2011-03-21 Thread Marcin Orlowski
On 21 March 2011 12:54, rishabh agrawal android.rish...@gmail.com wrote:

 03-21 11:49:32.092: ERROR/AndroidRuntime(234): Uncaught handler:
 thread main exiting due to uncaught exception


 these error is occures how to remove it


Use try/catch syntax around the call that causes this problem. read log
around this line - you shall find out more detailed information on where the
real culprit lurks.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] using the keytool for getting google-maps-API-key returns unrecognized option error

2011-03-21 Thread Kostya Vasilyev

There is also the ever-useful which command, as in:

 which keytool

will tell you which keytool (!) is getting executed when you type keytool.

I don't remember if which follows links, so just in case, the 
following should show link target, if the keytool on the path is 
actually a link:


 ls -l `which keytool`

(those are back-ticks, located on the upper-left key on most keyboards)

-- Kostya

21.03.2011 15:30, Syed Rakib Al Hasan ?:



DAMN!.. how could i not previously. i was 
SOO looking for a pointer like this all over the 
android developer guide.. a pointer which would tell me how to 
ensure my signing tools are properly setup.


regards
Rakib



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

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

[android-developers] Re: Unexpected error

2011-03-21 Thread rishabh agrawal
03-21 18:04:46.292: WARN/WindowManager(48): No window to dispatch
pointer action 1
03-21 18:04:46.301: ERROR/AndroidRuntime(196):
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.sai.s/com.sai.s.bs}: android.view.InflateException:
Binary XML file line #18: Error inflating class
java.lang.reflect.Constructor
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2401)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.app.ActivityThread.startActivityNow(ActivityThread.java:2242)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.app.LocalActivityManager.moveToState(LocalActivityManager.java:
127)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.app.LocalActivityManager.startActivity(LocalActivityManager.java:
339)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.widget.TabHost
$IntentContentStrategy.getContentView(TabHost.java:631)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.widget.TabHost.setCurrentTab(TabHost.java:317)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.widget.TabHost$2.onTabSelectionChanged(TabHost.java:127)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.widget.TabWidget$TabClickListener.onClick(TabWidget.java:346)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.view.View.performClick(View.java:2344)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.view.View.onTouchEvent(View.java:4133)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.view.View.dispatchTouchEvent(View.java:3672)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:850)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
com.android.internal.policy.impl.PhoneWindow
$DecorView.superDispatchTouchEvent(PhoneWindow.java:1712)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:
1202)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.app.Activity.dispatchTouchEvent(Activity.java:1987)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
com.android.internal.policy.impl.PhoneWindow
$DecorView.dispatchTouchEvent(PhoneWindow.java:1696)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.view.ViewRoot.handleMessage(ViewRoot.java:1658)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.os.Handler.dispatchMessage(Handler.java:99)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.os.Looper.loop(Looper.java:123)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.app.ActivityThread.main(ActivityThread.java:4203)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
java.lang.reflect.Method.invokeNative(Native Method)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
java.lang.reflect.Method.invoke(Method.java:521)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:791)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
dalvik.system.NativeStart.main(Native Method)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): Caused by:
android.view.InflateException: Binary XML file line #18: Error
inflating class java.lang.reflect.Constructor
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.view.LayoutInflater.createView(LayoutInflater.java:512)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:
56)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:562)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.view.LayoutInflater.rInflate(LayoutInflater.java:617)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.view.LayoutInflater.rInflate(LayoutInflater.java:620)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at

Re: [android-developers] Re: Android Application Sold to 100,000 Users

2011-03-21 Thread TreKing
On Sun, Mar 20, 2011 at 11:03 PM, varinag gold varinagg...@gmail.comwrote:

 I agree with it but I want to see general trend of Android Market and users
 for priced applications.


Any answers you get from 1 or 2 developers is not going to speak to any
general trend. You'd need to look at the Market as a whole.
Anyway, this is one of those personal questions most people are not likely
to respond to, so you're probably not going to get much of a response.
Sorry.

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

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

[android-developers] Re: advertise free or paid....

2011-03-21 Thread Emanuel Moecklin
You are violating the Android Market Developer Program Policies
(http://www.android.com/us/developer-content-policy.html):
Spam and Placement in the Store
[...] Developers also should not attempt to change the placement of
any Product in the Store by rating an application multiple times, or
by offering incentives to users to rate an application with higher or
lower ratings.

On Mar 20, 12:22 pm, brian purgert brianpurge...@gmail.com wrote:
 Should I advertise my free or paid version of my application (space
 bike)...
 also I put out a stupid update for a second so I got some bad reviews
 because something did not work. so could you try it and rate it 5 stars and
 leave a comment lol...
 also tell me any changes I should make.

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

2011-03-21 Thread TreKing
On Mon, Mar 21, 2011 at 7:43 AM, rishabh agrawal
android.rish...@gmail.comwrote:

 03-21 18:04:46.301: ERROR/AndroidRuntime(196): *Caused by:* 
 android.view.InflateException:
 Binary XML file line #18: Error inflating class
 java.lang.reflect.Constructor


There's an error in your XML (probably layout) file. Fix it.

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

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

Re: [android-developers] Re: Unexpected error

2011-03-21 Thread David Caunt
03-21 18:04:46.301: ERROR/AndroidRuntime(196): Caused by:
java.lang.OutOfMemoryError: bitmap size exceeds VM budget

Looks like you're using too much memory



On 21 March 2011 12:54, TreKing treking...@gmail.com wrote:

 On Mon, Mar 21, 2011 at 7:43 AM, rishabh agrawal 
 android.rish...@gmail.com wrote:

 03-21 18:04:46.301: ERROR/AndroidRuntime(196): *Caused by:* 
 android.view.InflateException:
 Binary XML file line #18: Error inflating class
 java.lang.reflect.Constructor


 There's an error in your XML (probably layout) file. Fix it.


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


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


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

Re: [android-developers] Re: Unexpected error

2011-03-21 Thread Marcin Orlowski
On 21 March 2011 13:43, rishabh agrawal android.rish...@gmail.com wrote:

Here is something to investigate further

03-21 18:04:46.292: WARN/WindowManager(48): No window to dispatch
 pointer action 1
 03-21 18:04:46.301: ERROR/AndroidRuntime(196):
 java.lang.RuntimeException: Unable to start activity
 ComponentInfo{com.sai.s/com.sai.s.bs}: android.view.InflateException:
 Binary XML file line #18: Error inflating class
 java.lang.reflect.Constructor


and add try/catch block around your startActivity()

Regards,
Marcin Orlowski

Tray Agenda http://bit.ly/trayagenda - keep you daily schedule handy...

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

2011-03-21 Thread Ajith Kamath
Hi

I am facing a problem when I need to export vcards overs bluetooth.
Problem is vcards are large in number. Plus If the vcards have images in
them then size is really high.

So when i try sending this I get OutOfMemory Exception , its Coming from
VcardComposer.java. - At onEntryCreated()

Can I make more memory allocation on the go? Is this possible.
Dalvik basically cannot allocate memory to these data.

Please advice.

Thanks  Regards,
Ajith

PS: Log is below :

-17 11:42:31.669 D/dalvikvm(  740): GC_CONCURRENT freed 1943K, 52% free
12605K/26183K, external 3450K/4213K, paused 2ms+4ms
03-17 11:42:31.970 D/dalvikvm(  740): GC_CONCURRENT freed 1954K, 52% free
12576K/26183K, external 3450K/4213K, paused 2ms+4ms
03-17 11:42:32.369 D/dalvikvm(  740): GC_CONCURRENT freed 1980K, 52% free
12642K/26183K, external 3450K/4213K, paused 2ms+3ms
03-17 11:42:32.556 D/dalvikvm(  740): GC_FOR_MALLOC freed 1412K, 53% free
12541K/26183K, external 3450K/4213K, paused 22ms
03-17 11:42:32.556 I/dalvikvm-heap(  740): Forcing collection of
SoftReferences for 16760848-byte allocation
03-17 11:42:32.576 D/dalvikvm(  740): GC_FOR_MALLOC freed 1K, 53% free
12540K/26183K, external 3450K/4213K, paused 19ms
03-17 11:42:32.576 E/dalvikvm-heap(  740): Out of memory on a 16760848-byte
allocation.
03-17 11:42:32.576 I/dalvikvm(  740): Binder Thread #2 prio=5 tid=8
RUNNABLE
03-17 11:42:32.576 I/dalvikvm(  740):   | group=main sCount=0 dsCount=0
obj=0x40520920 self=0xea818
03-17 11:42:32.576 I/dalvikvm(  740):   | sysTid=747 nice=10 sched=0/0
cgrp=bg_non_interactive handle=583480
03-17 11:42:32.576 I/dalvikvm(  740):   at
java.io.ByteArrayOutputStream.expand(ByteArrayOutputStream.java:~91)
03-17 11:42:32.576 I/dalvikvm(  740):   at
java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:216)
03-17 11:42:32.576 I/dalvikvm(  740):   at
java.io.OutputStreamWriter.flush(OutputStreamWriter.java:164)
03-17 11:42:32.576 I/dalvikvm(  740):   at
java.io.OutputStreamWriter.convert(OutputStreamWriter.java:236)
03-17 11:42:32.576 I/dalvikvm(  740):   at
java.io.OutputStreamWriter.write(OutputStreamWriter.java:225)
03-17 11:42:32.576 I/dalvikvm(  740):   at
java.io.BufferedWriter.write(BufferedWriter.java:301)
03-17 11:42:32.576 I/dalvikvm(  740):   at
java.io.Writer.write(Writer.java:152)
03-17 11:42:32.576 I/dalvikvm(  740):   at
android.pim.vcard.VCardComposer$HandlerForOutputStream.onEntryCreated(VCardComposer.java:212)
03-17 11:42:32.576 I/dalvikvm(  740):   at
android.pim.vcard.VCardComposer.createOneEntry(VCardComposer.java:512)
03-17 11:42:32.576 I/dalvikvm(  740):   at
android.pim.vcard.VCardComposer.createOneEntry(VCardComposer.java:466)
03-17 11:42:32.576 I/dalvikvm(  740):   at
com.android.providers.contacts.ContactsProvider2.outputRawContactsAsVCard(ContactsProvider2.java:5594)
03-17 11:42:32.580 I/dalvikvm(  740):   at
com.android.providers.contacts.ContactsProvider2.openAssetFile(ContactsProvider2.java:5524)
03-17 11:42:32.580 I/dalvikvm(  740):   at
android.content.ContentProvider$Transport.openAssetFile(ContentProvider.java:242)
03-17 11:42:32.580 I/dalvikvm(  740):   at
android.content.ContentProviderNative.onTransact(ContentProviderNative.java:234)
03-17 11:42:32.580 I/dalvikvm(  740):   at
android.os.Binder.execTransact(Binder.java:320)
03-17 11:42:32.580 I/dalvikvm(  740):   at
dalvik.system.NativeStart.run(Native Method)
03-17 11:42:32.580 I/dalvikvm(  740):
03-17 11:42:32.580 E/JavaBinder(  740): *** Uncaught remote exception!
(Exceptions are not yet supported across processes.)
03-17 11:42:32.580 E/JavaBinder(  740): java.lang.OutOfMemoryError
03-17 11:42:32.580 E/JavaBinder(  740):  at
java.io.ByteArrayOutputStream.expand(ByteArrayOutputStream.java:91)
03-17 11:42:32.580 E/JavaBinder(  740):  at
java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:216)
03-17 11:42:32.580 E/JavaBinder(  740):  at
java.io.OutputStreamWriter.flush(OutputStreamWriter.java:164)
03-17 11:42:32.580 E/JavaBinder(  740):  at
java.io.OutputStreamWriter.convert(OutputStreamWriter.java:236)
03-17 11:42:32.580 E/JavaBinder(  740):  at
java.io.OutputStreamWriter.write(OutputStreamWriter.java:225)
03-17 11:42:32.580 E/JavaBinder(  740):  at
java.io.BufferedWriter.write(BufferedWriter.java:301)
03-17 11:42:32.580 E/JavaBinder(  740):  at
java.io.Writer.write(Writer.java:152)
03-17 11:42:32.580 E/JavaBinder(  740):  at
android.pim.vcard.VCardComposer$HandlerForOutputStream.onEntryCreated(VCardComposer.java:212)
03-17 11:42:32.580 E/JavaBinder(  740):  at
android.pim.vcard.VCardComposer.createOneEntry(VCardComposer.java:512)
03-17 11:42:32.580 E/JavaBinder(  740):  at
android.pim.vcard.VCardComposer.createOneEntry(VCardComposer.java:466)
03-17 11:42:32.580 E/JavaBinder(  740):  at
com.android.providers.contacts.ContactsProvider2.outputRawContactsAsVCard(ContactsProvider2.java:5594)
03-17 11:42:32.580 E/JavaBinder(  740):  at
com.android.providers.contacts.ContactsProvider2.openAssetFile(ContactsProvider2.java:5524)
03-17 11:42:32.580 

Re: [android-developers] Re: Unexpected error

2011-03-21 Thread Kostya Vasilyev

Erm... looking further down the call stack:

21.03.2011 15:43, rishabh agrawal ?:

03-21 18:04:46.301: ERROR/AndroidRuntime(196):*Caused by:
java.lang.OutOfMemoryError: bitmap size exceeds VM budget*
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.graphics.Bitmap.nativeCreate(Native Method)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.graphics.Bitmap.createBitmap(Bitmap.java:468)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.graphics.Bitmap.createBitmap(Bitmap.java:435)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.graphics.Bitmap.createScaledBitmap(Bitmap.java:340)


Perhaps an application-provided view class referenced in the XML tries 
to create a humongous bitmap ?


-- Kostya

21.03.2011 15:54, TreKing ?:
On Mon, Mar 21, 2011 at 7:43 AM, rishabh agrawal 
android.rish...@gmail.com mailto:android.rish...@gmail.com wrote:


03-21 18:04:46.301: ERROR/AndroidRuntime(196): *Caused
by:* android.view.InflateException: Binary XML file line #18:
Error inflating class java.lang.reflect.Constructor


There's an error in your XML (probably layout) file. Fix it.

-
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 



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

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

[android-developers] GPS does not stop after ending my app

2011-03-21 Thread Stephan Wiesner
Hi,
I have an app that uses MapView to display data. It uses locationManager to
determine the position of the user and if use of GPS is allowed by the user,
GPS is used.
The problem is that the app does not stop using the GPS (and draining
battery).
I start it using:

locationManager = (LocationManager)
getSystemService(Context.LOCATION_SERVICE);
locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER,
1000 * 60, 20,
new GeoUpdateHandler());


I tried this in onPause() and/or onDestroy(), but it does not help, though
the methods are

@Override
protected void onPause() {
super.onPause();
locationManager.removeUpdates(this);
log(pause);
}

@Override
protected void onStart() {
super.onStart();
locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER,
1000 * 60, 20,
this);
log(onstart);
}


Any ideas?

Thanks,
Stephan

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

2011-03-21 Thread Streets Of Boston
It is still in Google Labs, this means it's still in 'beta'. Some of the 
information about service levels (e.g. total quota or max frequency of 
message that can be sent, etc) is not yet clear. 

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

2011-03-21 Thread Jake Colman

My understanding from reading the documentation is that messages logged
at the verbose level are automatically stripped from production
applications.  I installed my own application via the marketplace (to
ensure that what I was running on my phone was identical to what my
user's would be running) and, to my horror, found that I am spamming the
syslog with my verbose messages.  Is there something manual that I was
supposed to have done to get this automatic behavior?

-- 
Jake Colman -- Android Tinkerer

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

2011-03-21 Thread cuil yahoo
Hey,

I am planning to make an android based application which logs either the
entire history or some part of the history of the last ip addresses used to
access Google accounts.

I did try searching on the internet but that did not result into anything
fruitful.

Is this possible ? A few links or Read up API's would be appreciated. :)

Thanks.
--
Cuil

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

2011-03-21 Thread TreKing
On Mon, Mar 21, 2011 at 8:19 AM, Stephan Wiesner testexpe...@googlemail.com
 wrote:

 Any ideas?


You're passing in new GeoUpateHandler, for which you do not maintain a
reference to later remove. Passing in this (whatever this is) has no
effect, for this is not referencing the new GeoUpdateHandler.

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

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

[android-developers] Re: GPS does not stop after ending my app

2011-03-21 Thread Stephan Wiesner
Hi TreKing,
thanks for your answer. I removed the new GeoUpdateHandler, but that
does not help.

My Activity extends LocationListener:
public class ShowMap extends MapActivity implements LocationListener

so if I provide this on both methods it should work, should it not?


@Override
protected void onStart() {
super.onStart();

locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER,
1000 * 60, 20,
this);
log(onstart);
}


@Override
protected void onPause() {
super.onPause();
locationManager.removeUpdates(this);
log(pause);
}

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

2011-03-21 Thread Jake Colman

I have reviewed the developer documentation on App Widgets and I found
that some of my fundamental questions are not really being addressed.
I'd like to raise some of them here to see if anyone here can send me an
RTFM link or a direct answer.

Given the following: 

I have an application that provides 2x1 widget that can calculate the
time remaining until sunrise.  I'd like to provide an option to
configure the widget to display the time until sunrise or the time until
sunset.  I'd like the user to be able to install two instances of the
widget, each configured for one of those options.  I'd like to provide a
1x1 widget in addition to the 2x1 widget so that the user can choose
which one to use.

Here are my questions:

1) How does one provide multiple options for widget sizes?  Do you just
   add additional meta-data sections under the Receiver entry of the
   manifest? 

2) How does one set options that are unique to a given instance?  The app
   currently uses SharedPreferences for all of its configuration.  But
   if both instances are running in the same context, how can each
   widget know how it is configured as distinct from another instance?

3) The app uses a service that is started by an alarm in order to do the
   updating.  When the alarm is triggered, the service calculates the
   time remaining until the event and then it updates the remote view.
   Do both widgets share the same service?  I'd that is the case since
   it all one app with just multiple widget instances.  If that's the
   case, how can the service know which widget it is updating?

Thanks for any help!

-- 
Jake Colman -- Android Tinkerer

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

2011-03-21 Thread TreKing
On Mon, Mar 21, 2011 at 8:53 AM, Stephan Wiesner testexpe...@googlemail.com
 wrote:

 so if I provide this on both methods it should work, should it not?


Yes. I would pair onStart() with onStop() or onPause() with onResume().

-
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] Free Text Search

2011-03-21 Thread TreKing
On Mon, Mar 21, 2011 at 6:18 AM, وماتوفيقيإلابالله mgur...@gmail.comwrote:

 How to search for a phrase in a huge, unindexed file?  And highlight the
 results among the file?


http://www.catb.org/~esr/faqs/smart-questions.html

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

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

Re: [android-developers] Is there any Reminder Service in Android?

2011-03-21 Thread TreKing
On Mon, Mar 21, 2011 at 7:10 AM, Nesim TUNÇ nesimt...@gmail.com wrote:

 I wonder is there anything to handle such of those things?


AlarmManager?

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

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

[android-developers] Re: advertise free or paid....

2011-03-21 Thread William Ferguson
I don't see any policy being violated here.

The app is not being rated multiple times.
Nor is any incentive being offered. AFAICT.

Annoying, perhaps.
In violation of the referenced policy. No.


On Mar 21, 10:48 pm, Emanuel Moecklin 1gravity...@gmail.com wrote:
 You are violating the Android Market Developer Program Policies
 (http://www.android.com/us/developer-content-policy.html):
 Spam and Placement in the Store
 [...] Developers also should not attempt to change the placement of
 any Product in the Store by rating an application multiple times, or
 by offering incentives to users to rate an application with higher or
 lower ratings.

 On Mar 20, 12:22 pm, brian purgert brianpurge...@gmail.com wrote:

  Should I advertise my free or paid version of my application (space
  bike)...
  also I put out a stupid update for a second so I got some bad reviews
  because something did not work. so could you try it and rate it 5 stars and
  leave a comment lol...
  also tell me any changes I should make.



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

2011-03-21 Thread TreKing
On Mon, Mar 21, 2011 at 8:35 AM, Jake Colman col...@ppllc.com wrote:

 Is there something manual that I was supposed to have done to get this
 automatic behavior?


Apparently the docs are wrong or some devices ignore it. See this thread:
http://groups.google.com/group/android-developers/browse_thread/thread/5a51524da153d1be

-
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] Working with Multiple Widget Instances/Layout

2011-03-21 Thread Kostya Vasilyev

21.03.2011 17:01, Jake Colman пишет:

1) How does one provide multiple options for widget sizes?  Do you just
add additional meta-data sections under the Receiver entry of the
manifest?


Essentially by providing entirely separate widgets, each having its own 
size. They can share implementation (Java code, drawables, layouts), but 
they should be declared as separate widgets as seen by Android.



2) How does one set options that are unique to a given instance?  The app
currently uses SharedPreferences for all of its configuration.  But
if both instances are running in the same context, how can each
widget know how it is configured as distinct from another instance?


Widget ids are persistent until a widget is removed. Store values in 
shared preferences (or some other persistence mechanism) keyed by widget id.



3) The app uses a service that is started by an alarm in order to do the
updating.  When the alarm is triggered, the service calculates the
time remaining until the event and then it updates the remote view.
Do both widgets share the same service?  I'd that is the case since
it all one app with just multiple widget instances.  If that's the
case, how can the service know which widget it is updating?


Use

AppWidgetManager.updateAppWidget(int widgetId, RemoteViews views)

to update only one particular widget.

You can get the ids when needed outside onUpdate like this:

AppWidgetManager manager = AppWidgetManager.getInstance(context);
ComponentName widgetClassName = new ComponentName(context, your 
WidgetProviderClass);

int[] widgetIds = manager.getAppWidgetIds(widgetClassName);

Be aware that in some cases, there may be widget ids that refer to 
non-existent widgets.


I documented my workaround for this issue here:

http://kmansoft.wordpress.com/2010/06/22/per-widget-options-stale-widgets/

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

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


[android-developers] Re: Question about bug reports

2011-03-21 Thread Marcin Orlowski


On Feb 4, 12:12 pm, Marcin Orlowski webnet.andr...@gmail.com wrote:
 On 3 February 2011 23:01, String sterling.ud...@googlemail.com wrote:

  Yes, whoever posted log.d() gets stripped at runtime was wrong.

 Really?http://developer.android.com/reference/android/util/Log.html

For archiving purposes. Docs lie there. Whatever loggin is planted in
the app, it will be there unless *you* remove it.

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


Re: [android-developers] Verbose Logging Not Being Suppressed

2011-03-21 Thread Marcin Orlowski
On 21 March 2011 14:35, Jake Colman col...@ppllc.com wrote:


 My understanding from reading the documentation is that messages logged
 at the verbose level are automatically stripped from production
 applications.


Documentation is wrong there. No Log.x() is stripped. You may try to do that
with proguard.

Regards,
Marcin Orlowski

Tray Agenda http://bit.ly/trayagenda - keep you daily schedule handy...



  I installed my own application via the marketplace (to
 ensure that what I was running on my phone was identical to what my
 user's would be running) and, to my horror, found that I am spamming the
 syslog with my verbose messages.  Is there something manual that I was
 supposed to have done to get this automatic behavior?

 --
 Jake Colman -- Android Tinkerer

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

2011-03-21 Thread Neilz
Hi all.

I'm fairly familiar with ItemizedOverlay and OverlayItem classes,
where you pass a drawable to the Overlay which gets added to the
MapOverlays and displayed on the map.

However I want to create a view, using an XML layout, and add this to
the map in the same way as an overlay. So instead of displaying a
simple image, I want to add a view which has more useful info to show
- but is still in a fixed position on the map and moves with it
accordingly.

Any pointers appreciated... 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] Custom map overlays

2011-03-21 Thread TreKing
On Mon, Mar 21, 2011 at 9:53 AM, Neilz neilhorn...@gmail.com wrote:

 Any pointers appreciated... thanks.


http://code.google.com/android/add-ons/google-apis/reference/com/google/android/maps/MapView.LayoutParams.html

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

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

[android-developers] Re: 2d game development

2011-03-21 Thread Riyad Kalla
Any game engine you look at will have a considerable code base... that
is like asking I would like to do a GUI and someone suggesting Swing
or SWT to you and you saying My god the API is huge!

Yes... they are... they cover a lot. Everything from 3D/2D
abstractions to file I/O.

libgdx has a good number of games in the market place, you can check
the Showcase forum for examples of Apps people are working on.

AndEngine is another one and if you don't mind paying a licensing fee,
Unity I believe has a preview Android version, but it's not cheap.

Alternatively, you can just hand-roll something yourself ontop of
Canvas and learn all the ins and outs first THEN find the game engine
that solves your biggest headaches for you, that way you don't waste
your time learning an engine that isn't making your life easier.

If you are just learning, I always think learning the bare bones
approach to things first before learning a framework is best so you
understand who-does-what.

Just my 2 cents.

On Mar 21, 2:10 am, a a harvey.a...@gmail.com wrote:
 2011/3/2 Riyad rka...@gmail.com: In addition to TreKing's reply, you will 
 want to decide if you are
  going to hand draw this stuff or use OpenGL, I'm going to assume you
  will be using OpenGL if you want lots of layers and spirtes moving
  performantly across each other and possibly add some effects.

  So the next part of your question is how do I get started with
  OpenGL -- I'd suggest searching around for it, and you will probably
  want to start with a good game engine that'll make your life easier;
  some framework that makes loading images, animating them, etc. etc.
  easier.

  For that, I'd look at libgdx as a jumping off point.
 http://code.google.com/p/libgdx/

 My god, this code is too large, as a new member game developer, it is
 very hard to understand.







  The forums for the engine are fantastic:
 http://www.badlogicgames.com/forum/

  and the wiki is chalk full of information:
 http://www.badlogicgames.com/wiki/index.php/Main_Page

  If you have done Java 2D in depth before, a lot of that knowledge gets
  you off the ground pretty quick (as far as being familiar with how
  graphic basics work, painting, etc.) if you have done very little Java
  and no Java 2D, you'll want to grab a good OpenGL ES book and start
  from scratch. Just get familiar with things.

  and after you get through the first few tutorials, write the next
  Gears of War for Android, shoot for the moon!

  On Feb 25, 9:43 pm, CONORxx conisdab...@hotmail.co.uk wrote:
  Is it possible to create a 2d, touch based game for android devices
  using Eclips and xml. And where about do new comers go to learn to
  write the xml code for android apps and games.

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

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


[android-developers] Re: GPS does not stop after ending my app

2011-03-21 Thread Stephan Wiesner
only it does not stop the GPS :-(


On Mar 21, 3:03 pm, TreKing treking...@gmail.com wrote:
 On Mon, Mar 21, 2011 at 8:53 AM, Stephan Wiesner testexpe...@googlemail.com

  wrote:
  so if I provide this on both methods it should work, should it not?

 Yes. I would pair onStart() with onStop() or onPause() with onResume().

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

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


Re: [android-developers] Re: GPS does not stop after ending my app

2011-03-21 Thread TreKing
On Mon, Mar 21, 2011 at 10:32 AM, Stephan Wiesner 
testexpe...@googlemail.com wrote:

 only it does not stop the GPS :-(


I would double check your code and make sure you're not adding an extra
listener somewhere. Also wait a few seconds for the GPS icon to go away
before assuming it's not working. Debug your code and make sure all your
points are being hit as expected. Inspect the values for anything strange.

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

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

[android-developers] Re: Custom map overlays

2011-03-21 Thread Neilz
Super, thanks TreKing!

On Mar 21, 2:59 pm, TreKing treking...@gmail.com wrote:
 On Mon, Mar 21, 2011 at 9:53 AM, Neilz neilhorn...@gmail.com wrote:
  Any pointers appreciated... thanks.

 http://code.google.com/android/add-ons/google-apis/reference/com/goog...

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

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


Re: [android-developers] Re: Double press home button side effect...

2011-03-21 Thread Justin Anderson
Ok, thanks for this info... I'll try this to reproduce the issue.  I have
2.2 installed on my device and have never come across this, but now that I
know what is going on I may be able to reproduce this.

So, in short, there is nothing that can be done to help with this?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Sat, Mar 19, 2011 at 10:21 AM, Kevin TeslaCoil Software 
ke...@teslacoilsw.com wrote:

 Android gives priority to the default Home application, to prevent it
 from being removed from memory. Launchers require lots of memory.
 Without this protection there is a good chance the actual launcher
 will be killed and need to reload, which is slow and the user sees the
 widgets redraw on the screen. Also it might lose any cache it had
 which could make the app drawer load slower.

 In practice, I've found that this method worked okay on 2.1 for
 whatever reason. But with Android 2.2+ it doesn't. I imagine you'll be
 able to reproduce the problem if you use a 2.2 device, set AppSwipe!
 as the default Home, reboot (rearranges things in memory a bit), then
 start using lots of memory-heavy apps like the browser, angry birds,
 etc, then when you press the Home button after some time away look for
 widgets redrawing.

 I believe 2.3 neuters System Persistent as well.

 Good luck!
 -Kevin

  I have an task switching app on the Android Market called AppSwipe!
  and one of the most commonly requested features is the ability to
  launch my app by long-pressing the home button.  Since this is not
  possible, I created a way to launch AppSwipe! by double-pressing the
  home key.
 
  This feature has been out for over a year and my users love it.
  However, I recently received an email from one user who was reporting
  some strange behavior when using this functionality... essentially,
  the home app is getting killed and taking a long time to restart.
  When this occurs there are some other UI issues as well (such as
  folders launching with transparent backgrounds and such).  It only
  happens on very specific devices and I can't reproduce the problem.
 
  Here is the general process that I am using to implement the double-
  press of the home button:
 
  1) I created an activity that declares itself as a home replacement
  app (see XML below)
 
  2) I have a user-modifiable setting that allows the user to specify
  which home app to launch from the home button.
 
  3) When the home button is pressed, my home replacement activity has
  the following logic:
 
  a) The first time the home button is pressed a timer is
  created and started in onResume()
 
  b) If the timer finishes, then the user-specified home app is
  launched
 
  c) If home is pressed again and the timer is still running,
  then I cancel the timer and launch my app
 
  Here is the XML that declares my home replacement app:
 
  activity
  android:theme=@android:style/Theme.Translucent.NoTitleBar
  android:name=.HomeLauncherActivity
  android:label=@string/app_home_launcher_label
  android:launchMode=singleInstance
  android:stateNotNeeded=true
 
  intent-filter
  action android:name=android.intent.action.MAIN /
  category android:name=android.intent.category.HOME/
  category android:name=android.intent.category.DEFAULT
 /
  /intent-filter
  /activity
 
  Here is the onResume() method that runs the timer:
 
  @Override
  public void onResume()
  {
  super.onResume();
 
  if (m_prefMgr == null)
  m_prefMgr =
 PreferenceManager.getDefaultSharedPreferences(this);
 
  if (m_pkgMgr == null)
  m_pkgMgr = getPackageManager();
 
  //First Home Button Press
  if (m_timer == null)
  {
  int launchThreshold =
 
 m_prefMgr.getInt(getString(R.string.pref_button_launch_home_click_threshold
 _key),
 
 PrefSettings.DEFAULT_DOUBLE_PRESS_HOME_THRESHOLD);
 
  m_timer = new AppSwipeHomeLaunchTimer(launchThreshold,
  launchThreshold);
  m_timer.start();
  }
  else //Second Home Button Press
  {
  m_timer.cancel();
  m_timer = null;
 
  boolean swapHomePress =
 
 m_prefMgr.getBoolean(getString(R.string.pref_button_launch_swap_buttons_key
 ),
 
 PrefSettings.DEFAULT_SWAP_HOME_BUTTON_BEHAVIOR);
  if (swapHomePress)
  launchHomeApp();
  else
  launchAppSwipe();
  }
 
  }
 
  Here is the code for my launchHomeApp() method:
 
  public void launchHomeApp()
  {
  try
  {
  String pkgName =
 
 m_prefMgr.getString(getString(R.string.pref_button_launch_default_home_app_
 pkg_key),
  );
  String className =
 
 

[android-developers] Re: Android Application Sold to 100,000 Users

2011-03-21 Thread nemik
I think the general trend is that you won't make much money; though
you never know until you try. Remember that all those huge successes
you read about are outliers. The majority of apps just sorta get by or
flop. Just throw your best hat into the ring and see what happens.
What other kind of answer are you looking for?

On Mar 20, 11:03 pm, varinag gold varinagg...@gmail.com wrote:
  You realize this is going to vary wildly between different apps and will
  give you absolutely no indication how your own app will perform ... right?

 I agree with it but I want to see general trend of Android Market and
 users for priced applications.

 On Mar 21, 11:48 am, TreKing treking...@gmail.com wrote:







  On Sun, Mar 20, 2011 at 10:43 PM, varinag gold varinagg...@gmail.comwrote:

   I am looking data for applications with some price tag such as 1.00 USD or
   0.99 USD.
   with a market access all over the world (provided selling/purchasing is
   permitted in those countries).

  You realize this is going to vary wildly between different apps and will
  give you absolutely no indication how your own app will perform ... right?

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

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


[android-developers] Re: Custom map overlays

2011-03-21 Thread Neilz
Ok, same thread, another Map question.

I've been using 'MyLocationOverlay' to display current location. It
shows that nice blue pulsating image to mark the spot.

Am I able to add a pointer (arrow image) which indicates current
direction, as I would see on the standard GoogleMap?

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: Custom map overlays

2011-03-21 Thread TreKing
On Mon, Mar 21, 2011 at 11:11 AM, Neilz neilhorn...@gmail.com wrote:

 Am I able to add a pointer (arrow image) which indicates current direction,
 as I would see on the standard GoogleMap?


Yes, but you have to supply it and orient it yourself.

-
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] Using ListPreference view in a non preference activity/dialog

2011-03-21 Thread Wall-E
I would like to use certain views associated with the
PreferenceActivty such as the ListPreference in my Activity or Dialog
but I don't want my activity to be a PreferenceActivty.  Is there a
way to access that view or is there a way to create that view and how
to implement this?  Pretty much what I'm looking for is a two line
text that when clicked/tapped it will open up a list of options like a
spinner.  So similar to a ListPreference.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Using ListPreference view in a non preference activity/dialog

2011-03-21 Thread TreKing
On Mon, Mar 21, 2011 at 11:04 AM, Wall-E bashee...@gmail.com wrote:

 I would like to use certain views associated with the PreferenceActivty
 such as the ListPreference in my Activity or Dialog but I don't want my
 activity to be a PreferenceActivty.


Why not?

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

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

[android-developers] Problems using Javascript console.log

2011-03-21 Thread Jonathan Arnold
I have a very simple test web page:

http://www.amazingdev.com/js.html

Which is just a few lines long. It's mostly to test the console.log
function. 

I'm finding it works just fine in my 2.2 emulator, but not when I debug
via a real device (in this case, an EVO running 2.2). I see the log
message show up when Eclipse is connected to the emulator, but it
doesn't show up when it is connected to my EVO. 

Is this some kind of bug? Misunderstanding? Or extra security when run
via the handset?

-- 
Jonathan ArnoldWebstream: http://hieronymus.soup.io

Talent wins games, but team work and intelligence wins championships.
Michael Jordan

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

2011-03-21 Thread Wall-E
Well I first initially had dialog and created a layout to use in that
dialog to set certain preferences/values.  So I tried to
inflate(setContentView(dialogLayout)) that same layout in a
PreferenceActivity I created but then was getting this error:

03-21 16:12:24.395: ERROR/AndroidRuntime(1472): Caused by:
java.lang.RuntimeException: Your content must have a ListView whose id
attribute is 'android.R.id.list'

So assuming that I should be able to what I described above, my
question should be how to inflate the PreferenceActivity using my
layout created for the dialog but also sneaking in Preference views
such as ListPreference in that same layout.

I'm just now thinking I should create a Preference Screen layout and
include all the views I had in my dialog layout.

Any other suggestions?



On Mar 21, 12:36 pm, TreKing treking...@gmail.com wrote:
 On Mon, Mar 21, 2011 at 11:04 AM, Wall-E bashee...@gmail.com wrote:
  I would like to use certain views associated with the PreferenceActivty
  such as the ListPreference in my Activity or Dialog but I don't want my
  activity to be a PreferenceActivty.

 Why not?

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

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


Re: [android-developers] Re: Using ListPreference view in a non preference activity/dialog

2011-03-21 Thread TreKing
On Mon, Mar 21, 2011 at 12:05 PM, Wall-E bashee...@gmail.com wrote:

 I'm just now thinking I should create a Preference Screen layout
 and include all the views I had in my dialog layout.


Seems like the easiest and most straightforward thing to do.

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

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

Re: [android-developers] Re: Using ListPreference view in a non preference activity/dialog

2011-03-21 Thread Kostya Vasilyev

21.03.2011 20:05, Wall-E пишет:

03-21 16:12:24.395: ERROR/AndroidRuntime(1472): Caused by:
java.lang.RuntimeException: Your content must have a ListView whose id
attribute is 'android.R.id.list'


PreferenceActivity uses a list view to display its content. If you wish 
use your own layout for the activity, include a ListView with 
id=@android:id/list.



So assuming that I should be able to what I described above, my
question should be how to inflate the PreferenceActivity using my
layout created for the dialog but also sneaking in Preference views
such as ListPreference in that same layout.


Start with your own views, then a list view that would be used for 
preference views.



I'm just now thinking I should create a Preference Screen layout and
include all the views I had in my dialog layout.


You can integrate your own views by using Preference, with or without 
subclassing, by using android:layout attribute in XML or 
setLayoutResource in code.


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

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


[android-developers] Create Project

2011-03-21 Thread rishabh agrawal
I was create my application as a android sdk api 8.and written all the
code.bu now i want run on a sdk api 4.with the help of mainfest file i
changed minSdkVersion=4,But when i installed on it then unexpected
error are created...In this apps i used Tab..some tab work
properly but some not.Please help me how to remove this errorwith
the help of try  catch i doesnt remove these error.it is possible
that i run my apps on vesion 4.

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


Re: [android-developers] Create Project

2011-03-21 Thread Kostya Vasilyev
Your code probably uses Android classes or methods that didn't yet exist 
in API 4.


Bring up Properties on your project, select Android in the list on the 
left, and select Android 1.6 for building.


Then go through compile errors, and remove or change all code that 
cannot work with API level 4.


-- Kostya

21.03.2011 20:38, rishabh agrawal пишет:

I was create my application as a android sdk api 8.and written all the
code.bu now i want run on a sdk api 4.with the help of mainfest file i
changed minSdkVersion=4,But when i installed on it then unexpected
error are created...In this apps i used Tab..some tab work
properly but some not.Please help me how to remove this errorwith
the help of try  catch i doesnt remove these error.it is possible
that i run my apps on vesion 4.




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

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


[android-developers] ProgressBar

2011-03-21 Thread rishabh agrawal
In my apps  with the help of Intent i call another Activity.But in the
duration of calling some delay is occures  Blank screens show.here i
use ProgressBar for better UI.plz suggest me any tutorial  for
that..

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


[android-developers] Sound On/Off Button - Muting app sounds Button

2011-03-21 Thread Gabriel
Hey guys,

I see in a lot of games this Button wich you can Mute the app sounds.

I want to put this in my app, but I don't have any clue how to do
that.

1 - It would be the same button to mute and unmute the sounds. Like in
NinJump Game.

2 - It would change the button image. Like Off' when you click it
and Off when you click it again.

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: Create Project

2011-03-21 Thread rishabh agrawal
thanks Kostya.ur means that if i want to run my apps on api 4 then
change my code according to api 4 classes.when i change the code
according to api 4.it work very properly in  API 8

On Mar 21, 10:42 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 Your code probably uses Android classes or methods that didn't yet exist
 in API 4.

 Bring up Properties on your project, select Android in the list on the
 left, and select Android 1.6 for building.

 Then go through compile errors, and remove or change all code that
 cannot work with API level 4.

 -- Kostya

 21.03.2011 20:38, rishabh agrawal пишет:

  I was create my application as a android sdk api 8.and written all the
  code.bu now i want run on a sdk api 4.with the help of mainfest file i
  changed minSdkVersion=4,But when i installed on it then unexpected
  error are created...In this apps i used Tab..some tab work
  properly but some not.Please help me how to remove this errorwith
  the help of try  catch i doesnt remove these error.it is possible
  that i run my apps on vesion 4.

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

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


Re: [android-developers] Re: Create Project

2011-03-21 Thread Kostya Vasilyev

21.03.2011 20:51, rishabh agrawal пишет:

thanks Kostya.ur means that if i want to run my apps on api 4 then
change my code according to api 4 classes.when i change the code
according to api 4.it work very properly in  API 8


Right, once you've done this, and your code runs on API4, you can switch 
your build target back to API8 for those features that require it 
(install to memory card, for example).


There are techniques that let you use API8 classes / methods while 
falling back on earlier APIs where available (look it up with Google 
search, typically it involves Java reflection).


But as a quick first pass, switching the build target to your desired 
lowest API level is a pretty good way to find places to fix.


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

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


[android-developers] Cloud Computing

2011-03-21 Thread rishabh agrawal
I am a Begginer in android.But i want develope apps for Cloud
ComputingSo for Cloud Computing...Which Language is nessesary.
Please Help me.I am Fresher

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

2011-03-21 Thread roberto
If you need to run a recurring task (once, twice, 3 times a day or
even every 5 minutes), consider using the buzzbox sdk that is built on
top of the AlarmManager.

More info herehttp://hub.buzzbox.com/android-sdk/

On Mar 21, 5:10 am, Nesim TUNÇ nesimt...@gmail.com wrote:
 Hi Great Developers,

 I have a job that needs to check if the time's up. Now, I do that with a
 normal Android Service. I wonder is there anything to handle such of those
 things? I don't want to that via while loop because of cpu and battery
 spending.

 Thanks in advance.

 --
 Nesim TUNÇ
 Senior Software Developer of Distributed Applications

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

2011-03-21 Thread Kostya Vasilyev
Most likely what happens is that your second activity (the one you 
launch) takes too long in its onCreate / onStart / onResume. Fix that, 
and it should launch smoothly.


-- Kostya

21.03.2011 20:45, rishabh agrawal пишет:

In my apps  with the help of Intent i call another Activity.But in the
duration of calling some delay is occures  Blank screens show.here i
use ProgressBar for better UI.plz suggest me any tutorial  for
that..



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

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


[android-developers] mediaplayer surface initialized to a frame

2011-03-21 Thread droid-stricken
Hi All,

I am creating a surface holder for displaying my video and creating
the mediaplayer instance as well. My question is - How to display the
first frame on the surfaceView and then provide a button for the user
to click that starts the actual playback of the video?

Currently, my screen is totally black before the user presses the
button that calls mediaplayerinstance.start(). I would rather have a
frame there instead of nothing.

Is this possible to achieve? seekTo to the first 1 sec of the video
content does not help. I don't see the frame at the 1st sec until
start() is invoked.

TIA.

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

2011-03-21 Thread lbendlin
And you'll want to lose the pulsating/fix circle. It's eye candy for sure 
but it impacts performance heavily without really giving much back. You can 
replace it with a view placeholder that contains an arrow image that you can 
rotate according to your direction.

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

2011-03-21 Thread TreKing
On Mon, Mar 21, 2011 at 12:50 PM, Gabriel gab...@gmail.com wrote:

 I want to put this in my app, but I don't have any clue how to do that.


if (muteButtonPressed())
 turnOffSound();

if (soundIsOn())
 playSounds();

-
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] Cloud Computing

2011-03-21 Thread TreKing
On Mon, Mar 21, 2011 at 1:03 PM, rishabh agrawal
android.rish...@gmail.comwrote:

 I am a Begginer in android.But i want develope apps for Cloud Computing


Oh for goodness sake.

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

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

[android-developers] Re: Sound On/Off Button - Muting app sounds Button

2011-03-21 Thread Gabriel
Thanks,

but how can I apply this for a single button? And change the button
image when I do that?

Sorry, I've just started developing, still learning the basics

On 21 mar, 15:07, TreKing treking...@gmail.com wrote:
 On Mon, Mar 21, 2011 at 12:50 PM, Gabriel gab...@gmail.com wrote:
  I want to put this in my app, but I don't have any clue how to do that.

 if (muteButtonPressed())
  turnOffSound();

 if (soundIsOn())
  playSounds();

 --- 
 --
 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] Cloud Computing

2011-03-21 Thread Justin Giles
To my knowledge (I've not scoured every inch of the Android API), there is
no built-in cloud computing in Android.  What you are going to want to
investigate are various services offered by Google and Amazon, such as the
Google AppEngine (and other services) and Amazon's EC2.  Here are the links
respectively: http://code.google.com/appengine/ and
http://aws.amazon.com/ec2/

I think Amazon might offer an Android SDK to facilitate some calls to their
stuff, but I don't think Google does this at this time.  What is going on
behind the scenes are basically http calls (or RESTful calls) back and forth
from the Android app to the cloud service.  You would need to just build a
shell of an app that does all the communicating that way.

On Mon, Mar 21, 2011 at 1:03 PM, rishabh agrawal
android.rish...@gmail.comwrote:

 I am a Begginer in android.But i want develope apps for Cloud
 ComputingSo for Cloud Computing...Which Language is nessesary.
 Please Help me.I am Fresher

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

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

[android-developers] Re: Help using custom Preference types - for pity or money

2011-03-21 Thread lbendlin
Rolling your own preference is not trivial. Definitely more than an hour, 
including all the required regression testing. Here's a good starter

http://android-journey.blogspot.com/2010/01/for-almost-any-application-we-need-to.html

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

[android-developers] Re: Interested in making a killer GTD app?

2011-03-21 Thread Jake Colman

David,

You clearly put alot of thought into this.  But have you protected this
design in anyway?  How would you feel if in a few months an app based on
this design is brought to market for a few bucks?  Would you feel ripped
off or happy that someone built something that meets your needs?

...Jake


 DP == David Prieto frandavid...@gmail.com writes:

   DP Hi guys,

   DP I'm an Android user who never learnt to code but has UI design as
   DP a hobby.  I'm also fond of the GTD productivity method, but never
   DP found an Android app that could bring all its potential.

   DP So, I designed one myself, together with a friend who would then
   DP do the coding. The problem is, this person didn't had any free
   DP time to code and the app was never finished.

   DP I would like to find a developer or group of developers who would
   DP like to take on such a project, and make this app real. You can
   DP read all about the design, and make your comments and questions,
   DP in this Google Docs
   DP 
documenthttps://docs.google.com/document/d/1RlM2aDBxnOfmlV9dPLBuaI26ngVSpJCdIW23_qZyTrs/edit?authkey=CK20l6IChl=es#
   DP .

   DP I hope you find it inspiring.

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

-- 
Jake Colman -- Android Tinkerer

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

2011-03-21 Thread Ming Lai Lai
May I ask How did you get the RTSPEngine logcat messages?

On 2月5日, 上午8時46分, Chris Stankevitz chrisstankev...@gmail.com wrote:
 Hello,

 Phone number 1 produces these logcat entries:
  10-08 14:11:22.657 I/RTSPEngine( 5031): RTSP Server response:
  10-08 14:11:22.657 I/RTSPEngine( 5031): RTSP/1.0 200 OK

 Phone number 2 (Samsung Galaxy Tab) does not.

 Question: How do I enable theRTSPEnginelogcat for phone number 2?

 I am willing to do anything to get it, including learning about
 root, ROM, custom ROM generation, compiling android OS source,
 etc.

 Thank you,

 Chris

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

2011-03-21 Thread Neilz
Interesting, thanks for the tip.

On Mar 21, 6:11 pm, lbendlin l...@bendlin.us wrote:
 And you'll want to lose the pulsating/fix circle. It's eye candy for sure
 but it impacts performance heavily without really giving much back. You can
 replace it with a view placeholder that contains an arrow image that you can
 rotate according to your direction.

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

2011-03-21 Thread Jake Colman
 KV == Kostya Vasilyev kmans...@gmail.com writes:

   KV 21.03.2011 17:01, Jake Colman пишет:
1) How does one provide multiple options for widget sizes?  Do you just
add additional meta-data sections under the Receiver entry of the
manifest?

   KV Essentially by providing entirely separate widgets, each having
   KV its own size. They can share implementation (Java code,
   KV drawables, layouts), but they should be declared as separate
   KV widgets as seen by Android.

How does one declare them as separate widgets as seen by Android?
Again, we are talking about a single project (apk) with one manifest,
correct?  So how do you modify the manifest to indicate that is more
than one widget?

2) How does one set options that are unique to a given instance?  The app
currently uses SharedPreferences for all of its configuration.
But if both instances are running in the same context, how can
each widget know how it is configured as distinct from another
instance?

   KV Widget ids are persistent until a widget is removed. Store values
   KV in shared preferences (or some other persistence mechanism) keyed
   KV by widget id.

H.  Using that standard SharedPreferences, I did not see that it
could be keyed.  Did I miss that?  Each piece of configuration data is,
of course, keyed by the name of that piece of data.  But how would I
distinguish between the configuration data of two different widgets if
they are all stored in the same SharedPreferences?

3) The app uses a service that is started by an alarm in order to do the
updating.  When the alarm is triggered, the service calculates the
time remaining until the event and then it updates the remote
view.  Do both widgets share the same service?  I'd that is the
case since it all one app with just multiple widget instances.  If
that's the case, how can the service know which widget it is
updating?

   KV Use

   KV AppWidgetManager.updateAppWidget(int widgetId, RemoteViews views)

   KV to update only one particular widget.

   KV You can get the ids when needed outside onUpdate like this:

   KV AppWidgetManager manager = AppWidgetManager.getInstance(context);
   KV ComponentName widgetClassName = new ComponentName(context, your
   WidgetProviderClass );
   KV int[] widgetIds = manager.getAppWidgetIds(widgetClassName);

   KV Be aware that in some cases, there may be widget ids that refer to
   KV non-existent widgets.

   KV I documented my workaround for this issue here:

   KV 
http://kmansoft.wordpress.com/2010/06/22/per-widget-options-stale-widgets/

And then the service would have to ask that instance which type of
data (sunrise or sunset) it should be updating.  But how to ask that
question?

-- 
Jake Colman -- Android Tinkerer

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

2011-03-21 Thread Stephan Wiesner
Got it. I have to use
MyLocationOverlay.disableMyLocation()

as well. Works fine now.

Thanks for your advice!
Stephan

On Mar 21, 4:49 pm, TreKing treking...@gmail.com wrote:
 On Mon, Mar 21, 2011 at 10:32 AM, Stephan Wiesner 

 testexpe...@googlemail.com wrote:
  only it does not stop the GPS :-(

 I would double check your code and make sure you're not adding an extra
 listener somewhere. Also wait a few seconds for the GPS icon to go away
 before assuming it's not working. Debug your code and make sure all your
 points are being hit as expected. Inspect the values for anything strange.

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


  1   2   3   >