[android-developers] Re: Pass ArrayList parameters between two activities.

2010-04-20 Thread Arpit
This works if I change the class Services from being Parceable to
Serializable it works... I am not sure why... but between Activity
when I am sending Serialized data it works but not if I send parceable
data.

Regards,
Arpit

On Apr 20, 10:31 am, Arpit robin.ca...@gmail.com wrote:
 Similar problem but this doesn't work. Following steps exists in my
 apps and still not able to send data part of Intent (putExtras) from
 one activity to another:

 - Activity A is of type ListActivity showing some buttons.
 - Any button click shows a Login screen (AlertDialog).
 - onCreateDialog is implemented and I have two buttons on the
 AlertDialog, Ok  Cancel, both having listener for onClick event. I
 realize that if I try to start activity within onClick event of OK
 BUTTON, the activity wont start.
 - So I implemented onDismissListener and started activity from here.
 - Now I call Activity B and passing new Intent where I have put extra
 (Parcelable object)

 In activity B the parcelable object comes empty... No info in it.

 Code below:

 Activity A (HomeActivity)

 @Override
                                 public void onDismiss(DialogInterface dialog) 
 {
                                         try{
                                                 HomeActivity home = 
 (HomeActivity)
 ((AlertDialog)dialog).getOwnerActivity();
                                                 Intent oldIntent = 
 home.getIntent();
                                                 oldIntent.setClass(home, 
 ServiceListActivity.class);
                                                 
 home.startActivityForResult(oldIntent,0);
                                         }catch(Exception e){
                                                 
 Toast.makeText(HomeActivity.this, R.string.error_occured,
 Toast.LENGTH_LONG).show();
                                         }
                                 }

 Activity B (ServiceListActivity)

 public void onCreate(Bundle savedInstanceState){
                 try{
                         super.onCreate(savedInstanceState);
                         setContentView(R.layout.middle_man);
                         Intent i = super.getIntent();
                         Bundle b = i.getExtras();
                         IteratorString iterator = b.keySet().iterator();
                         Services a = null;
                         while(iterator.hasNext()){
                                 a = 
 (Services)b.getParcelable(iterator.next());
                         }
                         Services s = 
 (Services)b.get(ServicesConstants.SERVICE_SELECTED);
 ...
 ...

 Both 'a' and 's' comes null. They are type object Services which is
 Parceable in nature.

 Regards,
 Arpit

 On Apr 20, 1:50 am, ~ TreKing treking...@gmail.com wrote:





  On Mon, Apr 19, 2010 at 1:24 AM, Ke Wu kerl@gmail.com wrote:
   I dont know what the Intent exactly do when I use putExtra to pass in an
   ArrayListMyClass object.

  Did you read the documentation on Intents? Specifically 
  this:http://developer.android.com/intl/fr/reference/android/content/Intent...,
  java.util.ArrayList? extends android.os.Parcelable)

   I guess MyClass need to implement Parcelable interface, so I just did it.
   But still, it does not work.

  You guess right. If it does not work, you should explain what doesn't work.
  Just saying it does not work is useless to someone trying to help you.

   Maybe I need to create a Bundle and then use Bundle' 
   putParcelableArrayList
   method to put my ArrayListMyClass object in, and then pass this bundle 
   as
   parameter of putExtra to the intent.

  No.

   So crazy!

  Not really!

   I am lazy

  Then you should not being doing Android development ... or any kind of
  programming for that matter.

   , I just want to pass an ArrayListMyClass object simply, is there a
   simple way??

    Any suggestion would be greatly appreciated!

  See the link I posted.

  On Mon, Apr 19, 2010 at 3:23 AM, Kumar Bibek coomar@gmail.com wrote:
   However, a cheap workaround would be to have this arraylist as a static
   variable of your source activity. This way, you can access this Array List
   from your destination activity

  Except that by doing this, you have to make sure the list is actually valid.
  If you start Activity A, fill the list, start Activity B, press Home, wait a
  while, come back to your app, your app may have been killed since you
  started it, the list will be empty, but you will be back in Activity B. If
  you don't validate that list and save and restore it somehow, you will run
  into trouble trying to access the empty (or null) list.

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

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

[android-developers] Re: Could anyone with an HTC Desire/Droid help me

2010-04-20 Thread Zsolt Vasvari
Thanks, Bob.  I believer I fixed this now.  So much for not testing on
a virgin device.

On Apr 20, 10:56 am, BobG bobgard...@aol.com wrote:
 menu-newbook-forceclose on google devphone2

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

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


[android-developers] clearing table

2010-04-20 Thread ranjit R
how to clear a table in android database.

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

2010-04-20 Thread patbenatar
Why would you need updates every instant? It's impossible for the user
to move much more than a millimeter in that amount of time... Just use
a realistic amount of time for your app, or use a distance if that
makes more sense for your application. I'd recommend using a distance
of like 1 meter if you want really accurate and up-to-date readings.



On Apr 19, 10:19 pm, Nithin nithin.war...@gmail.com wrote:
 Hi,

 In requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, this);
 if I put time interval and distance as zero, will this work, or shall
 I need to give a value greater than zero.

 Nithin

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

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


[android-developers] How to add a View in Gallery?

2010-04-20 Thread javame_android
Hi,

I have multiple listviews and would like to add those to Gallery View.

I tried by using addView method but that is not supported in Gallery
since its AdapterView.

Can someone suggest me how to add views to Gallery?



Regards
Sunil

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

2010-04-20 Thread patbenatar
Oh, also... Why not just try your above code and see if it works? I
think it will.. But I bet Android has some default minimum interval or
something cause as said in my above post, getting updates every
instant is quite pointless.




On Apr 19, 10:19 pm, Nithin nithin.war...@gmail.com wrote:
 Hi,

 In requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, this);
 if I put time interval and distance as zero, will this work, or shall
 I need to give a value greater than zero.

 Nithin

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

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


[android-developers] Re: Quick Easy Question

2010-04-20 Thread patbenatar
Please define link... Are you referring to a clickable View with a
click listener within your Android application? Or a link on a Website
in Browser?

If you're talking about a link in your application, AFAIK there is no
plug-n-play audio player widget, but there is the MediaPlayer class
that will handle all the audio processing for you, you'll have to
build your own UI though. You can also start an Intent for the Music
app to play your audio file, although this will launch the Music app
rather than a music player popup.

-Nick

P.S. Descriptive titles will get you more responses on this group.




On Apr 19, 12:50 pm, arberb beqi...@gmail.com wrote:
 Is it possible to open up a music player when someone clicks a certain
 link? Like a music player popup or something in my application?

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

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


[android-developers] Re: notification

2010-04-20 Thread patbenatar
http://developer.android.com/reference/android/app/AlarmManager.html




On Apr 19, 8:22 pm, ranjit R ranjitr...@gmail.com wrote:
 h  i want to create notification based on date (i.e) notification
 should  occur only on particular date.
 example: birthday notification on mobile .it notifies the only on
 particular date.

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

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


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

2010-04-20 Thread dgoemans
*stands up*

Hi, my name's David, i'm in the Netherlands, and i haven't had a Nexus
One for 7 weeks now.

Seriously tho, i think we need to be calm and strong. They'll arrive
( hopefully before i move! ) and we just need patience. It is, after
all a free gift, which after 2 years as a day job iPhone dev, i can
say is more than i've been given before.

Ove, i understand your pain, it took a while for paid apps to get
here, and as an ex-South African, they don't even have paid app
downloads over there, so its bad. That said, it's worth keeping in
mind that there are serious region restrictions on these things
( unfortunately - i really hate that ). For example, look at
Microsoft's Xbox Live Indie Games, which is only accessible in a small
handful of countries to download for, and only a few more than that
can dev for it. This is due to (stupid) global financial restrictions.
Remember that it took Apple many years to get iTunes working across
the globe.

On Apr 19, 10:24 pm, JDS jesper.d.svens...@gmail.com wrote:
 I would be very surprised if they do not arrive. If the intention
 never was to send any to europe, why would Google confirm that they
 will arrive over and over again? What is obvious is that they had, or
 still have, some major issues but I don't think we will never know
 what kind.

 In the last response I got, they do confirm they had some issues and
 that I should (they don't use the word will receive anymore ;-) )
 receive my phone in 2 weeks, which will be on April 28 and I will wait
 patiently until then before I will contact them again.

 On 19 Apr, 21:05, gambiting gambit...@gmail.com wrote:

  Well,with each day I'm getting convinced more and more that the phones
  will not arrive in europe,and it was only for the US.
  But on the other side, we didn't pay anything for these phones, so it
  doesn't hurt to wait - maybe one day there we will get them?
  I just hope that people from europe will share info here if they
  receive their phones.

  On 19 Kwi, 18:33, TomTasche tomtas...@gmail.com wrote:

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

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


[android-developers] Re: Background processes not being CPU-limited?

2010-04-20 Thread Bob Kerns
Mike, I'm with Robert on this one. Not because you're wrong -- you're
not.

But because most users don't really want to think about this stuff.

I think that if they were asked if they want to enter game mode -- a
single choice -- and they can either accept or decline, then users
will either accept, or decline.

If they really want to maximize smoothness, they'll opt for game mode.
If they want to optimize for utility, they'll decline. I really think
that's enough decision for most people.

Maybe power users would want to dive under the hood at tweak some
parameters. But I'm about as power a user as you could imagine -- and
this would be good enough for me. Were I also a game addict, perhaps
it wouldn't be. But I think most people are willing to make the trade-
off -- if I don't want to miss an SMS message right now, I'll settle
for the reduced game experience. If I'm not expecting anything, and
want a nice game, I'll opt for game mode.

On Apr 19, 5:47 pm, mike enervat...@gmail.com wrote:
 On 04/19/2010 05:37 PM, Robert Green wrote:

  Mike,

  The whole issue is that the Sync and IM services are specifically what
  cause lag in games.  If a user wants a smooth gaming experience,
  something's gotta go - or it's gotta be squashed way down so that it
  can't use much of the CPU.

  I'm not saying I know what should stay and what should go.  I don't.
  I just know what causes the issue and what would work to provide a
  good experience at the cost of flipping the phone effectively into
  airplane mode but with the ability to receive calls.

 Yes, that's why a solution to this is not as straightforward
 as just saying phone alerts are exempt, because neither you
 nor google have any clue if that actually matches users' *actual*
 alert prioritization. And it's quite possible that trying to sort
 that out lies madness.

 I'm afraid that users really do want to have their cake and
 eat it too. Fortuntately Moore's Law is on our side from going
 completely  crazy.

 Mike





  On Apr 19, 7:07 pm, mikeenervat...@gmail.com  wrote:

  On 04/19/2010 04:56 PM, Robert Green wrote:

  Bob,

  The idea is that an exclusive mode would cater to apps that are never
  idle.  Games are never idle.  They constantly update and draw.  There
  are other apps that work that way as well and having a more guaranteed
  consistent amount of CPU available for those simulations would
  probably be very favorable with consumers.  I know I'd personally say
  Yes if a game prompted me to go into an optional game mode during
  the duration of play.  If you're playing a game, you don't need
  background tasks running.  All you would need is to receive a phone
  call.  It is still a phone, after all. :)

  I get off the bus right here. At the point that you aren't willing
  to say that it's not a phone while you're playing a game or whatever
  this mode is, you're setting yourself up for failure. Why not an IM
  from your boss wondering if you're working or playing game? What
  about that alert that comes in from the baby cam that says that
  the loinfruit is unhappy?

  The problem here is that you are presuming to know users' prioritiztion
  of alerting, etc, based solely on tradition. That is bound to fail and
  fail and fail as the generations who think of it as being a phone 
  afterall
  dwindle and eventually die out. It isn't a phone. It's a general purpose
  computer with some telephony functions on it.

  So if there is going to be some mode that allows you to drown out
  *every* other bit of background/alerting that's one thing. But if you're
  going to start making exceptions -- which I think you must -- you've
  opened up a much larger problem.

  Mike

     If the user is expecting an
  email/text/other notification, they could opt not to go into game mode
  and the game will have its normal bits of choppiness.  It really could
  be as simple as that.

  After the exclusive mode is exited, paused services are resumed and
  all is happy on the device.

  On Apr 19, 6:28 pm, Bob Kernsr...@acm.org    wrote:

  Well, after looking at your code, my suggestion for advice would be:

  Do no evil!  :=)

  When I implemented something like this on Symbolics Lisp Machines back
  in the 1980's, I made the scheduling boost for UI actions be for a
  limited period of time. Perhaps something like that is going on here?

  I did this, because I found that there would occasionally be some bit
  of code or other that would do something in a UI thread (typically the
  mouse-handling thread) that would consume however much CPU was
  available, while waiting for the INTERESTING things to do to be
  computed by another thread. And an unlimited priority boost in the UI
  could tend to make the UI very difficult to debug, as well.

  So I had a macro that could be wrapped around various components of UI
  code, that would boost the priority of the UI thread. It would boost
  it for a maximum period of time, after which it would fall back to
  

[android-developers] Re: Access a Service across multiple Applications

2010-04-20 Thread madmax
Hi,
I have been trying out the same things that you mentioned in your
post. I've created a service from an application and on the
onDestroy() of that application i'm unbinding the service. Now
when i want to bind to the same service from another application, i
get a SecurityException. The actual error log is as below.

04-20 11:38:40.231: ERROR/AndroidRuntime(228): Caused by:
java.lang.SecurityException: Not allowed to bind to service Intent
{ cmp=aexp.dualservice/.DualService }
04-20 11:38:40.231: ERROR/AndroidRuntime(228): at
android.app.ApplicationContext.bindService(ApplicationContext.java:
807)
04-20 11:38:40.231: ERROR/AndroidRuntime(228): at
android.content.ContextWrapper.bindService(ContextWrapper.java:337)
04-20 11:38:40.231: ERROR/AndroidRuntime(228): at
com.vignet.serviceDemo1.ConnectToService.initService(ConnectToService.java:
48)
04-20 11:38:40.231: ERROR/AndroidRuntime(228): at
com.vignet.serviceDemo1.ConnectToService.onCreate(ConnectToService.java:
35)
04-20 11:38:40.231: ERROR/AndroidRuntime(228): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047)
04-20 11:38:40.231: ERROR/AndroidRuntime(228): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2459)


Is it because while defining my service i have given the package name
of that application and now when i'm trying to bind to the service
from another app. its giving me a SecurityException that i'm accessing
something from another package altogether?


 Thanks,
  Prafull.

On Apr 19, 9:12 pm, Mark Murphy mmur...@commonsware.com wrote:
 madmax wrote:
  Hey Folks,
                   I have aservicethat i need to accessacross
 multipleApplications. Can anyone tell me how this can be done?

 Create a remoteserviceand expose an interface through AIDL. Here is a
 pair of sampleapplicationsdemonstrating the technique:

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

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

 Android Development Wiki:http://wiki.andmob.org

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

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


[android-developers] Exception in setDrawingCache in Android 1.5?

2010-04-20 Thread javame_android
Hi,

I am developing an application where I am using setDrawingCache and
then once I get the Bitmap I destroy the cache by using
destroyDrawingCache().

The application has been developed with Android SDK 1.6. When testing
the application in emulator with Android 1.5 the application throws
NullPointerException when try to manipulate the Bitmap returned by
getDrawingCache(). It probably gives error since getDrawingCache
returns null.

The interesting thing in this is that the NullPointerException comes
only after I run the application twice or thrice. It means I am able
to get the Bitmap for two times and then it throws this exception.

The error that I am getting is as below

java.lang.NullPointerException
E/AndroidRuntime( 1036):at
com.babbleville.HomeScreenActivity.resizeBitmap(HomeScreenActivity.java:
394)
E/AndroidRuntime( 1036):at com.babbleville.HomeScreenActivity.access
$0(HomeScreenActivity.java:392)
E/AndroidRuntime( 1036):at com.babbleville.HomeScreenActivity
$1.handleMessage(HomeScreenActivity.java:327)
E/AndroidRuntime( 1036):at
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 1036):at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 1036):at
android.app.ActivityThread.main(ActivityThread.java:3948)
E/AndroidRuntime( 1036):at
java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1036):at
java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 1036):at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:782)
E/AndroidRuntime( 1036):at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
E/AndroidRuntime( 1036):at dalvik.system.NativeStart.main(Native
Method)


Can someone please let me know the problem?


Regards
Sunil

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


[android-developers] Weird: It appears as if sometimes my Activity will be resumed but previously set instance variables are null

2010-04-20 Thread patbenatar
Hey all-

I am using an Application object to store app-wide instance data--data
that I need to remain in existence for the entire lifetime of the app,
so the Application class seems like the proper place to put it. I have
just finished reading this thread
http://groups.google.com/group/android-developers/browse_thread/thread/502fe58d8ed44102#
that goes into pretty good detail and receives confirmation from
Googler hackbod as to how the Application class performs--and from
that info it seems this strange behavior I am receiving should not be
happening...

Basically, every once in a while when I resume my app in any of its
Activities (it is still running in memory so onCreate is not called) I
get NullPointerExceptions because instance variables in my Application
class are returning null when I request them from my Activity (via a
getter method in my custom Application class). It seems as if
sometimes Android saves the states of my Activities but deletes all my
instance variable data... This can't be an Android problem--there must
be something wrong with my code.

Has anyone else ever ran into an issue of this kind? Any ideas as to
what may be causing this? I'm not going to post my code here as that
won't help anyone, but hopefully someone can point me in some helpful
directions.

Thanks so much,
Nick

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

2010-04-20 Thread tina lincon
any idea???

On Apr 15, 4:47 pm, Yahel kaye...@gmail.com wrote:
 Sorry to be that guy

 Most people on the list including me are not native english speakers.

 Your text seems to be in some kind of text message gibberish, can you
 try that again ?

 Yahel

 On 15 avr, 12:45, tina lincon tina.theresalin...@wipro.com wrote:



  Hi,
  I'm presently working with 3d contacts in open gles..the contact
  photos are being takn frm contacts via content provider and is being
  displayed as 3d contacts like a stack of cardsd pattern is wrking
  fine but presently in my application,the whole contact photo is being
  mapped into one square using texturing.What i want is to have a
  buisinesscardlike effect for my application like the photo size shud
  reduce n come on left side and on the right side of thecardi shud
  have the details like  name,phoneno,email,ringtone,officeno
  etc..since der is image n text to b textured @ d same time in
  a single square or rectangle,shud i use the concept of multitexturing
  for this or is der any other  simpler way todesignthecardin open
  gles???pls help me out.
   thanks in advance...- Hide quoted text -

 - Show quoted text -

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


[android-developers] Re: Highlight part of the text in a textview object

2010-04-20 Thread patbenatar
You could TRY span bgcolor=redyour red highlighted text/span




On Apr 19, 12:43 pm, sebastian23 sebastia...@gmail.com wrote:
 the problem is that your solution is only for the font color, but i want to
 set the font background :(

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

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


[android-developers] AppWidget Picker and ACTION_APPWIDGET_PICK

2010-04-20 Thread AndroidNewbie
Hi Guys

Does anyone have idea about ACTION_APPWIDGET_PICK alias
android.appwidget.action.APPWIDGET_PICK ?
Where exactly this is handled ? Basically i want to pick the app
widget  bypassing picking it from standard list of installed
widgets .


Thanks
Tarun

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


[android-developers] Stroage of events in Calendar application in android 2.1

2010-04-20 Thread navin
Does the calendar application in android maintains a cache of its
database?? Whenever i edit and mark some events via tha calendar app
it is stored in the database but if i edit the calendar.db from some
outside source the changes made are not reflected in the calendar app.
so my question is does the calendar app maintains a cache or some
other form of database?? if yes then where and how??

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

2010-04-20 Thread Bob Kerns
One suggestion: sprinkle your code with lots of calls to System.gc().
This MAY (or may not) cause the problem to manifest closer to where
the corruption occurs.

On Apr 19, 6:56 pm, davidm davidbmoff...@gmail.com wrote:
 Hello,

 I have been trying to figure this problem out for a few days now.  A
 fairly simple app with a simple UI crashes the hard with no java stack
 trace.    The same program on a 1.6 MyTouch does not crash but crashes
 horribly on my 2.1-update1 Nexus One.  I have seen the crash in
 libskia, sqlite libs but most of the time in libstdc++.so.  Somehow I
 guess I am trashing memory and once that is done there is no trace of
 what is causing the issue.

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


[android-developers] Dynamic Flipping Screen(like that of iPhone) in Android

2010-04-20 Thread Maxood
How can i make a dynamic flipping screen(like that of iPhone) in
Android

I am parsing data through the web service. I want the flipping
horizontally rather than vertically. Here is a tutorial where
ViewFlipper is used but it is for static data.

Suppose we have 2 activities with their respective xml files: Splash
Activity -splash.xml Menu activity -menu.xml Now how we can flip
between these 2 activities? That is from splash to menu and vice
versa.


Maqsood

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Dynamic Flipping Screen(like that of iPhone) in Android

2010-04-20 Thread MobDev
Do you mean a screen transition Animation ?

On 20 apr, 09:17, Maxood maqs...@salsoft.net wrote:
 How can i make a dynamic flipping screen(like that of iPhone) in
 Android

 I am parsing data through the web service. I want the flipping
 horizontally rather than vertically. Here is a tutorial where
 ViewFlipper is used but it is for static data.

 Suppose we have 2 activities with their respective xml files: Splash
 Activity -splash.xml Menu activity -menu.xml Now how we can flip
 between these 2 activities? That is from splash to menu and vice
 versa.

 Maqsood

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

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


[android-developers] Re: Background processes not being CPU-limited?

2010-04-20 Thread ani
Probably out of context but this issue looks similar to the thread
shown below.
http://groups.google.com/group/android-developers/browse_thread/thread/220248cd27e281c6/96ec2dd63c6850ab?lnk=gstq=AUDIO+STUTTERING#96ec2dd63c6850ab

Audio stuttering problems in android.When somthing cpu intensive is
running in foreground or background.

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


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

2010-04-20 Thread Amir Alagic
@Ove You are not the only one. I know one good Android developer with
one of the top apps in Android Market and now he almost stopped all
work on that app and is moving to iPhone. He should get Nexus One but
it only few hundreds of dollars while with good app on App Store one
can earn thousands of dollars...

Lack of information is also problem. Last year Google said that more
countries will get paid apps... Google said that list will be
published in Q1 2009 and now it is Q2 2010 and still nothing... I
guess that with this attitude Android Market will become place for
free soundboards, themes and low quality apps. Of course there will be
few good ones but ...



On Apr 19, 2:51 pm, Ove Olavgaard ove.olavfga...@gmail.com wrote:
 Well, I have lost all hope. I realize that this was really just meant for
 the US.
 Been waiting 7 weeks a well, and can't get any info from Google, Shipping
 partner or FedEx.

 Personally I have no choice but to leave the Android platform:
 - No Google merchant for northern europe means I cant sell applications
 - No paid apps for customers in northern europe means my customers cant buy
 - Its been like this 2 years now
 - No word from Google when it will be available

 Its really really sad, but I can't afford spending more time on Android,
 without beeing able to create an income, while all my competitors in the US
 can steal ideas and get paid.

 Ove

 2010/4/19 mscwd01 mscw...@gmail.com





  Many people have said the phones will be shipping not from the US but
  from a warehouse in Europe so I agree that the volcano shouldn't have
  any effect on delivering the phones. They would be sent over land not
  by air - which makes me wonder if there is another issue delaying the
  phones?

  On Apr 19, 12:25 pm, JDS jesper.d.svens...@gmail.com wrote:
   No news from anybody in europe?

   Since the phones to EU, or at least to us in sweden, are shippen from
   Frankfurt at least people in germany should have received theirs by
   now, with or without any volcano?

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

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

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

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


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

2010-04-20 Thread Ove Olavgaard
 It is, after all a free gift

So what? If only the developers in US got a free phone that would not bother
me.
I got a mail from Google saying they would give me a free phone in 2-4
weeks!
Great Then I dont have to purchase the phone Ive orginally planned, and
I can test my new app  on yet another device.
Well... After 7 weeks, no words and no phone, I had to buy the planned phone
anyway.

If they know its been problems with delivery of all phones outside US, so
send the developers a mail. They got all the e-mail-adresses.
Should be an easy task.

Ove, i understand your pain, it took a while for paid apps to get
here, and as an ex-South African, they don't even have paid app
downloads over there, so its bad.

Well, its the same same for most European countries. No paid apps available
for download.
It wouldn't be a problem if Google said that it would support Merchang
Accounts and paid apps in 2011.
Then we will at least know, and can plan according to that. The situation
now is just silence for over 2 years.
That is not taking your developers or customers seriously.



2010/4/20 dgoemans dgoem...@gmail.com

 *stands up*

 Hi, my name's David, i'm in the Netherlands, and i haven't had a Nexus
 One for 7 weeks now.

 Seriously tho, i think we need to be calm and strong. They'll arrive
 ( hopefully before i move! ) and we just need patience. It is, after
 all a free gift, which after 2 years as a day job iPhone dev, i can
 say is more than i've been given before.

 Ove, i understand your pain, it took a while for paid apps to get
 here, and as an ex-South African, they don't even have paid app
 downloads over there, so its bad. That said, it's worth keeping in
 mind that there are serious region restrictions on these things
 ( unfortunately - i really hate that ). For example, look at
 Microsoft's Xbox Live Indie Games, which is only accessible in a small
 handful of countries to download for, and only a few more than that
 can dev for it. This is due to (stupid) global financial restrictions.
 Remember that it took Apple many years to get iTunes working across
 the globe.

 On Apr 19, 10:24 pm, JDS jesper.d.svens...@gmail.com wrote:
  I would be very surprised if they do not arrive. If the intention
  never was to send any to europe, why would Google confirm that they
  will arrive over and over again? What is obvious is that they had, or
  still have, some major issues but I don't think we will never know
  what kind.
 
  In the last response I got, they do confirm they had some issues and
  that I should (they don't use the word will receive anymore ;-) )
  receive my phone in 2 weeks, which will be on April 28 and I will wait
  patiently until then before I will contact them again.
 
  On 19 Apr, 21:05, gambiting gambit...@gmail.com wrote:
 
   Well,with each day I'm getting convinced more and more that the phones
   will not arrive in europe,and it was only for the US.
   But on the other side, we didn't pay anything for these phones, so it
   doesn't hurt to wait - maybe one day there we will get them?
   I just hope that people from europe will share info here if they
   receive their phones.
 
   On 19 Kwi, 18:33, TomTasche tomtas...@gmail.com wrote:
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group athttp://
 groups.google.com/group/android-developers?hl=en

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

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

[android-developers] Re: clearing table

2010-04-20 Thread grace
hi,
use the sql statements to drop the table.

On Apr 20, 11:14 am, ranjit R ranjitr...@gmail.com wrote:
 how to clear a table in android database.

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

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


[android-developers] Re: clearing table

2010-04-20 Thread grace
either u can use delete tablename with all other parameters as null..
if u want to delete all the entries of the table.

On Apr 20, 11:14 am, ranjit R ranjitr...@gmail.com wrote:
 how to clear a table in android database.

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

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


[android-developers] Re: Audio stuttering when using AudioTrack.

2010-04-20 Thread Jesper Hansen
I found the solution to my problem: Service.startForeground. This call makes
sure my background service will keeps its priority when its running in the
background.
The SDK has a nice example that works across all API levels:
http://developer.android.com/intl/de/resources/samples/ApiDemos/src/com/example/android/apis/app/ForegroundService.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] C/C++ Displaying Video: How to?

2010-04-20 Thread Ignas
Hello experts!

I am porting an existing C/C++ application (many many man-years of
development), which is designed to be a background-running service.
Based on user's (other applications: mostly Android Java, but possibly
in future, Flash or even JavaScript in browser) input it requires to
display video (5-15fps). With several Android-mandated exceptions it
is fully written in C. Any ideas? So far it seems like the whole
system is conspiring against this and allows painting anything on the
screen only from Java (from Activity). Unfortunately, this goes
against the current architecture.

As far as I know, one way would be to use SurfaceComposerClient (I
know, I know, this will break in future), but it refuses to initialize
on the grounds of insufficient permissions. This is so even after
adding android.permission.ACCESS_SURFACE_FLINGER to the manifest --
the application has to be signed.

I would really want to avoid redesigning, rewriting everything in
Java, or changing concept.

Thanks,
Ignas

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


[android-developers] Dialog display at bottom of Screen

2010-04-20 Thread Nithin
Hi,

The dialog(android.app.Dialog) normally pops up in the center of
screen. Can we make the dialog to come in the bottom of screen.

Nithin

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Weird: It appears as if sometimes my Activity will be resumed but previously set instance variables are null

2010-04-20 Thread Bob Kerns
I do this, without any issues at all.

How are you getting your Application instance from your activities?
not getApplicationContext() I hope...

Have you examined the state from the debugger? There may be something
you're missing about the state of things.

On Apr 19, 11:41 pm, patbenatar patbena...@gmail.com wrote:
 Hey all-

 I am using an Application object to store app-wide instance data--data
 that I need to remain in existence for the entire lifetime of the app,
 so the Application class seems like the proper place to put it. I have
 just finished reading this 
 threadhttp://groups.google.com/group/android-developers/browse_thread/threa...
 that goes into pretty good detail and receives confirmation from
 Googler hackbod as to how the Application class performs--and from
 that info it seems this strange behavior I am receiving should not be
 happening...

 Basically, every once in a while when I resume my app in any of its
 Activities (it is still running in memory so onCreate is not called) I
 get NullPointerExceptions because instance variables in my Application
 class are returning null when I request them from my Activity (via a
 getter method in my custom Application class). It seems as if
 sometimes Android saves the states of my Activities but deletes all my
 instance variable data... This can't be an Android problem--there must
 be something wrong with my code.

 Has anyone else ever ran into an issue of this kind? Any ideas as to
 what may be causing this? I'm not going to post my code here as that
 won't help anyone, but hopefully someone can point me in some helpful
 directions.

 Thanks so much,
 Nick

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

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


[android-developers] can i run .exe in android and what is opengl o/p format?

2010-04-20 Thread mmkr
Hi all,

  I'm new to opengl. Is it possible to run the output file of
opengl program implemented on desktop ( ie.. .exe file )
in android.  Another doubt is what is format of opengl output in
android, i mean for windows it is .exe, so what in android.

Thanks in advance.

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


[android-developers] Re: Access a Service across multiple Applications

2010-04-20 Thread madmax
Hi,
   A li'l update since the last post, the problem regarding the
SecurityException is now resolved(i had to put intent-filters in the
manifest where the Service was defined) but now another problem
regarding the interface has risen. The interface (AIDL) for
communication between the activity and the service is defined in
another package in another application. How can i now access this SAME
interface for communicating with the service from my new application?
Any pointers? I searched through the forum and found this thread
http://groups.google.com/group/android-developers/browse_thread/thread/71ebbb00d6e2b67c/814f65ba19b5e33e?lnk=gstq=unable+to+bind+to+a+service#814f65ba19b5e33e

Here Mark has given some examples, but am not very clear as to how the
same interface will be used across applications. The examples above
have the client in another package and the service in the other but
both packages in the SAME application. I also understand having access
to the service across applications the way i want poses a huge
security risk but we intend to build a very robust design to counter
those security threats.

   Thanks,
   Prafull.

On Apr 20, 11:34 am, madmax madmax.1...@gmail.com wrote:
 Hi,
     I have been trying out the same things that you mentioned in your
 post. I've created aservicefrom an application and on the
 onDestroy() of that application i'm unbinding theservice. Now
 when i want to bind to the sameservicefrom another application, i
 get a SecurityException. The actual error log is as below.

 04-20 11:38:40.231: ERROR/AndroidRuntime(228): Caused by:
 java.lang.SecurityException: Not allowed to bind toserviceIntent
 { cmp=aexp.dualservice/.DualService }
 04-20 11:38:40.231: ERROR/AndroidRuntime(228):     at
 android.app.ApplicationContext.bindService(ApplicationContext.java:
 807)
 04-20 11:38:40.231: ERROR/AndroidRuntime(228):     at
 android.content.ContextWrapper.bindService(ContextWrapper.java:337)
 04-20 11:38:40.231: ERROR/AndroidRuntime(228):     at
 com.vignet.serviceDemo1.ConnectToService.initService(ConnectToService.java:
 48)
 04-20 11:38:40.231: ERROR/AndroidRuntime(228):     at
 com.vignet.serviceDemo1.ConnectToService.onCreate(ConnectToService.java:
 35)
 04-20 11:38:40.231: ERROR/AndroidRuntime(228):     at
 android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
 1047)
 04-20 11:38:40.231: ERROR/AndroidRuntime(228):     at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
 2459)

 Is it because while defining myservicei have given the package name
 of that application and now when i'm trying to bind to theservice
 from another app. its giving me a SecurityException that i'maccessing
 something from another package altogether?

  Thanks,
   Prafull.

 On Apr 19, 9:12 pm, Mark Murphy mmur...@commonsware.com wrote:





  madmax wrote:
   Hey Folks,
                    I have aservicethat i need to accessacross
  multipleApplications. Can anyone tell me how this can be done?

  Create a remoteserviceand expose an interface through AIDL. Here is a
  pair of sampleapplicationsdemonstrating the technique:

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

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

  Android Development Wiki:http://wiki.andmob.org

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

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

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


[android-developers] Re: AIDL in multiple projects in Eclipse

2010-04-20 Thread madmax
Have done the same thing(included AIDL file in another project i use
the service in) but then it give me an error saying

04-20 14:52:23.400: WARN/Parcel(654):  enforceInterface() expected
'aexp.dualservice.ICounterService' but read
'com.vignet.serviceDemo1.ICounterService'

it means that the application was expecting the old package name in
which the service was originally defined but now finds the package
name in which the application is accessing the Remote Service.

On Mar 23, 3:53 pm, Marek Pola marek.p...@gmail.com wrote:
 Yes, you should copy the AIDL file to all projects that use theService.

 Regards
 Marek

 On Mar 22, 6:07 pm, RAJ trra...@gmail.com wrote:



  I am facing same problem too.
  I dont ahve AIDL in both projects (i have it only in myservice
  project)
  Am i supposed to have same AIDL in both projects?

  On Mar 17, 1:58 am, Andreas andreas.bex...@gmail.com wrote:

   Hi,

   Do you set the android:exported property of yourserviceto true in
   the manifest for theservice?

   Regards
   Andreas

   On Mar 17, 1:47 am, Peter Fortuin peter.fort...@gmail.com wrote:

I had that, but that didn't work. Now I just have set my Build Path in 
the
gui application.

2010/3/16 Sime sime...@gmail.com

 Quick question, do you have the aidl file in bothapplications?

 Regards

 On 16 mar, 14:07, Peerke peter.fort...@gmail.com wrote:
  Hello,

  I have problems with the following:

  I want to create toapplications. One with a Androidserviceand one
  with a Activity that will use functions on theService.
  Before I splitted this in toapplicationsI got everything working in
  one application. I can call functions (that are definned in the 
  aidl-
  file) on theservicewithout problems.

  Now the problems coms. I splitted the application into two parts, a
 Serviceapplication and Gui application.
  The bindins to theservice(in the gui application) works and I see
  that theserviceis getting created. Then in the onServiceConnected
  function of the ServiceConnection class I created the following:

  mService = IMyService.Stub.asInterface(service);

  And this gives me the following exception:

  03-16 13:53:05.549: ERROR/AndroidRuntime(881):
  java.lang.NoClassDefFoundError: MyPackage.IMyService$Stub

  It looks like he can't find the Stub class in IMyService. But the 
  Stub
  is part of the java file generated out of the aidl-file.

  Anyone has any idea why I get this exception or how I can resolve 
  this
  issue?

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

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


[android-developers] Re: requestLocationUpdates() Parameters question

2010-04-20 Thread Nithin


Thanks patbenatar..

On Apr 20, 11:19 am, patbenatar patbena...@gmail.com wrote:
 Why would you need updates every instant? It's impossible for the user
 to move much more than a millimeter in that amount of time... Just use
 a realistic amount of time for your app, or use a distance if that
 makes more sense for your application. I'd recommend using a distance
 of like 1 meter if you want really accurate and up-to-date readings.

 On Apr 19, 10:19 pm, Nithin nithin.war...@gmail.com wrote:

  Hi,

  In requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, this);
  if I put time interval and distance as zero, will this work, or shall
  I need to give a value greater than zero.

  Nithin

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

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

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


[android-developers] Re: Dynamic Flipping Screen(like that of iPhone) in Android

2010-04-20 Thread Maxood
All we require is flipping(like in iPhone) between 2 activities in
android.Nothing to do with animation.
Here is our code:

public class Splash extends Activity{

/** Called when the activity is first created. */

public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

setContentView(R.layout.main);

startActivity(new Intent(Splash.this,
MainMenu.class));
Splash.this.finish();

}
}

Splash.xml

?xml version=1.0 encoding=utf-8?
AbsoluteLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent
android:background=@drawable/splash
/AbsoluteLayout


Menu.java

public class Menu extends Activity{

/** Called when the activity is first created. */

public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

setContentView(R.layout.menu);


}
}

Menu.xml

?xml version=1.0 encoding=utf-8?
AbsoluteLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent
android:background=@drawable/menu
/AbsoluteLayout

On Apr 20, 12:33 am, MobDev developm...@mobilaria.com wrote:
 Do you mean ascreentransition Animation ?

 On 20 apr, 09:17, Maxood maqs...@salsoft.net wrote:





  How can i make adynamicflippingscreen(likethat ofiPhone) in
 Android

  I am parsing data through the web service. I want theflipping
  horizontally rather than vertically. Here is a tutorial where
  ViewFlipper is used but it is for static data.

  Suppose we have 2 activities with their respective xml files: Splash
  Activity -splash.xml Menu activity -menu.xml Now how we can flip
  between these 2 activities? That is from splash to menu and vice
  versa.

  Maqsood

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

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

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


[android-developers] Re: Weird: It appears as if sometimes my Activity will be resumed but previously set instance variables are null

2010-04-20 Thread patbenatar
Bob-

Nope, I'm using getApplication()

For instance [inside an Activity]:


MyApplication application;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
application = (MyApplication) this.getApplication();
}


The error is most easily re-produceable when I am in Activity B, after
A started it for result, and then click a button in B to launch Maps
with an Intent to search for an address, then from Maps I hit Home
then my launcher icon on my Home Screen to go back into my app--BAM!
Activity B fails onResume with a NullPointerException coming from a
getter method on my MyApplication class, when I know for sure Activity
A properly set the data in MyApplication..

So strange...

Thanks,
Nick



On Apr 20, 2:18 am, Bob Kerns r...@acm.org wrote:
 I do this, without any issues at all.

 How are you getting your Application instance from your activities?
 not getApplicationContext() I hope...

 Have you examined the state from the debugger? There may be something
 you're missing about the state of things.

 On Apr 19, 11:41 pm, patbenatar patbena...@gmail.com wrote:





  Hey all-

  I am using an Application object to store app-wide instance data--data
  that I need to remain in existence for the entire lifetime of the app,
  so the Application class seems like the proper place to put it. I have
  just finished reading this 
  threadhttp://groups.google.com/group/android-developers/browse_thread/threa...
  that goes into pretty good detail and receives confirmation from
  Googler hackbod as to how the Application class performs--and from
  that info it seems this strange behavior I am receiving should not be
  happening...

  Basically, every once in a while when I resume my app in any of its
  Activities (it is still running in memory so onCreate is not called) I
  get NullPointerExceptions because instance variables in my Application
  class are returning null when I request them from my Activity (via a
  getter method in my custom Application class). It seems as if
  sometimes Android saves the states of my Activities but deletes all my
  instance variable data... This can't be an Android problem--there must
  be something wrong with my code.

  Has anyone else ever ran into an issue of this kind? Any ideas as to
  what may be causing this? I'm not going to post my code here as that
  won't help anyone, but hopefully someone can point me in some helpful
  directions.

  Thanks so much,
  Nick

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

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

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


[android-developers] Finding Ringtone is playing or not?

2010-04-20 Thread ani
Is there any api available which can tell me if currently any ring-
tone is playing or not???

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


Re: [android-developers] How to Validate the Data

2010-04-20 Thread nubh bhargava
Cool!!! Got it.

Thanks
NUBH

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

2010-04-20 Thread AndroidNewbie
I am facing the exact same issue . Can someone help please ? Deren ,
were you able to get the help from someone ?

On Feb 20, 5:15 pm, Deren adam.d0...@gmail.com wrote:
 I've successfully built a small sample app where the user can add a
 appwidget, using the AppWidgetPicker, using the action
 AppWidgetManager.ACTION_APPWIDGET_PICK. When I do this, the
 AppWidgetPicker takes care of binding my appwidget-id to a provider.
 However, now I'd like to load some widgets without using the
 AppWidgetPicker (for instance, maybe I want to restore the added
 appwidgets when I restart the application or something). I've tried
 the following code

 ComponentName widget = new ComponentName(com.android.alarmclock,
 com.android.alarmclock.AnalogAppWidgetProvider);

 int appWidgetId = mAppWidgetHost.allocateAppWidgetId();
 mAppWidgetManager.bindAppWidgetId(appWidgetId, widget);

 but it fails with a SecurityException, even though I've added

 uses-permission android:name=android.permission.BIND_APPWIDGET/

 to my manifest file. Is this the way to do it? (using
 AppWidgetManager.bindAppWidgetId). Im using the emulator, and android
 2.1.

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


[android-developers] Hotspot in ImageView

2010-04-20 Thread angushir...@googlemail.com
Dear all,
 how can I implement an imageview that has touch-sensitive
hotspots so that when the user touches one, a dialog or something
similar appears.

Thanks in advance

Angus

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


[android-developers] Specifying LinearLayout orientation in resource values

2010-04-20 Thread westmeadboy
I have a linear layout where the orientation needs to be horizontal
in portrait mode and vertical in landscape mode.

There are a few ways to do this, the most obvious of which being to
specify two layouts: one in layout and one in layout-land.

However, this will require a certain amount of duplicate XML. I know
you can use include to minimize this, but at the very least the
attributes of the LinearLayout tag will need to be duplicated and two
extra XML files need to be created (one layout-land file and one
include for the contents of that layout).

As an alternative I do this in the LinearLayout tag:

android:orientation=@string/custom_lang_orientation

and then:

values/strings.xml string name=custom_lang_orientation0/string

values/strings-land.xml string name=custom_lang_orientation1/
string

which is a hack. Its also a bit risky because of the assumption the
integer values for horizontal/vertical will not change. However, I
suppose this is extremely unlikely.

Any thoughts?

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

2010-04-20 Thread Santha
Thank you so much..

On Apr 9, 7:58 pm, Charlie Collins charlie.coll...@gmail.com wrote:
 That sounds like a trick question ;).

 The best layout depends on the situation you are in, the context.
 There is no one best for all kind of applications.

 That said, RelativeLayout is often noted as the most robust layout
 because it can sometimes be used to replace multiple other types of
 layouts (still it's not the best all the 
 time).http://android-developers.blogspot.com/2009/10/ui-framework-changes-i...

 One thing I would recommend that not enough people use, regardless of
 what layouts you are working with, is the layoutopt tool.
 This is a tool that can help you detect common layout problems and
 lets you know how to resolve 
 them.http://android-developers.blogspot.com/2009/11/optimize-your-layouts

 On Apr 9, 8:26 am, Santha nsd1...@gmail.com wrote:

  Hello Everyone,

                I'm currently looking in to layouts. can anyone tell me
  which layout is the best layout to be used for all kind of
  applications. and Why?

  Thanks in Advance,
  Santha

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


[android-developers] REG: CSS style sheets

2010-04-20 Thread Santha
Can we import the CSS style sheets in to our android application.

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

2010-04-20 Thread Ke Wu
There are two things you must pay attention to:
1. Your class must implements Parcelable with it's CREATOR.
2. In the receiver activity, you should use getParcelable method to get your
Parcelable object from the Extras bundle.

2010/4/20 Arpit robin.ca...@gmail.com

 This works if I change the class Services from being Parceable to
 Serializable it works... I am not sure why... but between Activity
 when I am sending Serialized data it works but not if I send parceable
 data.

 Regards,
 Arpit

 On Apr 20, 10:31 am, Arpit robin.ca...@gmail.com wrote:
  Similar problem but this doesn't work. Following steps exists in my
  apps and still not able to send data part of Intent (putExtras) from
  one activity to another:
 
  - Activity A is of type ListActivity showing some buttons.
  - Any button click shows a Login screen (AlertDialog).
  - onCreateDialog is implemented and I have two buttons on the
  AlertDialog, Ok  Cancel, both having listener for onClick event. I
  realize that if I try to start activity within onClick event of OK
  BUTTON, the activity wont start.
  - So I implemented onDismissListener and started activity from here.
  - Now I call Activity B and passing new Intent where I have put extra
  (Parcelable object)
 
  In activity B the parcelable object comes empty... No info in it.
 
  Code below:
 
  Activity A (HomeActivity)
 
  @Override
  public void onDismiss(DialogInterface
 dialog) {
  try{
  HomeActivity home =
 (HomeActivity)
  ((AlertDialog)dialog).getOwnerActivity();
  Intent oldIntent =
 home.getIntent();
  oldIntent.setClass(home,
 ServiceListActivity.class);
 
 home.startActivityForResult(oldIntent,0);
  }catch(Exception e){
 
 Toast.makeText(HomeActivity.this, R.string.error_occured,
  Toast.LENGTH_LONG).show();
  }
  }
 
  Activity B (ServiceListActivity)
 
  public void onCreate(Bundle savedInstanceState){
  try{
  super.onCreate(savedInstanceState);
  setContentView(R.layout.middle_man);
  Intent i = super.getIntent();
  Bundle b = i.getExtras();
  IteratorString iterator =
 b.keySet().iterator();
  Services a = null;
  while(iterator.hasNext()){
  a =
 (Services)b.getParcelable(iterator.next());
  }
  Services s =
 (Services)b.get(ServicesConstants.SERVICE_SELECTED);
  ...
  ...
 
  Both 'a' and 's' comes null. They are type object Services which is
  Parceable in nature.
 
  Regards,
  Arpit
 
  On Apr 20, 1:50 am, ~ TreKing treking...@gmail.com wrote:
 
 
 
 
 
   On Mon, Apr 19, 2010 at 1:24 AM, Ke Wu kerl@gmail.com wrote:
I dont know what the Intent exactly do when I use putExtra to pass in
 an
ArrayListMyClass object.
 
   Did you read the documentation on Intents? Specifically this:
 http://developer.android.com/intl/fr/reference/android/content/Intent...,
   java.util.ArrayList? extends android.os.Parcelable)
 
I guess MyClass need to implement Parcelable interface, so I just did
 it.
But still, it does not work.
 
   You guess right. If it does not work, you should explain what doesn't
 work.
   Just saying it does not work is useless to someone trying to help
 you.
 
Maybe I need to create a Bundle and then use Bundle'
 putParcelableArrayList
method to put my ArrayListMyClass object in, and then pass this
 bundle as
parameter of putExtra to the intent.
 
   No.
 
So crazy!
 
   Not really!
 
I am lazy
 
   Then you should not being doing Android development ... or any kind of
   programming for that matter.
 
, I just want to pass an ArrayListMyClass object simply, is there a
simple way??
 
 Any suggestion would be greatly appreciated!
 
   See the link I posted.
 
   On Mon, Apr 19, 2010 at 3:23 AM, Kumar Bibek coomar@gmail.com
 wrote:
However, a cheap workaround would be to have this arraylist as a
 static
variable of your source activity. This way, you can access this Array
 List
from your destination activity
 
   Except that by doing this, you have to make sure the list is actually
 valid.
   If you start Activity A, fill the list, start Activity B, press Home,
 wait a
   while, come back to your app, your app may have been killed since you
   started it, the list will be empty, but you will be back in Activity B.
 If
   you don't validate that list and save and restore it somehow, you will
 run
   into trouble trying to access the empty (or null) list.
 
  
 

[android-developers] Re: android tablet emulator creation

2010-04-20 Thread Jeff
You can use image from androidx86 project in VirtualBox, but of course
I'd prefer working emulator from Google.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Weird: It appears as if sometimes my Activity will be resumed but previously set instance variables are null

2010-04-20 Thread westmeadboy
Not sure if this helps, but use
http://developer.android.com/reference/java/lang/System.html#identityHashCode(java.lang.Object)
to check whether the Application object is indeed the same in both
cases (or whether they are in different DVMs)

On Apr 20, 12:04 pm, patbenatar patbena...@gmail.com wrote:
 Bob-

 Nope, I'm using getApplication()

 For instance [inside an Activity]:

 MyApplication application;

 @Override
 public void onCreate(Bundle savedInstanceState) {
     super.onCreate(savedInstanceState);
     application = (MyApplication) this.getApplication();

 }

 The error is most easily re-produceable when I am in Activity B, after
 A started it for result, and then click a button in B to launch Maps
 with an Intent to search for an address, then from Maps I hit Home
 then my launcher icon on my Home Screen to go back into my app--BAM!
 Activity B fails onResume with a NullPointerException coming from a
 getter method on my MyApplication class, when I know for sure Activity
 A properly set the data in MyApplication..

 So strange...

 Thanks,
 Nick

 On Apr 20, 2:18 am, Bob Kerns r...@acm.org wrote:





  I do this, without any issues at all.

  How are you getting your Application instance from your activities?
  not getApplicationContext() I hope...

  Have you examined the state from the debugger? There may be something
  you're missing about the state of things.

  On Apr 19, 11:41 pm, patbenatar patbena...@gmail.com wrote:

   Hey all-

   I am using an Application object to store app-wide instance data--data
   that I need to remain in existence for the entire lifetime of the app,
   so the Application class seems like the proper place to put it. I have
   just finished reading this 
   threadhttp://groups.google.com/group/android-developers/browse_thread/threa...
   that goes into pretty good detail and receives confirmation from
   Googler hackbod as to how the Application class performs--and from
   that info it seems this strange behavior I am receiving should not be
   happening...

   Basically, every once in a while when I resume my app in any of its
   Activities (it is still running in memory so onCreate is not called) I
   get NullPointerExceptions because instance variables in my Application
   class are returning null when I request them from my Activity (via a
   getter method in my custom Application class). It seems as if
   sometimes Android saves the states of my Activities but deletes all my
   instance variable data... This can't be an Android problem--there must
   be something wrong with my code.

   Has anyone else ever ran into an issue of this kind? Any ideas as to
   what may be causing this? I'm not going to post my code here as that
   won't help anyone, but hopefully someone can point me in some helpful
   directions.

   Thanks so much,
   Nick

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

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

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

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


[android-developers] Uploading content onto android market

2010-04-20 Thread Sharma
Hello,

Can I upload content(can be anytype jpg/png) other than apk onto
android market so that the application could download the content at
the first run.

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] Application run

2010-04-20 Thread Sharma
Hello,

Is it possible for an application to run automatically after
completion of download/install from android market (Similar to First
Run Run after installation in Symbian OS).


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] Android on Symbian

2010-04-20 Thread Chirayu Dalwadi
Can I install Android on Symbian Phone?

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

2010-04-20 Thread ulqui
ok

thx a lot for your help
I will try this

thx ^^

On 19 avr, 16:56, Mark Murphy mmur...@commonsware.com wrote:
 ulqui wrote:
  hi

  i am currently working in a media player application with a progress
  bar.
  It work well but i am searching for a listener or something that will
  make the progressbar move each second the track is playing but have
  found nothing.

  i had tried

   private ProgressBar barre;
         private int durée;
  public void onClick(View view) {

                mMediaPlayer.start();

                durée=mMediaPlayer.getDuration();

               setProgress(durée);

  but not working

 You cannot merely call setProgress() once. If you want the ProgressBar
 to update every second, you will need to call setProgress() every second.

 In this sample project, I am using postDelayed() to achieve this effect:

 http://github.com/commonsguy/vidtry

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

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

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

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


Re: [android-developers] Uploading content onto android market

2010-04-20 Thread Mark Murphy
Sharma wrote:
 Can I upload content(can be anytype jpg/png) other than apk onto
 android market so that the application could download the content at
 the first run.

No, sorry.

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

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

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


Re: [android-developers] Application run

2010-04-20 Thread Mark Murphy
Sharma wrote:
 Hello,
 
 Is it possible for an application to run automatically after
 completion of download/install from android market (Similar to First
 Run Run after installation in Symbian OS).

No, sorry.

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

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

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


Re: [android-developers] Weird: It appears as if sometimes my Activity will be resumed but previously set instance variables are null

2010-04-20 Thread Mark Murphy
patbenatar wrote:
 I am using an Application object to store app-wide instance data--data
 that I need to remain in existence for the entire lifetime of the app,
 so the Application class seems like the proper place to put it. 

A database, flat file, or other persistent store is the proper place for
it, perhaps cached via a custom Application class or static data members.

 I have
 just finished reading this thread
 http://groups.google.com/group/android-developers/browse_thread/thread/502fe58d8ed44102#
 that goes into pretty good detail and receives confirmation from
 Googler hackbod as to how the Application class performs--and from
 that info it seems this strange behavior I am receiving should not be
 happening...

Bear in mind that the thread in question is over two years old. Anything
posted before August 2008, in particular, should be viewed with some
skepticism.

 Basically, every once in a while when I resume my app in any of its
 Activities (it is still running in memory so onCreate is not called) I
 get NullPointerExceptions because instance variables in my Application
 class are returning null when I request them from my Activity (via a
 getter method in my custom Application class). It seems as if
 sometimes Android saves the states of my Activities but deletes all my
 instance variable data... This can't be an Android problem--there must
 be something wrong with my code.

I suspect that the problem is that you're assuming that the entire
lifetime of the app is longer than it is.

 The error is most easily re-produceable when I am in Activity B, after
 A started it for result, and then click a button in B to launch Maps
 with an Intent to search for an address, then from Maps I hit Home
 then my launcher icon on my Home Screen to go back into my app--BAM!
 Activity B fails onResume with a NullPointerException coming from a
 getter method on my MyApplication class, when I know for sure Activity
 A properly set the data in MyApplication.. 

It is entirely possible that your activities and application were
destroyed while you were in the Maps and Home applications, to free up
memory.

You cannot assume that when your activity starts up that the application
has already been around, even if you are getting savedInstanceState.
Using a custom Application or static data members as a cache is
perfectly fine, but you cannot reliably use it to hold app-wide
instance data. You *can* use it to cache app-wide instance data that
is backed by a persistent store (database, flat file, the cloud,
whatever).

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

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

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


Re: [android-developers] Re: Access a Service across multiple Applications

2010-04-20 Thread Mark Murphy
madmax wrote:
 The interface (AIDL) for
 communication between the activity and the service is defined in
 another package in another application. How can i now access this SAME
 interface for communicating with the service from my new application?

You copy the AIDL file, put it in the same package as in the old
project, and use it in your new project. In the links I provided
earlier, you will see that the IScript AIDL file resides in both projects.

 Here Mark has given some examples, but am not very clear as to how the
 same interface will be used across applications. The examples above
 have the client in another package and the service in the other but
 both packages in the SAME application.

No, they don't. They are two separate Android applications, with two
separate APK files, two separate manifests, two separate source trees,
and two separate copies of the same AIDL file in the same package.

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

_The Busy Coder's Guide to Android Development_ Version 3.0
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] thumbnail of image from absolute path of image.

2010-04-20 Thread Manoj
Hi folk ,
I have got stuck and want a help from you guys. I am trying to display
the thumbnail of an image in sdcard . I have absolute paths of some
images and want to display the their thumbnails in listview.

Manoj C

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


[android-developers] Getting the frequency bands used by phone

2010-04-20 Thread Watcher
Hi,

I've been perusing the SDK docs and can't find any way to determine
the frequency band of the cell the phone is using: I want to be able
to differentiate between 1900Mhz and 850Mhz.

Did I overlook this or is it missing ?
If it is missing, what is the best way to turn this into a feature
request ?

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


[android-developers] Emulator error : No space left on device

2010-04-20 Thread Uander
Hello ,

I faced a error while running emulator :

NAND: could not write file
/mnt/eclair/out/target/product/generic//system.img, No space left on device

thats because my rootfs was 100% filled up .

Then I free around 7GB of space .

Still  issue is same  .


Can anybody help me out .


Thanks :
Uander

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

[android-developers] Swipe to next screen

2010-04-20 Thread Eddie Ringle
If you look at the Google News  Weather app, you can swipe over to the
next page. Anyone know how this is done?
I'm suspecting that it is all one activity, the tabs at the top are a custom
TabView, and it works similar to that?

Eddie Ringle
ed...@eringle.net
http://eddieringle.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] Getting the frequency bands used by phone

2010-04-20 Thread Watcher
Hi,

I've been perusing the SDK docs and can't find any way to determine
the frequency band of the cell the phone is using: I want to be able
to differentiate between 1900Mhz and 850Mhz.

Did I overlook this or is it missing ?
If it is missing, what is the best way to turn this into a feature
request ?

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


Re: [android-developers] Getting the frequency bands used by phone

2010-04-20 Thread Mark Murphy
Watcher wrote:
 I've been perusing the SDK docs and can't find any way to determine
 the frequency band of the cell the phone is using: I want to be able
 to differentiate between 1900Mhz and 850Mhz.
 
 Did I overlook this or is it missing ?

I don't see it in TelephonyManager, where I would expect it to reside. I
suspect it is not part of the API.

 If it is missing, what is the best way to turn this into a feature
 request ?

http://b.android.com is the public issue tracker.

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

Android Training in NYC: 30 April-2 May 2010: http://guruloft.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: grow or shrink view

2010-04-20 Thread satish bhoyar
Guys anybody knows this ... hw to solve this ...?

please help ..

thanks

On Mon, Apr 19, 2010 at 6:59 PM, satish bhoyar getsatonl...@gmail.comwrote:

 Hi,

 I have one problem... like i want my view to grow or shrink in one
 direction like curtains. What animation i can use for this? is this scalling
 or wht is it ?

 please tell me

 thanks..



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

[android-developers] 2.1 Bluetooth support still needs work

2010-04-20 Thread Anders Widen
Hi!

I've been working with bluetooth trying figure things out using the
BTChatExample. Without editing BTChat has errors that destroy the
functionality. You can only connect the first time, if you connect.
Close the program and doesn't restart bluetooth the program crashes.
Even if you edit out the AccepThread and only focus on client connect,
the program will cast exceptions.

JBtlSpp.create failed with status FAILED

when trying to connect. I've looked into the code and referenced it
with the docs (that are based around the ChatExample) and either
bluetooth still needs work or there something missing in the APIs.

I would love to hear from other people trying to use Bluetooth on
Android 2.0++, or try to get a hold of a framework developer to try to
iron out these that I believe are in the framework itself.

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

2010-04-20 Thread Felipe Silveira
Well, I'm not sure if it is what you want, but you can use the WebView
component (
http://developer.android.com/intl/de/reference/android/webkit/WebView.html)
to load a HTML page inside your application. (and, of course, the CSS used
by the HTML page)


-- 
Felipe Silveira
http://www.felipesilveira.com.br
-

On Tue, Apr 20, 2010 at 7:55 AM, Santha nsd1...@gmail.com wrote:

 Can we import the CSS style sheets in to our android application.

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

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

Re: [android-developers] Specifying LinearLayout orientation in resource values

2010-04-20 Thread Justin Giles
I suppose you could change the orientation in code.  After you assign the
view in your onCreate, do a check to see whether the user is on landscape or
portrait mode and set the orientation value accordingly.  This should be a
bit more fool-proof than your method, however it could have its own
drawbacks in that it could cause shifting on the screen visible to the user.
 Might be worth a try though.

Justin

On Tue, Apr 20, 2010 at 5:41 AM, westmeadboy westmead...@yahoo.co.ukwrote:

 I have a linear layout where the orientation needs to be horizontal
 in portrait mode and vertical in landscape mode.

 There are a few ways to do this, the most obvious of which being to
 specify two layouts: one in layout and one in layout-land.

 However, this will require a certain amount of duplicate XML. I know
 you can use include to minimize this, but at the very least the
 attributes of the LinearLayout tag will need to be duplicated and two
 extra XML files need to be created (one layout-land file and one
 include for the contents of that layout).

 As an alternative I do this in the LinearLayout tag:

 android:orientation=@string/custom_lang_orientation

 and then:

 values/strings.xml string name=custom_lang_orientation0/string

 values/strings-land.xml string name=custom_lang_orientation1/
 string

 which is a hack. Its also a bit risky because of the assumption the
 integer values for horizontal/vertical will not change. However, I
 suppose this is extremely unlikely.

 Any thoughts?

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

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

Re: [android-developers] Re: Pass ArrayList parameters between two activities.

2010-04-20 Thread ~ TreKing
On Tue, Apr 20, 2010 at 12:31 AM, Arpit robin.ca...@gmail.com wrote:

  Now I call Activity B and passing new Intent where I have put
 extra (Parcelable object)


How are you adding the parcelables? I don't see that in what you posted.

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

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

[android-developers] Create jar file from android source code

2010-04-20 Thread Mihai Dumitrache
Hello,
How can i create a jar file with android classes ? Right now i have
only used eclipse and adt plugin to generate apk files from android
source code, but i want to be able to create some jar file with some
classes from my project.

This jars will be loaded dynamically when they are needed.
I have read some docs about android tools and aapt but i don't know
exactly how to use them.

Thanks,
Mihai

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Weird: It appears as if sometimes my Activity will be resumed but previously set instance variables are null

2010-04-20 Thread String
On Apr 20, 12:47 pm, Mark Murphy mmur...@commonsware.com wrote:

 It is entirely possible that your activities and application were
 destroyed while you were in the Maps and Home applications, to free up
 memory.

Sure, that's the normal app lifecycle. But if this is the case, why
isn't the Activity's onCreate being called? To me, that's the
confusing part of this.

String

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


[android-developers] User Cancel - ProgressDialog

2010-04-20 Thread Matthew Patience
I started an indeterminate progress dialog in my onCreate method and
then used ASync to download some info and display it to the user.
After that I dismissed the progressdialog. I don't if anyone else has
experienced this but sometimes the progress dialog is stuck in a loop
and it wont download any info. I can tell because the data arrows wont
move. The only way to cancel this is to click the Home or Search key.

I have never been able to figure out how to debug my applications but
I was rather wondering if this is a common problem or if there is a
simple fix.

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: Weird: It appears as if sometimes my Activity will be resumed but previously set instance variables are null

2010-04-20 Thread Mark Murphy
String wrote:
 On Apr 20, 12:47 pm, Mark Murphy mmur...@commonsware.com wrote:
 
 It is entirely possible that your activities and application were
 destroyed while you were in the Maps and Home applications, to free up
 memory.
 
 Sure, that's the normal app lifecycle. But if this is the case, why
 isn't the Activity's onCreate being called? To me, that's the
 confusing part of this.

Whoops. I missed that part. If that's happening, that is very strange.
The Application object should be the second-to-last thing to go -- if
activities are in RAM, so should the Application, AFAIK.

That being said, the *last* thing to go is static data members, since
they'll only get cleaned up when the whole Dalvik VM is reset or the
process is fully terminated. It may be worth a test to see if a static
data member survives all of this.

Something definitely is not adding up.

My apologies for missing that part of the original post and not
addressing it in my earlier reply.

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

_Android Programming Tutorials_ Version 2.0 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] 2.1 Bluetooth support still needs work

2010-04-20 Thread Max Gilead
Hi Anders!

You can search list archives for others with BT-related issues. I for one am
having problems with it too (Droid with 2.0.1 firmware, still waiting for
OTA 2.1 update).

When every other phone/laptop I tried can connect to a device and even my
Droid can connect to is using low-level driver but it's plain impossible
from application level I'd say we have a bug here (full story @
http://stackoverflow.com/questions/2660968/how-to-prevent-android-bluetooth-rfcomm-connection-from-dying-immediately-after
)

Philipp's thread:
http://groups.google.com/group/android-developers/browse_thread/thread/a7ff7771ae3be1c/99e0a638c37b9ae5?hl=enlnk=gstq=Android+Bluetooth+Development+-+Problem+connecting#99e0a638c37b9ae5

My problem:
http://groups.google.com/group/android-developers/browse_thread/thread/440da759b1935108/4c014dd6433cc440?hl=enlnk=gstq=Bluetooth+RFCOMM+connection+dying+immediately+after+.connect%28%29#4c014dd6433cc440

Cheers,
Max

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

[android-developers] Re: User Cancel - ProgressDialog

2010-04-20 Thread polyclefsoftware
I believe if you use the following method, the back button should
dismiss the progress dialog, without closing the app:

progressDialog.setCancelable(true);

On Apr 20, 8:00 am, Matthew Patience matthewj.patie...@gmail.com
wrote:
 I started an indeterminate progress dialog in my onCreate method and
 then used ASync to download some info and display it to the user.
 After that I dismissed the progressdialog. I don't if anyone else has
 experienced this but sometimes the progress dialog is stuck in a loop
 and it wont download any info. I can tell because the data arrows wont
 move. The only way to cancel this is to click the Home or Search key.

 I have never been able to figure out how to debug my applications but
 I was rather wondering if this is a common problem or if there is a
 simple fix.

 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 
 athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: Access a Service across multiple Applications

2010-04-20 Thread madmax
Thanks a lot Mark! And sorry about the package thingy... Since the
names were the same i thought they were the same packages. Making a
new package with the SAME NAME as the AIDL was in in the previous
application and copying the AIDL file in to that package solves the
problem. Thanks again for the help.

  Cheers!
   Prafull.

On Apr 20, 4:50 pm, Mark Murphy mmur...@commonsware.com wrote:
 madmax wrote:
  The interface (AIDL) for
  communication between the activity and theserviceis defined in
  another package in another application. How can i now access this SAME
  interface for communicating with theservicefrom my new application?

 You copy the AIDL file, put it in the same package as in the old
 project, and use it in your new project. In the links I provided
 earlier, you will see that the IScript AIDL file resides in both projects.

  Here Mark has given some examples, but am not very clear as to how the
  same interface will be used acrossapplications. The examples above
  have the client in another package and theservicein the other but
  both packages in the SAME application.

 No, they don't. They are two separate Androidapplications, with two
 separate APK files, two separate manifests, two separate source trees,
 and two separate copies of the same AIDL file in the same package.

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

 _The Busy Coder's Guide to Android Development_ Version 3.0
 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 
 athttp://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] Dialog display duration

2010-04-20 Thread ~ TreKing
On Mon, Apr 19, 2010 at 7:54 AM, angushir...@googlemail.com 
angushir...@yahoo.co.uk wrote:

 What would be the best way of displaying a dialog for 500ms and then
 dismissing it?


Call show() or showDialog(int) then post a runnable object to your UI thread
that just calls dismiss() or dismissDialog(int) in 500ms.

You really don't need a custom Dialog implementation or a custom UI.

However, showing a dialog for half a second seems rather pointless. What
could possibly convey to the user in that amount of time?

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

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

[android-developers] Re: Android on Symbian

2010-04-20 Thread javame_android
Hi,

Android is a Mobile operating System and Symbian is also Mobile
Operating System.

I don't think you will be able to install Android in Symbian. Android
is completely linux based.

I hope this helps you out.


Regards
Sunil

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

2010-04-20 Thread social hub
http://developer.android.com/intl/de/reference/android/view/animation/ScaleAnimation.html

looks like scaleanimation to me.

On Mon, Apr 19, 2010 at 8:29 AM, satish bhoyar getsatonl...@gmail.comwrote:

 Hi,

 I have one problem... like i want my view to grow or shrink in one
 direction like curtains. What animation i can use for this? is this scalling
 or wht is it ?

 please tell me

 thanks..

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

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

[android-developers] play an audio file on a voice call

2010-04-20 Thread george
Hi all

i want to play an audio file on a voice call

as following

the application initiates a call from device X to device Y

when Y replies

application on device X should inject an audio file in the stream of
the call

so device Y hears this audio file

if any help i'm waiting

Thanks much
George

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

2010-04-20 Thread Mark Murphy
george wrote:
 Hi all
 
 i want to play an audio file on a voice call
 
 as following
 
 the application initiates a call from device X to device Y
 
 when Y replies
 
 application on device X should inject an audio file in the stream of
 the call
 
 so device Y hears this audio file
 
 if any help i'm waiting

That is not possible in Android -- you have no way to inject an audio
file in the stream of the call. Sorry!

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

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

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


Re: [android-developers] Hotspot in ImageView

2010-04-20 Thread social hub
extend imageview and overried ontouchevent and oninterecepttouchevent and
you can decide the action based on touchevents

On Tue, Apr 20, 2010 at 5:36 AM, angushir...@googlemail.com 
angushir...@yahoo.co.uk wrote:

 Dear all,
 how can I implement an imageview that has touch-sensitive
 hotspots so that when the user touches one, a dialog or something
 similar appears.

 Thanks in advance

 Angus

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

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

[android-developers] Re: 2.1 Bluetooth support still needs work

2010-04-20 Thread ssozonoff
Hello,

Yes I can confirm the same.

I have a solution working for example under the HTC Legend but fails
using the HTC Desire and the failure apears to be at a fairly low
level.

Serge

On Apr 20, 2:28 pm, Anders Widen anders...@gmail.com wrote:
 Hi!

 I've been working with bluetooth trying figure things out using the
 BTChatExample. Without editing BTChat has errors that destroy the
 functionality. You can only connect the first time, if you connect.
 Close the program and doesn't restart bluetooth the program crashes.
 Even if you edit out the AccepThread and only focus on client connect,
 the program will cast exceptions.

 JBtlSpp.create failed with status FAILED

 when trying to connect. I've looked into the code and referenced it
 with the docs (that are based around the ChatExample) and either
 bluetooth still needs work or there something missing in the APIs.

 I would love to hear from other people trying to use Bluetooth on
 Android 2.0++, or try to get a hold of a framework developer to try to
 iron out these that I believe are in the framework itself.

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

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


[android-developers] Re: Dialog display at bottom of Screen

2010-04-20 Thread Nithin

I can use android.widget.PopUpWindow class, but it has sharp edges
in the corners, I need like in Dialog, rounded edges. Is it possible
in PopUpWindow or can we put the dialog to the Bottom.

Nithin



On Apr 20, 2:14 pm, Nithin nithin.war...@gmail.com wrote:
 Hi,

 The dialog(android.app.Dialog) normally pops up in the center of
 screen. Can we make the dialog to come in the bottom of screen.

 Nithin

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

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


Re: [android-developers] How to add a View in Gallery?

2010-04-20 Thread social hub
use adapter extending from baseadapter or cursoradapter etc.

On Tue, Apr 20, 2010 at 1:20 AM, javame_android
su...@softwebsolutions.comwrote:

 Hi,

 I have multiple listviews and would like to add those to Gallery View.

 I tried by using addView method but that is not supported in Gallery
 since its AdapterView.

 Can someone suggest me how to add views to Gallery?



 Regards
 Sunil

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

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

[android-developers] Re: Dialog display at bottom of Screen

2010-04-20 Thread Pieter

You can do the following in the constructor of a Dialog subclass:

getWindow().getAttributes().y = 30;

to move the dialog 30 pixels down. This movement is relative though.


On Apr 20, 3:55 pm, Nithin nithin.war...@gmail.com wrote:
 I can use android.widget.PopUpWindow class, but it has sharp edges
 in the corners, I need like in Dialog, rounded edges. Is it possible
 in PopUpWindow or can we put the dialog to the Bottom.

 Nithin

 On Apr 20, 2:14 pm, Nithin nithin.war...@gmail.com wrote:

  Hi,

  The dialog(android.app.Dialog) normally pops up in the center of
  screen. Can we make the dialog to come in the bottom of screen.

  Nithin

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

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

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


Re: [android-developers] How to make my app start up itself at the specified time just like the alarm clock.

2010-04-20 Thread ~ TreKing
On Sat, Apr 17, 2010 at 12:54 AM, shock shock.sof...@gmail.com wrote:

 how should I do?


Try This http://lmgtfy.com/?q=android+alarm

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

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

Re: [android-developers] ScrollView is not calling onDraw()

2010-04-20 Thread social hub
you should overried onlayout and onmeasure without that it wont work, it
gives the size to your component.

Look into creating custom view first.

http://developer.android.com/intl/de/guide/topics/ui/custom-components.html




On Mon, Apr 19, 2010 at 3:00 PM, zebdor zlipp...@gmail.com wrote:

 Hello,

 I hope this question belongs in the Android Developers and not Android
 Beginners group but I have a question about ScrollViews. I am
 currently working with a customized GraphView class and am trying to
 put it into a ScrollView but it doesn't seem to work. Whenever I run
 the code, it comes up with a blank screen. I've written the code in
 XML and also tried to create the ScrollView encapsulating the
 GraphView programmatically but whenever the code runs, it comes up
 with just a blank screen and GraphView's onDraw() is never called.

 Here's the code (with XML file):

 GraphView.java:
 public class GraphView extends View {

 private Paint paint;
 private float[] values;
 private String[] horlabels;
 private String[] verlabels;
 private String title;

 public GraphView(Context context, AttributeSet attributeSet) {
  super(context, attributeSet);

  title = Graph;
  float[] values = new float[] { 2.0f, 1.5f, 2.5f, 1.0f,
 3.0f };
  String[] verlabels = new String[] { great, ok, bad };
  String[] horlabels = new String[] { today, tomorrow,
 next week, next month };

  if (values == null)
   values = new float[0];
  else
   this.values = values;

  if (horlabels == null)
   this.horlabels = new String[0];
  else
   this.horlabels = horlabels;
  if (verlabels == null)
   this.verlabels = new String[0];
  else
   this.verlabels = verlabels;
  paint = new Paint();
 }

 @Override
 protected void onDraw(Canvas canvas) {
  float border = 20;
  float horstart = border * 2;
  float height = getHeight();
  float width = getWidth() - 1;
  float max = getMax();
  float min = getMin();
  float diff = max - min;
  float graphheight = height - (2 * border);
  float graphwidth = width - (2 * border);

  paint.setTextAlign(Align.LEFT);
  int vers = verlabels.length - 1;
  for (int i = 0; i  verlabels.length; i++) {
   paint.setColor(Color.DKGRAY);
   float y = ((graphheight / vers) * i) + border;
   canvas.drawLine(horstart, y, width, y, paint);
   paint.setColor(Color.WHITE);
   canvas.drawText(verlabels[i], 0, y, paint);
  }
  int hors = horlabels.length - 1;
  for (int i = 0; i  horlabels.length; i++) {
   paint.setColor(Color.DKGRAY);
   float x = ((graphwidth / hors) * i) + horstart;
   canvas.drawLine(x, height - border, x, border, paint);
   paint.setTextAlign(Align.CENTER);
   if (i==horlabels.length-1)
paint.setTextAlign(Align.RIGHT);
   if (i==0)
paint.setTextAlign(Align.LEFT);
   paint.setColor(Color.WHITE);
   canvas.drawText(horlabels[i], x, height - 4, paint);
  }

  paint.setTextAlign(Align.CENTER);
  canvas.drawText(title, (graphwidth / 2) + horstart, border -
 4, paint);

  float colwidth = (width - (horstart)) / (horlabels.length -
 1);
  float lasth = 0;
  for (int i = 0; i  values.length; i++) {
   float val = values[i] - min;
   float rat = val / diff;
   float h = graphheight * rat;
   if (i  0)
canvas.drawLine(((i - 1) * colwidth) + horstart,
 (border - lasth) + graphheight, (i * colwidth) + horstart, (border -
 h) + graphheight, paint);
   lasth = h;
  }
 }

 private float getMax() {
  float largest = Integer.MIN_VALUE;
  for (int i = 0; i  values.length; i++)
   if (values[i]  largest)
largest = values[i];
  return largest;
 }

 private float getMin() {
  float smallest = Integer.MAX_VALUE;
  for (int i = 0; i  values.length; i++)
   if (values[i]  smallest)
smallest = values[i];
  return smallest;
 }
 }


 Graph.java:
 public class Graph extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
 }


 main.xml:
 ?xml version=1.0 encoding=utf-8?
 ScrollView xmlns:android=http://schemas.android.com/apk/res/android;
android:layout_width=fill_parent
android:layout_height=fill_parent

 com.examples.graph.GraphView android:layout_width=fill_parent
  

[android-developers] Re: accessing and changing Sync setting for android 1.5, 1.6 and more

2010-04-20 Thread cpphool
[android 2.x]

as far as i know, Android 2.x introduces completely new sync mechanism
(allowing use to use multi accounts). In order to check whether global
auto-sync is on, you can use:

 ContentResolver.getMasterSyncAutomatically();

and to switch it on:

 ContentResolver.setMasterSyncAutomatically(true);

[android 1.x]

Did you find something about 1.6? and are you able to change auto-sync
settings in 1.5?

I tried with this snippet:

 final Uri CONTENT_URI = Uri.parse(content://sync/settings);
 ContentValues values = new ContentValues();
 values.put(name, sync_provider_contacts);
 values.put(value, true);
 getContentResolver().insert(CONTENT_URI, values);

The value changes to 1 instead of true and it doesn't affect sync
settings.

On 16 Kwi, 17:53, zehunter zehunte...@gmail.com wrote:
 hi,

 i'm not able to find any example or documentation or tutorial about
 how to enable or disable sync (background data and auto sync)
 programmaticaly, even if i can found many widget that can do that
 without root access or such.

 is it something secret? :-)
 can any one may be good enough to help me and explain how this work
 and how to implement that into my code?

 i found some trick with URI and content://sync/setting but it seems to
 be not possible with android 1.6 at least :-( any idea why? and what
 replaced this?

 thanks a thousand time for all people that will answer to me.
 best regards,

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

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


[android-developers] Bluetooth file transfer to Laptop is failing.

2010-04-20 Thread guru
Bluetooth file transfer to mobile (any set) is successful. But if I
tried to transfer to Laptop it is failing. Below is the log for
successful and unsuccessful case

For unsuccessful case, it is unable to get channel number. Whether i
have to do settings for laptop case?

Phone to Mobile(Motorola) transfer success:
BluetoothShare.DIRECTION_OUTBOUND
V/BtOppTransfer( 1405): startConnectSession IN
V/BluetoothOppPreference( 1405): getChannel 00:17:E2:8D:76:C4_1105
V/BluetoothOppPreference( 1405): getChannel for 00:17:E2:8D:76:C4_1105
as null
V/BtOppTransfer( 1405): doOpushSdp IN
I/AppsUtility( 1236): [apps_filldata]raw data=609
I/AppsUtility( 1236): [apps_update_zero_point][apps_update_zero_point]:
[609,483,608]
I/AppsUtility( 1236): [apps_check_TDS]raw data: x=609, y=483, z=608;
zero point: x=608, y=482, z=607; delta data: dx=0, dy=0, dz=0, state=0
I/AppsUtility( 1236): [ELAN_HandleEvent]dx=0, dy=0, dz=0, state=0
I/AppsUtility( 1236): [apps_filldata]raw data=483
I/AppsUtility( 1236): [apps_filldata]raw data=608
I/AppsUtility( 1236): [apps_filldata]raw data=515
I/AppsUtility( 1236): [apps_filldata]raw data=12
I/AppsUtility( 1236): [apps_filldata]raw data=32
V/BtOppTransfer( 1405): Do Opush SDP request for address 00:17:E2:8D:
76:C4
D/BluetoothDevice( 1405): getServiceChannel IN
D/BtOppTransfer( 1405): Get OPUSH channel 8 from SDP for 00:17:E2:8D:
76:C4
V/BtOppTransfer( 1405): startConnectSession OUT
V/BtOppTransfer( 1405): SDP request returned 8 (2 ms)


Phone to Laptop: Unsuccessful case.
 V/BtOppTransfer( 1423): BluetoothShare.DIRECTION_OUTBOUND
V/BtOppTransfer( 1423): startConnectSession IN
V/BluetoothOppPreference( 1423): getChannel 00:25:56:CD:5D:13_1105
V/BluetoothOppPreference( 1423): getChannel for 00:25:56:CD:5D:13_1105
as null
V/BtOppTransfer( 1423): doOpushSdp IN
V/BtOppTransfer( 1423): Do Opush SDP request for address 00:25:56:CD:
5D:13
D/BluetoothDevice( 1423): getServiceChannel IN
V/BtOppTransfer( 1423): Remote Service channel not in cache
D/BluetoothDevice( 1423): fetchUuidsWithSdp IN
V/BtOppTransfer( 1423): Start new SDP, wait for result
V/BtOppTransfer( 1423): doOpushSdp OUT-1
V/BtOppTransfer( 1423): startConnectSession OUT

..
..
..

V/BtOppTransfer( 1423): onReceive IN
V/BtOppTransfer( 1423): ACTION_UUID for device 00:25:56:CD:5D:13
V/BtOppTransfer( 1423): device.equals(mBatch.mDestination)
V/BtOppTransfer( 1423): uuid != null
V/BtOppTransfer( 1423): onReceive OUT
V/BtOppTransfer( 1423): SDP request returned -1 (4268 ms)

Thanks
Guru

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

2010-04-20 Thread Thilo-Alexander Ginkel
Hello everyone,

I am currently somewhat struggling to get the Android emulator to use
a custom DNS server, which is running on localhost (127.0.0.1).

As of now, I have tried various approaches trying to convince the
emulator to use my DNS server, so far without success. In the end, it
always boils down to the following error message:

### WARNING: can't resolve DNS server name 'localhost'
### WARNING: will use system default DNS server

localhost, however, resolves correctly when supplied to nslookup:

| $ nslookup localhost
| Server:  dnszrh01.xxx
| Address:  10.xxx.xxx.xxx
|
| Non-authoritative answer:
| Name:localhost.xxx
| Address:  127.0.0.1

Using the IP address instead of the hostname also does not help much,
it just changes the error message to:

### WARNING: can't resolve DNS server name '127.0.0.1'
### WARNING: will use system default DNS server

The extra command line I am using to start the emulator reads: -http-
proxy http://proxy.xxx:8080 -dns-server 127.0.0.1 -debug-proxy -
verbose

This is happening with Android emulator version 5.0 (build_id
ECLAIR-24846) running on Windows.

Any hint how to get this working is much appreciated!

Thanks,
Thilo

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


[android-developers] Permission

2010-04-20 Thread ReyLith
Hi!
I am devoloping an application of image editor. I allways do it by
using the resources in the drawable carpet. Now I changed it to use
the resources in the SD card. I don't change the code of the image
access but the program allways produce an error if I intent to set
the
value of a pixel. The program works correctly if I try to read the
pixel but if I try to modify it fails. I think this is a permissions
error but I added the following:

uses-permission
android:name=com.android.editorImagenes.permission.WRITE_EXTERNAL_STORAGE
/uses-permission
uses-permission
android:name=com.android.editorImagenes.permission.WRITE_OWNER_DATA/
uses-permission

And everything remains exactly the same. I'm desperate. A thing
happens is that if I try to do the scaling or rotating the image
using
a matrix postrotate, etc, the program works correctly and as of this
moment I can use the SetPixel without causing error.
I need help please. Thank you very much.

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


[android-developers] Displaying different layout in eclipse when using ViewFlipper

2010-04-20 Thread Stephen Lebed
Hi all,

I have a layout I'm creating that uses ViewFlipper for different
screens.  In eclipse's layout editor it only displays the first page
in the View.  Is there a keyboard shortcut, or function to flip to the
next screen?  Currently I'm building each screen in a seperate XML
file and then copying and pasting it into the main XML file.

Is there a better way to work here?

Thanks,
Stephen Lebed
Developer

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

2010-04-20 Thread webmonkey
Maybe not when you connect your phone to a PC and select 'Mount', for
example... 

Ah, of course. They will probably mount both drives at the same time.
Otherwise I don't see how they can distinguish the two.

I am still wondering why the apps would fail. I think the Samsung
Galaxy solution does not have this issue, even for devs that
erroneously uses a hard coded path.


On Apr 19, 10:55 pm, Streets Of Boston flyingdutc...@gmail.com
wrote:
 I am also wondering how this all works with the
 getExternalStorageState() state function, does it always return
 MEDIA_MOUNTED ?
 Maybe not when you connect your phone to a PC and select 'Mount', for
 example...

 On Apr 19, 2:44 pm, webmonkey webmonke...@gmail.com wrote:



  According to this post:

 http://groups.google.com/group/android-developers/msg/7b8a78c9d32309ab

  the Samsung Galaxy uses /sdcard for the internal storage and a
  special folder /sdcard/sd for the external storage.

  I am also wondering how this all works with the
  getExternalStorageState() state function, does it always return
  MEDIA_MOUNTED ?

  On Apr 19, 7:54 pm, Mark Murphy mmur...@commonsware.com wrote:

   webmonkey wrote:
Here is a screenshot of the SD card  phone storage screen from
phandroid.com

   http://phandroid.com/wp-content/uploads/2010/04/incredibleinternalsto...

   Well, at least there's ~1GB for apps. We still need to get to the bottom
   of why the apps Engadget mentioned aren't seeing the rest of that
   storage as external storage, or what the proper heuristics should be
   to determine where we stick stuff.

   Thanks for the link!

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

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

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

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

  - Show quoted text -

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

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


[android-developers] Re: Dialog display at bottom of Screen

2010-04-20 Thread Nithin

Thanks pieter...




On Apr 20, 7:19 pm, Pieter pie...@gamesquare.nl wrote:
 You can do the following in the constructor of a Dialog subclass:

 getWindow().getAttributes().y = 30;

 to move the dialog 30 pixels down. This movement is relative though.

 On Apr 20, 3:55 pm, Nithin nithin.war...@gmail.com wrote:



  I can use android.widget.PopUpWindow class, but it has sharp edges
  in the corners, I need like in Dialog, rounded edges. Is it possible
  in PopUpWindow or can we put the dialog to the Bottom.

  Nithin

  On Apr 20, 2:14 pm, Nithin nithin.war...@gmail.com wrote:

   Hi,

   The dialog(android.app.Dialog) normally pops up in the center of
   screen. Can we make the dialog to come in the bottom of screen.

   Nithin

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

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

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

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


[android-developers] Re: can i run .exe in android and what is opengl o/p format?

2010-04-20 Thread MrChaz
No, you'll need an .apk file which is the installer for android
applications.
Nearly all phones support openGL ES1
The newer ones (N1, Droid etc) support openGL ES2 via the ndk

On Apr 20, 10:25 am, mmkr manutd...@gmail.com wrote:
 Hi all,

       I'm new to opengl. Is it possible to run the output file of
 opengl program implemented on desktop ( ie.. .exe file )
 in android.  Another doubt is what is format of opengl output in
 android, i mean for windows it is .exe, so what in android.

 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 
 athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] Reading Name (phonetic) field on Eclair

2010-04-20 Thread Akira Iwamoto
Hello,

I'm having a problem to read Name (phonetic) field from Android 2.1
phone, desire.

I have a contact application worked in Donut that stores the Phonetic
name in Name (phonetic) field on Gmail contacts.

* On Donut

Contacts.PeopleColumns.PHONETIC_NAME is mapped to Name (phonetic)

* On Eclair

ContactsContract.CommonDataKinds.StructuredName.PHONETIC_GIVEN_NAME is
mapped to Given Name (phonetic)
ContactsContract.CommonDataKinds.StructuredName.PHONETIC_FAMILY_NAME
is mapped to Family Name (phonetic)

In addition, Contacts.PeopleColumns.PHONETIC_NAME returns always null.

Users will upgrade from Donut to Eclair soon, and the Donut Android
users using Japanese contacts have people's name, Phonetic name
(a.k.a. Furigana or Yomi),  in Name (phonetic) field.

Is there anyway to read Name (phonetic)?
Otherwise the users need to copy them into Given Name (phonetic)
when migrating to Eclair?

Thanks,
Akira Iwamoto

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


[android-developers] Icons for submenu items doesn't show up

2010-04-20 Thread dillipk
Hello,
  With below code, the icon for submenu items does not get displayed.

SubMenu submenu = menu.addSubMenu(0, Constants.MENU_ID_SETTINGS, 1,
Settings);
submenu.setIcon(R.drawable.settings);
submenu.add(0, Constants.MENU_ID_PREFERENCES, 1,
Preferences).setIcon(R.drawable.preferences);
submenu.add(1, Constants.MENU_ID_PROFILE, 2,
Profile).setIcon(R.drawable.profile);

First the item Settings, its displaying but for its submenu
items(Preferences/Profile) , it is not showing up.

Do I miss anything here? Any help is greatly appreciated.

Thank you,

Regards,
-DK

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Bluetooth RFCOMM connection dying immediately after .connect()

2010-04-20 Thread ssozonoff
So here is the status regarding a similar issue I am having with the
bluetooth connection.

Works on HTC Legened and Google Nexus 1
Fails on the HTC Desire

what sucks is that normally the HTC Desire and N1 are supposedly based
on the same hardware.

I checked the firmware version between the two and they are the same
however the kernel version seems to be different.

HTC Desire is kernel 2.6.29-97 (Built by HTC I presume)
Nexus 1 is 2.6.29-01117

Serge

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

2010-04-20 Thread ~ TreKing
On Mon, Apr 19, 2010 at 6:35 PM, kec6227 kec6...@gmail.com wrote:

 Is this possible?


Sure. Detect the platform version you're running on and use the new APIs on
newer versions and the older APIs on older versions.

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

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

[android-developers] Re: Defining an XML vertical line drawable

2010-04-20 Thread Caspa
Thanks for the suggestion patbenatar!

I'm aware I could go for a 1px png drawable or draw the vertical line
as a View etc.

However since there is a line shape, I assume there is a way of
drawing it vertically, or at least there SHOULD be.

Can anyone confirm this being possible / not possible?

Kacper

On Apr 19, 11:37 am, patbenatar patbena...@gmail.com wrote:
 You could use a 1x1 Nine-Patch PNG

 On Apr 18, 1:08 pm, Caspa stell...@gmail.com wrote:



  Hello,

  I'm trying to figure out how to define a vericalline(1px thick) to
  be used as a drawable.

  to make a horizontal one, it's pretty straightforward:

  shape xmlns:android=http://schemas.android.com/apk/res/android;
 android:shape=line
      strokeandroid:width=1dpandroid:color=#FF/
      sizeandroid:height=50dp /
  /shape

  The question is, how to make thislinevertical?

  Yes, there are workarounds, such as drawing a rectangle shape 1px
  thick, but that complicates the drawablexml, if it consists of
  multiple item elements.

  Anyone had any chance with this?

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

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

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


[android-developers] How can I remove an item from ExpandableListView or how can I reload an single group from ExpandableListView?

2010-04-20 Thread Liviu Ungureanu
Hi!

I have a ExpandableListView in my application. I want to remove an item from
an group but I can't get a solution.
As adapter I use an standard SimpleExpandableListAdapter.

Until now, I managed to remove just data from an item but the view still
remain in adapter:

 ((Map)adapter.getChild(groupPositionOnClick,
childPositionOnClick)).remove(historyItem);
 adapter.notifyDataSetChanged();
 adapter.notifyDataSetInvalidated();

An other option is to reload all adapter but is not so efficient.

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: compatibility with nonexistant classes

2010-04-20 Thread kec6227
Using? a wrapper class of sorts? If I initiate the WallpaperManager
anywhere in my code, it will throw a VerifyError on older platforms, I
tried something like this:

if(Integer.parseInt(Build.VERSION.SDK) = 5){
WallpaperManager wallMan..
...blah blah
}

The only way it does not throw a verifyerror is when I don't use the
WallpaperManager anywhere.

On Apr 20, 11:33 am, ~ TreKing treking...@gmail.com wrote:
 On Mon, Apr 19, 2010 at 6:35 PM, kec6227 kec6...@gmail.com wrote:
  Is this possible?

 Sure. Detect the platform version you're running on and use the new APIs on
 newer versions and the older APIs on older versions.

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

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

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


Re: [android-developers] Re: compatibility with nonexistant classes

2010-04-20 Thread Mark Murphy
kec6227 wrote:
 Using? a wrapper class of sorts? If I initiate the WallpaperManager
 anywhere in my code, it will throw a VerifyError on older platforms, I
 tried something like this:
 
 if(Integer.parseInt(Build.VERSION.SDK) = 5){
 WallpaperManager wallMan..
 ...blah blah
 }
 
 The only way it does not throw a verifyerror is when I don't use the
 WallpaperManager anywhere.

That's not strictly true. You only will get a VerifyError if you load a
class that refers to WallpaperManager.

So, the trick is to use reflection or conditional class loading to only
load your code referencing WallpaperManager on suitable versions.

For example:

if(Integer.parseInt(Build.VERSION.SDK) = 5){
new MyWallpaperBridge().goDoSomething();
}

Or, create an interface and two implementations, and choose the
implementation based on the version, as seen here:

http://github.com/commonsguy/cw-advandroid/tree/master/Contacts/Spinners/

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

Android Training in US: 14-18 June 2010: http://bignerdranch.com

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


[android-developers] How to pick or upload gallery photo

2010-04-20 Thread Anurag Singh
Hello All

I have some requirement to upload photo. I am able to browse gallery
but not able to pick any photo from main gallery.

Android allows us to upload snaps from SDCARD, I think there
must be some way.

isn't  it?

Thanks In Advance.
- Anurag Singh

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