[android-developers] LD_LIBRARY_PATH ignored on Android sometimes

2012-10-16 Thread Simone Margaritelli
Hi there, i have an android app which spawns many native executables 
dinamically linked with libraries i distribute with the package. To launch 
those binaries, i use the LD_LIBRARY_PATH environment variable to make them 
aware of the place to load the libraries from, but on some devices this 
doesn't work at all, the LD_LIBRARY_PATH is correctly updated but the 
binary fails to find the library anyway. This is not something i can 
reproduce because on my two devices ( Galaxy Nexus  Nexus 7 with stock 
roms ) it just works fine.

I tried many ways, for instance i spawn:

Code:

LD_LIBRARY_PATH=/my/package/custom/libs:$LD_LIBRARY_PATH  cd 
/binary/directory  ./binary

And :

Code:

String[] envp = { LD_LIBRARY_PATH= + libPath + :$LD_LIBRARY_PATH };

Process process = Runtime.getRuntime().exec( su, envp );

writer = new DataOutputStream( process.getOutputStream() );
reader = new BufferedReader( new InputStreamReader( process.getInputStream() ) 
);

writer.writeBytes( export LD_LIBRARY_PATH= + libPath + :$LD_LIBRARY_PATH\n 
);
writer.flush();

But on those devices nothing seemed to work ... so i'm starting to think 
that this is a kernel related issue, some kernels ( like mine ) use the 
LD_LIBRARY_PATH, other kernels don't ( simply ignore it, or they're using 
just the LD_LIBRARY_PATH that was set on application startup, therefore 
there's no way to change it at runtime ).

I also tried to use System.load but it didn't work, probably because those 
libs are not JNI ... is there something i could try before starting to 
think about using statically linked binaries ?

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

[android-developers] Long Click on ListActivity item

2010-10-16 Thread Simone
I'll be brief. I have a ListActivity that uses a custom Adapter
implementing BaseAdapter.
When I perform a click on an object, the method
ListActivity.onListItemClick() gets executed.
Is there a way to execute a different portion of code when I perform a
LONG click on an item?
Thanks,
Simone

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

2010-10-16 Thread Simone
Thanks to both of you, it looks like I missed those methods.
Regards,
Simone

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


[android-developers] setImageViewResource not working

2010-09-19 Thread Simone
I have a simple widget (whose entire layout is just an ImageView) that
starts and stops a service. From within the service, I'd like to
switch the image displayed by such ImageView.
So, i did this:

public int onStartCommand(Intent intent, int flags, int startId){
RemoteViews remoteViews = new RemoteViews(getPackageName(),
R.layout.main);
remoteViews.setImageViewResource(R.id.imgView, R.drawable.image1);

...
...

return START_STICKY;
}

and

public void onDestroy(){
RemoteViews remoteViews = new RemoteViews(getPackageName(),
R.layout.main);
remoteViews.setImageViewResource(R.id.imgView, R.drawable.off);

...
...
}

But it doesn't work.  onStartCommand and onDestroy are called, but the
image doesn't change.
What gives?
Simone

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

2010-09-19 Thread Simone
How can I retrieve the correct appWidgetId from inside the service?

On 19 Set, 22:30, YuviDroid yuvidr...@gmail.com wrote:
 Ciao Simone,

 probably it's stupid to ask this, but just to be sure: have you called
 updateAppWidget() after setting the RemoteViews object? Like this:

 appWidgetManager.updateAppWidget(appWidgetId, remoteViews);

 Yuvi



 On Sun, Sep 19, 2010 at 4:57 PM, Simone simone.russ...@gmail.com wrote:
  I have a simple widget (whose entire layout is just an ImageView) that
  starts and stops a service. From within the service, I'd like to
  switch the image displayed by such ImageView.
  So, i did this:

  public int onStartCommand(Intent intent, int flags, int startId){
         RemoteViews remoteViews = new RemoteViews(getPackageName(),
  R.layout.main);
         remoteViews.setImageViewResource(R.id.imgView, R.drawable.image1);

         ...
         ...

         return START_STICKY;
  }

  and

  public void onDestroy(){
         RemoteViews remoteViews = new RemoteViews(getPackageName(),
  R.layout.main);
         remoteViews.setImageViewResource(R.id.imgView, R.drawable.off);

         ...
         ...
  }

  But it doesn't work.  onStartCommand and onDestroy are called, but the
  image doesn't change.
  What gives?
  Simone

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

 --
 YuviDroid
 Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
 quickly access your favorite apps and contacts!)http://android.yuvalsharon.net

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

2010-09-19 Thread Simone
Hey, thank you very much, I solved it this way though:

appWidgetManager.updateAppWidget(new
ComponentName(getApplicationContext(), MyWidget.class), remoteViews);

Simone

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


[android-developers] flashing element in ArrayAdapter

2010-09-12 Thread Simone
I have an ArrayAdapter in my activity, and when a certain event occur,
I'd like to make a specific element flash, or have it highlighted in
some way for a couple of seconds.
Is there a way to do that?
Thanks,
Simone

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

2010-09-12 Thread Simone
My class already extends ArrayAdapter.
I was just wondering how can I retrieve a list of all the Views
contained in the adapter, or if I had to keep track of them myself.

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

2010-09-12 Thread Simone
Allright, I solved it.
I made it so that the array adapter contains the list of the Views,
and the getView() method simply returns list.get(position).
I make the View flash by switching its visibility between VISIBLE and
INVISIBLE for a second every 100ms, and it looks pretty decent.
Thanks
Simone

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

2010-09-12 Thread Simone
Well, the view isn't long (average 5 elements, maximum 20).
What do you suggest?

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

2010-09-12 Thread Simone
I meat the list of course, not view :D

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


[android-developers] Re: flashing element in ArrayAdapter

2010-09-12 Thread Simone
Ok, thanks. But I can say for sure that the list is not gonna be 2000
items long ;)
Simone

On 12 Set, 19:00, Mark Murphy mmur...@commonsware.com wrote:
 On Sun, Sep 12, 2010 at 12:52 PM, Simone simone.russ...@gmail.com wrote:
  Well, the view isn't long (average 5 elements, maximum 20).
  What do you suggest?

 Other than rethink your approach, I don't have a suggestion off the
 top of my head. I'm just telling you that if your maximum goes from 20
 to 2000, and the user scrolls to the bottom, you're going to have
 memory problems.

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

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

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


[android-developers] problem with accented letters

2010-09-10 Thread Simone
I fill a TextView like this:

TextView instructions=(TextView)
findViewById(R.id.batteryInstructionsText);

try {
InputStream instrStr=res.openRawResource(R.raw.instructionsfile);
byte [] text=new byte[580];
int i=instrStr.read(text);
instructions.setText(new String(text).substring(0, i));
} catch (Exception e) {
instructions.setText(res.getString(R.string.instrerror));
}

The problem is that instead of accented letters (à, è, é, ù, ò..) a
question mark is displayed.
How can I solve this?
Simone

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

2010-09-10 Thread Simone
Thank you so much, that helped a lot.
The substring() call was just temporary, but thanks anyway ;)
Simone
p.s. the language was Italian :D

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


[android-developers] EditText in a simple Activity

2010-09-10 Thread Simone
I've got a simple activity layout wich contains a couple of EditText
elements.
Everything works ok, but the only problem is that when I open this
activity, the Android keyboard is opened automatically as well, ready
to take input for the first of the two EditTexts.
Is there a way to avoid this?
Thanks,
Simone

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

2010-09-10 Thread Simone
Thanks, I'll give it a try.
Simone

On 10 Set, 20:48, TreKing treking...@gmail.com wrote:
 On Fri, Sep 10, 2010 at 11:56 AM, Simone simone.russ...@gmail.com wrote:
  Is there a way to avoid this?

 Try setting focus to something else. Beyond that, I think I've seen this
 asked before, search the group for soft keyboard focus and / or
 InputManager (I think that's what it's called). There some way to control
 the soft keyboard through that.

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

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


[android-developers] Re: EditText in a simple Activity

2010-09-10 Thread Simone
I solved it with this:

android:windowSoftInputMode=stateHidden

Thanks again
Simone

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


[android-developers] [OpenGL ES] 2D controls over 3D world

2010-06-20 Thread Simone
Hi, I created a 3D world, and I managed to draw 2D overlay controls
(as in a game) over it.
I did it with this:

public void onDrawFrame(GL10 gl) {
   //some 3d draws and transformations here

   gl.glMatrixMode(GL10.GL_PROJECTION);
gl.glPushMatrix();
gl.glLoadIdentity();
GLU.gluOrtho2D(gl, 0, WIDTH, 0, HEIGHT);

gl.glMatrixMode(GL10.GL_MODELVIEW);
gl.glPushMatrix();
gl.glLoadIdentity();
square1.draw(gl);
square2.draw(gl);
gl.glPopMatrix();

gl.glMatrixMode(GL10.GL_PROJECTION);
gl.glPopMatrix();
gl.glMatrixMode(GL10.GL_MODELVIEW);
...
}

Since I don't like it one bit, is there a more efficent (and elegant)
way to do it?
Thanks
Simone

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

2010-06-17 Thread Simone
Thank you SO much, it's just what I needed.
Awesome tutorial.
Simone

On 16 Giu, 23:40, Max Gilead max.gil...@gmail.com wrote:
 I'd suggest going with some basic tutorial 
 likehttp://insanitydesign.com/wp/projects/nehe-android-ports/and building on
 what you learn, modifying code little step by step so you're always a couple
 of Ctrl-Zs from a working version.
 Max

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


[android-developers] blank screen with opengl

2010-06-16 Thread Simone
I got this, to show a rectangle:

private float[] sCoords = {
// X, Y, Z
 GameRenderer.W/3, GameRenderer.H/3, 0,
 GameRenderer.W/3,  20f, 0,
 30f,  20f, 0,
 30f, GameRenderer.H/3, 0
};

...

gl.glVertexPointer(3, GL10.GL_FLOAT, 0, mFVertexBuffer);
gl.glEnable(GL10.GL_TEXTURE_2D);
gl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, mTexBuffer);
gl.glDrawElements(GL10.GL_TRIANGLE_FAN, VERTS,
GL10.GL_UNSIGNED_SHORT, mIndexBuffer);

and previously:

public void onSurfaceChanged(GL10 gl, int w, int h) {
   gl.glViewport (0, 0,  w, h);
   gl.glMatrixMode (GL10.GL_PROJECTION);
   gl.glLoadIdentity ();
   gl.glOrthox(0, w, 0, h, -1, 1);
   W=w;
   H=h;
   rect = new Rectangle();
}


I should see a rectangle, but I only see a white screen.
Any help?
Simone

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

2010-06-16 Thread Simone
Hi, I solved the first problem by using gl.glOrthof(0, w, 0, h, -1,
1); instead of gl.glOrthox(0, w, 0, h, -1, 1);
Now it shows a black rectangle, so no textures. I think it could be
because the texture is too large, right?
Simone

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


[android-developers] Call start time

2010-06-07 Thread Simone
I need to know the time of calls start.
I have extended PhoneStateListener and done this:

public void onCallStateChanged (int state, String incomingNumber){
if(state==TelephonyManager.CALL_STATE_OFFHOOK)
start=System.currentTimeMillis();
}

But this gets the time of when I push the call button, while I need
the time of when the other phone answers.
Is there a way to do that?
Thanks
Simone

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


[android-developers] Open the detail page of an application

2010-06-01 Thread Simone
I'd like to open the detail page of my application from the lite
version of it.
I did something like this:

Uri.Builder builder=new Uri.Builder();
builder.path(market://details?id=package.mygame);

Uri data=builder.build();

i.setAction(Intent.ACTION_VIEW);
i.setData(data);

How do I open the market now?
Thanks
Simone

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

2010-06-01 Thread Simone
Yeah it didn't work!
But this worked:

i = new Intent( Intent.ACTION_VIEW,
Uri.parse(market://details?id=games.joedodger));
startActivity(i);

Thanks anyway!
Simone

On 1 Giu, 20:33, TreKing treking...@gmail.com wrote:
 On Tue, Jun 1, 2010 at 1:16 PM, Simone simone.russ...@gmail.com wrote:
  How do I open the market now?

 Assuming i is an intent, just call startActivity() with it.

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


[android-developers] make your application multimedial

2010-05-22 Thread Simone
Hi, I need for my application to be recognized as multimedial.
In particular, I want that if the user sets the volume, it's the
volume of multimedia applications, and not the one of the ring.
Thanks
Simone

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: I can't find my own application in the market

2010-05-16 Thread Simone
Nope, my application uses 1.6, and I have not restricted the app
region nor
my phone is rooted.
Here you can find the QR core of my application (it's free):
http://www.androlib.com/android.application.applications-fartfactory-DwjC.aspx
Thanks again,
Simone

On 16 Mag, 10:34, Martrinex ad...@martrinex.net wrote:
 What did you search for maybe one of us can find it?
 Try searching for pname:your full package name

 If you limited the apps region and you phone is from a different area
 it won't show.
 Acer Liquid should be and1.6 if your application uses a higher sdk
 then 5 it won't show.
 If your phone is rooted and you selected use copy protection is also
 shouldn't show.

 On May 15, 7:37 pm, Simone simone.russ...@gmail.com wrote:

  I just bought an Acer Liquid today, and of course the first
  application I looked for in the market was my own.
  I couldn't find it.
  What gives?
  Thanks,
  Simone

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email 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: I can't find my own application in the market

2010-05-16 Thread Simone
Ok I'll try that, thanks.

On 16 Mag, 14:49, moneytoo m...@seznam.cz wrote:
 Turn off copy protection.

 On May 15, 8:37 pm, Simone simone.russ...@gmail.com wrote:

  I just bought an Acer Liquid today, and of course the first
  application I looked for in the market was my own.
  I couldn't find it.
  What gives?
  Thanks,
  Simone

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email 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: I can't find my own application in the market

2010-05-16 Thread Simone
It worked! How comes turning off that lets me find it?

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


[android-developers] Re: I can't find my own application in the market

2010-05-16 Thread Simone
oh god..

On 17 Mag, 01:22, Edward  Falk ed.f...@gmail.com wrote:
 On May 16, 2:29 pm, Simone simone.russ...@gmail.com wrote:

  It worked! How comes turning off that lets me find it?

 I've never heard of an Acer Liquid before.  I'm guessing that neither
 has the Android Market.

 Part of the way copy protection works is by only allowing approved
 devices to access copy-protected applications.  If the firmware on
 your device hasn't been vetted by Google, it won't be allowed to see
 copy-protected apps.

 This happened with the HTC Eris a few months ago.  A new version of
 the software was pushed without coordinating with Google first.  For a
 week or so, Eris owners couldn't access copy-protected apps on the
 market.

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

2010-05-15 Thread Simone
Is it possible for me to add this feature in my game? I just need a
little storage space somewhere on the internet to put the names and
scores of the best players.
Anyone?
Simone

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


[android-developers] I can't find my own application in the market

2010-05-15 Thread Simone
I just bought an Acer Liquid today, and of course the first
application I looked for in the market was my own.
I couldn't find it.
What gives?
Thanks,
Simone

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


[android-developers] testing applications on non developer's-devices

2010-05-14 Thread Simone
Is there a way to do 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: testing applications on non developer's-devices

2010-05-14 Thread Simone
I don't know, I don't have an android device yet but I need one to
test my game before releasing it.
I was wondering if I had to buy the android device with android 1.6 on
it, or if I could just take any device I wanted.
I don't know how the whole thing works, that's it ;)
Thanks
Simone

On 14 Mag, 10:59, plusminus stoeps...@gmx.de wrote:
 Why should that not work?

 On 14 Mai, 10:56, Simone simone.russ...@gmail.com wrote:

  Is there a way to do 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 
  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: testing applications on non developer's-devices

2010-05-14 Thread Simone
LOL if I can do that I don't see the point of developer phones in the
first place :D
One last question: how do I do that? Do I just plug the phone in and
tell Eclipse to
upload the apk there instead of launching the emulator?
Thanks again,
Simone

On 14 Mag, 11:09, Carlos Silva r3...@r3pek.org wrote:
 Buy anyone you want :)



 On Fri, May 14, 2010 at 10:07, Simone simone.russ...@gmail.com wrote:
  I don't know, I don't have an android device yet but I need one to
  test my game before releasing it.
  I was wondering if I had to buy the android device with android 1.6 on
  it, or if I could just take any device I wanted.
  I don't know how the whole thing works, that's it ;)
  Thanks
  Simone

  On 14 Mag, 10:59, plusminus stoeps...@gmx.de wrote:
   Why should that not work?

   On 14 Mai, 10:56, Simone simone.russ...@gmail.com wrote:

Is there a way to do 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.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 
 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: testing applications on non developer's-devices

2010-05-14 Thread Simone
Thanks Carlos!

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

2010-05-02 Thread Simone
Ohhh ok thanks, at least I know now ;)
Simone

On 2 Mag, 06:32, David Turner di...@android.com wrote:
 The emulator simply doesn't support vibrator emulation at this point, sorry.



 On Sat, May 1, 2010 at 9:54 PM, Simone simone.russ...@gmail.com wrote:
  I have a simple problem: I make a simple call to Vibrator.vibrate(long
  time);, but in the logcat I don't see anything related to it. How can
  I test if the vibration works using the emulator?
  Thanks
  Simone

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

2010-05-02 Thread Simone
Just a couple of questions. If I buy the droid incredible, would I be
able to:
-use it in Italy
-run my applications on it
Thanks
Simone

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


[android-developers] vibrator and emulator

2010-05-01 Thread Simone
I have a simple problem: I make a simple call to Vibrator.vibrate(long
time);, but in the logcat I don't see anything related to it. How can
I test if the vibration works using the emulator?
Thanks
Simone

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 monitor the activities launching in real time, so I can count how many times it has been launched?

2010-04-06 Thread Simone Russo
You can use the preferences to store an int value and increment it by one
every time the onCreate() is executed
Simone

On Tue, Apr 6, 2010 at 12:37 PM, lei eirst...@gmail.com wrote:

 how to monitor the activities launching in real time, so I can count
 how many times it has been launched? ActivityManager somehow can do
 the similar work, but it is not on real time. would you help me? (i.e
 i had a background service running, it can detect when an activity has
 been launched, so it can record how many times this activity has been
 launched by user)

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


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

2010-04-05 Thread Simone
Allright, I'll give it a try, thanks
Simone

On 5 Apr, 08:43, ani anish198519851...@gmail.com wrote:
 You can use audiomanager apis to do what you are trying to do...

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


[android-developers] AudioTrack in streaming mode

2010-04-04 Thread Simone
Hi everyone, I need to modify the volume of an AudioTrack, while it is
playing a sound in streaming mode.
I have something like this:

minBufSize=AudioTrack.getMinBufferSize(11025,
AudioFormat.CHANNEL_OUT_STEREO, AudioFormat.ENCODING_PCM_16BIT);
fSound=new AudioTrack(
AudioManager.STREAM_MUSIC,
11025,
AudioFormat.CHANNEL_OUT_STEREO,
AudioFormat.ENCODING_PCM_16BIT,
minBufSize,
AudioTrack.MODE_STREAM
);


sample=this.getApplicationContext().getResources().openRawResource(R.raw.longfart);
b=new byte[minBufSize];
fSound.play();

fSound.setPlaybackRate(11025/2 + 11025*(yPos+187)/(2*187));
fSound.setStereoVolume( volume, volume);
try {
c=sample.read(b, 0, b.length);
} catch (IOException e1) {
}
while(c!=-1){
fSound.write(b, 0, c);
try {
c=sample.read(b, 0, 
b.length);
} catch (IOException e) {

}
}


This works ok and plays the whole song (it's just a few seconds).
What I want to do is allow the user to change the volume while the
stream is being played. Can it be done?
Thanks
Simone

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


[android-developers] change colors in an AnalogClock

2010-04-02 Thread Simone
Hi, I was wondering if it was possible to change the color of the
minute and hour hands of an AnalogClock.
Thanks
Simone

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


[android-developers] Re: storing an array of objects

2010-04-02 Thread Simone
Ouch, I realized Serialization wouldn't do the trick, and recreating
timers wouldn't either.
I need to reference the exact timer I created in a previous execution
of the application, in order to be able to cancel it, for example.
How can I do that?
Thanks
Simone

On 31 Mar, 21:18, A1programmer derrick.simp...@gmail.com wrote:
 Why don't you just recreate the timers with the same values you used
 to create them with ?  It's much easier to persist strings, such as
 the name, etc.

 On Mar 31, 12:02 pm, Simone simone.russ...@gmail.com wrote:

  Hi, I have an array of 5 Timer objects in my app, some of wich have
  been scheduled with a TimerTask.
  I need to be able to store and load these 5 Timers; is there a way to
  save Objects? Maybe storing the address of the array would be enough?
  How could I do that?
  Thanks
  Simone

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


[android-developers] saving the reference to an object

2010-04-02 Thread Simone
Hi, I have a Timer in my application, and would like to allow the user
to set the timer, and maybe cancel it in another execution of the
application.
To do that, I need to have a reference to the Timer created in the
first execution. How can I obtain that?
Is there a way of storing/retrieving memory addressed?
Thanks
Simone

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


Re: [android-developers] saving the reference to an object

2010-04-02 Thread Simone Russo
mmm, I think I have to use the Handler class, am I right?
Simone

On Fri, Apr 2, 2010 at 10:27 PM, Simone simone.russ...@gmail.com wrote:

 Hi, I have a Timer in my application, and would like to allow the user
 to set the timer, and maybe cancel it in another execution of the
 application.
 To do that, I need to have a reference to the Timer created in the
 first execution. How can I obtain that?
 Is there a way of storing/retrieving memory addressed?
 Thanks
 Simone

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


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

2010-04-01 Thread Simone Russo
That is what I was gonna do ;)
Simone

On Thu, Apr 1, 2010 at 4:58 PM, Kumar Bibek coomar@gmail.com wrote:

 You can extend the Timer classes and implement the Serializable
 interface to achieve serialization.

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

 On Apr 1, 12:01 pm, ko5tik kpriblo...@yahoo.com wrote:
  On Mar 31, 6:42 pm, Kumar Bibek coomar@gmail.com wrote:
 
   You can serialize these objects, store it in files and retrieve it.
   Read up some articles on Serialization in Java.
 
  If they are Serializable  - yes. But this is not suitable for long
  term storage or
  transfer to other destinations.  What is FQN of those timer objects?
  ( BTW, java.util.Timer is NOT serializable, so you will need some data
  binding)

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


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

[android-developers] storing an array of objects

2010-03-31 Thread Simone
Hi, I have an array of 5 Timer objects in my app, some of wich have
been scheduled with a TimerTask.
I need to be able to store and load these 5 Timers; is there a way to
save Objects? Maybe storing the address of the array would be enough?
How could I do that?
Thanks
Simone

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


Re: [android-developers] Re: storing an array of objects

2010-03-31 Thread Simone Russo
Uhm ok, thank you for the tip.
Simone

On Wed, Mar 31, 2010 at 6:42 PM, Kumar Bibek coomar@gmail.com wrote:

 You can serialize these objects, store it in files and retrieve it.
 Read up some articles on Serialization in Java.

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

 On Mar 31, 9:02 pm, Simone simone.russ...@gmail.com wrote:
  Hi, I have an array of 5 Timer objects in my app, some of wich have
  been scheduled with a TimerTask.
  I need to be able to store and load these 5 Timers; is there a way to
  save Objects? Maybe storing the address of the array would be enough?
  How could I do that?
  Thanks
  Simone

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


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

2010-03-29 Thread Simone
I was considering buying it, is it as good as the Nexus One? Wich
features does it lack?
Thanks
Simone

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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] Vibrator.vibrate() makes the application crash

2010-03-29 Thread Simone
Hi, I need in my application to make the device vibrate during the
playback of a sound.
I did something like this:

Vibrator
vibrator=(Vibrator)context.getSystemService(Context.VIBRATOR_SERVICE);
...
vibrator.vibrate(mp.getDuration());

but it makes the application crash. What am I doing wrong? Does the
emulator support the vibration?
Thanks
Simone

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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


Re: [android-developers] Vibrator.vibrate() makes the application crash

2010-03-29 Thread Simone Russo
I did this:

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

But it still won't work. What gives?
Simone

On Mon, Mar 29, 2010 at 9:33 PM, Dan Sherman impact...@gmail.com wrote:

 Make sure you have the vibrate permission in your manifest.

 - Dan


 On Mon, Mar 29, 2010 at 1:31 PM, Simone simone.russ...@gmail.com wrote:

 Hi, I need in my application to make the device vibrate during the
 playback of a sound.
 I did something like this:

 Vibrator
 vibrator=(Vibrator)context.getSystemService(Context.VIBRATOR_SERVICE);
 ...
 vibrator.vibrate(mp.getDuration());

 but it makes the application crash. What am I doing wrong? Does the
 emulator support the vibration?
 Thanks
 Simone

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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 from this group, send email to android-developers+
 unsubscribegooglegroups.com or reply to this email with the words REMOVE
 ME as the subject.


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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 from this group, send email to android-developers+
 unsubscribegooglegroups.com or reply to this email with the words REMOVE
 ME as the subject.


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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


Re: [android-developers] Vibrator.vibrate() makes the application crash

2010-03-29 Thread Simone Russo
Sorry for the double post, but I put that at the end of the manifest and it
seems to work now.
Still, I don't get any effect for the vibration. Shouldn't the emulator
shake or something?
Thanks again,
Simone

On Mon, Mar 29, 2010 at 9:50 PM, Simone Russo simone.russ...@gmail.comwrote:

 I did this:

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

 But it still won't work. What gives?
 Simone


 On Mon, Mar 29, 2010 at 9:33 PM, Dan Sherman impact...@gmail.com wrote:

 Make sure you have the vibrate permission in your manifest.

 - Dan


 On Mon, Mar 29, 2010 at 1:31 PM, Simone simone.russ...@gmail.com wrote:

 Hi, I need in my application to make the device vibrate during the
 playback of a sound.
 I did something like this:

 Vibrator
 vibrator=(Vibrator)context.getSystemService(Context.VIBRATOR_SERVICE);
 ...
 vibrator.vibrate(mp.getDuration());

 but it makes the application crash. What am I doing wrong? Does the
 emulator support the vibration?
 Thanks
 Simone

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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 from this group, send email to android-developers+
 unsubscribegooglegroups.com or reply to this email with the words
 REMOVE ME as the subject.


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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 from this group, send email to android-developers+
 unsubscribegooglegroups.com or reply to this email with the words REMOVE
 ME as the subject.




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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


Re: [android-developers] Re: Vibrator.vibrate() makes the application crash

2010-03-29 Thread Simone Russo
Ok, so that's the only way ;)
Thanks a lot
Simone

On Mon, Mar 29, 2010 at 11:35 PM, Streets Of Boston flyingdutc...@gmail.com
 wrote:

 Nope. Your emulator won't 'shake'.

 I'm not sure what the call to
 'context.getSystemService(Context.VIBRATOR_SERVICE);' returns when
 there is no vibration device in the phone. But i would check the
 return value of this call.

 If this call throws an exception, put it inside a 'try - catch' block:

 Vibrator vibrator = null;
 try {

 vibrator=(Vibrator)context.getSystemService(Context.VIBRATOR_SERVICE);
 } catch (Exception e) {}
 ...

 if (vibrator != null) {
  try {
vibraor.vibrate(mp.getDuration());
  } catch (Exception e) {}
 }

 Maybe one of these two 'try - catch' clauses are not necessary, but
 you get the idea :-)



 On Mar 29, 3:54 pm, Simone Russo simone.russ...@gmail.com wrote:
  Sorry for the double post, but I put that at the end of the manifest and
 it
  seems to work now.
  Still, I don't get any effect for the vibration. Shouldn't the emulator
  shake or something?
  Thanks again,
  Simone
 
  On Mon, Mar 29, 2010 at 9:50 PM, Simone Russo simone.russ...@gmail.com
 wrote:
 
 
 
   I did this:
 
   uses-permission android:name=android.permission.VIBRATE/
 
   But it still won't work. What gives?
   Simone
 
   On Mon, Mar 29, 2010 at 9:33 PM, Dan Sherman impact...@gmail.com
 wrote:
 
   Make sure you have the vibrate permission in your manifest.
 
   - Dan
 
   On Mon, Mar 29, 2010 at 1:31 PM, Simone simone.russ...@gmail.com
 wrote:
 
   Hi, I need in my application to make the device vibrate during the
   playback of a sound.
   I did something like this:
 
   Vibrator
  
 vibrator=(Vibrator)context.getSystemService(Context.VIBRATOR_SERVICE);
   ...
   vibrator.vibrate(mp.getDuration());
 
   but it makes the application crash. What am I doing wrong? Does the
   emulator support the vibration?
   Thanks
   Simone
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubs­cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
   To unsubscribe from this group, send email to android-developers+
   unsubscribegooglegroups.com or reply to this email with the words
   REMOVE ME as the subject.
 
--
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubs­cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
   To unsubscribe from this group, send email to android-developers+
   unsubscribegooglegroups.com or reply to this email with the words
 REMOVE
   ME as the subject.- Hide quoted text -
 
  - Show quoted text -

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

 To unsubscribe from this group, send email to android-developers+
 unsubscribegooglegroups.com or reply to this email with the words REMOVE
 ME as the subject.


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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


Re: [android-developers] Re: Modifying audio in real time

2010-03-26 Thread Simone Russo
Hi, thank you very much for your answer.
The problem I have is that I got an audio stream, say 5 seconds long.
I want the user to be able to change the volume and the playbackrate while
the sound is being played.
I'm able to modify those parameters before i call the play() method, but I
need to change them
while the stream is being played as well
What do you mean by you can upsample/downsample your streams to get
the desired efect?
Thanks again
Simone

2010/3/26 Gabriel Simões gsim...@gmail.com

 Hello Simone.

 What problems have you been facing with AudioTrack?

 Besides the fact that you will need to handle all the overhead of time/
 streams controling everything should work fine with AudioTrack, even
 using the Emulator.

 For the volume change for example, try to each position of your audio
 streams for a float between 0.0f (no sound) and 1.0f (volume at 100%)
 and cast back to short before playing. Should give you the results you
 want.

 For the SampleRate, once AudioTrack is created you cannot change it´s
 samplerate value, but you can upsample/downsample your streams to get
 the desired efect.

 Hope it helps,
 Gabriel

 On 23 mar, 17:57, Simone simone.russ...@gmail.com wrote:
  Hi everyone, I'll try to explain briefly what I need to do.
  I need to load an audio resource and play it, but I also need to be
  able to modify some parameters (like the volume, or the playback rate)
  while the audio is being played.
  For example, I might want to play a 10 seconds audio stream, and
  change the volume only after 3 seconds.
  Is there a way to do it? I've been experimenting a little with
  AudioTrack without results.
  Thanks,
  Simone

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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 from this group, send email to android-developers+
 unsubscribegooglegroups.com or reply to this email with the words REMOVE
 ME as the subject.


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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


Re: [android-developers] how to determine length of a video programmatically?

2010-03-26 Thread Simone Russo
Try the MediaPlayer.getDuration() method
Simone

On Fri, Mar 26, 2010 at 5:58 PM, Abhi abhishek.r.sha...@gmail.com wrote:

 Is there a way to determine the length of a video before playing it?

 Thanks,

 Abi

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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 from this group, send email to android-developers+
 unsubscribegooglegroups.com or reply to this email with the words REMOVE
 ME as the subject.


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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


Re: [android-developers] How to sell through Android market?

2010-03-26 Thread Simone Russo
Unfortunately I think you will have to wait for Google to allow the citizens
of Singapore to sell their applications.
Regards,
Simone

On Fri, Mar 26, 2010 at 7:49 PM, chib...@gmail.com chib...@gmail.comwrote:

 Hi,

 We are from Singapore  would like to sell our applications through
 Android Market. We can't find the option for Singapore when we
 register a Merchant account with Google Checkout.

 Any solutions on this?


 Thanks,
 Boon

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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 from this group, send email to android-developers+
 unsubscribegooglegroups.com or reply to this email with the words REMOVE
 ME as the subject.


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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


Re: [android-developers] Re: getDuration() in VideoView returns -1 !!!

2010-03-26 Thread Simone Russo
Maybe posting some more code would be of help!
Simone

On Fri, Mar 26, 2010 at 7:20 PM, Abhi abhishek.r.sha...@gmail.com wrote:

 The idea was to post the same question with a relevant subject this
 time... don't think it should annoy you that much

 On Mar 26, 2:17 pm, Yahel kaye...@gmail.com wrote:
  Stop posting twice the same question. Wait for an answer in your
  original post.
 
  Yahel
 
  On Mar 26, 7:06 pm, Abhi abhishek.r.sha...@gmail.com wrote:
 
   Hi,
 
   Has anyone tried using the getDuration() method in VideoView? It
   returns a -1 for me always. Is there a way around?
 
   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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 To unsubscribe from this group, send email to android-developers+
 unsubscribegooglegroups.com or reply to this email with the words REMOVE
 ME as the subject.


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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] Modifying audio in real time

2010-03-24 Thread Simone
Hi everyone, I'll try to explain briefly what I need to do.
I need to load an audio resource and play it, but I also need to be
able to modify some parameters (like the volume, or the playback rate)
while the audio is being played.
For example, I might want to play a 10 seconds audio stream, and
change the volume only after 3 seconds.
Is there a way to do it? I've been experimenting a little with
AudioTrack without results.
Thanks,
Simone

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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] Multiple Icon on Android App

2010-02-26 Thread Simone Francesca
I am trying to build an app that would have multiple icons with
multiple captions based on the area. HOw can i do that in Android
because right now there is no way to change the icon dynamically. It
is tied to teh AndroidManifest file? Can I override it ?

I was directed here by Android Market Forum

Thanks in advance for all your help.

Sim

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