[android-developers] Re: Application gets killed due to a timeout

2009-07-07 Thread denismo

Thanks for the reply. Do you know if this document has been updated
with the changes made in Cupcake?

Thanks.

Denis

On Jul 7, 9:34 pm, Peli peli0...@googlemail.com wrote:
 The numbers can be found in the official 
 documentation:http://developer.android.com/guide/practices/design/responsiveness.html

     *  No response to an input event (e.g. key press, screen touch)
 within 5 seconds
     * A BroadcastReceiver hasn't finished executing within 10 seconds

 Whatever you do, you have to make sure that your *broadcast receiver*
 returns as quickly as possible.

 There are no limits on a background service once it is running.

 Peliwww.openintents.org

 On Jul 7, 11:57 am, denismo deni...@yahoo.com wrote:

  Hi,

  since Cupcake our application became very unstable. It often dies and
  users have to restart it manually. The log shows that it was killed
  due to a timeout, something like this:

  code
  W/ActivityManager(   56): Timeout of broadcast BroadcastRecord
  {434824c8 android.provider.Telephony.SMS_RECEIVED} -
  receiver=android.os.binderpr...@434ba458
  W/ActivityManager(   56): Receiver during timeout: ResolveInfo
  {434663b8 com.websafety.android.client.SMSReceiver p=0 o=0 m=0x108000}
  I/Process (   56): Sending signal. PID: 4702 SIG: 9
  I/ActivityManager(   56): Process com.websafety.android.client (pid
  4702) has died.
  /code

  Previously it was working all fine. It also works fine on Emulator.
  But it is extremely slow on HTC Magic. We found that sometimes it does
  take some time to respond to some requests (such as the broadcast
  above for Telephony.SMS_RECEIVED), while in other cases (for example,
  we have a background Service which starts on BOOT_COMPLETED) it seems
  the problem is not in our code. Previously, it was taking only 5
  second for the service to start, while now it takes 15 seconds - the
  same application, on the new Cupcake phone. I tried converting the
  service onStart into a simple new Thread().start() - and guess what,
  that gets killed as well before it reaches my first line of code. For
  the cases when our code is slow it became much slower with Cupcake
  (or is it HTC Magic?).

  I guess I have two questions to Google, but if someone has workarounds
  or similar experience please speak up:

  1. Why is Cupcake so slow?
  2. Can you document the expected time limits within which some
  methods, either event listeners or overridden, should return before
  they are considered timed out? We don't mind updating the application
  by making sure we do respect those limits, but not knowing them costs
  us too much money as we are discovering them through customer support
  calls. The example methods which I suspect do have those limits are
  Service.onStart, ContentObserver.onChange to name a few.

  Thanks.

  Denis
--~--~-~--~~~---~--~~
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 options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Application gets killed due to a timeout

2009-07-07 Thread denismo

Perhaps this will give more information: I use BOOT_COMPLETED
BroadcastReceived, which starts the service. It takes 5-6 second to
start the service from the receiver on the real device, and less than
a second on emulator:

Device:
Sat Jul 04 00:00:26 GMT+10:00 2009 4 Received intent: Intent
{ action=android.intent.action.BOOT_COMPLETED comp=
{com.websafety.android.client/
com.websafety.android.client.WebSafetyReceiver} }
Sat Jul 04 00:00:30 GMT+10:00 2009 4 Boot completed, registered: true
Sat Jul 04 00:00:32 GMT+10:00 2009 4 WebSafety service has started

Another one:
Fri Jul 03 22:15:44 GMT+10:00 2009 4 Received intent: Intent
{ action=android.intent.action.BOOT_COMPLETED comp=
{com.websafety.android.client/
com.websafety.android.client.WebSafetyReceiver} }
Fri Jul 03 22:15:47 GMT+10:00 2009 4 Boot completed, registered: true
Fri Jul 03 22:15:49 GMT+10:00 2009 4 WebSafety service has started

Emulator:
07-07 23:21:40.469: INFO/WebSafety.Receiver(678): Received intent:
Intent { action=android.intent.action.BOOT_COMPLETED comp=
{com.websafety.android.client/
com.websafety.android.client.WebSafetyReceiver} }
07-07 23:21:40.589: INFO/WebSafety.Receiver(678): Boot completed,
registered: true
07-07 23:21:40.779: INFO/WebSafety.Service(678): WebSafety service has
started

Since BOOT_COMPLETED is a BroadcastReceiver, if the service doesn't
get created fast enough - might the receiver get killed (together with
the whole process)?

And I wonder if the reason for loading the service so slowly could be
something to do with memory access, similar to this post:
http://www.lefutura.com/forum/index.php?menu=show_postsubmenu=forumtopic_id=509

Denis

On Jul 7, 11:01 pm, denismo deni...@yahoo.com wrote:
 Thanks for the reply. Do you know if this document has been updated
 with the changes made in Cupcake?

 Thanks.

 Denis

 On Jul 7, 9:34 pm, Peli peli0...@googlemail.com wrote:

  The numbers can be found in the official 
  documentation:http://developer.android.com/guide/practices/design/responsiveness.html

      *  No response to an input event (e.g. key press, screen touch)
  within 5 seconds
      * A BroadcastReceiver hasn't finished executing within 10 seconds

  Whatever you do, you have to make sure that your *broadcast receiver*
  returns as quickly as possible.

  There are no limits on a background service once it is running.

  Peliwww.openintents.org

  On Jul 7, 11:57 am, denismo deni...@yahoo.com wrote:

   Hi,

   since Cupcake our application became very unstable. It often dies and
   users have to restart it manually. The log shows that it was killed
   due to a timeout, something like this:

   code
   W/ActivityManager(   56): Timeout of broadcast BroadcastRecord
   {434824c8 android.provider.Telephony.SMS_RECEIVED} -
   receiver=android.os.binderpr...@434ba458
   W/ActivityManager(   56): Receiver during timeout: ResolveInfo
   {434663b8 com.websafety.android.client.SMSReceiver p=0 o=0 m=0x108000}
   I/Process (   56): Sending signal. PID: 4702 SIG: 9
   I/ActivityManager(   56): Process com.websafety.android.client (pid
   4702) has died.
   /code

   Previously it was working all fine. It also works fine on Emulator.
   But it is extremely slow on HTC Magic. We found that sometimes it does
   take some time to respond to some requests (such as the broadcast
   above for Telephony.SMS_RECEIVED), while in other cases (for example,
   we have a background Service which starts on BOOT_COMPLETED) it seems
   the problem is not in our code. Previously, it was taking only 5
   second for the service to start, while now it takes 15 seconds - the
   same application, on the new Cupcake phone. I tried converting the
   service onStart into a simple new Thread().start() - and guess what,
   that gets killed as well before it reaches my first line of code. For
   the cases when our code is slow it became much slower with Cupcake
   (or is it HTC Magic?).

   I guess I have two questions to Google, but if someone has workarounds
   or similar experience please speak up:

   1. Why is Cupcake so slow?
   2. Can you document the expected time limits within which some
   methods, either event listeners or overridden, should return before
   they are considered timed out? We don't mind updating the application
   by making sure we do respect those limits, but not knowing them costs
   us too much money as we are discovering them through customer support
   calls. The example methods which I suspect do have those limits are
   Service.onStart, ContentObserver.onChange to name a few.

   Thanks.

   Denis
--~--~-~--~~~---~--~~
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 options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Notification on uninstall

2008-11-12 Thread denismo

Hi,

my application modifies some user settings and also installs some
files on SD card. Is it possible to get notified before application is
uninstalled so that I can remove those files and restore settings?

Thanks.

Denis
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Help: thread stuck with error still suspended after undo (s=1 d=1)

2008-11-06 Thread denismo

Thanks for the reply.

I don't have the broken APK, I fixed it yesterday. If I remember
correctly, it had something to do with Cursor.getLong being invoked
after the Cursor has been closed. Or may be with
ContentResolver.delete in the middle of traversal by Cursor. I
couldn't realize - I just rewrote the function in a different manner
and it worked fine.

Denis

On Nov 7, 11:22 am, fadden [EMAIL PROTECTED] wrote:
 On Nov 6, 4:24 am, denismo [EMAIL PROTECTED] wrote:

  LogCat continuously reports this error:
  11-06 12:20:57.999: DEBUG/dalvikvm(834): threadid=3: still suspended
  after undo (s=1 d=1)

 There's a weird interaction between the VM and your debugger.  The
 thread suspended itself and then waited to be woken.  However, when it
 was woken the thread was still marked as being suspended (s=1) by the
 debugger (d=1).

 If you have an APK that reaches this state repeatably I'd be
 interested in taking a look at 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Exact Battery level value

2008-11-04 Thread denismo

The answer is in Settings/BatteryInfo, thanks to Ian for pointing out
its existence. ACTION_BATTERY_CHANGED carries various undocumented
(thanks Google) extras, including level. Not sure what scale means
though, but it's a good start.

Denis

On Nov 5, 12:12 am, denismo [EMAIL PROTECTED] wrote:
 Where can I get that AnyCut, preferably with the source code?

 Thanks.

 Denis

 On Nov 4, 11:04 pm, Ian [EMAIL PROTECTED] wrote:

  By installing AnyCut, I was able to add a shortcut to Battery info.
  This gave me a whole load of info I have not seen via any other menu option!
  (Makes me wonder what other goodies are hidden away!)

  IV

  2008/11/4 denismo [EMAIL PROTECTED]:

   Hi,

   for tuning power consumption of my application I need to be able to
   estimate how much it consumes power in, say, 1 hour. I will then try
   different strategies and experiment with parameters in order to reduce
   power consumption. Is it possible to implement something like this on
   Android?  Is it possible to get exact battery level value as a number?

   Thanks.

   Denis


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] CPU control API?

2008-11-04 Thread denismo

Hi,

I heard on ARM CPU it is possible to set low-power consumption
options, to reduce power consumption at the cost of speed or features.
Is it possible to control these options using Android API?

Thanks.

Denis
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Exact Battery level value

2008-11-04 Thread denismo

Where can I get that AnyCut, preferably with the source code?

Thanks.

Denis

On Nov 4, 11:04 pm, Ian [EMAIL PROTECTED] wrote:
 By installing AnyCut, I was able to add a shortcut to Battery info.
 This gave me a whole load of info I have not seen via any other menu option!
 (Makes me wonder what other goodies are hidden away!)

 IV

 2008/11/4 denismo [EMAIL PROTECTED]:



  Hi,

  for tuning power consumption of my application I need to be able to
  estimate how much it consumes power in, say, 1 hour. I will then try
  different strategies and experiment with parameters in order to reduce
  power consumption. Is it possible to implement something like this on
  Android?  Is it possible to get exact battery level value as a number?

  Thanks.

  Denis


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Exact Battery level value

2008-11-04 Thread denismo

Hi,

for tuning power consumption of my application I need to be able to
estimate how much it consumes power in, say, 1 hour. I will then try
different strategies and experiment with parameters in order to reduce
power consumption. Is it possible to implement something like this on
Android?  Is it possible to get exact battery level value as a number?

Thanks.

Denis
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: API for Phone profiles

2008-11-01 Thread denismo

Thanks a bunch, will make use of these.

Denis

On Nov 1, 6:38 am, Jason Parekh [EMAIL PROTECTED] wrote:
 1.0 only has support for silent, vibrate, and normal profiles.  You can use
 AudioManager.setRingerMode to switch between those.

 jason

 On Fri, Oct 31, 2008 at 4:40 AM, denismo [EMAIL PROTECTED] wrote:

  Hi,

  I couldn't find these so have to ask: remember on the old phones there
  are profiles (such as Meeting, Silent, Outdoors etc.) which can
  be switched between. Is there a such a thing in Android? I am in
  particular looking for something like Silent.

  And, if there are profiles, is there API for switching between them?

  Thanks.

  Denis


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: my post is not appearing

2008-10-31 Thread denismo

Roger that. I thought I was going nuts - I remember posting something,
and yet it's not there. Glad to hear it's not just me :)

On Oct 31, 11:09 am, Alistair. [EMAIL PROTECTED]
wrote:
 This seems to be a common theme with this forum.

 I have posted stuff which hasn't appeared until days later.

 Al.

 On Oct 30, 9:43 pm, Ernest Freund [EMAIL PROTECTED] wrote:

  Hi, my recent post to the Android 'Developer' group is not appearing.  I 
  posted it about 45 minutes ago.  my login is:

  [EMAIL PROTECTED]

  Please help.  Thanks.


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] API for Phone profiles

2008-10-31 Thread denismo

Hi,

I couldn't find these so have to ask: remember on the old phones there
are profiles (such as Meeting, Silent, Outdoors etc.) which can
be switched between. Is there a such a thing in Android? I am in
particular looking for something like Silent.

And, if there are profiles, is there API for switching between them?

Thanks.

Denis
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] What is the purpose of PARENTAL_CONTROL_REDIRECT_URL setting?

2008-10-31 Thread denismo

And other PARENTAL_CONTROL_* settings? Searched all the source code -
no references. Is it a placeholder for something, or something that
wasn't deleted completely, or?

Thanks.

Denis
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] ContentProvider chaining

2008-10-28 Thread denismo

Hi,

is there a way to implement content provider chaining?

I need something that works like this:
- I install a provider which has similar scheme/paths as a known
provider
- when invoked, I perform some pre-processing
- then invoke an old provider
- do some post-processing
- return results

This is necessary for filtering and extending existing data sources
with some useful content (some special attributes on people from
contacts).

Thanks.

Denis
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Content observers for SMS mailboxes

2008-10-23 Thread denismo

Hi,

I've spent several days trying to figure out how to listen for sent
SMS. One thing that I tried is content observers on content://sms/sent.
That didn't work.  Then I tried content://sms/inbox. That didn't work
either.

In my scenarios, I was doing two things:
- sending SMS to emulator using telnet sms send some number some
text. This generates notification in the notification area, and you
can read the sms later, but content observer on content://sms/inbox is
not invoked
- sending SMS from one emulator to another. I had one on 5554, another
on 5556. I had content observers on both on content://sms/inbox and
content://sms/sent and I was sending sms from 5554 to 5556 using
sendTextMessage(5556, null, ...). I saw SMS being received by 5556,
there was notification and I could read the SMS on 5556. None of the
observers were invoked.

So now I start wondering if content observers are at all support for
SMS content provider?  The same content observers, when installed on
content://contacts/people, are invoked fine when I add a new contact,
so I know I'm using the right API and use it correctly.

Any clues? Anyone has any examples of listening on these content
providers? Or listening on different content providers which do give
you information about sent SMS?

Thanks.

Denis
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Content observers for SMS mailboxes

2008-10-23 Thread denismo

Thanks, you saved me time looking through the source code, I planned
to do this tonight.

Will try listening on those available URIs, and check for new sent SMS
as you suggested.

Thanks.

Denis

On Oct 24, 11:49 am, Evan JIANG [EMAIL PROTECTED] wrote:
 The sms provider's source code is in
 ROOT_OF_ANDROID_SOURCE_CODE/packages/providers/TelephonyProvider/SmsProvider.java
 After had a look at that, I found you're right. It only send UriChange
 notification on 3 Uris. I'm not sure if it's a bug.
 You can register your content observer on content://sms. After get the
 notifyChange, query the latest SMSes, and check the sent flag to judge is it
 a sent sms or received sms.

 Regards,
 Evan JIANG

 On Fri, Oct 24, 2008 at 8:22 AM, denismo [EMAIL PROTECTED] wrote:

  Hi,

  I've spent several days trying to figure out how to listen for sent
  SMS. One thing that I tried is content observers on content://sms/sent.
  That didn't work.  Then I tried content://sms/inbox. That didn't work
  either.

  In my scenarios, I was doing two things:
  - sending SMS to emulator using telnet sms send some number some
  text. This generates notification in the notification area, and you
  can read the sms later, but content observer on content://sms/inbox is
  not invoked
  - sending SMS from one emulator to another. I had one on 5554, another
  on 5556. I had content observers on both on content://sms/inbox and
  content://sms/sent and I was sending sms from 5554 to 5556 using
  sendTextMessage(5556, null, ...). I saw SMS being received by 5556,
  there was notification and I could read the SMS on 5556. None of the
  observers were invoked.

  So now I start wondering if content observers are at all support for
  SMS content provider?  The same content observers, when installed on
  content://contacts/people, are invoked fine when I add a new contact,
  so I know I'm using the right API and use it correctly.

  Any clues? Anyone has any examples of listening on these content
  providers? Or listening on different content providers which do give
  you information about sent SMS?

  Thanks.

  Denis


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] GPRS configuration

2008-10-22 Thread denismo

Hi,

I remember on other phones there are some settings associated with
GPRS/packet data connections, such as gateway, number, may be login,
proxy etc., I hope it rings a bell. Is there something like this on
Android? Can it be read/modified using API?

Thanks.

Denis
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] If you have G1, can you check this for me?

2008-10-19 Thread denismo

Hi,

I just need to quickly check simple behavior: when connection doesn't
have GPRS enabled yet (typically, after switching off/on), and you go
online (open browser and browse google.com), does it show a popup
dialog asking user if he wants to allow a program to access internet?

For comparison, typical mobile phone (like Nokia) would ask user
before initiating so called data connection through GPRS. I'm trying
to find out whether the same will be with Android phones.

Thanks.

Denis
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: If you have G1, can you check this for me?

2008-10-19 Thread denismo

Thanks, I'll look for emulator settings (didn't see them before
though, but now that I know they must be somewhere there...), and rely
on the behavior.

Denis

On Oct 19, 8:56 pm, Huebi [EMAIL PROTECTED] wrote:
 The iPhone doesn't ask as always-on internet access is one of the key
 features. This is the same for Android so I would not expect any kind
 of popup. You probably can allow it to roam or not but that's it. The
 emulator control allows you to play with all these settings (data
 connection available / not available / roaming etc). Just rely on what
 happens in the emulator, that should do it.

 On Oct 19, 11:21 am, denismo [EMAIL PROTECTED] wrote:

  Hi,

  I just need to quickly check simple behavior: when connection doesn't
  have GPRS enabled yet (typically, after switching off/on), and you go
  online (open browser and browse google.com), does it show a popup
  dialog asking user if he wants to allow a program to access internet?

  For comparison, typical mobile phone (like Nokia) would ask user
  before initiating so called data connection through GPRS. I'm trying
  to find out whether the same will be with Android phones.

  Thanks.

  Denis


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] What happens when network (GPRS) is not enabled, and you try to open connection?

2008-10-15 Thread denismo

Say, I'm opening connection to a website using URLConnection.  GPRS is
not enabled yet.  What will happen?  Will GPRS become enabled?  Will
user be notified and asked whether she wants to enable GPRS? Or will
an exception be thrown?

On current phones (like Nokia/Symbian), when GPRS is not enabled, and
an application tries to access the internet (e.g. Maps), user is
prompted to allow/deny the request.  Will similar happen on Android?

Thanks.

Denis
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Capturing outgoing SMS?

2008-10-13 Thread denismo

I know it is possible to get an incoming SMS, using intent
android.provider.Telephony.SMS_RECEIVED.

On SDK 1.0_r1, is it possible to capture an outgoing SMS (text, phone
number)?

Thanks.

Denis
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Uninstall packages API

2008-10-13 Thread denismo

Hi,

I know there is a way to uninstall applications on emulator, using
ADB, but that is not available on the phone.  My application needs to
provide a way to uninstall itself, initiated automatically or by
user's request through UI, with user's permission of course - it
doesn't need to be uncontrolled. So it should be done
programmatically, using some public API like PackageManager.uninstall.
Any ideas on how this can be done?

Thanks.

Denis
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Package flags and attributes

2008-10-06 Thread denismo

Hi,

I am looking at the package manager API and I see a few items which
are not clear:

- FORWARD_LOCK_PACKAGE flag to installPackage - I don't really
understand its meaning:
to indicate that this package should be installed as forward locked,
i.e. only the app itself should have access to it's code and non-
resource assets. - but why would anybody need it?  For privacy, to
protect data? Any other reasons?

- android.content.pm.ApplicationInfo.FLAG_SYSTEM - is there a way to
install applications with this flag?  I couldn't find it in the
manifest reference.

Thanks.

Denis

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Prevent uninstall of application in Android

2008-10-06 Thread denismo

Hello,

I've got an unusual requirement - I need to PREVENT users from
uninstalling my application from their Android platform (not emulator
but the future devices). Is there an official way for doing this? An
unofficial?

If that's not possible exactly, perhaps it may be possible to:
- remove/hide the application from the installed applications list
- abort uninstall by throwing an error from some standard class
- prevent uninstall of only some types/configurations of
applications?
- automatically force reinstall of uninstalled application?
- invoke some class in the application before being uninstalled so
that it can send SMS/access a web site to notify someone about this?

Thanks.

Denis

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---