[android-developers] Resume activity while download

2012-01-31 Thread ColletJb
Hi, I'm currently working on an app where the user can start a download of a big file (in an activity called FileDetailsActivity). I can properly start, cancel, restart and handle the download, everything works fine. But, I'm looking for a way to implement this use-case: * the user goes back to

[android-developers] Re: Resume activity while download

2012-01-31 Thread ColletJb
, ColletJb collet...@gmail.com wrote: Can anyone help me with this ? Instead of background thread you probably want a background service, to which you bind and unbind as your details activity comes and goes. So the download logic and state is stored in the service and reflected in the Activity when

[android-developers] Re: Multi-touch with multiple buttons

2011-12-01 Thread ColletJb
Thanks a lot to all of you for your help. I will try this asap and tell you if i did it ;) On 30 nov, 23:18, Dianne Hackborn hack...@android.com wrote: Well Android started without any multi-touch API at all, a simple version was added in an update (with the constraint that the platform itself

[android-developers] Re: Multi-touch with multiple buttons

2011-11-29 Thread ColletJb
have to listen for ACTION_POINTER_DOWN and ACTION_POINTER_UP (as well as ACTION_CANCEL) too. On 28 Nov., 15:13, ColletJb collet...@gmail.com wrote: Hi, I'm facing an very simple (and stupid) issue and I hope someone will be able to provide me an explanation... I'm trying

[android-developers] Multi-touch with multiple buttons

2011-11-28 Thread ColletJb
Hi, I'm facing an very simple (and stupid) issue and I hope someone will be able to provide me an explanation... I'm trying to develop an Activity with 2 buttons (let's call them btnA and btnB), they are in my xml layout. My goal is to be able to handle click on both button (easy), even on the

[android-developers] Re: Multi-touch with multiple buttons

2011-11-28 Thread ColletJb
. -niko On Nov 28, 8:13 am, ColletJb collet...@gmail.com wrote: Hi, I'm facing an very simple (and stupid) issue and I hope someone will be able to provide me an explanation... I'm trying to develop an Activity with 2 buttons (let's call them btnA and btnB), they are in my xml

[android-developers] Re: Multi-touch with multiple buttons

2011-11-28 Thread ColletJb
have just worked. But noo. We are Google we do everything the hard way. -niko On Nov 28, 8:13 am, ColletJb collet...@gmail.com wrote: Hi, I'm facing an very simple (and stupid) issue and I hope someone will be able to provide me an explanation... I'm trying to develop

[android-developers] Re: Multi-touch with multiple buttons

2011-11-28 Thread ColletJb
2011 г. 18:55 пользователь ColletJb collet...@gmail.com написал: could be an idea, I ve found on the web a tuto explaining how to manage multi-touch event with an image (in order to zoom it), but not with 2 or more sub-views... i would then have to calculate the place on the screen

[android-developers] How to handle the GPS properly through multiple activities ?

2011-01-03 Thread ColletJb
Hi everyone, I run into an issue regarding how to use the gps. My application uses several activities to navigation to some information. (RootActivity - MenuActivity - MenuDetailActivity - ItemDetailActivity...) I use a class extending Application in order to access from all Activities several

[android-developers] TabActivity resulting in a crash.

2010-12-09 Thread ColletJb
Hi, I have a small issue i hope someone will be able to help me. Basically, I've a listactivity, and when the user clicks a line, it starts a tabactivity. The tabactivity starts with downloading a content in a separate thread and when it's done, the runOnUI method is used to create the sub-tabs

[android-developers] Using Google Maps Navigation

2010-10-04 Thread ColletJb
Hi, I'm trying to use Google Maps Navigation from within my application. I've found on the net it can be done with this intent : Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(geo:+lat +,+lng)); where lat and lng are the latitude and longitude. Unfortunately, I get a SecurityException

[android-developers] ListView, SimpleCursorAdapter and Cursors

2010-06-10 Thread ColletJb
Hi, I have a very simple issue i actually can't fix :( I have a basic database with fields, let's say MyDBHelper.KEY_ID, MyDBHelper.KEY_NAME, MyDBHelper.KEY_DATA and a listview where i only display the MyDBHelper.KEY_NAME field. I used this sample of code : Cursor c = data_db.getAll();

[android-developers] Re: ListView, SimpleCursorAdapter and Cursors

2010-06-10 Thread ColletJb
Vintuhttp://www.adrianvintu.com On Thu, Jun 10, 2010 at 3:06 PM, ColletJb collet...@gmail.com wrote: Hi, I have a very simple issue i actually can't fix :( I have a basic database with fields, let's say MyDBHelper.KEY_ID, MyDBHelper.KEY_NAME, MyDBHelper.KEY_DATA and a listview where i only

[android-developers] Conversion to Dalvik format failed with error 1

2010-03-22 Thread ColletJb
Hi, I'm currently trying to use a third party jar file, but when I add it into my build path, I have a Conversion to Dalvik format failed with error 1 error... Can someone tell me what this is ? And how I can fix it ? Thank you -- You received this message because you are subscribed to the

[android-developers] Cannot use third party library

2010-03-21 Thread ColletJb
Hi, I'm currently trying to make an app using HTMLParser. I developed the whole app in Eclipse and everything seemed to be fine until I tried it on the emulator. It seems that one of the class included into the provided jar file (htmlparser.jar) is not found and thus rise a fatal exception. I

[android-developers] Re: Cannot use third party library

2010-03-21 Thread ColletJb
It seems that I have finally successfully added my lib into the build- path... But I receive this error now : Conversion to Dalvik format failed with error 1 And my project is no longer compiling :( On 21 mar, 13:02, ColletJb collet...@gmail.com wrote: Hi, I'm currently trying to make

[android-developers] Re: Cannot use third party library

2010-03-21 Thread ColletJb
flyingdutc...@gmail.com wrote: Big chance that the JAR file needs to use some Java classes that are not part of the Android SDK. In other words, if you would compile the classes in the JAR (instead of just including it),  you would have gotten compiler errors. On Mar 21, 9:39 am, ColletJb collet

[android-developers] Re: (TabActivity) How to switch tab from within a sub activity

2010-02-28 Thread ColletJb
Thanks for your demo code... But unfortunately, I can't use that method regarding the fact I have a MapActivity and two ListActivity as sub activities. My last idea is to write a singleton on which I will save the TabHost instance. Thus it should be accessible from any sub activities by

[android-developers] Re: (TabActivity) How to switch tab from within a sub activity

2010-02-24 Thread ColletJb
No demo code available ? Thanks On 21 fév, 11:58, ColletJb collet...@gmail.com wrote: I'm sorry, but I don't understand what you mean :( Actually, my sub activities are one MapActivity and one ListActivity... Thank you for your help On 17 fév, 17:47, Mark Murphy mmur...@commonsware.com

[android-developers] Re: (TabActivity) How to switch tab from within a sub activity

2010-02-21 Thread ColletJb
I'm sorry, but I don't understand what you mean :( Actually, my sub activities are one MapActivity and one ListActivity... Thank you for your help On 17 fév, 17:47, Mark Murphy mmur...@commonsware.com wrote: ColletJb wrote: How can I access that method (setCurrentTab()) from a classic

[android-developers] (TabActivity) How to switch tab from within a sub activity

2010-02-17 Thread ColletJb
Hi, I'm currently working on an application, designed around a TabActivity. It look like this: Main (TabActivity) - Tab1 (Activity) - Tab2 (Activity) Here, Tab1 has a button and I would like when the user click it, it switches to Tab2... How can I do that ? Thank you -- You received this

[android-developers] Re: (TabActivity) How to switch tab from within a sub activity

2010-02-17 Thread ColletJb
How can I access that method (setCurrentTab()) from a classic activity ? This method is only defined for TabActivity... Thank you... On 17 fév, 14:06, Mark Murphy mmur...@commonsware.com wrote: ColletJb wrote: Hi, I'm currently working on an application, designed around a TabActivity

[android-developers] Activity, ListActivity and MapActivity.

2010-01-29 Thread ColletJb
Hi, I'm trying to develop an Activity using both ListView and MapView. Basically, the screen is spited into two parts, the first contains the MapView, and the second one contains ListView. Should I use an Activity, a ListActivity or a MapActivity ? Thank your for your help. Here is my layout

[android-developers] Re: Activity, ListActivity and MapActivity.

2010-01-29 Thread ColletJb
Ok, and how can I set my listview properly then ? Thank you On 29 jan, 17:13, jotobjects jotobje...@gmail.com wrote: You have to use MapActivity to use MapView On Jan 29, 6:16 am, ColletJb collet...@gmail.com wrote: Hi, I'm trying to develop an Activity using both ListView and MapView

[android-developers] How to programmatically install an APK file ?

2010-01-27 Thread ColletJb
help ColletJb -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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: How to programmatically install an APK file ?

2010-01-27 Thread ColletJb
-archive);              startActivity(intent); Where Sample.apk is the apk you need to install. On Jan 27, 1:54 pm, ColletJb collet...@gmail.com wrote: Hi, How can I programmatically install an apk file ? I've foud that the PackageManager.installPackage(...) method was used to do

[android-developers] Does the Android Market check installed android's version ?

2010-01-21 Thread ColletJb
Hi, I was wondering if the market checks if the application can be installed on the device. For example, if I have an Android 1.6 and if I try to install an application with : uses-sdk android:minSdkVersion=7 / on its manifest. What will happend ? Thanks for your help ColletJb -- You

[android-developers] Re: Using permissions

2010-01-19 Thread ColletJb
. On Mon, Jan 18, 2010 at 7:43 AM, ColletJb collet...@gmail.com wrote: Hi, I'm currently reading the specs about Android's Security system and something is not clear on my mind... Can somebody explain me ? About the Permissions, it is possible to set four levels (Normal, Dangerous, Signature

[android-developers] Using permissions

2010-01-18 Thread ColletJb
Hi, I'm currently reading the specs about Android's Security system and something is not clear on my mind... Can somebody explain me ? About the Permissions, it is possible to set four levels (Normal, Dangerous, Signature and SignatureOrSystem) The documentation is here :

[android-developers] Re: Work with Cursors

2009-11-12 Thread ColletJb
up ? On 10 nov, 09:42, ColletJb collet...@gmail.com wrote: Hi, I'm currently developing a small application for Android using a database. I have a table with 3 fields : day, month, year. When I retrieve them from the database, I use the following method : publicCursorgetAllItems

[android-developers] Work with Cursors

2009-11-10 Thread ColletJb
Hi, I'm currently developing a small application for Android using a database. I have a table with 3 fields : day, month, year. When I retrieve them from the database, I use the following method : public Cursor getAllItems(){ return db.query(this.tableName, new String[]{ (...)

[android-developers] Re: Need an invitation to google Wave?

2009-11-01 Thread ColletJb
Yes thank you very much ;) On 1 nov, 11:16, jax jackma...@gmail.com wrote: yes thanks On Nov 1, 4:26 pm, li jiecong lijiec...@gmail.com wrote: Hi, please give me an invitation, thx! 2009/11/1 Auguste Lunang legraphi...@gmail.com Hi, i have some google wave. invits to share. tell

[android-developers] Re: How to access Application public key ?

2009-10-21 Thread ColletJb
up ? On 20 oct, 15:37, ColletJb collet...@gmail.com wrote: Hi everyone, I'm currently working on an application which need security features. My question is simple, if every application is signed by its developper, how can I access application public key ? (and private :p) Thanks

[android-developers] Re: How to access Application public key ?

2009-10-21 Thread ColletJb
to the good software (the one who added the data). My idea was to identify that client software with its certificate, but now, I'm not sure it's really a good idea. Thanks a lot for your help. ColletJb On 21 oct, 14:55, RichardC richard.crit...@googlemail.com wrote: Yes I read: Signature

[android-developers] How to access Application public key ?

2009-10-20 Thread ColletJb
Hi everyone, I'm currently working on an application which need security features. My question is simple, if every application is signed by its developper, how can I access application public key ? (and private :p) Thanks for your help ;) --~--~-~--~~~---~--~~

[android-developers] Re: Google wave invitations...?

2009-10-16 Thread ColletJb
I think there are no invitation left from Kenneth Adam Miller. But if anyone invited by him has invitation and can invite me, It would be great ;) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: libdrm1.so and libdrm1_jni.so, what are those libs purpose ?

2009-10-02 Thread ColletJb
No one ?? On 30 sep, 18:04, ColletJb collet...@gmail.com wrote: Hi everybody, My questions is already on the title of this post ^^ Does anyone know what are libdrm1.so and libdrm1_jni.so purpose ? Thanks for your explanations ColletJb

[android-developers] libdrm1.so and libdrm1_jni.so, what are those libs purpose ?

2009-09-30 Thread ColletJb
Hi everybody, My questions is already on the title of this post ^^ Does anyone know what are libdrm1.so and libdrm1_jni.so purpose ? Thanks for your explanations ColletJb --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Widget and views

2009-09-16 Thread ColletJb
With this layout, how can I access my myTxt object ? Thank you for your help ColletJb PS : In an Activity, the equivalent is findViewById(int). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post