[android-developers] Re: HTTP post to non-standard port over Wifi?

2010-05-04 Thread Per
(blushing)
arrgh - should have thought of that. You're right. Wifi access to that
ip:port does not work from a PC, either.

Sorry for taking up anyone's bandwidth :)

/Per


On 4 Maj, 07:49, Vinay S s.vinay@gmail.com wrote:
 Hi,

 Did you look at the router does it allow outgoing TCP traffic to flow
 through for port 8080?

 -Vinay

 On May 3, 3:48 pm, Per p...@care2wear.com wrote:



  Hi,

  I have trouble getting http post to work over WiFi.

  The server listens at port 8080, and posting works just fine when
  disabling WiFi and just using 3G.
  When enabling WiFi, I always get an IOException with message 'Socket
  is not connected'.

  Using the standard port 80 (or opening raw sockets to other ports)
  works just fine, but the combination (http + 8080 + WiFi) seems to
  fail.

  I've been looking for hints in the android.net package, but
  unsuccessfully. Any hints are welcome..

  /Per

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

2010-05-04 Thread T-Droid
Hi,

I solved the problem as spachner mentioned. From my point of view it
was easy to understand.

About the second solution I still get not the whole idea. If I have a
connection between the service and the activity. How do they
communicate? Is there an interface between them?

@Dianne: Thanks to point out to the sample code. I think I got the
idea of binding them together. How do the service send an event to the
activity?
From the service is there a possibility to invoke the activity like
mMyActivity.changeState();.

Another point which I was recognizing you are talking about how a
activity knows the service. I'm talking how a service knows an
activity. Because in my design the service should trigger view
changes. The communication is unidirectional.

Thanks in advance
T-Droid

On Apr 4, 8:24 am, Dianne Hackborn hack...@android.com wrote:
 Fyi this approach is illustrated in the LocalService sample code.



 On Sat, Apr 3, 2010 at 7:39 PM, JP joachim.pfeif...@gmail.com wrote:
  Kumar's method might work, but you should look up
  Context.bindService() and ServiceConnection.onServiceConnected()
  to find out how to do this within Android's framework.

  What I do: In MyApplication's
    �...@override public void onStart()
  I call:
  bindService(new Intent(MyApplication.this, MyService.class),
     new (MyServiceConnection(this)),
     BIND_AUTO_CREATE);

  MyServiceConnection implements ServiceConnection, and as soon as the
  service is created or bound, you get a call to
  MyServiceConnection.onServiceConnected(), which you implement like
  this:
  public void onServiceConnected(ComponentName name, IBinder service) {
     serv = ((MyService.LocalBinder)service).getService();
  }
  With serv being an instance variable of MyApplication of type
  MyService which you can use to call methods of your Service. Hope this
  helps.

  On Mar 30, 1:26 am, T-Droid dev.r...@googlemail.com wrote:
   Hi @all,

   I have a design problem with my Android components.

   My activity is starting a service which is doing the work in the
   background. What I want is that the service informs the activity about
   state changes. How can I do this?

   Normally I would add an observer but the activity has no reference to
   the service. Then I was thinking to take AIDL but this is more for
   inter-process communication.

   How is it possible that the service informs the activity about state
   changes? Both are running in the same process. What can you recommend?

   Thank you in advance.

   T-Droid

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

  To unsubscribe, reply using remove me as the subject.

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

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

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


[android-developers] Re: In process communication

2010-05-04 Thread T-Droid
Sorry, I was meaning I'm using the solution of Kumar Bibek. The static
one.

On May 4, 8:34 am, T-Droid dev.r...@googlemail.com wrote:
 Hi,

 I solved the problem as spachner mentioned. From my point of view it
 was easy to understand.

 About the second solution I still get not the whole idea. If I have a
 connection between the service and the activity. How do they
 communicate? Is there an interface between them?

 @Dianne: Thanks to point out to the sample code. I think I got the
 idea of binding them together. How do the service send an event to the
 activity?
 From the service is there a possibility to invoke the activity like
 mMyActivity.changeState();.

 Another point which I was recognizing you are talking about how a
 activity knows the service. I'm talking how a service knows an
 activity. Because in my design the service should trigger view
 changes. The communication is unidirectional.

 Thanks in advance
 T-Droid

 On Apr 4, 8:24 am, Dianne Hackborn hack...@android.com wrote:



  Fyi this approach is illustrated in the LocalService sample code.

  On Sat, Apr 3, 2010 at 7:39 PM, JP joachim.pfeif...@gmail.com wrote:
   Kumar's method might work, but you should look up
   Context.bindService() and ServiceConnection.onServiceConnected()
   to find out how to do this within Android's framework.

   What I do: In MyApplication's
     �...@override public void onStart()
   I call:
   bindService(new Intent(MyApplication.this, MyService.class),
      new (MyServiceConnection(this)),
      BIND_AUTO_CREATE);

   MyServiceConnection implements ServiceConnection, and as soon as the
   service is created or bound, you get a call to
   MyServiceConnection.onServiceConnected(), which you implement like
   this:
   public void onServiceConnected(ComponentName name, IBinder service) {
      serv = ((MyService.LocalBinder)service).getService();
   }
   With serv being an instance variable of MyApplication of type
   MyService which you can use to call methods of your Service. Hope this
   helps.

   On Mar 30, 1:26 am, T-Droid dev.r...@googlemail.com wrote:
Hi @all,

I have a design problem with my Android components.

My activity is starting a service which is doing the work in the
background. What I want is that the service informs the activity about
state changes. How can I do this?

Normally I would add an observer but the activity has no reference to
the service. Then I was thinking to take AIDL but this is more for
inter-process communication.

How is it possible that the service informs the activity about state
changes? Both are running in the same process. What can you recommend?

Thank you in advance.

T-Droid

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

   To unsubscribe, reply using remove me as the subject.

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

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

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 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] Dynamic view with two layout

2010-05-04 Thread T-Droid
Hi @all,

I wanted to create an activity where the top of the activity is
dynamic and depends on a state change of the application (pressing a
button).

Here is my xml file:
?xml version=1.0 encoding=utf-8?
LinearLayout
  xmlns:android=http://schemas.android.com/apk/res/android;
  android:layout_width=fill_parent
  android:layout_height=fill_parent
  android:orientation=vertical
  android:weightSum=2
  LinearLayout
android:layout_width=fill_parent
android:layout_height=fill_parent
android:layout_weight=1
include android:id=@+id/included_main_screen layout=@layout/
main_screen /
include android:id=@+id/included_onbuttonclick_screen
layout=@layout/onbuttonclick_screen /
  /LinearLayout
  LinearLayout
android:layout_width=fill_parent
android:layout_height=fill_parent
android:layout_weight=1 
Button ... /
  /LinearLayout
/LinearLayout

Both includes are RelativeLayout with id=main_screen or
id=onbuttonclick_screen. The idea was to play with VISIBLE and
INVISIBLE attributes. But to my surprise the result is a
NullPointerException.

When I try to load the RelativeLayout (here in the example is a View)
in the onCreate method of the activity
View mMainScreen = this.findViewById(R.id.main_screen);
View mOnButtonClickScreen=
this.findViewById(R.id.onbuttonclick_screen);
it is always null. The application crashes with a null pointer
exception if I press the button and try to get the second xml file
into the foreground.
mMainScreen.setVisibility(View.INVISIBLE);
mOnButtonClickScreen.setVisibility(View.VISIBLE);

Does anybody see the reason why this can not work? I played around but
was not able to get rid of that findViewById returns always a null
pointer. The main_screen is shown correctly. First pressing the button
leads to the crash - unfortunately!

Does anybody have another idea, which is easy to handle?

Thank you in advance.
T-Droid

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


[android-developers] Re: Google should prohibit task killers on Android Market

2010-05-04 Thread mort
 Example: suchandsuchappcrond_service.. CROND service? This is what
 the alarm manager is for, doing a repeated task every so often. If you
 are consuming memory being in the background all the time, when you
 could simply invoke the alarm_manager to wake you every so often, that
 is much better for performance and battery.

I don't know the corresponding app. But who tells you the service is
actually doing something all the time? It might as well be a service
that only does some background work whenever it's been triggered by
some Intent (including those sent by alarm manager) and then sleeps in
the background...

I've got similar problems since I respond to media mount/dismount in
my audio player. Since peekService returns null in 95% of all cases,
no matter whether the service is running or not, I have to forward the
information with startService. If no work is necessary, I do nothing
and call stopSelf. But now app and service are in memory and people
ask me why I start the app when the device is booted (the SD is
mounted immediately afterwards, and thus the Intent is broadcast...).

I'm afraid as long as people don't understand the difference between
running and in memory, task managers as well as the running
services information just cause confusion.

 The fact that devs aren't using the APIs correctly and using
 background services for EVERYTHING is part of the reason why smart
 people who have 75% of a clue are telling the tech blog writers that a
 task killer is a necessary part of the Android experience.

I think the main reason is that they just don't get Androids handling
and assume it's like Windows, where even the most unnecessary task
gets CPU time.
Of course badly programmed services make it worse, but that goes even
when a task manager is used. If you do too much as response to an
alarm manager, the effect is the same.
Besides, the service which often slows down the system the most is the
media scanner. And there's not much to avoid that...

 Obviously the solution isn't to eliminate task killers. One possible
 solution is to contact the authors of the most prominent task killers
 and get them to try to change their UI to highlight top resource
 consuming tasks as opposed to emphasizing the kill all button.

And what's wrong with resource consuming? I coud cache several MB of
data in a non-running service, it wouldn't matter. Android would just
kick it if the memory's required, and the service would just reload
the data when it's restarted.
It's similar with CPU usage. If your service happens to do something
in the instance the task killer loads it, it'll be killed, even if it
only does that on certain events or once a day? And some services just
need to do more than others...
Besides, most task managers only show the main application, not the
service. So CPU usage alway is 0, and memory usage, as said, doesn't
really matter.

 Another part of the puzzle is educating the iditions,

I'm afraid that's pretty hopeless...

 They can't kill your service if it's not running and is
 triggered by AlarmManager.

With some task managers, they can: it might still be in memory, even
if stopped. But it would have no big effect in that case, except
onDestroy will never be invoked, which might have bad side effects in
some cases.
However, they can kill the service if it's actually doing something
triggered by AlarmManager, and that'd be the worse case.

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


[android-developers] Is it possible to start an Activity from a non-context class?

2010-05-04 Thread Michael J
For example, I have an activity that uses a utility class.  I would
like to be able to start an activity from the utility class and have
the activity result sent back to the utility class.

The only way I could think of starting the activity was to pass the
original activity to the utility class, so that the utility class
could use the original activity to start the activity.  The problem
with this is that the activity is sent to the original activity,
rather than the utility class.

I also thought of actually making the utility class an activity
itself, but that would make using the utility class much more
complicated.

Thanks for any advice!

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

2010-05-04 Thread jamesc
Take a look at adjustResize and adjustPan:

http://developer.android.com/guide/topics/manifest/activity-element.html#wsoft

On May 2, 8:07 am, ced cedric...@gmail.com wrote:
 Hi,

 I am playing with the Demo SoftKeyboard the comes with the Android
 SDK.

 In portrait mode when its candidate view is shown, it doesn't move the
 app up as the default android keyboard does. Hence it covers part of
 the application view.

 What should be changed in order to make the candidate view behave as
 the default android keyboard does?

 I've also looked at the source of the android keyboard from git but
 found nothing related to this behavior.

 Any help is appreciated.

 Ced

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email 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: Is it possible to start an Activity from a non-context class?

2010-05-04 Thread Michael J
Misspoke in my original post.  The second paragraph should read:

... use the original activity to start the activity.  The problem
with this is that the RESULT is sent to the original activity,
rather than the utility class.

On May 4, 2:02 am, Michael J txaggiemich...@gmail.com wrote:
 For example, I have an activity that uses a utility class.  I would
 like to be able to start an activity from the utility class and have
 the activity result sent back to the utility class.

 The only way I could think of starting the activity was to pass the
 original activity to the utility class, so that the utility class
 could use the original activity to start the activity.  The problem
 with this is that the activity is sent to the original activity,
 rather than the utility class.

 I also thought of actually making the utility class an activity
 itself, but that would make using the utility class much more
 complicated.

 Thanks for any advice!

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email 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: How to create Android library in Eclipse?

2010-05-04 Thread Mario Zechner
Actually, i do something a bit nasty to get a seperate Android library
project. In your SDK folder you have several android jars for the
different Android versions. I simply create a Java project and add the
lowest Android version jar i want to support as a dependency et voila
you have a nice Android library project.

On 4 Mai, 08:11, Menion menion.as...@gmail.com wrote:
 You say that sharing resources between projects is coming? Hopefully,
 thx for very, very good info :)

 On May 3, 11:34 pm, Xavier Ducrohet x...@android.com wrote:



  If you're code is straight java with no android resources then just
  create a Java project and reference it by your Android projects.

  Android libraries allowing you to share (android specific) code and
  resources between projects is not supported at the moment, but it's
  coming.

  Shared libraries are not supported at this time by the platform and I
  don't think there's any plan for it.

  Xav

  2010/5/3 Rafał Grzybowski aguyngue...@gmail.com:

   I'm working on two android applications and would like to share some
   code between them. My guess is I need to create Java library and put
   all the required code there. But I don't know:
    - what kind of project create for the library in Eclipse,
    - does the shared library can contain Android resources,
    - what about AndroidManifest.xml for the library, is it possible to
   have one,
    - is it possible to deploy shared library once on the device or is
   it shareable during development and then deployed per Android
   application?

   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

  --
  Xavier Ducrohet
  Android SDK Tech Lead
  Google Inc.

  Please do not send me questions directly. 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 
 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: asmack as apposed to smack

2010-05-04 Thread rtreffer
Sorry, I've totally missed that posting.

Asmack is trunk based, so any javadoc of the latest version should be
fine. Trunk based means you'll get smack and smackx in one package.
Use e.g. proguard if you have to strip content.

The main difference is that trunk smack won't run on Android. You
won't be able to login, or to use it. Asmack patches the broken parts,
while keeping the functionality (like DNS/SRV lookups). This is the
main difference to the earlier smack patches that just strip some
code. No real API change, no new docs.

Regards,
  Rene

On Apr 16, 3:20 am, eehksar eehk...@gmail.com wrote:
 Hi,

 I have had a brief look at smack and android... but I have been trying
 long and hard to get my hands on the documentation for 'asmack' as
 apposed to 'smack'... but have failed so far although I am able to
 locate the documentation for 'smack' ( 
 iehttp://www.igniterealtime.org/builds/smack/docs/latest/documentation/...
 ). would it be possible for you to point me in the right direction.

 I have searched their website but have still not been able to locate
 the actual asmack documentation... (iehttp://code.google.com/p/asmack/)

 much appreciated
 eehksar

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

2010-05-04 Thread brucko
Tommy,

Whilst RelativeLayout is quite powerful, and as Mark stated earlier,
is what you need for your sliding drawer - especially as you have
other elements - you may need to be a little more careful in the order
you declare your view elements.

If you want your SlidingDrawer to go over the top of all of the other
elements, then declare it last in your Relative Layout.

Better still, as it appears you may not be used to RelativeLayout yet
- just try dropping the SlidingDramer for now (Ctrl-c will comment out
the rows in the XML Editor in Eclipse) - put it back in last in your
relative layout when you have the rest of your layout where you want
it.

You need to declare your elements in the correct order.

For example, you should declare tvStationName before TideLoadMessage
if you want TideLoadMessage to obey android:layout_below=@+id/
tvStationName .


I don't think you want to use android:layout_below=@+id/lvReport 
for your Sliding drawer if you want it to open  over your lvReport - I
think (not really sure on that).

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


[android-developers] Re: Google should prohibit task killers on Android Market

2010-05-04 Thread mort
 Yep the problem is largely associated with services and not just random
 processes running.  That is why the running services UI was introduced.

Trouble with that is, it doesn't show the *running* services but the
*started* services.
Esp. services written for 1.x might just linger around to do some work
when required, and not be foreground services, so they can be kicked
anytime without trouble. Sure, stopService would've been the better
solution in most cases, but these services won't bother, but
developers get queries why their service is running all the time.
While other services or broadcast receivers might regulary calculate
10-digit prime numbers without being shown...

 This is why they have such a bad impact on well-behaved applications, and is
 something that really needs to be addressed in the platform (it is just not
 right for one application to do this kind of thing to another one).

Any plans so far?

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


[android-developers] Re: Problem with Saving and opening file on moto-droid

2010-05-04 Thread André
No one knows why this could be?

This is all the information I have since I don't own a moto droid
myself. I only got this from 5 different comments in the android
market. Has any one experienced this before?



On May 3, 11:50 pm, André pha...@hotmail.com wrote:
 Sorry, it force closes on reading in a file. And can't write to sdcard
 on write.

 On May 3, 10:48 pm, TreKing treking...@gmail.com wrote:

  On Mon, May 3, 2010 at 3:40 PM, André pha...@hotmail.com wrote:
   Any suggestions?

  Define it does not seem to be working on moto droid.

  --- 
  --
  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 
 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: Something wrong here, didn't expect com.commonsware.android.rotation.two to be resumed

2010-05-04 Thread adrianvintu
Thank you all :)

BR,
Adrian Vintu


On Tue, May 4, 2010 at 3:16 AM, Dianne Hackborn hack...@android.com wrote:

 Sorry yes the message is just some code in the system that gets out of sync
 (and at that point is fixing itself).  It is nothing to worry about.


 On Mon, May 3, 2010 at 4:44 PM, Zsolt Vasvari zvasv...@gmail.com wrote:

 Yes, this message is always displayed in my app as well.  Just ignore
 it.

 On May 3, 10:49 pm, Mark Murphy mmur...@commonsware.com wrote:
  Adrian Vintu wrote:
   Hi Mark,
 
   Thank you for your answer. Please let me (us) know if you have a
   solution for this.
 
  The solution appears to be: ignore the message. Other apps, such as the
  built-in Launcher (home screen), Calculator, Contacts, and Music apps
  exhibit the same behavior.
 
  --
  Mark Murphy (a Commons Guy)http://commonsware.com|
 http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguyhttp://twitter.com/commonsguy
 
  _Beginning Android 2_ from Apress Now Available!
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
 android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group 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




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

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


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


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

[android-developers] Determine if my application is visible on screen

2010-05-04 Thread Pierre
I need a system to determine if my application is visible on screen.
My app is running gps, network request, etc ... and I want to disable
them when my app is not running or visible on screen

Do you know how to do that ?

Thanks !

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


[android-developers] Re: [android-porting] Re: Disable hardware codecs

2010-05-04 Thread Uander
Hello  ,

@Deva -

I disable h/w acceleration by removing 01_Vendor_ti_omx.cfg file . now its
using s/w codecs  .  But still same error comes up . logcat says :

***


D/omx_interface(  906): DLOPEN SUCCEEDED (libOMX_Core.so)
D/omx_interface(  906): TIOMXInterface: library lookup success
D/TIOMX_CORE(  906): init count = 1
D/TIOMX_CORE(  906): Found component OMX.TI.AMR.decode with refCount 0
D/OMX_NBAMRDEC(  906): OMX_ComponentInit():202 202 ::OMX_ComponentInit
D/OMX_NBAMRDEC(  906): NBAMRDECHandleCommand():829 829 :: OMX_AmrDec_Utils.c
:: Error returned fromLCML_Init()
W/MediaPlayer( 1441): info/warning (1, 26)
D/OMX_NBAMRDEC(  906): NBAMRDEC_ComponentThread():102 :: Comp Thrd Exiting
here...
I/DEBUG   (  904): *** *** *** *** *** *** *** *** *** *** *** *** *** ***
*** ***
I/DEBUG   (  904): Build fingerprint:
'NEC/pine/pine/pine:2.1/ERD79/eng.root.20100429.171703:eng/test-keys'
I/DEBUG   (  904): pid: 906, tid: 1523   /system/bin/mediaserver 
I/DEBUG   (  904): signal 11 (SIGSEGV), fault addr 
I/DEBUG   (  904):  r0 0004a218  r1 80c20f18  r2 06f4  r3 80c229f0
I/DEBUG   (  904):  r4 80c230f8  r5 40b0dbac  r6 00035420  r7 00021bb8
I/DEBUG   (  904):  r8 0010  r9 a9d1b8e5  10 40a0e000  fp 00021b58
I/DEBUG   (  904):  ip   sp 40b0db30  lr 80c1a69d  pc   cpsr
a010
I/DEBUG   (  904):  #00  pc 
I/DEBUG   (  904):  #01  pc 0001a69a  /system/lib/
libOMX.TI.AMR.decode.so
I/DEBUG   (  904):  #02  pc 10ca  /system/lib/libOMX_Core.so


@Ricardo

my file is AMR-NB formatted (mimetype set as audio/3gp in mediascanner.java
), I can find
 {OMX.TI.AMR.encode, audio_encoder.amrnb},
 {OMX.TI.AMR.decode, audio_decoder.amrnb},

in platform/hardware/ti/omx/system/src/openmax_il/omx_core/src/OMX_core.c .
so codecs support seem to listed there  .

error comes up from LCML_Init () call in  OMX_AmrDec_Utils.c . that means
its unable to load codec .


Thanks :
Uander

On Mon, May 3, 2010 at 11:21 PM, Ricardo Martinez oscar2...@gmail.comwrote:

 Hi Uander,

 You can disable Hardware acceleration by editing this file:
 platform/vendor/ti/zoom2/BoardConfig.mk

 But I think it's better to find the root cause of the issue, probably the
 first step could be to verify if the audio format is actually supported,
 take a look at the supported OMX roles (tComponentName):
 platform/hardware/ti/omx/system/src/openmax_il/omx_core/src/OMX_core.c

 Thanks,
 Ricardo

 On Mon, May 3, 2010 at 7:54 AM, Deva R r.deva...@gmail.com wrote:

 [+porting list]
 you can delete  ./system/etc/01_Vendor_ti_omx.cfg in your file system,
 so as to use SW codecs from PVOMX components (picked up by
 ./system/etc/pvplayer.cfg).

 On Mon, May 3, 2010 at 6:23 PM, Uander uandro...@gmail.com wrote:
  Hello   ,
 
  I have a file a audio/3gp file that I can play in eclair-2.1 emulator
 but
  its throwing error on my Zoom2
  device  says Sorry , this player doesn't support this  type of audio
 file 
  .
 
  emulator will be using s/w codecs . while zoom2 has h/w codecs . The
 logic
  of  MMM framework is like if h/w codecs are not present it should look
 for
  s/w codec . if zoom2 is not finding h/w codec for my audio/3gp file , it
  should search for s/w codec and play file , why does it fails with error
 ?
 
  How to disable hardware acceleration of codecs ?
 
  Please correct me If I am wrong .
 
 
 
 
  Thanks :
  Uander
 
  --
  You received this message because you are subscribed to the Google
 Groups
  android-platform group.
  To post to this group, send email to android-platf...@googlegroups.com.
  To unsubscribe from this group, send email to
  android-platform+unsubscr...@googlegroups.comandroid-platform%2bunsubscr...@googlegroups.com
 .
  For more options, visit this group at
  http://groups.google.com/group/android-platform?hl=en.
 

 --
 unsubscribe: 
 android-porting+unsubscr...@googlegroups.comandroid-porting%2bunsubscr...@googlegroups.com
 website: http://groups.google.com/group/android-porting


  --
 You received this message because you are subscribed to the Google Groups
 android-platform group.
 To post to this group, send email to android-platf...@googlegroups.com.
 To unsubscribe from this group, send email to
 android-platform+unsubscr...@googlegroups.comandroid-platform%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/android-platform?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: RelativeLayout bug ?

2010-05-04 Thread mbaroukh
Thanks for all your replies.
But as I said, it was only a sample and not the real layout.
So maybe you can help me with the real layout ?

I have a list.
Each list item have the following layout that is
- one picture on the left, centered vertically
- one picture on the right, centered vertically
- 3 lines of text on the middle, aligned between the edges of the 2
pictures.

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


ImageButton
android:id=@+id/img1
android:layout_height=wrap_content
android:layout_width=wrap_content

android:src=@drawable/icon
android:scaleType=center
android:background=@null

android:layout_alignParentLeft=true
android:layout_alignParentTop=true
android:layout_alignParentBottom=true
/

ImageButton
android:id=@+id/img2
android:layout_height=wrap_content
android:layout_width=wrap_content

android:src=@drawable/icon
android:scaleType=center
android:background=@null

android:layout_alignParentRight=true
android:layout_alignParentTop=true
android:layout_alignParentBottom=true
/


TextView
android:id=@+id/text1
android:layout_width=wrap_content
android:layout_height=wrap_content
android:text=textligne1

android:layout_alignParentTop=true
android:layout_toRightOf=@id/img1
android:layout_toLeftOf=@id/img2
/

TextView
android:id=@+id/text2
android:layout_width=wrap_content
android:layout_height=wrap_content
android:text=textligne2

android:layout_below=@id/text1
android:layout_alignLeft=@id/text1
android:layout_alignRight=@id/text1
/

TextView
android:id=@+id/text3
android:layout_width=wrap_content
android:layout_height=wrap_content
android:text=textligne3

android:layout_below=@id/text2
android:layout_alignLeft=@id/text1
android:layout_alignRight=@id/text1
/

/RelativeLayout

When I use this layout alone in an activity, it works (despite it use
all the screen) correctly.
In particular, pictures are centered vertically.

Now, I wan't to use this layout in a listview whose layout is just :

?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=fill_parent
android:layout_height=wrap_content
android:orientation=vertical

ListView
android:id=@+id/list
android:layout_height=fill_parent
android:layout_width=wrap_content
/
/LinearLayout

This time, pictures are not centered vertically in each row : there
are aligned at the top of each row.

Why does RelativeLayout render differently when in a ListView and when
used as root view of an Activity ?

I suppose I could render this with 2 LinearLayout, but as it is used
in a list (so, frequently) I just follow Romain's advice to replace
those 2 LinearLayout by 1 RelativeLayout.
In fact I now use RelativeLayout everywhere. I found that almost all
might be done.
I just
- still find strange (sorry Romain, but I'm not convinced ...) the
behavior with my original post
- think that sometimes, using a two pass analyze of the layout would
be very helpful to be able to use id declared later in the layout.
Because actually, we sometimes have to make layout that are not
logical with the rendering. For example, for a picture at the bottom
with a text line above, I would have to declare first the picture
aligned with the bottom of the parent, then declare the textview above
the picture instead of declaring them in the order they appear ...

Anyway, thanks again for your answers and any further help.

Note : If anybody have time to, here is the corresponding eclipse
sample project :
http://www.baroukh.com/layouttest.tgz

Mike

On May 3, 6:06 pm, Romain Guy romain...@android.com wrote:
 It's unfortunately a working as expected, although I'd agree that
 the expected is surprising. If you read your layout you will realize
 it does not make much sense:

 - The container is as tall as its 

[android-developers] How to know Battery Level in android.

2010-05-04 Thread subrat kumar panda
Hi all,
i am having a problem with Battery Level.
i am using sdk 1.5 in my app.
when the Battery Level reduced to 15%(i want to post the info to the
Soap server as an Alert).

what i got info is if you are using 1.5 (= )
then use BatteryManager.EXTRA_LEVEL.

but in my app, i am not getting it.

if anybody knows the desired solution regarding the problem
please help me.

Thanks in advance,

Best Regards
Subrat Kumar Panda
India.
.

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


[android-developers] Re: Question about reading contacts

2010-05-04 Thread EPecorari
None experienced the same problem?

Emanuele

On 3 Mag, 11:23, EPecorari emanuele.pecor...@gmail.com wrote:
 Hi,
 I'm trying to read all the contacts stored in the phone using this
 code:

 Cursor cursorNumber =
 context.getContentResolver().query( Contacts.Phones.CONTENT_URI,
                                         new String[] { Contacts.Phones._ID, 
 Contacts.Phones.NAME,
 Contacts.Phones.NUMBER }, null, null, null );

 but the result seems empty until the moment I sync the contacts with
 Google. Is that possible? Is it a limitation of Google Contacts API?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email 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: draw a 2d marker on a openGL scene

2010-05-04 Thread Paolo
Hi robert, thanks for your answer.
It could be a possible way, but i i think is too much for my
objective. In my case the camera is static, instead it is the grid
that moves around me.

I have only to put some static object over the grid. I say object, but
is more correct say small picture. Consider that I'm developing an
Augmented Reality App.

I hoped that was possible to do that, using canvas on the opengl grid,
but maybe is impossible.



On 3 Mag, 21:10, Robert Green rbgrn@gmail.com wrote:
 If you want the 2D objects to have depth, you'll want to use
 billboarded quads.  You may want to look around to find a better
 implementation but here's a tutorial 
 -http://www.lighthouse3d.com/opengl/billboarding/

 On May 3, 8:47 am, Paolo brand...@gmail.com wrote:





  Hi guys!

  I've a problem and I'm not able to solve at the moment.

  I have realized a grid with openGL on a GLSurfaceview. This grid
  rotates at 360° on all the aces using the orientation sensors.

  Now I'd like to put over it some markers at specified coordinates,
  such as 2D objects, as if they were attached to the grid, because they
  have to rotate together to the grid.

  How how I can make it?

  Thanks.

  Paolo

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email 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] Re: How to create Android library in Eclipse?

2010-05-04 Thread Max Gilead
There's even more hackish but perfectly working solution AND you get all the
Android project niceties with it :)

1. Create regular Android project
2. Manually remove Android nature from .project file
3. Done :)

Cheers,
Max


2010/5/4 Mario Zechner badlogicga...@gmail.com

 Actually, i do something a bit nasty to get a seperate Android library
 project. In your SDK folder you have several android jars for the
 different Android versions. I simply create a Java project and add the
 lowest Android version jar i want to support as a dependency et voila
 you have a nice Android library project.

 On 4 Mai, 08:11, Menion menion.as...@gmail.com wrote:
  You say that sharing resources between projects is coming? Hopefully,
  thx for very, very good info :)
 
  On May 3, 11:34 pm, Xavier Ducrohet x...@android.com wrote:
 
 
 
   If you're code is straight java with no android resources then just
   create a Java project and reference it by your Android projects.
 
   Android libraries allowing you to share (android specific) code and
   resources between projects is not supported at the moment, but it's
   coming.
 
   Shared libraries are not supported at this time by the platform and I
   don't think there's any plan for it.
 
   Xav
 
   2010/5/3 Rafał Grzybowski aguyngue...@gmail.com:
 
I'm working on two android applications and would like to share some
code between them. My guess is I need to create Java library and put
all the required code there. But I don't know:
 - what kind of project create for the library in Eclipse,
 - does the shared library can contain Android resources,
 - what about AndroidManifest.xml for the library, is it possible to
have one,
 - is it possible to deploy shared library once on the device or is
it shareable during development and then deployed per Android
application?
 
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.comandroid-developers%2bunsubscr...@googlegroups.com
For more options, visit this group at
   http://groups.google.com/group/android-developers?hl=en
 
   --
   Xavier Ducrohet
   Android SDK Tech Lead
   Google Inc.
 
   Please do not send me questions directly. Thanks!
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   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 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] problem in layout alignment

2010-05-04 Thread rajesh chandrasekaran
Hi all

I am new in android, i am having few problem in layout alignment.I
have divide the screen into three layout,as header, body and footer.

I am giving the height dynamically for the three layout in java file,
so i need to give 12% of height to header and footer layout, and the
remaining 75% i need to assign height to body layout.

For that i have made the calculation as follow

first i am getting the height and width for the screen. With the help
of the screen height i am getting the 12.5% height for header and
footer layout

WindowManager w = getWindowManager();
Display d = w.getDefaultDisplay();
int totalwidth_screen = d.getWidth();
int totalheight_screen = d.getHeight();


int total_HF_screen = (int) ((12.5/100)*totalheight_screen); # height
for header and footer
int total_body_screen = totalheight_screen - (2*(total_HF_screen))
#height for body

By assigning the width and height for the layout using the above
calculations, iam not getting the footer layout properly.i.e only some
part of the footer is viewable.

I need to assign the height for the layout dynamically, which is not
comming using the above calculation.Can you please suggest me the apt
way of calculation for dynamically assigning the height of the
layout.

I have mention the xml file and java file for your reference



Xml file

?xml version=1.0 encoding=utf-8?
LinearLayout
android:id=@+id/widget0
android:layout_width=fill_parent
android:layout_height=fill_parent
android:orientation=vertical
xmlns:android=http://schemas.android.com/apk/res/android; 

LinearLayout
android:id=@+id/header_aboutus
android:layout_width=fill_parent
android:layout_height=wrap_content
android:background=@drawable/header
/LinearLayout

LinearLayout
android:id=@+id/body_aboutus
android:layout_width=fill_parent
android:layout_height=1dip
android:background=@drawable/body
/LinearLayout

LinearLayout
android:id=@+id/footer_aboutus
android:layout_width=fill_parent
android:layout_height=wrap_content
android:gravity=center
android:background=@drawable/footer

Button
android:id=@+id/aboutUs_home_button
android:layout_width=wrap_content
android:layout_height=wrap_content
android:background=@drawable/home_button 
/Button

/LinearLayout

/LinearLayout



java file

import android.app.Activity;
import android.app.AlertDialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.Display;
import android.view.View;
import android.view.WindowManager;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;

public class aboutus extends Activity {

public String data;

public void onCreate(Bundle icicle) {

super.onCreate(icicle);
setContentView(R.layout.aboutus);

WindowManager w = getWindowManager();
Display d = w.getDefaultDisplay();
int totalwidth_screen = d.getWidth();
int totalheight_screen = d.getHeight();


int total_HF_screen = (int) ((12.5/100)*totalheight_screen);

int total_body_screen1 =  2 * total_HF_screen;
int total_body_screen = totalheight_screen - 
total_body_screen1;//
(int) ((75/100)* totalheight_screen);

   LinearLayout header_aboutus= (LinearLayout)
findViewById(R.id.header_aboutus);
LinearLayout body_aboutus= (LinearLayout)
findViewById(R.id.body_aboutus);
LinearLayout footer_aboutus= (LinearLayout)
findViewById(R.id.footer_aboutus);

header_aboutus.setLayoutParams(
new LinearLayout.LayoutParams(totalwidth_screen,
total_HF_screen));
body_aboutus.setLayoutParams(
new LinearLayout.LayoutParams(totalwidth_screen,
total_body_screen));
footer_aboutus.setLayoutParams(new
LinearLayout.LayoutParams(totalwidth_screen, total_HF_screen ));

}

}



Thanks
C.Rajesh

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


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

2010-05-04 Thread Trygve
Received mine today in Trondheim, Norway.
Thanks 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] Strange layout bug: bottom half of button text missing. Xperia X10

2010-05-04 Thread Flying Coder

Please see this image:  
http://sites.google.com/a/appventive.com/www/files/button_bug.jpg

Notice how the bottom half of the words Done  Clear are clipped.
This does NOT happen on the emulator or on the N1, Droid or G1.  But,
apparently is happening on the XPeria X10.

Has anyone else seen this?  Any idea how to work around the problem?
Here's the layout for the buttons (background set programmatically):

Button android:text=Done android:layout_height=fill_parent
android:layout_margin=5dip 
android:layout_width=60dip
android:id=@+id/cancel 
android:textStyle=bold/Button

Thanks,
Steve

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Strange layout bug: bottom half of button text missing. Xperia X10

2010-05-04 Thread Konstantin Vasilyev

I've seen this too - 1.5, HTC Hero.

The workaround is to set margins with the enclosing layout.

-- Kostya

Flying Coder av8r.st...@gmail.com писал(а) в своём письме Tue, 04 May  
2010 16:03:11 +0400:




Please see this image:   
http://sites.google.com/a/appventive.com/www/files/button_bug.jpg


Notice how the bottom half of the words Done  Clear are clipped.
This does NOT happen on the emulator or on the N1, Droid or G1.  But,
apparently is happening on the XPeria X10.

Has anyone else seen this?  Any idea how to work around the problem?
Here's the layout for the buttons (background set programmatically):

Button android:text=Done android:layout_height=fill_parent
android:layout_margin=5dip 
android:layout_width=60dip
android:id=@+id/cancel 
android:textStyle=bold/Button

Thanks,
Steve


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


[android-developers] Re: Google should prohibit task killers on Android Market

2010-05-04 Thread Tomáš Hubálek


On 4 kvě, 01:06, Eric F ericfrie...@gmail.com wrote:
 The solution here is a change in attitude. I don't use a task killer
 on my phone, never have. And my phone sports good performance for
 weeks on end.

Agree. I have task killer but use it really rarely.


 Obviously the solution isn't to eliminate task killers. One possible
 solution is to contact the authors of the most prominent task killers
 and get them to try to change their UI to highlight top resource
 consuming tasks as opposed to emphasizing the kill all button.

When I look at Android Market I have a feeling that everybody wants to
write it's own task killer while learning android programming ;-)
(http://www.appbrain.com/search?q=killer). This I race I can't win.

 Another part of the puzzle is educating the iditions, and another part
 of the puzzle is to, as developers, use the APIs correctly. They can't
 kill your service if it's not running and is triggered by
 AlarmManager.

I think that this is not true. I'm USING Alarm Service but my gadget
still can be killed by task killers.

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

2010-05-04 Thread Anurag Singh
Use public LinearLayout.LayoutParams (int width, int height, float weight)For
your reference

http://developer.android.com/reference/android/widget/LinearLayout.LayoutParams.html

- Anurag Singh

On Tue, May 4, 2010 at 4:17 PM, rajesh chandrasekaran 
crajeshdanger...@gmail.com wrote:

 Hi all

 I am new in android, i am having few problem in layout alignment.I
 have divide the screen into three layout,as header, body and footer.

 I am giving the height dynamically for the three layout in java file,
 so i need to give 12% of height to header and footer layout, and the
 remaining 75% i need to assign height to body layout.

 For that i have made the calculation as follow

 first i am getting the height and width for the screen. With the help
 of the screen height i am getting the 12.5% height for header and
 footer layout

 WindowManager w = getWindowManager();
 Display d = w.getDefaultDisplay();
 int totalwidth_screen = d.getWidth();
 int totalheight_screen = d.getHeight();


 int total_HF_screen = (int) ((12.5/100)*totalheight_screen); # height
 for header and footer
 int total_body_screen = totalheight_screen - (2*(total_HF_screen))
 #height for body

 By assigning the width and height for the layout using the above
 calculations, iam not getting the footer layout properly.i.e only some
 part of the footer is viewable.

 I need to assign the height for the layout dynamically, which is not
 comming using the above calculation.Can you please suggest me the apt
 way of calculation for dynamically assigning the height of the
 layout.




 Thanks
 C.Rajesh

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

2010-05-04 Thread SREEHARI
Hi,

   Is there any way to do Image comparison in Android?? I am doing an
Augmented reality application in which I need to do implement Image
Comparison.


Thanks in advance
SREEHARI.

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


[android-developers] Re: Google should prohibit task killers on Android Market

2010-05-04 Thread Tomáš Hubálek
Dianne, thanks for answers.

 In fact one of the problems with the API that the task killers have been
 abusing is that it was there for the force stop button in the UI.  This is
 not for killing processes.  This is for making everything about the app
 stop: not just its processes and services, but removing its notifications,
 removing its alarms, EVERYTHING.

This is exactly what I had in my mind. My widget has no chance to
toast message Oh, it hurts, I was killed. Please don't do it next
time. It just silently stops and looks like it does not work
properly.

To inform the user that widget was killed I have to develop detection
mechanism (as writing this to documentation is not enough for many
users). This is extra NON PRODUCTIVE work that every successful widget
needs to do.

This is why I'm asking for action from Google.

 This is why they have such a bad impact on well-behaved applications, and is
 something that really needs to be addressed in the platform (it is just not
 right for one application to do this kind of thing to another one).

Thanks for your opinion. I have the same feeling.

Tom

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


[android-developers] Re: Paid apps in more countries - I am sick about it

2010-05-04 Thread Lance Nanek
Heh, all I get is a no flash dead end page trying to check out that
site on my Droid just now.

On May 2, 4:51 am, androidpublisher.com dpack...@gmail.com wrote:
 Now developers worldwide can publish 
 theirpaidappsthroughhttp://www.androidpublisher.com

 On Apr 14, 12:33 pm, r0ytlay mipa...@gmail.com wrote:





  You should still be able to release your app as apaidapp in
 countrieswhere it is supported, even thoug you are in a country which
  does not supportpaidapps, or am i wrong?

  I am almost finished developing my app which im planning to charge
  for. Unfortunetly i live in sweden where there is nopaidmarket, but
  i hope to be able to sell it in thecountriesthat supportspaid
  market.

  On Apr 14, 5:48 pm, fhucho fhu...@gmail.com wrote:

   Last year in October I was told by Reto Meier that expanding support
   forpaidapps in Android Market is the top priority for the Market
   team. Now, six month later, I don't beleive he was telling the truth.

   I am really sick about this. Maybe this is a way for Google to keep
   the app prices low - there will be many good freeappson the market
   from developers who can't release apaidversion. This will also keep
   the price of thepaidapps lower (because the user might switch to
   competitor's app that is free).

   The thing I am sick evenmoreis that they are not able to give out
   any other response than We're woking on it (which I find a bit hard
   to beleive, they're working on it for over a year with no result).
   When I ask a very simpe question, Will it happen in 2010 or later?,
   they answer with silence.

   I haven't found any forum about this that has some official reply from
   a Googler. I guess this post will be also left without an answer from
   anyone from Google. Why is Google so secretive about this?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 Formoreoptions, 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] Refreshing ListView each time the tab get clicked

2010-05-04 Thread SheikhAman
Hi.

I am in a situation, where i have four tabs, first of them has some
list, and user can select an item from them and it is added to
favorites.
I am doing it with SharedPreferences.
It works fine.

But my favorites tab has one List View, which is creating some
problems.
It access the SharedPreferences file and gets info from it, creates an
array, and displays the values in the List View.

I want this ListView to be updated every time the user visits this
Favorite tab, since user will be adding favorites randomly and it
should reflect in Favorite without application restart.

Please assist guys.
How to refresh the List View?

Is there any other method of ListActivity which is called every time
the list is focused? then i can override it and add refresh the list.

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


[android-developers] VideoView path problem

2010-05-04 Thread SheikhAman
I am using a VideoView to play videos.
it works smoothly.

with only one problem. i am able to provide path of video with this
way-


Uri uri = Uri.parse(android.resource://com.abc.def/+ R.raw.vid);
video.setVideoURI(uri);
video.start();


but this is not what i want.
i want it to take the path dynamically, so that i can tell it the path
according to the user selection.

any suggestions??

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


[android-developers] Proxy settings

2010-05-04 Thread Tor
http://code.google.com/p/android/issues/detail?id=1273

Will there be a fix for this?

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


[android-developers] Re: Changing ringer mode to RINGER_MODE_SILENT doesn't prevent the phone from vibrating

2010-05-04 Thread Cesar Valiente
Hi!!

Do you solved it??? I have the same problem like you, in my case,
sometimes the vibrator is off, but the most times is on... my mobile
is
a NExus One, i don't know if the mobile phone can be the cause.

On 17 abr, 18:59, Flo florian.bernst...@gmail.com wrote:
 Today I tried to solve the problem and mute the vibrating phone by
 initiating a Vibrator object and calling the method cancel() on it.
 But this didn't stopped thevibrationeither.

 Is it possible that you cannot interrupt thevibrationof an incoming
 call at all?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 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] Changing device locale doesn't restart application

2010-05-04 Thread sazilla
Hi all,

I've found an issue about localization. I've added support for strings
localization in my application, but after I change the device locale,
my application is not restarted and keeps the older language. The only
way to switch language is to force the app to stop (under the Manage
applications tool) and start it again.

Is there any way to switch the app locale without restarting it
manually?

Thanks
Carlo

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

2010-05-04 Thread Anurag Singh
Implement BrodcastReceiver for battery status.

- Anurag Singh

On Tue, May 4, 2010 at 2:49 PM, subrat kumar panda 
evergreen.sub...@gmail.com wrote:

 Hi all,
 i am having a problem with Battery Level.
 i am using sdk 1.5 in my app.
 when the Battery Level reduced to 15%(i want to post the info to the
 Soap server as an Alert).

 what i got info is if you are using 1.5 (= )
 then use BatteryManager.EXTRA_LEVEL.

 but in my app, i am not getting it.

 if anybody knows the desired solution regarding the problem
 please help me.

 Thanks in advance,

 Best Regards
 Subrat Kumar Panda
 India.
 .

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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] App not working properly on Motorola Droid and Blur

2010-05-04 Thread Nikhil Agarwal
I have an app 'SMS Invite' (http://www.appbrain.com/app/
com.withoutcoffee.beta.smsinvite) on the Android Market which doesn't
seem to work properly on Motorola Droid and Blur. I tested it on HTC
Dream and Nexus One where I did not encounter any problems. The Droid
user told me that he is able to send invites but the replies don't get
automatically sorted into yes,no and maybe (the app checks the
incoming sms).
Has anyone else faced any problems with sending and receiving sms
using the api on Droid?
Thanks.

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


[android-developers] Re: Paid apps in more countries - I am sick about it

2010-05-04 Thread Tomáš Hubálek
On 21 dub, 20:08, Lucian Tomuta lucian.tom...@gmail.com wrote:
 So why not go for Symbian then (well, actually for Nokia's Ovi Store as they
 support Java apps on Symbian but Series 40 devices as well). Certainly
 bigger market worldwide and you are welcome to set your price.

IMHO Nokia is after zenith. They made some things in the past that
make them not credible for me as a developer.

 Companies are companies, they tend to think at a bigger level/scale and yes,
 their plans don't necessarily match yours all the time. This is why you keep
 your options open and play all cards. Whether you like the OS or not that's
 not that relevant, especially when you write in Java anyway so you have one
 abstraction layer between you and the OS. What matters is the OS (or rather
 the phone product as a whole) that end-users buy and you therefore can
 target.
 The only question remains whether the code you may already have can be (at
 all) reused between Android and the other Java platforms. I'm new to Android
 and new to Java too so I can't really comment on this.

Java in Symbian and Java in Android is something completely different.
It needs a lot of effort to make nice app for Symbian in Java. For
Android it is quite easy.

What I'm really wondering is why Google does not allow people to buy
and sell from any country? Do they want to give Android the feeling
that everything is for free and attract more users?

Do they prefer money from ads to commission from Android Marker? This
can be IMHO taint of Android as I love AdSense on Web (as I consider
it useful) but I HATE ads in SW.

Google's approach to Android Market makes me crazy. I like Google and
many their ideas but Android Market looks like something artificially
retarded.

Tom

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


[android-developers] Re: updating a contact in 2.x Contacts API

2010-05-04 Thread JKDESAI


On Apr 19, 2:41 pm, Timo Prill timo.pr...@googlemail.com wrote:
 hi all,

 i got a problemupdatingacontact'sdetails.
 i use the following code to update thecontactname:
 operations is a ArrayList of ContentProviderOperation.

 operations.add(ContentProviderOperation.newUpdate(
                      ContactsContract.Data.CONTENT_URI)
                      .withSelection(Data._ID + =?, new String[]{id})

 .withValue(Data.MIMETYPE,StructuredName.CONTENT_ITEM_TYPE)
                      .withValue(StructuredName.GIVEN_NAME, firstName)
                      .withValue(StructuredName.FAMILY_NAME, lastName)
                      .build());

 contentResolver.applyBatch(ContactsContract.AUTHORITY, operations);

 but after this query, thecontactname is not updated.. (at least the
 name did not change in the phone's addressbook)
 i cant figure out why...what am i doing wrong? must be a simple thing i
 am missing..

 thanks in advance
 timo

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

Hi,

I have used your code snippet for updating contact details with API
2.0.

But using that, display name is updated successfully, but it deletes
all the other information like phone number and email.

Can you tell me why it happens?..or I am missing something...

Here Data used is android.provider.ContactsContract.Data.

The same code I have used is as below:

ArrayListContentProviderOperation
operations =
new 
ArrayListContentProviderOperation();


operations.add(ContentProviderOperation.newUpdate(
ContactsContract.Data.CONTENT_URI).withSelection(
Data.CONTACT_ID + =?, new String[]
{ id }).withValue(
StructuredName.GIVEN_NAME, John).withValue(
StructuredName.FAMILY_NAME,
Abraham).build());

try {

getContentResolver().applyBatch(ContactsContract.AUTHORITY,
operations);
} catch (RemoteException e) {
System.out.println(Exception :   + 
e.getMessage());
e.printStackTrace();
} catch (OperationApplicationException e) {
System.out.println(Exception :  + 
e.getMessage());
e.printStackTrace();
}

Please share your 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: [android-porting] Re: Disable hardware codecs

2010-05-04 Thread Deva R
Hi Uander,

Hw codecs from TIOMX_Core library is still significant, and it
shouldnt be in picture if 01_Vendor_ti_omx.cfg is deleted completely.
is it like have u renamed the file? (confirm by 'ls /etc/' after android bootup)

Intention of deleting the file is, PV OMX component sw-codecs should
be chosen via /etc/pvplayer.cfg..

-Deva
On Tue, May 4, 2010 at 2:21 PM, Uander uandro...@gmail.com wrote:
 Hello  ,

 @Deva -

 I disable h/w acceleration by removing 01_Vendor_ti_omx.cfg file . now its
 using s/w codecs  .  But still same error comes up . logcat says :

 ***


 D/omx_interface(  906): DLOPEN SUCCEEDED (libOMX_Core.so)
 D/omx_interface(  906): TIOMXInterface: library lookup success
 D/TIOMX_CORE(  906): init count = 1
 D/TIOMX_CORE(  906): Found component OMX.TI.AMR.decode with refCount 0
 D/OMX_NBAMRDEC(  906): OMX_ComponentInit():202 202 ::OMX_ComponentInit
 D/OMX_NBAMRDEC(  906): NBAMRDECHandleCommand():829 829 :: OMX_AmrDec_Utils.c
 :: Error returned from    LCML_Init()
 W/MediaPlayer( 1441): info/warning (1, 26)
 D/OMX_NBAMRDEC(  906): NBAMRDEC_ComponentThread():102 :: Comp Thrd Exiting
 here...
 I/DEBUG   (  904): *** *** *** *** *** *** *** *** *** *** *** *** *** ***
 *** ***
 I/DEBUG   (  904): Build fingerprint:
 'NEC/pine/pine/pine:2.1/ERD79/eng.root.20100429.171703:eng/test-keys'
 I/DEBUG   (  904): pid: 906, tid: 1523   /system/bin/mediaserver 
 I/DEBUG   (  904): signal 11 (SIGSEGV), fault addr 
 I/DEBUG   (  904):  r0 0004a218  r1 80c20f18  r2 06f4  r3 80c229f0
 I/DEBUG   (  904):  r4 80c230f8  r5 40b0dbac  r6 00035420  r7 00021bb8
 I/DEBUG   (  904):  r8 0010  r9 a9d1b8e5  10 40a0e000  fp 00021b58
 I/DEBUG   (  904):  ip   sp 40b0db30  lr 80c1a69d  pc   cpsr
 a010
 I/DEBUG   (  904):  #00  pc 
 I/DEBUG   (  904):  #01  pc 0001a69a
 /system/lib/libOMX.TI.AMR.decode.so
 I/DEBUG   (  904):  #02  pc 10ca  /system/lib/libOMX_Core.so

 
 @Ricardo

 my file is AMR-NB formatted (mimetype set as audio/3gp in mediascanner.java
 ), I can find
  {OMX.TI.AMR.encode, audio_encoder.amrnb},
  {OMX.TI.AMR.decode, audio_decoder.amrnb},

 in platform/hardware/ti/omx/system/src/openmax_il/omx_core/src/OMX_core.c .
 so codecs support seem to listed there  .

 error comes up from LCML_Init () call in  OMX_AmrDec_Utils.c . that means
 its unable to load codec .


 Thanks :
 Uander

 On Mon, May 3, 2010 at 11:21 PM, Ricardo Martinez oscar2...@gmail.com
 wrote:

 Hi Uander,
 You can disable Hardware acceleration by editing this file:
 platform/vendor/ti/zoom2/BoardConfig.mk

 But I think it's better to find the root cause of the issue, probably the
 first step could be to verify if the audio format is actually supported,
 take a look at the supported OMX roles (tComponentName):
 platform/hardware/ti/omx/system/src/openmax_il/omx_core/src/OMX_core.c
 Thanks,
 Ricardo
 On Mon, May 3, 2010 at 7:54 AM, Deva R r.deva...@gmail.com wrote:

 [+porting list]
 you can delete  ./system/etc/01_Vendor_ti_omx.cfg in your file system,
 so as to use SW codecs from PVOMX components (picked up by
 ./system/etc/pvplayer.cfg).

 On Mon, May 3, 2010 at 6:23 PM, Uander uandro...@gmail.com wrote:
  Hello   ,
 
  I have a file a audio/3gp file that I can play in eclair-2.1 emulator
  but
  its throwing error on my Zoom2
  device  says Sorry , this player doesn't support this  type of audio
  file 
  .
 
  emulator will be using s/w codecs . while zoom2 has h/w codecs . The
  logic
  of  MMM framework is like if h/w codecs are not present it should look
  for
  s/w codec . if zoom2 is not finding h/w codec for my audio/3gp file ,
  it
  should search for s/w codec and play file , why does it fails with
  error ?
 
  How to disable hardware acceleration of codecs ?
 
  Please correct me If I am wrong .
 
 
 
 
  Thanks :
  Uander
 
  --
  You received this message because you are subscribed to the Google
  Groups
  android-platform group.
  To post to this group, send email to android-platf...@googlegroups.com.
  To unsubscribe from this group, send email to
  android-platform+unsubscr...@googlegroups.com.
  For more options, visit this group at
  http://groups.google.com/group/android-platform?hl=en.
 

 --
 unsubscribe: android-porting+unsubscr...@googlegroups.com
 website: http://groups.google.com/group/android-porting

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



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

Re: [android-developers] Re: CheckBox in ListView

2010-05-04 Thread social hub
The issue is the ListView is recycling views

to Solve

For example Have an arrayList and mainitain the check status in that list

Say Item 3 is selected this should be maintained in your arrayList

When GetView is called
Set your checkbox accordingly

So if item 3 is called then from scenario above it should be set else unset
it

I would suggest to print some log statements in get view method and print
the hash of the convertView you are getting.
Also please use convertVIew if you are not using one.

Read Romain guy blog about using listView

Hope this helps.

On Sat, May 1, 2010 at 3:27 AM, David davideberl...@googlemail.com wrote:

 Hey,

 I have the exact same problem. Can anyome help?

 Regards

 David

 On May 1, 3:02 am, a7med nouri.ahmed@gmail.com wrote:
  dear developers ;
  i am developping an Android application for the management of the
  contact list.
  but i am having a problem : the list contain for every contact a
  checkbox to chose which one to modify for example, the problem is that
  when the list became longer than the phone screen and the scrolling is
  active; when i select a check box , a second one is automatically
  selected in the bottom of the list for example , but his action is not
  performed.
 
  the problem is the automatic selection of the second checkbox;
  please what s the reason for a such problem.
  how can i fix it ??
 
  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.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] Issue in launching google Map

2010-05-04 Thread Nithin
Hi,

I am launching Google map application from my application, using
Uri.parse(geo: + 13.042206 + , + 80.17000?z=10);
and its working fine.

But I want to show direction between two latitudes and longitudes, for
that I tried using this uri,
Uri.parse(geo: + 13.042206 + , + 80.17000 + geo:
 + 9.58 + , + 78.10?z=10);

But I am getting a Toast telling Unable to load the url. Any Idea
why this occurs.

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: Maximum Texture Units

2010-05-04 Thread Jeremiah Sellars
That's an interesting question... I may have to drop by the khronos
forums and ask that.

Thanks again Robert for those benchmarks, it's helpful to know what
I'm dealing with.

On May 2, 6:38 pm, Lance Nanek lna...@gmail.com wrote:
 It wouldn't surprise me if the Droid has that little. Its graphics
 solution breaks the scene up into tiles, which results in less data
 being needed at any one time. It also performs depth testing before
 doing the texturing, so uses less texture data due to that as well.

 Isn't OpenGL supposed to transparently start swapping texture objects
 between main memory and video memory for you when you run out of video
 memory? Using it all up may manifest more as a noticeable drop in
 performance than an outright error.

 On May 2, 4:42 am, Robert Green rbgrn@gmail.com wrote:



  I remember reading that the MSM7200-based phones have 8mb of VRAM and
  so I have to imagine that you could count on at least that much for
  the better GPUs.

  What's weird though is that I keep finding things talking about how
  the PowerVR SGX530 has 2MB of VRAM which seems awfully low - unless
  that's a texture cache and there is a larger chunk of VRAM that is
  implementation-specific.  I don't know..

  I couldn't find any info on the QS8250 (snapdragon 1ghz) VRAM.

  So far I've never run out of vram on any device and I'm loading quite
  a bit in on some games.

  Antigen uses:
  256x512 32 bit for story start text atlas
  256x512 32 bit for main text atlas
  256x512 32 bit for level bg front
  512x512 16 bit for level bg back
  5 256x256 32 bit for characters, shading and faces
  7 64x64 32 bit for items
  several for the HUD
  and many other smaller ones for glow, particles, etc..

  My new 3D game uses (all mipmapped so add 33% more size on):
  1024x1024 16 bit for main level texture
  512x512 16 bit for level lightmap
  4x 512x512 16 bit for characters
  3x 256x256 16 bit for weapons
  256x512 32 bit for text atlas
  about 512K-1MB of geometry VBOs
  256x256 32 bit for HUD graphics
  Many smaller 32 bit ones for projectiles and other small things

  So really there seems to be ample room there.  Both of those scenarios
  load fine on a G1.

  If you want to write an easy test, write a loop that loads up a 512 32
  bit (1MB) texture into VRAM and keep count of how many times it works
  until gl.glGetError() returns the out of memory error after
  glTexImage2D.  I'd be curious as to what your results are.

  On May 2, 1:06 am, Jeremiah Sellars sylus.mcf...@gmail.com wrote:

   This may be just another silly question then, but after doing quite a
   few searches about different phones... I'm finding the amount of
   general RAM but not VRAM. Does anyone know this spec for newer phones?
   I'm developing with Droid or better phones in mind...

   On May 1, 6:02 am, Mario Zechner badlogicga...@gmail.com wrote:

gentextures only creates handles for you. Actual memory for the bitmap
data is allocated when calling glteximage2D. That will be your biggest
limitation as video ram is of course limited. How much vram is
available is dependent on the chipset/device you are running your
application on.

On 1 Mai, 00:59, Jeremiah Sellars sylus.mcf...@gmail.com wrote:

 Oh, geez... okay that explains it. Thanks to both of you, that really
 explains it well. Is there then a limit on the number of textures
 GenTextures can return?

 On Apr 30, 3:39 pm, Robert Green rbgrn@gmail.com wrote:

  Yeah multiple texture units are only needed for multitexturing, of
  which the most common use is for lightmapping.

  On Apr 30, 4:57 pm, Mario Zechner badlogicga...@gmail.com wrote:

   The number of texture units and the maximum texture size are not
   really related in any way. The number of texture units tells you 
   how
   many textures you can use simultaniously when drawing geometry 
   (how
   many textures can be bound at once). You can have more textures in
   video ram than there are texture units, however, you can only bind
   #texture units textures at any time. A maximum of 2 texture units 
   is
   sufficient for most scenarios where you have a diffuse texture 
   and a
   lightmap for example.

   The maximum texture size is really just an estimate with most 
   drivers
   and depends on things such as internal storage (which might be 
   fixed
   by the driver anyways) and so on.

   In any case, both numbers will differ from device to device or 
   rather
   chipset to chipset.

   On 30 Apr., 23:19, Jeremiah Sellars sylus.mcf...@gmail.com 
   wrote:

I'm wondering if this is just an issue with how the emulator is 
setup,
but I'm not sure.

I'm (natively) calling this:

int maxt = 0;

glGetIntegerv(GL_MAX_TEXTURE_UNITS, maxt);

__android_log_print(ANDROID_LOG_VERBOSE, Native, Max 
textures %d,
   

Re: [android-developers] Re: Android : List View or Spinner - Need your help guys

2010-05-04 Thread TreKing
2010/5/3 yidongsoft long...@gmail.com

 Customize a listview as:
 String[] lastName;
 String[] firstName;
 int[] ids;
 ...
 public object getItem(int position){
 return ids[position];
 }


Please don't do this. Maintaining 3 (or more) separate lists where each item
at a given position corresponds to the other items at the same index is just
asking for trouble.

Just have one structure that contains the data you need and have a SINGLE
list of that object type.

Also, having that getItem function return an Object when the array it's
getting its data from is of int type makes no sense.

-
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: HTC Incredible, unified media content provider for internal/external storage

2010-05-04 Thread drasticp
The content URI for images in the “phoneStorage” seems to be
content://media/phoneStorage/images/media

Can you try using that Uri instead of EXTERNAL_CONTENT_URI? Of course
this will require some conditional code specifically for the
Incredible, but at least you may be able to get to the content. It
*looks* like it works in my test, but my fixture doesn’t display the
image so I’m only 90% sure here. I got the URI using this:

Uri contenturi = Images.Media.getContentUri(“phoneStorage”);

… where phoneStorage is the volume name. There may be some other code
you can use to iterate volume names so that the code isn’t totally
Incredible specific. I hope this helps.

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


[android-developers] Extending Gallery to not auto-center selected view

2010-05-04 Thread Mark Nuetzmann
I would like to either extend the existing Gallery view or create a
new view based on the code for the Gallery view that does not auto-
center the selected view.  What would be the cleanest/simplest way to
go about this?  It looks like all the methods of the Gallery view that
control the auto-centering of the children are private so extending
the class might be problematic.  I looked at starting with the code
for the Gallery view and the modifying it to give me the desired
effect but all the member variables that seem to be available to the
Gallery view are NOT available to me to access from my code... :(

I would love to hear what others have tried...

Mark

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Problem with Saving and opening file on moto-droid

2010-05-04 Thread TreKing
On Mon, May 3, 2010 at 4:50 PM, André pha...@hotmail.com wrote:

 Sorry, it force closes on reading in a file. And can't write to sdcard on
 write.


I assume you have the EXTERNAL_STORAGE permission, of course?

Besides that, your best option is to get a stacktrace of the problem to see
exactly where you're going wrong. See if you can get a friendly user to help
you out or find someone you know with a Droid to test on.

On Tue, May 4, 2010 at 3:33 AM, André pha...@hotmail.com wrote:

 No one knows why this could be?


If no one responded, apparently not ...

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

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

RE: [android-developers] Re: Sliding Drawer question

2010-05-04 Thread Tommy
Thank you, I will give this a try and see what happens.

-Original Message-
From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of brucko
Sent: Tuesday, May 04, 2010 3:52 AM
To: Android Developers
Subject: [android-developers] Re: Sliding Drawer question

Tommy,

Whilst RelativeLayout is quite powerful, and as Mark stated earlier,
is what you need for your sliding drawer - especially as you have
other elements - you may need to be a little more careful in the order
you declare your view elements.

If you want your SlidingDrawer to go over the top of all of the other
elements, then declare it last in your Relative Layout.

Better still, as it appears you may not be used to RelativeLayout yet
- just try dropping the SlidingDramer for now (Ctrl-c will comment out
the rows in the XML Editor in Eclipse) - put it back in last in your
relative layout when you have the rest of your layout where you want
it.

You need to declare your elements in the correct order.

For example, you should declare tvStationName before TideLoadMessage
if you want TideLoadMessage to obey android:layout_below=@+id/
tvStationName .


I don't think you want to use android:layout_below=@+id/lvReport 
for your Sliding drawer if you want it to open  over your lvReport - I
think (not really sure on that).

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

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

2010-05-04 Thread murali raju
its bcoz ur height param return the height without notification bar n title
bar.

just disable those,

getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
this.requestWindowFeature(Window.FEATURE_NO_TITLE);




On Tue, May 4, 2010 at 4:17 PM, rajesh chandrasekaran 
crajeshdanger...@gmail.com wrote:

 Hi all

 I am new in android, i am having few problem in layout alignment.I
 have divide the screen into three layout,as header, body and footer.

 I am giving the height dynamically for the three layout in java file,
 so i need to give 12% of height to header and footer layout, and the
 remaining 75% i need to assign height to body layout.

 For that i have made the calculation as follow

 first i am getting the height and width for the screen. With the help
 of the screen height i am getting the 12.5% height for header and
 footer layout

 WindowManager w = getWindowManager();
 Display d = w.getDefaultDisplay();
 int totalwidth_screen = d.getWidth();
 int totalheight_screen = d.getHeight();


 int total_HF_screen = (int) ((12.5/100)*totalheight_screen); # height
 for header and footer
 int total_body_screen = totalheight_screen - (2*(total_HF_screen))
 #height for body

 By assigning the width and height for the layout using the above
 calculations, iam not getting the footer layout properly.i.e only some
 part of the footer is viewable.

 I need to assign the height for the layout dynamically, which is not
 comming using the above calculation.Can you please suggest me the apt
 way of calculation for dynamically assigning the height of the
 layout.

 I have mention the xml file and java file for your reference



 Xml file

 ?xml version=1.0 encoding=utf-8?
 LinearLayout
 android:id=@+id/widget0
 android:layout_width=fill_parent
 android:layout_height=fill_parent
 android:orientation=vertical
 xmlns:android=http://schemas.android.com/apk/res/android; 

LinearLayout
android:id=@+id/header_aboutus
android:layout_width=fill_parent
android:layout_height=wrap_content
android:background=@drawable/header
/LinearLayout

LinearLayout
android:id=@+id/body_aboutus
android:layout_width=fill_parent
android:layout_height=1dip
android:background=@drawable/body
/LinearLayout

LinearLayout
android:id=@+id/footer_aboutus
android:layout_width=fill_parent
android:layout_height=wrap_content
android:gravity=center
android:background=@drawable/footer

Button
android:id=@+id/aboutUs_home_button
android:layout_width=wrap_content
android:layout_height=wrap_content
android:background=@drawable/home_button 
/Button

/LinearLayout

 /LinearLayout



 java file

 import android.app.Activity;
 import android.app.AlertDialog;
 import android.content.Intent;
 import android.os.Bundle;
 import android.view.Display;
 import android.view.View;
 import android.view.WindowManager;
 import android.view.View.OnClickListener;
 import android.widget.Button;
 import android.widget.LinearLayout;
 import android.widget.RelativeLayout;

 public class aboutus extends Activity {

public String data;

public void onCreate(Bundle icicle) {

super.onCreate(icicle);
setContentView(R.layout.aboutus);

WindowManager w = getWindowManager();
Display d = w.getDefaultDisplay();
int totalwidth_screen = d.getWidth();
int totalheight_screen = d.getHeight();


int total_HF_screen = (int) ((12.5/100)*totalheight_screen);

int total_body_screen1 =  2 * total_HF_screen;
int total_body_screen = totalheight_screen -
 total_body_screen1;//
 (int) ((75/100)* totalheight_screen);

   LinearLayout header_aboutus= (LinearLayout)
 findViewById(R.id.header_aboutus);
LinearLayout body_aboutus= (LinearLayout)
 findViewById(R.id.body_aboutus);
LinearLayout footer_aboutus= (LinearLayout)
 findViewById(R.id.footer_aboutus);

header_aboutus.setLayoutParams(
new
 LinearLayout.LayoutParams(totalwidth_screen,
 total_HF_screen));
body_aboutus.setLayoutParams(
new
 LinearLayout.LayoutParams(totalwidth_screen,
 total_body_screen));
footer_aboutus.setLayoutParams(new
 LinearLayout.LayoutParams(totalwidth_screen, total_HF_screen ));

}

 }



 Thanks
 C.Rajesh

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

Re: [android-developers] catching both click and long click on a ListView

2010-05-04 Thread TreKing
On Mon, May 3, 2010 at 6:09 PM, sdphil phil.pellouch...@gmail.com wrote:

 I have a ListView in my Activity.


Are you using ListActivity? I do and I can handle both clicking and context
menus just fine.
Haven't tried directly manipulating the listview as you are doing.

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

2010-05-04 Thread Mark Gjøl
Still haven't received anything in Denmark. I'm hoping they'll send
out the next batch soon. :)

On May 4, 1:14 pm, Trygve trygv...@gmail.com wrote:
 Received mine today in Trondheim, Norway.
 Thanks 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 
 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] catching both click and long click on a ListView

2010-05-04 Thread Jose Gomez
Register your listview for contextMenu then use setOnItemClickListener
Sincerely
Jose C Gomez

http://www.josecgomez.com


On Tue, May 4, 2010 at 11:26 AM, TreKing treking...@gmail.com wrote:

 On Mon, May 3, 2010 at 6:09 PM, sdphil phil.pellouch...@gmail.com wrote:

 I have a ListView in my Activity.


 Are you using ListActivity? I do and I can handle both clicking and context
 menus just fine.
 Haven't tried directly manipulating the listview as you are doing.



 -
 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.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] Is it possible to start an Activity from a non-context class?

2010-05-04 Thread TreKing
On Tue, May 4, 2010 at 2:02 AM, Michael J txaggiemich...@gmail.com wrote:

 For example, I have an activity that uses a utility class.  I would like to
 be able to start an activity from the utility class and have the activity
 result sent back to the utility class.


Why are you doing this? What purpose is your utility class serving that it
requires starting and retrieving data from another activity?

-
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] Determine if my application is visible on screen

2010-05-04 Thread TreKing
On Tue, May 4, 2010 at 3:46 AM, Pierre pierredur...@gmail.com wrote:

 I need a system to determine if my application is visible on screen.


Read up on the activity lifecycle in the documentation. Specifically onPause
and onStop.

-
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] Is it possible to start an Activity from a non-context class?

2010-05-04 Thread Timo Prill
just pass your context over to the utility class via getter/setter or in 
constructor...



Am 04.05.2010 17:40, schrieb TreKing:
On Tue, May 4, 2010 at 2:02 AM, Michael J txaggiemich...@gmail.com 
mailto:txaggiemich...@gmail.com wrote:


For example, I have an activity that uses a utility class.  I
would like to be able to start an activity from the utility class
and have the activity result sent back to the utility class.


Why are you doing this? What purpose is your utility class serving 
that it requires starting and retrieving data from another activity?


-
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 


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

2010-05-04 Thread Robert Green
Paolo,

If you want to do it the canvas-style,

Just flip the projection to orthographic and draw a 2D quad.  I have
posted the code for that more than once on here so if you do a search
you'll probably find it somewhere.

On May 4, 5:02 am, Paolo brand...@gmail.com wrote:
 Hi robert, thanks for your answer.
 It could be a possible way, but i i think is too much for my
 objective. In my case the camera is static, instead it is the grid
 that moves around me.

 I have only to put some static object over the grid. I say object, but
 is more correct say small picture. Consider that I'm developing an
 Augmented Reality App.

 I hoped that was possible to do that, using canvas on the opengl grid,
 but maybe is impossible.

 On 3 Mag, 21:10, Robert Green rbgrn@gmail.com wrote:





  If you want the 2D objects to have depth, you'll want to use
  billboarded quads.  You may want to look around to find a better
  implementation but here's a tutorial 
  -http://www.lighthouse3d.com/opengl/billboarding/

  On May 3, 8:47 am, Paolo brand...@gmail.com wrote:

   Hi guys!

   I've a problem and I'm not able to solve at the moment.

   I have realized a grid with openGL on a GLSurfaceview. This grid
   rotates at 360° on all the aces using the orientation sensors.

   Now I'd like to put over it some markers at specified coordinates,
   such as 2D objects, as if they were attached to the grid, because they
   have to rotate together to the grid.

   How how I can make it?

   Thanks.

   Paolo

   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email 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] Where to Check for files/data created in emulator?

2010-05-04 Thread dillipk
Hello,
  Where can I check for the Dir/ files/ data created in Internal
Memory/SDCard ?

Thanks in advance..

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


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

2010-05-04 Thread Mads Kalør
I received mine in Denmark yesterday. You should try contacting FedEx.

On May 4, 2010 5:31 PM, Mark Gjøl bitflips...@gmail.com wrote:

Still haven't received anything in Denmark. I'm hoping they'll send
out the next batch soon. :)


On May 4, 1:14 pm, Trygve trygv...@gmail.com wrote:
 Received mine today in Trondheim, Norway.
...
 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 ...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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-05-04 Thread Trygve Aaberge
FedEx may not have any information. I called them on Friday, and they
couldn't find a package, but I got it today. So don't get your hopes down if
you call FedEx, and they don't see a package for you.


On Tue, May 4, 2010 at 18:00, Mads Kalør mkal...@gmail.com wrote:

 I received mine in Denmark yesterday. You should try contacting FedEx.

 On May 4, 2010 5:31 PM, Mark Gjøl bitflips...@gmail.com wrote:

 Still haven't received anything in Denmark. I'm hoping they'll send
 out the next batch soon. :)


 On May 4, 1:14 pm, Trygve trygv...@gmail.com wrote:
  Received mine today in Trondheim, Norway.
 ...
  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 ...

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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: Device Seeding Program for Top Android Market Developers

2010-05-04 Thread Lim Sim
It was previously mentioned that you need to contact FedEx Express and not
FedEx for info.

On 4 May 2010 17:10, Trygve Aaberge trygv...@gmail.com wrote:

 FedEx may not have any information. I called them on Friday, and they
 couldn't find a package, but I got it today. So don't get your hopes down if
 you call FedEx, and they don't see a package for you.


 On Tue, May 4, 2010 at 18:00, Mads Kalør mkal...@gmail.com wrote:

 I received mine in Denmark yesterday. You should try contacting FedEx.

 On May 4, 2010 5:31 PM, Mark Gjøl bitflips...@gmail.com wrote:

 Still haven't received anything in Denmark. I'm hoping they'll send
 out the next batch soon. :)


 On May 4, 1:14 pm, Trygve trygv...@gmail.com wrote:
  Received mine today in Trondheim, Norway.
 ...
  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 ...

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


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




-- 
Lim Sim
t: +44 790 4181648
f: http://www.flickr.com/photos/limsim

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

2010-05-04 Thread Abhi
Anyone?

On Apr 27, 9:11 am, Abhi abhishek.r.sha...@gmail.com wrote:
 Hello

 I am not sure if this makes any sense. But what I really want to do is
 to insert some animation snippets (1-2 secs) in between my Video
 playback to try and give the users a transitional effect while
 watching videos. My questions really is whether I can do this while
 the videoview is running the video:

 mVideoView.pause();
 mVideoView.setVideoPath(location of a short animation clip);
 mVideoView.start();

 . 1-2 secs of animation playback on the same view

 mVideoView.setVideoPath(location of original video);
 mVideoView.seekTo(where I paused);
 mVideoView.start();

 Am I shooting in the dark or is this something I can spend time
 trying?

 Thanks,

 Abhi

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

2010-05-04 Thread Romain Guy
 - still find strange (sorry Romain, but I'm not convinced ...) the
 behavior with my original post

You can still find it a strange, it won't change :)

 - think that sometimes, using a two pass analyze of the layout would
 be very helpful to be able to use id declared later in the layout.
 Because actually, we sometimes have to make layout that are not
 logical with the rendering. [...] instead of declaring them in the order they 
 appear ...

RelativeLayout supports this since Donut (Android 1.6).

-- 
Romain Guy
Android framework engineer
romain...@android.com

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

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


[android-developers] Re: problem in installing ADT Plugin for Eclipse

2010-05-04 Thread fr4gus
I have the same Issue,

I had installed Android SDK 4, and I uploaded using the sdk setup (not
in Eclipse) to get SDK v 5. When I opened Eclipse, I got a warning
telling me I have to update the ADT plugin, but I got the same error:

Unexpected error encountered while preparing for the operation.
org/eclipse/ecf/filetransfer/BrowseFileTransferException

I've been googling for a while with out any luck

-fr4gus

On Mar 24, 4:04 am, Farhan bil2...@googlemail.com wrote:
 Hello Developers

 My Andriod is installed: C:\android-sdk-windows
 Java is installed: C:\Sun\SDK\jdk
 Eclipse is installed: C:\Program Files\eclipse

 After successfully download 'ADT Plugin for Eclipse' in the Help-Software 
 Updates.. ; I can't install the Android DDMS  Android

 Development Tools as it gives me the following error:
 --- 
 -
 java.lang.NoClassDefFoundError

 Unexpected error encountered while preparing for the operation.
 org/eclipse/ecf/filetransfer/BrowseFileTransferException
 --- 
 -
 I'd be grateful if anyone could help me in this issue.

 Thanks
 Farhan

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

2010-05-04 Thread Paul
Here's a perfect example, just got this one today:

 will not download. It says its purchased but unsuccessful
downloading. What do I do? (replace  with the name of the app the
user is trying to download).

This has to get fixed. All user needs is some notification in Android
Market to let them know what is going on and how to correct it.

How do we get Google/Android Market Development team to take care of
this?

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


Re: [android-developers] Is it possible to start an Activity from a non-context class?

2010-05-04 Thread TreKing
On Tue, May 4, 2010 at 10:42 AM, Timo Prill timo.pr...@googlemail.comwrote:

 just pass your context over to the utility class via getter/setter or in
 constructor...


And how is that different than what the OP has already tried (passing the
Activity itself)?

-
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: Is it possible to start an Activity from a non-context class?

2010-05-04 Thread Michael J


On May 4, 10:40 am, TreKing treking...@gmail.com wrote:
 Why are you doing this? What purpose is your utility class serving that it
 requires starting and retrieving data from another activity?

Here's the usage.  Let me know if there's a much easier way of doing
this.

In my application, I'm referencing a RESTful web service which
requires token authentication.  My utility class is simply a utility
for sending a REST request.  If the request responds with an invalid
authentication message, I would like the utility to be able to
initiate a LogIn activity to request a new authentication from the
user.  Once the LogIn activity has completed, I would like the utility
class to be able to handle the LogIn activity's result, and attempt
the request again.

On May 4, 10:42 am, Timo Prill timo.pr...@googlemail.com wrote:
 just pass your context over to the utility class via getter/setter or in
 constructor...

Like I said before, I tried this, but the problem is that the activity
result cannot be sent to the utility class, which is what I need.

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

2010-05-04 Thread CMF
Anyone has idea about it?

On May 3, 5:08 pm, CMF manf...@gmail.com wrote:
 Hi all, I have two activities, A and B
 A is a background activity and B is a translucent Open GL activity
 I can see the background when using startActivity() , however when I
 use startActivityForResult, the transparency lost, and the background
 turns black in color
 is it a bug for the android? Or someone has a solution about it?
 Thanks~

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 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] Where to Check for files/data created in emulator?

2010-05-04 Thread TreKing
On Tue, May 4, 2010 at 10:53 AM, dillipk codersnet2...@gmail.com wrote:

  Where can I check for the Dir/ files/ data created in
 Internal Memory/SDCard ?


You may want to clarify this question.

-
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] Access active window from a background service

2010-05-04 Thread Tudor Tihan
Is there a way to access the currently active window belonging to a
different process from a background service and be allowed to modify
some of its properties such as the transparency ?

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

Trygve Aaberge wrote:
FedEx may not have any information. I called them on Friday, and they 
couldn't find a package, but I got it today. So don't get your hopes 
down if you call FedEx, and they don't see a package for you.


I absolutely agree. I called FedEx and gave them all information I could 
think of (including my delivery address, probable sender etc), but they 
couldn't find anything. A few hours later the driver of their local van 
called my mobile phone to report that I wasn't at home and asked how he 
could meet me - 20 minutes later I met him just outside my office (5 
minutes drive really, but I can hardly complain).


Keep your spirits high! / Jonas

PS. A big THANK YOU to all the Android Googlers!
PPS. Keep updating the map: 
http://maps.google.com/maps/ms?ie=UTF8hl=enoe=UTF8msa=0msid=109593402120975111968.0004855b7d8eefa5f649b


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

2010-05-04 Thread moju27
To close this thread, my solution was just to avoid the
SocketChannel on Android 1.6 ...

Android Issue 1523 : Writing to a nonblocking socket fails :
http://code.google.com/p/android/issues/detail?id=1523

Thanks for your help Johan !



On Apr 26, 2:57 pm, Johan Mathe johma...@google.com wrote:
 Did you try to run your code on the emulator runningCupcaketo check
 if it behaves the same way? It's hard to say without more details on
 your code/exception.

 On Apr 26, 10:39 am, moju27 moj...@gmail.com wrote:



  Nothing ?? :(

  On Apr 22, 8:23 pm, moju27 moj...@gmail.com wrote:

   Hello :)

   I'm currently writing an application to communicate with my server app
   which is on a PC on the LAN. I'm using a SocketChannel and it causes
   an IO exception (brokenpipe). The weird and really problematic part
   is that this exception only occurs onCupcake!!!

   To give more details, the exception happens when I'm writing on the
   socket channel. The socket channel says that it's connected / bound,
   everything seems to be correct. Plus I see my client on the server
   side.
   By the way, I use a non blocking socket.

   So, I would be very happy if anyone had a clue regarding this ... I
   couldn't find any help anywhere else.

   Thanks,

   Morgane

   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email 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: Is it possible to start an Activity from a non-context class?

2010-05-04 Thread Matt Kanninen
Yeah thats what I usually do.  I'm also a fan of static methods that
get passed a Context object.  You can also have your application or
activities extend an interface, and have your methods expect that
interface.

The important thing is that your utility code trigger an execution
thread, with access to the right context.


I have a related question.  What are the consequences, and best
practices, of starting activities from a non activity context?  The
documentation says:

http://developer.android.com/reference/android/content/Context.html#startActivity(android.content.Intent)

Note that if this method is being called from outside of an Activity
Context, then the Intent must include the FLAG_ACTIVITY_NEW_TASK
launch flag. This is because, without being started from an existing
Activity, there is no existing task in which to place the new activity
and thus it needs to be placed in its own separate task.

This seems to work, but I'm betting it has some interaction with
http://developer.android.com/guide/topics/manifest/activity-element.html
android:launchMode

but that already confuses me...

-MK


On May 4, 8:42 am, Timo Prill timo.pr...@googlemail.com wrote:
 just pass your context over to the utility class via getter/setter or in
 constructor...

 Am 04.05.2010 17:40, schrieb TreKing:





  On Tue, May 4, 2010 at 2:02 AM, Michael J txaggiemich...@gmail.com
  mailto:txaggiemich...@gmail.com wrote:

      For example, I have an activity that uses a utility class.  I
      would like to be able to start an activity from the utility class
      and have the activity result sent back to the utility class.

  Why are you doing this? What purpose is your utility class serving
  that it requires starting and retrieving data from another activity?

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

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email 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 active window from a background service

2010-05-04 Thread Matt Kanninen
I hope not.

On May 4, 10:10 am, Tudor Tihan tudorti...@gmail.com wrote:
 Is there a way to access the currently active window belonging to a
 different process from a background service and be allowed to modify
 some of its properties such as the transparency ?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email 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] Alarm Clock Settings Invocation?

2010-05-04 Thread Tomáš Hubálek
Hello,

In may application I wan't to invoke Alarm Clock Settings. I'm doing
it in naive way

Intent intent = new Intent();
intent.setClassName(com.android.alarmclock,
com.android.alarmclock.AlarmClock);
startActivity(intent);

This works in almost all phones. But I got a few exception reports
with ActivityNotFoundException.

I fixed it in the way that I'm catching ANFE and displaying message to
user that Standard Android Alarm Clock is Not Presented.

My questions are:
- is there better way how to invoke Alarm Clock settings?
- does anybody has any idea what roms don't contain standard
AlarmClock and what to invoke instead?

Thanks
Tom

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


Re: [android-developers] Re: Is it possible to start an Activity from a non-context class?

2010-05-04 Thread TreKing
On Tue, May 4, 2010 at 11:56 AM, Michael J txaggiemich...@gmail.com wrote:

 In my application, I'm referencing a RESTful web service which
 requires token authentication.  My utility class is simply a utility
 for sending a REST request.  If the request responds with an invalid
 authentication message, I would like the utility to be able to
 initiate a LogIn activity to request a new authentication from the
 user.  Once the LogIn activity has completed, I would like the utility
 class to be able to handle the LogIn activity's result, and attempt
 the request again.


It sounds to me like you're giving this utility class a responsibility it
should not have. If it's purpose is to send requests (and report back
errors) then that's all it should do.

I don't know how you've set up your code, but I would expect a main activity
that is responsible for doing the request using the utility class. If that
fails (which the utility class would report), the calling activity would
then launch the login activity to get the details, which you would get back
in onActivityResult, which the main activity would then pass on to the
utility class to try the request again.

Again, I don't know the details of your code, but I don't see why this class
would need to start and get results from an activity.

-
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: Lots of lost sales due to Credit Card authorization.

2010-05-04 Thread Matt Kanninen
I would suggest you post a thread discussing the issue on Android
Developers, as you have already done.  There is also help and support
for the market application itself, I don't have the link handy.

You can't actually make Google do anything, but it wouldn't surprise
me if this is the sort of thing they have already thought long and
hard about, but their many lawyers and bizdev types will have to
completely grok the problem before anything is done.


On May 4, 9:40 am, Paul idi...@gmail.com wrote:
 Here's a perfect example, just got this one today:

  will not download. It says its purchased but unsuccessful
 downloading. What do I do? (replace  with the name of the app the
 user is trying to download).

 This has to get fixed. All user needs is some notification in Android
 Market to let them know what is going on and how to correct it.

 How do we get Google/Android Market Development team to take care of
 this?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 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] Issue in launching google Map

2010-05-04 Thread TreKing
On Tue, May 4, 2010 at 9:06 AM, Nithin nithin.war...@gmail.com wrote:

 Any Idea why this occurs.


My new favorite site:
http://lmgtfy.com/?q=android+google+maps+directions+intent

-
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: Is it possible to start an Activity from a non-context class?

2010-05-04 Thread Michael J
Yea, I've definitely considered that option.  I suppose my whole
reason for this is to avoid needing to handle an error from the
utility class in each of my activities.

My application is one main TabActivity that contains 4 tabs, each
being it's own activity.  You've made me realize that it might be
possible for me to have the activities request authentication from the
main TabActivity, which would be responsible for starting the login
activity.  In which case I would only need the main TabActivity to
handle the login activity's response.  Does this sound like a logical
design?

Sorry for being an idiot, I'm still trying to get a hold on the
Android framework...

On May 4, 12:25 pm, TreKing treking...@gmail.com wrote:
 On Tue, May 4, 2010 at 11:56 AM, Michael J txaggiemich...@gmail.com wrote:
  In my application, I'm referencing a RESTful web service which
  requires token authentication.  My utility class is simply a utility
  for sending a REST request.  If the request responds with an invalid
  authentication message, I would like the utility to be able to
  initiate a LogIn activity to request a new authentication from the
  user.  Once the LogIn activity has completed, I would like the utility
  class to be able to handle the LogIn activity's result, and attempt
  the request again.

 It sounds to me like you're giving this utility class a responsibility it
 should not have. If it's purpose is to send requests (and report back
 errors) then that's all it should do.

 I don't know how you've set up your code, but I would expect a main activity
 that is responsible for doing the request using the utility class. If that
 fails (which the utility class would report), the calling activity would
 then launch the login activity to get the details, which you would get back
 in onActivityResult, which the main activity would then pass on to the
 utility class to try the request again.

 Again, I don't know the details of your code, but I don't see why this class
 would need to start and get results from an activity.

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


[android-developers] Re: Why isn’t multi-touch wor king for imagebuttons?

2010-05-04 Thread niko20
Hi,

No, it's because the android team decided to implement MultiTouch in a
way that it only can be used on one View. For example, ImageButtons
are views. Each ImageButton is a seperate View object. The Android
multitouch does not just map touches to multiple views like that
(which I think it should, but the android team does not). Instead you
end up having to create a View yourself, and drawing the three buttons
yourself, since multitouch comes to a View as additional touch
coordinates. In other words, you can only use multitouch per view.
It can't spread across multiple views. You basically need to create
one big view object that takes up most of the screen and then draw the
buttons yourself, and then handle the multitouch messages passed to
that view.

Unless there is an easier way that I know of, but I dont think there
is. IMO how they implemented multitouch is too hackish, and should
have been transparent to developers by the system automatically
posting messages to each view that was being touched, instead, you
have to rewrite the apps completely to handle it.

-niko

On May 2, 11:28 am, Codeman codyrotw...@gmail.com wrote:
 I'm using imagebuttons that play sounds using SoundPool. Here is
 example code a couple of the imagebuttons:

 ImageButton Button1 = (ImageButton)findViewById(R.id.sound1);
 Button1.setOnTouchListener(new OnTouchListener() {

         public boolean onTouch(View v, MotionEvent event) {
             if (event.getAction() == MotionEvent.ACTION_DOWN ) {
                 mSoundManager.playSound(1);
                 return false;
             }

             return false;
         }
     });

 ImageButton Button2 = (ImageButton)findViewById(R.id.sound2);
 Button2.setOnTouchListener(new OnTouchListener() {

         public boolean onTouch(View v, MotionEvent event) {
             if (event.getAction() == MotionEvent.ACTION_DOWN ) {
                 mSoundManager.playSound(2);
                 return false;
             }

             return false;
         }
     });

 For some reason, it doesn't allow you to click multiple buttons at the
 same time. Is it because I'm building for 1.6 SDK?

 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: Linkify-ed TextView non-linked text disappears on touch

2010-05-04 Thread westmeadboy
I notice this happens on the Nexus One but not on the HTC Hero (EU
version).

Anyone else experience this?

On May 4, 1:36 am, westmeadboy westmead...@yahoo.co.uk wrote:
 I'm not sure if this is by design but...

 I have a text view (white text on black background) which is
 linkified. If at least one link is created and the user touches on any
 non-linked part of the text, then the non-linked part disappears (or
 turns black, I'm not sure).

 Is there any way to stop this?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 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] Release Notes before application upgrade

2010-05-04 Thread Tomáš Hubálek
Hello,

I noticed that some applications (eg. Vignette) show release notes
before updating to new version. This is BEFORE I click on Update
button so it needs to be somewhere in application descriptor or
somewhere, it is not in application code.

Does anybody have any clue where to put such a information?

Thanks
Tom

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


[android-developers] Problem with characters åäö ÅÄÖ

2010-05-04 Thread jw
Hi,

I'm developing an application for Swedish users, when the user is able
to input some string, sometimes containing ÅÄÖåäö. But when I
run .getText().toString() on my EditText object,I get really strange
characters like ö and ä.

I'm running the 1.5 SDK version, developing on my Nexus One. I'm
reaaly glad for help, since I'm in a little hurry :)

Thanks in advance!

/J

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

2010-05-04 Thread Abhi
Aman,

Do this to let user pick a video

Intent i = new Intent(Intent.ACTION_PICK);
i.setType(video/*);
startActivityForResult(i, PICK_VIDEO);

and in onActivityResult look for the request code 'PICK_VIDEO' and
pass along the URI of the selected video to another activity this way:

Uri data = intent.getData();

if (data != null) {

Intent i = new Intent(this, YourVideoPlayer.class);
i.setData(data);
startActivity(i);

}

Hope that helps

Abhi



On May 4, 8:27 am, SheikhAman shekh.a...@gmail.com wrote:
 I am using a VideoView to play videos.
 it works smoothly.

 with only one problem. i am able to provide path of video with this
 way-

 Uri uri = Uri.parse(android.resource://com.abc.def/+ R.raw.vid);
 video.setVideoURI(uri);
 video.start();

 but this is not what i want.
 i want it to take the path dynamically, so that i can tell it the path
 according to the user selection.

 any suggestions??

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 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] Problem updating widget in emulator

2010-05-04 Thread Kostya Vasilyev

Hi,

I have a simple widget that sets up its appearance during the initial  
update.


This involves using RemoteViews:

updateViews.setImageViewResource(R.id..., R.drawable);
updateViews.setViewVisibility(R.id..., View.);

The widget's onUpdate method is the usual stuff:

for (int i = 0; i  N; i++) {
int appWidgetId = appWidgetIds[i];

RemoteViews updateViews = buildUpdate(context);
appWidgetManager.updateAppWidget(appWidgetId, updateViews);
}

Somehow, on the emulator, both in 1.6 and 2.1, this code gets called, but  
the widget's views never get updated.


The code works fine on the HTC Hero 1.5.

I converted the layout to avoid using AbsoluteLayout and using FrameLayout  
instead.


Evrything looks good to me, and still, no updates. Any thoughts on this?

Thanks,
-- Kostya Vasilyev

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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-05-04 Thread Zack
Got my N1 today in Oslo Norway  :)
Awesome phone, thanks Google.



On 3 Mai, 17:43, heedrox heed...@gmail.com wrote:
 TreKing: for those of us (including me) that have not received the N1,
 I think we still would like to hear ocasionally the sentence N1
 received in... so as we can see that N1s are still being sent, and
 ours will arrive (soon?).

 I don't know if I'll have to wait one week or three or six more, but I
 will get very nervous if I don't see movement in this list, and I
 would feel very alone in this whole universe...

 Hope you understand. 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: Google should prohibit task killers on Android Market

2010-05-04 Thread Eric F
On May 3, 11:59 pm, mort m...@sto-helit.de wrote:

 And what's wrong with resource consuming? I coud cache several MB of
 data in a non-running service, it wouldn't matter. Android would just
 kick it if the memory's required, and the service would just reload
 the data when it's restarted.
 It's similar with CPU usage. If your service happens to do something
 in the instance the task killer loads it, it'll be killed, even if it
 only does that on certain events or once a day? And some services just
 need to do more than others...
 Besides, most task managers only show the main application, not the
 service. So CPU usage alway is 0, and memory usage, as said, doesn't
 really matter.

I don't think it's necessarily right to say there's nothing wrong
with consuming a huge amount of memory if you're sleeping, because the
low memory killer can just remove you.

It's been my experience that the user's experience on the phone is
largely correlated with memory and not CPU usage. When I am flipping
between activities, stuff feels significantly less responsive as I see
the GC run. Also, obviously if an activity has dropped out of memory
because of the low memory killer and it needs to be recreated there's
going to be slowdown.

So for some service that is sleeping, but still in memory consuming a
large amount of RAM, you can only make the claim that it is harmless
if it doesn't cause extra GC in the foreground apps and also doesn't
cause a situation where some activity was killed by the low memory
killer instead of the service. Which I don't think is a claim you can
make about a resource intensive service that is just sleeping but not
stopped. Maybe Dianne could comment on that, maybe I'm wrong. But it
seems to me that you can't guarantee that more activities wouldn't be
able to fit in memory if the service was actually gone.

Also, I didn't know that the application stop caused alarmmanager to
unschedule the app, that certainly makes the use of it almost
certainly not what the user wants. Perhaps it needs to stay in the API
to maintain compatibility, but it can cause a pop up with an extra
disclaimer. Kind of like .apk installs can only be initiated and not
completed without interaction with the platform.

-E

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Where to Check for files/data created in emulator?

2010-05-04 Thread dillipk
Where would I find the dir/files/data created by the application/user
both in EMULATOR and in Real Device? It applies to both internal 
external memory.

I am using Eclipse with Google API Level 6.

Thanks,
-DK

On May 4, 1:05 pm, TreKing treking...@gmail.com wrote:
 On Tue, May 4, 2010 at 10:53 AM, dillipk codersnet2...@gmail.com wrote:
   Where can I check for the Dir/ files/ data created in
  Internal Memory/SDCard ?

 You may want to clarify this question.

 -
 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] Problem with characters å äöÅÄÖ

2010-05-04 Thread Jonas Petersson

Hi jw,

jw wrote:

I'm developing an application for Swedish users, when the user is able
to input some string, sometimes containing 拍皱漩. But when I
run .getText().toString() on my EditText object,I get really strange
characters like 枚 and 盲.


That's just normal UTF-8 encoding examined as ISO8859-x. You need to 
consider encoding when you examine your results, but generally speaking 
UTF-8 is the way to go. Any old ISO mapping is bound to cause problems.


Good luck / Jonas

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Where to Check for files/data created in emulator?

2010-05-04 Thread dillipk
Where can I browse for dir/files/data created by user/applications
both in Emulator and real device? It applies to both internal 
external memory.

What is the default path of internal memory where user will be able to
create its own file/dir etc..

Thanks,
-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: Where to Check for files/data created in emulator?

2010-05-04 Thread Tudor Tihan
Have you tried Eclipse's DDMS perspective and its File Explorer view?

You can select in the Devices view the device which you want to
explore (emulators are listed there too) and the File Explorer view
will show you
all accesible files/dirs, including sdcard. You can download/upload
using this view's buttons. What user data are you talking about?

On May 4, 8:55 pm, dillipk codersnet2...@gmail.com wrote:
 Where would I find the dir/files/data created by the application/user
 both in EMULATOR and in Real Device? It applies to both internal 
 external memory.

 I am using Eclipse with Google API Level 6.

 Thanks,
 -DK

 On May 4, 1:05 pm, TreKing treking...@gmail.com wrote:



  On Tue, May 4, 2010 at 10:53 AM, dillipk codersnet2...@gmail.com wrote:
    Where can I check for the Dir/ files/ data created in
   Internal Memory/SDCard ?

  You may want to clarify this question.

  -
  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 
 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] Release Notes before application upgrade

2010-05-04 Thread TreKing
2010/5/4 Tomáš Hubálek tom.huba...@gmail.com

 Does anybody have any clue where to put such a information?


On a server?

-
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] Problem with characters å äöÅÄÖ

2010-05-04 Thread Jonas Petersson

Jonas Petersson wrote:

jw wrote:

I'm developing an application for Swedish users, when the user is able
to input some string, sometimes containing 拍皱漩. But when I
run .getText().toString() on my EditText object,I get really strange
characters like 枚 and 盲.


That's just normal UTF-8 encoding examined as ISO8859-x. You need to 
consider encoding when you examine your results, but generally speaking 
UTF-8 is the way to go. Any old ISO mapping is bound to cause problems.


Heh, speaking of the devil... I certainly SENT that message with 
charset=ISO-8859-1; in the header, but when it came back from the list 
the header was helpfully replaced with charset=GB2312.


Please, can we just kill ISO* once and for all? ;-)

(I certainly mean Xuan no harm, wrinkled or not!)

Best / Jonas

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Where to Check for files/data created in emulator?

2010-05-04 Thread dillipk
Thanks I found that.

 How do I create a dir/file in internal memory programmatically? What
are the uses permissions I need to set up if required?

Thank you..

-DK

On May 4, 2:04 pm, Tudor Tihan tudorti...@gmail.com wrote:
 Have you tried Eclipse's DDMS perspective and its File Explorer view?

 You can select in the Devices view the device which you want to
 explore (emulators are listed there too) and the File Explorer view
 will show you
 all accesible files/dirs, including sdcard. You can download/upload
 using this view's buttons. What user data are you talking about?

 On May 4, 8:55 pm, dillipk codersnet2...@gmail.com wrote:



  Where would I find the dir/files/data created by the application/user
  both in EMULATOR and in Real Device? It applies to both internal 
  external memory.

  I am using Eclipse with Google API Level 6.

  Thanks,
  -DK

  On May 4, 1:05 pm, TreKing treking...@gmail.com wrote:

   On Tue, May 4, 2010 at 10:53 AM, dillipk codersnet2...@gmail.com wrote:
 Where can I check for the Dir/ files/ data created in
Internal Memory/SDCard ?

   You may want to clarify this question.

   -
   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 
  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: Problem with characters å äöÅÄÖ

2010-05-04 Thread jw
Thank you for your quick response.

Well, then how do I do that? I've been trying different approaches but
I can't seem to get the text as a string with äåö. Do you now how I
can do that? (I should add that this thing with encodings isn't my
specialty).

Very thankful for your ideas.

/J

On May 4, 7:57 pm, Jonas Petersson jonas.peters...@xms.se wrote:
 Hi jw,

 jw wrote:
  I'm developing an application for Swedish users, when the user is able
  to input some string, sometimes containing 拍皱漩. But when I
  run .getText().toString() on my EditText object,I get really strange
  characters like 枚 and 盲.

 That's just normal UTF-8 encoding examined as ISO8859-x. You need to
 consider encoding when you examine your results, but generally speaking
 UTF-8 is the way to go. Any old ISO mapping is bound to cause problems.

                 Good luck / Jonas

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email 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] Create Bitmap from byte[]

2010-05-04 Thread dillipk
Hello,
  How do I create a Bitmap from a byte[] ?

Thanks in advance..

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


Re: [android-developers] Release Notes before application upgrade

2010-05-04 Thread Tomáš Hubálek
In Android Developer Console?

On May 4, 2010 8:09 PM, TreKing treking...@gmail.com wrote:

2010/5/4 Tomáš Hubálek tom.huba...@gmail.com

 Does anybody have any clue where to put such a information?


On a server?

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

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

[android-developers] Re: Problem with characters å äöÅÄÖ

2010-05-04 Thread jw
I responded just before you did, I hope you didn't miss my post.

Thank you for your quick response.

Well, then how do I do that? I've been trying different approaches but
I can't seem to get the text as a string with äåö. Do you now how I
can do that? (I should add that this thing with encodings isn't my
specialty).

Very thankful for your ideas.

/J

On May 4, 8:11 pm, Jonas Petersson jonas.peters...@xms.se wrote:
 Jonas Petersson wrote:
  jw wrote:
  I'm developing an application for Swedish users, when the user is able
  to input some string, sometimes containing 拍皱漩. But when I
  run .getText().toString() on my EditText object,I get really strange
  characters like 枚 and 盲.

  That's just normal UTF-8 encoding examined as ISO8859-x. You need to
  consider encoding when you examine your results, but generally speaking
  UTF-8 is the way to go. Any old ISO mapping is bound to cause problems.

 Heh, speaking of the devil... I certainly SENT that message with
 charset=ISO-8859-1; in the header, but when it came back from the list
 the header was helpfully replaced with charset=GB2312.

 Please, can we just kill ISO* once and for all? ;-)

 (I certainly mean Xuan no harm, wrinkled or not!)

                         Best / Jonas

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email 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: Is it possible to start an Activity from a non-context class?

2010-05-04 Thread TreKing
On Tue, May 4, 2010 at 12:35 PM, Michael J txaggiemich...@gmail.com wrote:

 Does this sound like a logical design?


I haven't used Tabs, but from your description, yes. And it would surely be
better than what you were trying to do in the beginning.


 Sorry for being an idiot, I'm still trying to get a hold on the Android
 framework...


No apologies necessary - we're all here to learn.

-
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] How to narrow down the method that is involved in exception from the pid

2010-05-04 Thread adag
Hello,

I was getting IllegalStateException caused by the cursor. The logcat
is as follows:
Ljava/lang/IllegalStateException;: Finalizing cursor
android.database.sqlite.sqlitecur...@437c0e60 on null that has not
been deactivated or closed

I/dalvikvm( 585): at
android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)

I/dalvikvm( 585): at dalvik.system.NativeStart.run(Native Method)

I/dalvikvm( 585): Uncaught exception thrown by finalizer (will be
discarded):

I understand the 585 is PID but I have used many cursor which I have
taken care off properly. But may one among those is giving this
exception. I was unable to narrow down to particular portion in the
code from this exception.

Could anybody help me to know, how could I understand which cursor /
line of code , from the error that I see in the logcat

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

2010-05-04 Thread TreKing
2010/5/4 Tomáš Hubálek tom.huba...@gmail.com

 In Android Developer Console?


In the app description?

You've lost me. I'm really not sure what you're asking anymore.

-
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

  1   2   >