[android-developers] [Force Close]CursorIndexOutOfBoundsException: Index 4 requested, with a size of 4

2011-08-24 Thread Alaeddine Ghribi
Hello, I have some coordinates to show them as markers in map, plus, i want to display an AlertDialog descritpion when i tap on each marker, 3 of 4 markers well shows an AlertDialog but no the correct description, the 4th force closes the application with this logcat error: 08-24 12:28:35.942:

Re: [android-developers] Re: [Force Close]CursorIndexOutOfBoundsException: Index 4 requested, with a size of 4

2011-08-24 Thread Alaeddine Ghribi
So how can i solve it? I maked cur.moveToPosition(index-1); and i have always the same problem. Any other solution please? 2011/8/24 lbendlin l...@bendlin.us indexes start at 0. If you have four data points they are at index 0, 1, 2 and 3. -- You received this message because you are

Re: [android-developers] Re: [Force Close]CursorIndexOutOfBoundsException: Index 4 requested, with a size of 4

2011-08-24 Thread Alaeddine Ghribi
You mean that i add a List of String in the class that extends ItemizedOverlay(like the list of geopoints)? Then make a raw query and pass the index as parameter on the ontap(index) function? public class ItemizedOverlayPerso extends ItemizedOverlayOverlayItem { private ListGeoPoint points

[android-developers] Get Geopoints from SQlite DB

2011-08-19 Thread Alaeddine Ghribi
I created an SQlite database to store on it all latitudes and longitudes to display them in map. For the add of the values i didn't encouter any problem, i used this code: CoordBD CoordBd = new CoordBD(this); Coordo coordo = new Coordo(36.869686,10.315642 ); CoordBd.open();

Re: [android-developers] Get Geopoints from SQlite DB

2011-08-19 Thread Alaeddine Ghribi
:30 AM, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: I created an SQlite database to store on it all latitudes and longitudes to display them in map. For the add of the values i didn't encouter any problem, i used this code: CoordBD CoordBd = new CoordBD(this); Coordo coordo = new

[android-developers] Schedule notification not triggered.

2011-08-15 Thread Alaeddine Ghribi
Hello, I want to show a notification evey x days(the user will define this value). For that i created a class that extends a BroadCastReceiver and the main class the launch this receiver: public class OnAlarmReceiver extends BroadcastReceiver{ @Override public void

Re: [android-developers] Schedule notification not triggered.

2011-08-15 Thread Alaeddine Ghribi
to have 1 minute ? :\ )And how i know that the brodcast receiver get called ? Thank you for your help. 2011/8/15 TreKing treking...@gmail.com On Mon, Aug 15, 2011 at 6:56 AM, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: I never had a notification in my phone. Why? You have bug

Re: [android-developers] Schedule notification not triggered.

2011-08-15 Thread Alaeddine Ghribi
2011/8/15 TreKing treking...@gmail.com On Mon, Aug 15, 2011 at 8:27 AM, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: So the minimum value is half an hour(30 minutes) I don't think AlarmManager is intended for prolonged periods of time (like days). For now, i have to work

Re: [android-developers] Re: GridView not scaling to all screens

2011-08-14 Thread Alaeddine Ghribi
I tried that but there are no elements displayed, i just have the background, the images are simply dissapeared. 2011/8/14 RIV ronnievie...@gmail.com Try using android:stretchMode=spacingWidthUniform On Aug 13, 2:04 pm, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: Hello, I have

[android-developers] GridView not scaling to all screens

2011-08-13 Thread Alaeddine Ghribi
Hello, I have a GridView that launches activities when we tap on a button/ image of it. However, i'm facing an annoying display problem for it. I have an SGS and a Galaxy 5 to test the app, if i configure the XML to correctly display the GridView with the SGS(vertical/horizental spacing), then

[android-developers] How to launch the interface for incoming/outgoing calls ?

2011-05-07 Thread Alaeddine Ghribi
Hello, I'm developping a SIP application and want to know how to launch the default UI for receiving and making calls. Thank you very much. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Problem a ViewFlipper.

2011-05-01 Thread Alaeddine Ghribi
Hello, I want to show an image in my application, then after 3 seconds i want to show the other image, so i choose to use a ViewFlipper, however i'm facing a little problem: The first image shows and after 3 seconds the next image is showen BUT instantly it returns to the previous one(first one).

[android-developers] Change UI when executing an instruction

2011-04-30 Thread Alaeddine Ghribi
Hello, I want to change the UI(if possible just add an image to the UI) when i'm well connected to the server(i'm developping a SIP application) by adding an imaged Connected . In fact, i've made this but i have a FC: public void onRegistrationDone(String localProfileUri, long expiryTime) {

Re: [android-developers] Change UI when executing an instruction

2011-04-30 Thread Alaeddine Ghribi
Very good idea. So i add the image in the XMl file and i set its visiblity to 0, then when i'm connected to the server i set its visibilty(in java code) to 1 . But, how can i set it in Java ? Thank you for you help. 2011/4/30 Marcin Orlowski webnet.andr...@gmail.com What about just having you

[android-developers] Re: Change UI when executing an instruction

2011-04-30 Thread Alaeddine Ghribi
, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: Hello, I want to change the UI(if possible just add an image to the UI) when i'm well connected to the server(i'm developping a SIP application) by adding an imaged Connected . In fact, i've made this but i have a FC: public void

[android-developers] Re: Change UI when executing an instruction

2011-04-30 Thread Alaeddine Ghribi
. On Sat, Apr 30, 2011 at 11:35 AM, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: I've made this: public void onRegistrationDone(String localProfileUri, long expiryTime) {                        updateStatus(Registered to server.);                        Log.d(SUCCEED

Re: [android-developers] Re: Change UI when executing an instruction

2011-04-30 Thread Alaeddine Ghribi
() { public void run() { iconView.setVisibility(0); } }, 5000); But it's always showen. Any idea how to fix that problem ? Thank you. 2011/4/30 Kostya Vasilyev kmans...@gmail.com 30.04.2011 23:04, Alaeddine Ghribi пишет

Re: [android-developers] Re: Change UI when executing an instruction

2011-04-30 Thread Alaeddine Ghribi
- not arbitrary values like 0 or 1. -- Kostya 30.04.2011 23:56, Alaeddine Ghribi пишет: iconView.setVisibility(1); -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group

[android-developers] Error when launching a ringtone.

2011-04-27 Thread Alaeddine Ghribi
Hi, I have an AlertDialog that when it shows it launches a ringtone, however i have always an exception, here is what i did: ad.show(); try { MediaPlayer mt = MediaPlayer.create(context,R.raw.ringtone); mt.setVolume(5,5); mt.start();

[android-developers] Call not ended when ending it in the other peer

2011-04-27 Thread Alaeddine Ghribi
Hi, I'm developping a SIP application, however, i have a big problem: When A call B, and we ended the call in B = A will not as well end the call until we confirm it (with a button or menu option). It misses some synchronisation between the two peers. How can i add this sync in a SIP application

[android-developers] How to start an activity in a try/catch bloc

2011-04-25 Thread Alaeddine Ghribi
Hi, I just want to add an alertdialog when receiving a call, however i don't know how doing it. I have made this: Intent i = new Intent(this,Preferences.class); startActivity(i); But it ends with an error in each line! public class IncomingCallReceiver extends BroadcastReceiver { @Override

Re: [android-developers] How to start an activity in a try/catch bloc

2011-04-25 Thread Alaeddine Ghribi
constructor Intent(IncomingCallReceiver, Classdialog) is not defined Method startActivity(Intent) is undefined for the type IncomingCallReceiver Thank you for your help. 2011/4/25 TreKing treking...@gmail.com On Mon, Apr 25, 2011 at 12:24 PM, Alaeddine Ghribi alaeddineghr...@gmail.com wrote

Re: [android-developers] How to start an activity in a try/catch bloc

2011-04-25 Thread Alaeddine Ghribi
is the function that launches an activity in *IncomingCallReceiver * class ? Thank you very much. 2011/4/25 Mark Murphy mmur...@commonsware.com BroadcastReceiver is not a Context. Use the Context supplied to onReceive() for your Intent constructor. On Mon, Apr 25, 2011 at 1:44 PM, Alaeddine Ghribi

Re: [android-developers] How to start an activity in a try/catch bloc

2011-04-25 Thread Alaeddine Ghribi
startActivity() on a BroadcastReceiver. Use the Context supplied to onReceive() for your startActivity() call. On Mon, Apr 25, 2011 at 2:07 PM, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: You have absolutely reason Mark Murphy, i made what you tell me to do and it works. However, i don't know

[android-developers] AlerDialog inside onRecieve

2011-04-25 Thread Alaeddine Ghribi
Hello, I read the documentation and i found that i can't add an AlertDialog inside onReceive method(http://tinyurl.com/3ghtswd). However, i want to add a confirmation Dialog when receiving a call. How can i do this ? Thank you very much. -- You received this message because you are subscribed to

Re: [android-developers] AlerDialog inside onRecieve

2011-04-25 Thread Alaeddine Ghribi
themed as a dialog (in the manifest). However, an activity popping up all of sudden does not make for good UI. The usual method is to post a Notification to the status bar, which the user can then use to launch the activity. -- Kostya 25.04.2011 22:49, Alaeddine Ghribi пишет: Hello, I read

[android-developers] A little clarification for the SIPDemo application

2011-04-21 Thread Alaeddine Ghribi
Hello, I imported the SIPDemo code to Eclipse, run it, well configured it(i created an Asterisk server and it's working fine), but, when i want to call someone, nothing happens. I just want to know if the code is complete or not(i readed/ understanded the code and i find it complete :\)? Here is

[android-developers] Facing a problem with Google SIPDemo application

2011-04-19 Thread Alaeddine Ghribi
Hello, I have to build a SIP application for my studies, i maked an Asterisk server, testing it with xlite and all is working. However, i wanted to test the server through my Android phone(has 2.3 Gingerbread), i installed the SIPDemo app on it, adding the useful informations(Login, domain and

Re: [android-developers] No such file or directory when storing a file in sdcard.

2011-04-12 Thread Alaeddine Ghribi
to creating the file in sdcard is wrong :\ ! Is it ? Thank you. 2011/4/12 TreKing treking...@gmail.com On Mon, Apr 11, 2011 at 8:16 PM, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: here is the log message: 04-12 03:08:59.084: DEBUG/IOException(2059): No such file or directory What's

Re: [android-developers] No such file or directory when storing a file in sdcard.

2011-04-12 Thread Alaeddine Ghribi
=ex.getMessage(); Log.d(Carburant, x); } catch(IOException e){ Toast.makeText(context, Echec, Toast.LENGTH_SHORT).show(); Log.d(IOException, e.getMessage()); } } Thanks TerKing :). 2011/4/12 TreKing treking...@gmail.com On Tue, Apr 12, 2011 at 6:44 AM, Alaeddine Ghribi

Re: [android-developers] No such file or directory when storing a file in sdcard.

2011-04-12 Thread Alaeddine Ghribi
Absoluetely true! I created the specified directory with mkdir() then the file with createnewfile() and the export is made. Thank you very much for your help. 2011/4/12 TreKing treking...@gmail.com On Tue, Apr 12, 2011 at 7:34 AM, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: Here

[android-developers] No such file or directory when storing a file in sdcard.

2011-04-11 Thread Alaeddine Ghribi
Hi, I want to store a file from internal storage to external storage (sdcard) however, i'm facing a problem: here is the log message: 04-12 03:08:59.084: DEBUG/IOException(2059): No such file or directory What's the problem? Thank you for your help. public void transfer(){ try {

Re: [android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-05 Thread Alaeddine Ghribi
for your help. 2011/4/4 TreKing treking...@gmail.com On Mon, Apr 4, 2011 at 2:23 PM, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: I readed and i'm reading all this docs! i just can't find the right function to use! you are just send links and google JAVA IO without any precision! Once

Re: [android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-05 Thread Alaeddine Ghribi
that needs this inf): String mainDirPath = this.getFilesDir() + File.separator + settings.dat; Import myImport = new Import(this,mainDirPath); myImport.transfer(); return true; 2011/4/5 Kostya Vasilyev kmans...@gmail.com 05.04.2011 15:47, Alaeddine Ghribi пишет: However

Re: [android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-05 Thread Alaeddine Ghribi
. 2011/4/5 Kostya Vasilyev kmans...@gmail.com 05.04.2011 15:47, Alaeddine Ghribi пишет: However, i'm facing a problem when writing the file to the SDCARD. I have permission denied and SDCARD not mounted exception. Here is the code: Do you have a memory card in the phone? If you do, make

Re: [android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-04 Thread Alaeddine Ghribi
treking...@gmail.com On Sun, Apr 3, 2011 at 9:11 PM, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: So i put a breakpoint in the catch line and in the debugger i think that i have the right variables: Put a break at the *start* of your code and *step through* line by line until you

Re: [android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-04 Thread Alaeddine Ghribi
data files (to populate the list view), just do it the same way. -- Kostya 2011/4/4 Alaeddine Ghribi alaeddineghr...@gmail.com So i maked this: catch(FileNotFoundException ex){ Toast.makeText(context, File Not found, Toast.LENGTH_SHORT).show(); String x=ex.getMessage

Re: [android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-04 Thread Alaeddine Ghribi
All the informations are here i guess! But there is not an example :( ! Plus, the examples in in the android dev site are not very clear! Please, can you help me(i'm noob, i know :( :D!) ? Thanks. Accessing files on external storage If you're using API Level 8 or greater, use

Re: [android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-04 Thread Alaeddine Ghribi
); With this code, the compiler can not take the file from /data/data.. and copy it to the SDCARD/carburant ? They are other functions/methods to use ? That's it ? Thank you :). 2011/4/4 TreKing treking...@gmail.com On Mon, Apr 4, 2011 at 10:54 AM, Alaeddine Ghribi alaeddineghr...@gmail.com

Re: [android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-04 Thread Alaeddine Ghribi
still isn't what TreKing mentioned, he said just use the Standard Methods to open your file... Kris On Mon, Apr 4, 2011 at 2:55 PM, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: So all this lines are false, they are not correct, all the problem come from this lines? File sdCard

Re: [android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-04 Thread Alaeddine Ghribi
! but i'm fighting to make a simple app! I think that you are becoming angry now! So simple: Really thank you for your help and don't bother yourself to help me! Thank you very much. 2011/4/4 TreKing treking...@gmail.com On Mon, Apr 4, 2011 at 2:04 PM, Alaeddine Ghribi alaeddineghr...@gmail.com

Re: [android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-04 Thread Alaeddine Ghribi
You have reason! Believe me i readed and i'm reading all the docs! I'll re-see it now!And I'll well do my homework(i hope i'll succeed)! 2011/4/4 TreKing treking...@gmail.com On Mon, Apr 4, 2011 at 2:23 PM, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: I readed and i'm reading all

[android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-03 Thread Alaeddine Ghribi
Nothing happens when i tap in the menu option button Export ! On 3 avr, 03:54, TreKing treking...@gmail.com wrote: On Sat, Apr 2, 2011 at 8:40 PM, Alaeddine Ghribi alaeddineghr...@gmail.comwrote: I have a problem in the Import class that i can't recognize it ! What does that mean

[android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-03 Thread Alaeddine Ghribi
for your answer. On 3 avr, 12:06, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: Nothing happens when i tap in the menu option button Export ! On 3 avr, 03:54, TreKing treking...@gmail.com wrote: On Sat, Apr 2, 2011 at 8:40 PM, Alaeddine Ghribi alaeddineghr...@gmail.comwrote

[android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-03 Thread Alaeddine Ghribi
I solved the half of the problem for now, however, i'm having a File Not Found exception ! why the file is not copied ? How can i verify the file in the SDCARD in the emulator ? Thanks. On 3 avr, 15:42, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: I edited the code to a one more correct

[android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-03 Thread Alaeddine Ghribi
I added a virtual SDCARD and the file is not exported ! I have a storeddata.dat directory :\ ! Plus, i have a file not found exception when tapping in the menu option export ! Any idea ? On 3 avr, 16:06, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: I solved the half of the problem for now

[android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-03 Thread Alaeddine Ghribi
to the storeddata.dat file ! On 3 avr, 17:11, Kostya Vasilyev kmans...@gmail.com wrote: I think you are not creating a directory for the target file. Look up File.mkdir and mkdirs. 03.04.2011 19:40 пользователь Alaeddine Ghribi alaeddineghr...@gmail.com написал: I added a virtual SDCARD

[android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-03 Thread Alaeddine Ghribi
); myImport.transfer(); return true; Is that correct ? Thank you for verifying it. On 3 avr, 17:41, TreKing treking...@gmail.com wrote: On Sun, Apr 3, 2011 at 10:06 AM, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: I solved the half of the problem for now, however, i'm having

[android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-03 Thread Alaeddine Ghribi
); myImport.transfer(); return true; Is that correct ? Thank you for verifying it. On 3 avr, 17:41, TreKing treking...@gmail.com wrote: On Sun, Apr 3, 2011 at 10:06 AM, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: I solved the half of the problem for now, however, i'm having

[android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-03 Thread Alaeddine Ghribi
(); } } } It shows me File Not Found, my question is the file is not found in the /SDCARD or in the /data/data/... ? On 3 avr, 18:46, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: I copied the apk to my phone, and when i tap in the menu button export, same problem! Plus the directory is not created

Re: [android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-03 Thread Alaeddine Ghribi
Sorry, but do you mean that i put a break point in this line: catch(FileNotFoundException ex){ Toast.makeText(context, File Not found, Toast.LENGTH_SHORT).show(); and see what it gives as output values ? 2011/4/4 TreKing treking...@gmail.com On Sun, Apr 3, 2011 at 7:08 PM, Alaeddine Ghribi

Re: [android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-03 Thread Alaeddine Ghribi
means step through until you *get* the exception... However, if you put a breakpoint at *that* line you should be able to read (in the Eclipse debugger) what file is causing you trouble. kris On Sun, Apr 3, 2011 at 9:51 PM, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: Sorry, but do

[android-developers] (File export) What's going on with my code?[NEED HELP]

2011-04-02 Thread Alaeddine Ghribi
Hi, I have data stored in a file in /data/data and i want to export it to the SDCARD, i writed the code(wondering if it's correct) and the class is not called, please try to help me to solve the problem, THANK YOU: public class Import extends Saves { private Context context;

[android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-02 Thread Alaeddine Ghribi
it ! On 3 avr, 02:28, TreKing treking...@gmail.com wrote: On Sat, Apr 2, 2011 at 7:26 PM, Alaeddine Ghribi alaeddineghr...@gmail.comwrote: and i want to export it to the SDCARD, i writed the code(wondering if it's correct) and the class is not called The class is not called ? Classes aren't

[android-developers] Re: Import/Export data file

2011-04-01 Thread Alaeddine Ghribi
For storing a picture, here is the code: File file = new File(getExternalFilesDir(null), DemoFile.jpg); For storing the data file from /data/data: File file = new File(getExternalFilesDir(/data/data.), storedfile); Is that true ? On 1 avr, 02:03, Alaeddine Ghribi alaeddineghr

[android-developers] Re: Import/Export data file

2011-04-01 Thread Alaeddine Ghribi
And how to do it if i want tp copy a file from /data/data/android/ android.dat to a directory android in the SDCARD ? Thanks :). On 1 avr, 12:10, Marcin Orlowski webnet.andr...@gmail.com wrote: On 1 April 2011 12:32, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: For storing a picture

[android-developers] Re: Import/Export data file

2011-03-31 Thread Alaeddine Ghribi
:00, Alaeddine Ghribi пишет: Ah okay i think that i understand the point now ! 1st link: how to copy two file. 2nd link: where to copy it. That's it ? That's right! -- Kostya Vasilyev --http://kmansoft.wordpress.com -- You received this message because you are subscribed

[android-developers] Well displayed in portrait but not in landscape

2011-03-30 Thread Alaeddine Ghribi
Hi, I developped a small app, it has 3 EditTexts and 2 buttons, in portrait all the items are well displayed, but in landscape, the right button(reset) doesn't take the extreme right position! here is my XML(in RelativeLayout): EditText android:id=@+id/consom2 android:layout_width=fill_parent

[android-developers] Re: Well displayed in portrait but not in landscape

2011-03-30 Thread Alaeddine Ghribi
/debugging/debugging-ui (note that this is also available as an Eclipse perspective, Hierarchy View) On Wed, Mar 30, 2011 at 8:22 AM, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: Hi, I developped a small app, it has 3 EditTexts and 2 buttons, in portrait all the items

[android-developers] Re: Well displayed in portrait but not in landscape

2011-03-30 Thread Alaeddine Ghribi
wrote: On Wed, Mar 30, 2011 at 8:36 AM, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: And how to add the XMl file to the Hierarchy View ? You don't add the XMl file to the Hierarchy View ?. You use the Hierarchy View tool to inspect your layout as it is running in your activity

[android-developers] Re: Well displayed in portrait but not in landscape

2011-03-30 Thread Alaeddine Ghribi
, or shut down Eclipse when you run hierarchyviewer. Beyond that, I have no suggestions. On Wed, Mar 30, 2011 at 9:33 AM, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: Thank you for your response, i now know what i have to do = just run the app in the emulator and go

[android-developers] Re: Well displayed in portrait but not in landscape

2011-03-30 Thread Alaeddine Ghribi
I don't know how but the problem is solved :) ( :\ ) ! Thank you for your help :). On 30 mar, 15:20, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: I succeed to run Hierarchy View, but don't understand how to know where is the problem ! On 30 mar, 14:40, Mark Murphy mmur...@commonsware.com

[android-developers] Import/Export data file

2011-03-30 Thread Alaeddine Ghribi
Hi, I built an app that calculates fuel consumption, my data are well stored in a file, however, i often flash my phone and want to add the import-export feature on it ! How can i make this ? Thanks :). -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Import/Export data file

2011-03-30 Thread Alaeddine Ghribi
I thinked about this function, i just copy the file in a directory in the SDCARD and then to import just copy the file to /data/data/... But how doing it ? Thanks. On 30 mar, 17:08, Marcin Orlowski webnet.andr...@gmail.com wrote: On 30 March 2011 16:57, Alaeddine Ghribi alaeddineghr

[android-developers] Re: Import/Export data file

2011-03-30 Thread Alaeddine Ghribi
Yes, i'm just using a file to store data, but how can i copy the file in data/data/. to the SDCARD? How doing it in JAVA/Android ? On 30 mar, 17:08, Marcin Orlowski webnet.andr...@gmail.com wrote: On 30 March 2011 16:57, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: Hi, I built

[android-developers] Re: Import/Export data file

2011-03-30 Thread Alaeddine Ghribi
Thank for your answer, and i know how to use io files. But i'm asking how to specify the location of the file in import and export operations ? On 30 mar, 17:22, Mark Murphy mmur...@commonsware.com wrote: On Wed, Mar 30, 2011 at 12:19 PM, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: Yes

[android-developers] Re: Import/Export data file

2011-03-30 Thread Alaeddine Ghribi
2011 18:19, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: Yes, i'm just using a file to store data, but how can i copy the file in data/data/. to the SDCARD? How doing it in JAVA/Android ? http://developer.android.com/reference/android/os/Environment.html#ge...http://www.google.pl

[android-developers] Re: Import/Export data file

2011-03-30 Thread Alaeddine Ghribi
2011 18:19, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: Yes, i'm just using a file to store data, but how can i copy the file in data/data/. to the SDCARD? How doing it in JAVA/Android ? http://developer.android.com/reference/android/os/Environment.html#ge...http://www.google.pl

[android-developers] Re: Import/Export data file

2011-03-30 Thread Alaeddine Ghribi
kmans...@gmail.com wrote: 30.03.2011 20:31, Alaeddine Ghribi пишет: This one is perfect: http://www.roseindia.net/java/beginners/CopyFile.shtml I just don't know how to specify the location of the import/export http://developer.android.com/guide/topics/data/data-storage.html#file

[android-developers] Re: Import/Export data file

2011-03-30 Thread Alaeddine Ghribi
one location to another. The link to developer.android.com explains where to copy the file to, as well as some other points. You just need to combine those two :) -- Kostya 30.03.2011 21:41, Alaeddine Ghribi пишет: Always here M.Kostya ;), Anyway, this guide shows how

[android-developers] Re: Import/Export data file

2011-03-30 Thread Alaeddine Ghribi
to developer.android.com explains where to copy the file to, as well as some other points. You just need to combine those two :) -- Kostya 30.03.2011 21:41, Alaeddine Ghribi пишет: Always here M.Kostya ;), Anyway, this guide shows how to store the saved file in the SDCARD? With the choose

[android-developers] Set 2 buttons positions in all densities

2011-03-23 Thread Alaeddine Ghribi
Hi, I have two buttons, one for calculate the operation(in the LEFT) and the other(in the RIGHT) for reset EditTexts values! And, i'm having a problem of reset button in a high density screens(i want it to take the max right position, and calculate button the max left). I used this:

[android-developers] Re: Set 2 buttons positions in all densities

2011-03-23 Thread Alaeddine Ghribi
Sorry but i didn't find anything ! can you give me an example to follow ? Thank you :). On 23 mar, 12:17, lbendlin l...@bendlin.us wrote: use dp/dip, and read up a little more on the available layout parameters, especially the ones with Parent in their name. -- You received this message

[android-developers] Re: Set 2 buttons positions in all densities

2011-03-23 Thread Alaeddine Ghribi
Sorry but i didn't find anything ! can you give me an example to follow ? Thank you :). On 23 mar, 12:17, lbendlin l...@bendlin.us wrote: use dp/dip, and read up a little more on the available layout parameters, especially the ones with Parent in their name. -- You received this message

[android-developers] Re: Set 2 buttons positions in all densities

2011-03-23 Thread Alaeddine Ghribi
Any help please? Thank you . On 23 mar, 14:43, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: Sorry but i didn't find anything ! can you give me an example to follow ? Thank you :). On 23 mar, 12:17, lbendlin l...@bendlin.us wrote: use dp/dip, and read up a little more

[android-developers] Re: Have to tap 2times to have the data displayed in a ListView...

2011-03-19 Thread Alaeddine Ghribi
Is it an XML problem ? On 19 mar, 01:39, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: Hi, I don't know why but when tapping the calculate button to store the data calculated, when i goes to the listview the first time it tells me that there is no data, when i tap again in the button i

[android-developers] Display a ListView without a TextView

2011-03-19 Thread Alaeddine Ghribi
Hello, In my app i have this: ListView L = (ListView) findViewById(R.id.lv); L.setAdapter(new ArrayAdapterString(this, R.layout.list_item, s[0])); lv is my ListView and list_item is my TextView. I want to store datas in a file then have a string variable to take all this datas then display it in

[android-developers] Re: Display a ListView without a TextView

2011-03-19 Thread Alaeddine Ghribi
to update the UI. -- Kostya 19.03.2011 14:30, Alaeddine Ghribi пишет: Hello, In my app i have this: ListView L = (ListView) findViewById(R.id.lv); L.setAdapter(new ArrayAdapterString(this, R.layout.list_item, s[0])); lv is my ListView and list_item is my TextView. I want to  store

[android-developers] Re: Display a ListView without a TextView

2011-03-19 Thread Alaeddine Ghribi
set, then ArrayAdapter should work fine. Just use the debugger, and check what data you actually pass to the adapter. -- Kostya 19.03.2011 15:12, Alaeddine Ghribi пишет: In fact i have 2 edittbox and other one to show the result, then storing it. When i access to the display activity i

[android-developers] Re: Display a ListView without a TextView

2011-03-19 Thread Alaeddine Ghribi
setting the adapter twice - first directly in onCreate, then from a method called from onCreate. This should not be necessary. -- Kostya 19.03.2011 16:20, Alaeddine Ghribi пишет: Sorry but how to do it with my instructions ? ListView L = (ListView) findViewById(R.id.lv); L.setAdapter

[android-developers] Re: Display a ListView without a TextView

2011-03-19 Thread Alaeddine Ghribi
Sorry Kostya but i searched for how to debug an array of string in this 3 links ad others and i can't find an example(i used often debugging but just in a simple variables). On 19 mar, 16:20, Kostya Vasilyev kmans...@gmail.com wrote: 19.03.2011 18:05, Alaeddine Ghribi пишет: I tried making

[android-developers] Re: Display a ListView without a TextView

2011-03-19 Thread Alaeddine Ghribi
I tried this but i have a FC: for (int i = 0; i s.length; i++) { Log.d(Saves,s[0][i]); } On 19 mar, 16:40, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: Sorry Kostya but i searched for how to debug an array of string in this 3 links ad others and i

[android-developers] Have to tap 2times to have the data displayed in a ListView...

2011-03-18 Thread Alaeddine Ghribi
Hi, I don't know why but when tapping the calculate button to store the data calculated, when i goes to the listview the first time it tells me that there is no data, when i tap again in the button i have all datas displayed plus the last one! Here is a video explanation:

[android-developers] Create a SIP application

2011-03-09 Thread Alaeddine Ghribi
Hi, I'm preparing my final studies project and i'm planning to make a Voice-Over-Ip application = SIP integrated on 2.3 version. In fact, i followed this DEV Guide(http://developer.android.com/guide/ topics/network/sip.html) but i don't know from where i have to begin! There is not enough examples