[android-developers] Alarm when process not started

2013-05-29 Thread mbaroukh
Hi. I try to program an simple alarm that call a broadcastreceiver at a determined time. All works nice if my application is always running. But if I set the alarm and kill the application, the BroadcastReceiver is never called. All I read seems to say that it should work. Do I misunderstand ?

[android-developers] Re: Alarm when process not started

2013-05-29 Thread mbaroukh
, mbaroukh wrote: Hi. I try to program an simple alarm that call a broadcastreceiver at a determined time. All works nice if my application is always running. But if I set the alarm and kill the application, the BroadcastReceiver is never called. All I read seems to say that it should work. Do

[android-developers] Applications that relies on external datas.

2013-04-17 Thread mbaroukh
I have a problem that appear on every new developpement. I never found a clean way to handle it so I'm asking for your help. Suppose you have an app that rely on data coming from network. Every activity needs those data. So my approach actually is to handle the download by the first activity and

[android-developers] Re: Applications that relies on external datas.

2013-04-17 Thread mbaroukh
sure the code works even if the assumption turns to be wrong. In some cases, by forcing the order (dont let activity B launch normally and revert to A). On Wednesday, April 17, 2013 5:57:28 PM UTC+3, mbaroukh wrote: I have a problem that appear on every new developpement. I never found

[android-developers] Re: Applications that relies on external datas.

2013-04-17 Thread mbaroukh
). On Wednesday, April 17, 2013 3:57:28 PM UTC+1, mbaroukh wrote: I have a problem that appear on every new developpement. I never found a clean way to handle it so I'm asking for your help. Suppose you have an app that rely on data coming from network. Every activity needs those data. So my

[android-developers] Re: Applications that relies on external datas.

2013-04-17 Thread mbaroukh
, April 17, 2013 6:57:11 PM UTC+3, mbaroukh wrote: Service or not every activity must implement a logic to wait for the download to complete isn't it ? So it must have a logic for it own process and a logic for the download. That make those activities more complicated than they have

[android-developers] Re: Bluetooth server and channel number

2011-05-04 Thread mbaroukh
) { } } } } return _btAdapter; } (this is what I've finally done to correct ...) my 2 cents ... On Apr 26, 9:53 pm, mbaroukh mike.baro...@gmail.com wrote: Hi all. I'm facing

[android-developers] Bluetooth server and channel number

2011-04-26 Thread mbaroukh
Hi all. I'm facing a problem I don't find how to handle. I'm doing an application that listen for bluetooth incomming connection. As recommanded, - I have a BluetoothServerSocket that call listenUsingRfcommWithServiceRecord(() - I'm asking for the BluetoothSocket with accept() method of

[android-developers] Re: Disable scaling of ImageView

2010-06-23 Thread mbaroukh
Yes, it works ! Thanks a lot Mark Mike On 22 juin, 19:57, Mark Murphy mmur...@commonsware.com wrote: On Tue, Jun 22, 2010 at 1:52 PM, mbaroukh mike.baro...@gmail.com wrote: Most of the time, Android scaling is nice but I have a case where I don't wan't any scaling and I can't find how

[android-developers] Re: Disable scaling of ImageView

2010-06-23 Thread mbaroukh
An more : it works also on cupcake ! All images in the apk are really in folder drawable-nodpi but I suppose there is a link to thoses files in resources.arsc ... Mike On 23 juin, 09:25, mbaroukh mike.baro...@gmail.com wrote: Yes, it works ! Thanks a lot Mark Mike On 22 juin, 19:57

[android-developers] Disable scaling of ImageView

2010-06-22 Thread mbaroukh
Hi all. Most of the time, Android scaling is nice but I have a case where I don't wan't any scaling and I can't find how to do this. I made a simple layout to test : ?xml version=1.0 encoding=utf-8? FrameLayout xmlns:android=http://schemas.android.com/apk/res/ android

[android-developers] Re: RelativeLayout bug ?

2010-05-04 Thread mbaroukh
that and grows to take as much space as available, and then aligns your child to the bottom. Your two layouts are definitely NOT supposed to be equivalent. On Mon, May 3, 2010 at 5:57 AM, mbaroukh mike.baro...@gmail.com wrote: Hi all. I suppose it's not abugbut a works as designed but I

[android-developers] RelativeLayout bug ?

2010-05-03 Thread mbaroukh
Hi all. I suppose it's not a bug but a works as designed but I found this to be really frustrating. The use case is simplified just to the point that is a problem for me. Here is the first layout that works : ?xml version=1.0 encoding=utf-8? LinearLayout

[android-developers] Re: How can I get active apn name?

2009-05-08 Thread mbaroukh
yes. I need to do this to retrieve current apn proxy. Her is how I did it : Cursor mCursor = getContentResolver().query(Uri.parse(content:// telephony/carriers), new String[] {name}, current=1, null, null); if (mCursor!=null) {

[android-developers] subproject

2009-03-28 Thread mbaroukh
Hi all. I'd like to create a helperProject to develop on Android. On eclipse, I tried to make a new project, remove main activity on it, include resources (layout, animatins, themes, images, ...). then, I make a new project that is configured to use the helper project. When I run the main