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:
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
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
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();
: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
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
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
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
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
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
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
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).
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) {
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
, 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
.
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
() {
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 пишет
- 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
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();
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
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
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
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
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
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
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
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
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
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
=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
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
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 {
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
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
.
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
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
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
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
);
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
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
! 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
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
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
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
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
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
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
);
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
);
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
();
}
}
}
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
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
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
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;
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
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
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
: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
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
/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
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
, 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
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
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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
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
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
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
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:
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
84 matches
Mail list logo