[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

[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

[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

[android-developers] setImageViewResource not working

2010-09-19 Thread Simone
); 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

[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

[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

[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] 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,

[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

[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

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

[android-developers] problem with accented letters

2010-09-10 Thread Simone
(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

[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

[android-developers] EditText in a simple Activity

2010-09-10 Thread Simone
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

[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

[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

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

2010-06-20 Thread Simone
, 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

[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

[android-developers] blank screen with opengl

2010-06-16 Thread Simone
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

[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

[android-developers] Call start time

2010-06-07 Thread Simone
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

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

2010-06-01 Thread Simone
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

[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

[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

[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

[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

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

[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

[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

[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

[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

[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

[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

[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

[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

[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

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

[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

[android-developers] AudioTrack in streaming mode

2010-04-04 Thread Simone
) { } } 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

[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

[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

[android-developers] saving the reference to an object

2010-04-02 Thread Simone
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

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

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

[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

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

[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

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

2010-03-29 Thread Simone
? 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

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

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

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

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

2010-03-26 Thread Simone Russo
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

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

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

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

[android-developers] Modifying audio in real time

2010-03-24 Thread Simone
, 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

[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