[android-developers] Questions about my app statistics on Market - where to ask?

2011-11-01 Thread Armond Avanes

Hi Guys,

I have some questions about my application on Market (why it ranks so, 
why the total installs doesn't increase, etc), but I don't know where I 
should ask these questions since it's something very app-specific. I 
tried to contact the Market team using the Contact Us section here 
(Bugs on the Publisher website):

http://www.google.com/support/androidmarket/developer/bin/answer.py?answer=136601hl=en

But so far I haven't received any response. Actually there isn't any 
dedicated section for app ranking and total installs in the above 
Contact Us page.


I will appreciate if someone from Market team give me a help on this. Or 
at least assist me on where I should post my questions.


Best Regards,
Armond

--
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] How to access the Product Key on Archos tablets?

2011-01-26 Thread Armond
Hi Folks,

I need to access the product key (or whatever unique device ID) of the
Archos devices. I've found the following API mentioned on Archos
website which should work on Archos5 series:
Settings.System.getString(getContentResolver(), archos.product_key);

But it does not work on 101 tablets (returning NULL). Any clue?

Further Note: It seems that Telephony.getDeviceId() always returns
NULL on all Archos devices.

Thank you,
Armond

-- 
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] How to access the Product Key on Archos tablets?

2011-01-26 Thread Armond Avanes
Hi Folks,

I need to access the product key (or whatever unique device ID) of the
Archos devices. I've found the following API mentioned on Archos website
which should work on Archos5 series:
Settings.System.getString(getContentResolver(), archos.product_key);

But it does not work on 101 tablets (returning NULL). Any clue?

Further Note: It seems that Telephony.getDeviceId() always returns NULL on
all Archos devices.

Thank you,
Armond

-- 
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] How to access the Product Key on Archos tablets?

2011-01-26 Thread Armond Avanes
Hi Folks,

I need to access the product key (or whatever unique device ID) of the
Archos devices. I've found the following API mentioned on Archos website
which should work on Archos5 series:
Settings.System.getString(getContentResolver(), archos.product_key);

But it does not work on 101 tablets (returning NULL). Any clue?

Further Note: It seems that Telephony.getDeviceId() always returns NULL on
all Archos devices.

Thank you,
Armond

-- 
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

Re: [android-developers] How to listen for ACTION_EXTERNAL_APPLICATIONS_AVAILABLE while Move2SD is enabled?

2011-01-04 Thread Armond Avanes
Any answer?



- Original Message 
 From: Armond Avanes armond...@yahoo.com
 To: android-developers@googlegroups.com
 Sent: Sunday, January 2, 2011 12:03:59
 Subject: [android-developers] How to listen for 
ACTION_EXTERNAL_APPLICATIONS_AVAILABLE while Move2SD is enabled?
 
 Hi Guys,
 
 I have an application which I'm going to enable Move to SD for.  The problem
 is that I have some scheduled alarms (for running some background  tasks) so
 if the application has already been moved to SD and the SD is  mounted as a
 disk drive, all my scheduled alarms and background services will  be
 terminated. Obviously my app should listen  for
 ACTION_EXTERNAL_APPLICATIONS_AVAILABLE broadcast to register/schedule  the
 alarms again as a classic solution...
 
 Now the problem I'm facing  is that the applications which have been moved to
 SD wouldn't receive  ACTION_EXTERNAL_APPLICATIONS_AVAILABLE! The end result
 is that my  application will never be able to resume its alarms and services
 in such  cases!!
 
 Further reference (notice the sentence Note that the packages in  this list
 do not receive this broadcast):
 http://developer.android.com/intl/fr/reference/android/content/Intent.html#A
 CTION_EXTERNAL_APPLICATIONS_AVAILABLE
 
 Also  I've found a bug reported for this problem but it's still not accepted
 after  7 months:
 http://code.google.com/p/android/issues/detail?id=8485
 
 Any solution?  Any clues?
 
 Armond
 
 -- 
 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
 


-- 
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] How to listen for ACTION_EXTERNAL_APPLICATIONS_AVAILABLE while Move2SD is enabled?

2011-01-02 Thread Armond Avanes
Hi Guys,

I have an application which I'm going to enable Move to SD for. The problem
is that I have some scheduled alarms (for running some background tasks) so
if the application has already been moved to SD and the SD is mounted as a
disk drive, all my scheduled alarms and background services will be
terminated. Obviously my app should listen for
ACTION_EXTERNAL_APPLICATIONS_AVAILABLE broadcast to register/schedule the
alarms again as a classic solution...

Now the problem I'm facing is that the applications which have been moved to
SD wouldn't receive ACTION_EXTERNAL_APPLICATIONS_AVAILABLE! The end result
is that my application will never be able to resume its alarms and services
in such cases!!

Further reference (notice the sentence Note that the packages in this list
do not receive this broadcast):
http://developer.android.com/intl/fr/reference/android/content/Intent.html#A
CTION_EXTERNAL_APPLICATIONS_AVAILABLE

Also I've found a bug reported for this problem but it's still not accepted
after 7 months:
http://code.google.com/p/android/issues/detail?id=8485

Any solution? Any clues?

Armond

-- 
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


RE: [android-developers] Apps not shown in 2.1 Market

2010-03-23 Thread Armond Avanes
Hi,

I have the same problem with my app (aCar). I've got some complaints from
2.1 users (Eris) and a few from 1.6 (MyTouch 3G).

By the way, I've restricted my app NOT to run on small screen and it's
copy protected as well. I guess the copy protection flag is somehow guilty
here!

Any similar experiences around?

Regards,
Armond

 Dear all,
 
 I published several free and paid app in the Market. I recently get
 several complains from customers about not finding my app in the 2.1
 Market. Even if they have bought them before, they can't find it in
 the market or their download list after updating to 2.1.
 
 Can anyone tell me what the problem is?
 
 Thanks a lot!!
 
 P.S. all in north america market.
 
 --
 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
 
 To unsubscribe from this group, send email to android-
 developers+unsubscribegooglegroups.com or reply to this email with the
 words REMOVE ME as the subject.

-- 
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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] INTERNET Permission

2010-03-05 Thread Armond Avanes
Hi Guys,

One of my users is experiencing an odd problem on network access via my
application. Checking his logs shows up the following exception.

The odd thing is that I have android.permission.INTERNET in application
AndroidManifest.xml and many users have already used my app with no problem
(I've launched it 4 months ago).

Anyone has nay idea what the problem can be?

Best Regards,
Armond

java.net.SocketException: Permission denied (maybe missing INTERNET
permission)
at
org.apache.harmony.luni.platform.OSNetworkSystem.createStreamSocketImpl(Nati
ve Method)
at 
org.apache.harmony.luni.platform.OSNetworkSystem.createStreamSocket(OSNetwor
kSystem.java:187)
at 
org.apache.harmony.luni.net.PlainSocketImpl.create(PlainSocketImpl.java:266)
at java.net.Socket.checkClosedAndCreate(Socket.java:872)
at java.net.Socket.connect(Socket.java:1019)
at
org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.init
(HttpConnection.java:62)
at 
org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnectionManager
$ConnectionPool.getHttpConnection(HttpConnectionManager.java:145)
at 
org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnectionManager
.getConnection(HttpConnectionManager.java:67)
at 
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.get
HTTPConnection(HttpURLConnection.java:821)
at 
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.con
nect(HttpURLConnection.java:807)
at 
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.get
OutputStream(HttpURLConnection.java:1150)
..


-- 
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] How to blur a Canvas or Bitmap?

2010-02-06 Thread Armond Avanes
Hi Guys,

Can anyone point me to an example of how to blur a Canvas or Bitmap?

Thank you,
Armond

-- 
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] Decreased download rates or Console update problem?

2010-02-05 Thread Armond Avanes
Hi Guys,

Has anyone noticed significant download slowdown for his application? Is it
just a developer console update problem or something else is going on behind
the scene?

Thank you,
Armond

-- 
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] Writing indented XML

2009-12-14 Thread Armond Avanes
Hi Folks,

Anyone knows how I can write indented XML using XmlSerializer or any other
XML specific API?

Regards,
Armond 

-- 
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] Turning OFF the copy protection on Market. Still any known issues?

2009-11-24 Thread Armond Avanes
Hi Guys,

I guess the title says it all! Are there still any known issues for
modifying the copy protection on Market (actually to turn it OFF)?

I've heard and read some horror stories from developers, and I don't want to
risk my application reputation and rating!

Let me know if I can do it without any worry.

Thank you,
Armond

-- 
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] Running a service once per day

2009-11-22 Thread Armond Avanes
Hi Folks,

I want to run a background service once per day (after the date changed at
midnight) and I don't want this schedule to be forgotten after a reboot. But
I was not successful when I tried to listen for DATE_CHANGED or TIME_SET
intents!

Currently I'm listening for BOOT_COMPLETED intent and do a manual schedule
using AlarmManager. Is this the intended way to do so? Or there is a better
solution?

Thank you,
Armond

-- 
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] AutoCompleteTextView, passing the focus and Android 1.6

2009-11-15 Thread Armond Avanes
Hi Guys,

Has anyone noticed that AutoCompleteTextView doesn't pass the focus to the
next field when you tap on NEXT button on soft keyboard? And it's all
happening on Android 1.6. v1.5 works flawlessly! Is there any known solution
for this?

Thank you,
Armond

-- 
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


RE: [android-developers] App Not showing up on Verizon DROID Phones

2009-11-13 Thread Armond Avanes
Scott  Others,

 

I have a similar request for my app. I've restricted it not to run on small
screen devices but the rest (including DROID) must be okay. Would you please
check my application as well? And its name is aCar. It's an application to
track your vehicles' maintenance, gas mileage and such.

 

Thanks a million,

Armond

 

  _  

From: SoftwareForMe.com SoftwareForMe.com
[mailto:softwareforme@gmail.com] 
Sent: Friday, November 13, 2009 8:03 AM
To: android-developers@googlegroups.com
Subject: Re: [android-developers] App Not showing up on Verizon DROID Phones

 

Your Manifest looks fine.

 

I have a Droid. I searched the market and found MoneyNow - Preview, by
SAISK LLC. If that's you, you're AOK.

 

Scott

SoftwareForMe.com

On Thu, Nov 12, 2009 at 5:04 PM, Kumaravel Kandasami
kumaravel.kandas...@gmail.com wrote:

BTW, additionally I have ON ed the copy protection in the Android Market.

On (Helps prevent copying of this application from the device. Increases
the amount of memory on the phone required to install the application.)




Kumar_/|\_ 
www.saisk.com
ku...@saisk.com
making a profound difference with knowledge and creativity...



On Thu, Nov 12, 2009 at 7:01 PM, Kumaravel Kandasami
kumaravel.kandas...@gmail.com wrote:

Thanks Dianne Hackborn.
This is my entire manifest file, I have just renamed the classes for this
email.


manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=com.saisk.moneynow
  android:versionCode=2
  android:versionName=Preview 1.0
   uses-permission android:name=android.permission.INTERNET /  
   uses-permission android:name=android.permission.ACCESS_NETWORK_STATE
/  
   application
   android:name=myApplication 
   android:icon=@drawable/mn 
   android:label=@string/app_name
   android:windowNoTitle=true
   
activity android:name=.MyActivity
  android:configChanges=keyboardHidden|orientation
  android:theme=@android:style/Theme.NoTitleBar
intent-filter
action android:name=android.intent.action.MAIN /
category android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity
/application


uses-sdk android:minSdkVersion=3 /

/manifest 



Kumar_/|\_ 
www.saisk.com
ku...@saisk.com
making a profound difference with knowledge and creativity...



On Thu, Nov 12, 2009 at 5:46 PM, Dianne Hackborn hack...@android.com
wrote:

What else is in your manifest?

On Thu, Nov 12, 2009 at 2:57 PM, Kumaravel Kandasami
kumaravel.kandas...@gmail.com wrote:

I just got a call from my friend saying that she is not able to see our App:
Money Now on her Droid phone. 

I have declared in manifest.xml as 
uses-sdk android:minSdkVersion=3 /

Is there anything that I am missing to have my app be displayed on the DROID
Phones or it is an user error. 


Appreciate your response.

Thanks,
Kumar_/|\_ 
www.saisk.com
ku...@saisk.com
making a profound difference with knowledge and creativity...

-- 
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
mailto:android-developers%2bunsubscr...@googlegroups.com 
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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
mailto:android-developers%2bunsubscr...@googlegroups.com 
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

 

 

-- 
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
mailto:android-developers%2bunsubscr...@googlegroups.com 
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en




-- 
Warm regards,
The PhoneMyPC Team

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more

[android-developers] Some reviews and feedbacks for my app

2009-11-06 Thread Armond Avanes
Hi Guys,

I would like to have some reviews and feedbacks for my recently released
app. Can anyone help me?

By the way, is it legal here to post about my application and request for
feedbacks/reviews?

Cheersss,
Armond

-- 
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] Good active install rate?

2009-11-05 Thread Armond Avanes
Hi Guys,

How much is considered a good percentage for Active Installs of
applications? I've seen some screen shots around and most were under %50. Is
this normal?

Thank you,
Armond

-- 
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


Re: [android-developers] Re: Problem running a compiled/packaged-with-v1.6 application on v1.5

2009-11-04 Thread Armond Avanes
Lance, Thanks for your reply.

Finally I could track down the problem. PreferenceCategory was the root of 
the issue! For whatever reason, that exception occurs when I build against v1.6 
and run it under v1.5 or when I build it against v1.5 and run it under v1.6... 
The problem vanishes when I remove my PreferenceCategory's from 
preferences.xml.

Can you reproduce this with your code?

As for the cause, when I tracked it even further, I found out that when a 
PreferencesCategory is inflated using the default layout, it's using  
preference_category.xml layout from platform (you can find it under 
ANDROID_SDK_HOME/platforms/android-1.x/data/res/layout). You'll find the 
following block inside the file (both for v1.5 and v1.6):

TextView xmlns:android=http://schemas.android.com/apk/res/android;
style=?android:attr/listSeparatorTextViewStyle
android:id=@+android:id/title
/

And obviously it includes neither layout_height not layout_width attribute! 
As a solution (maybe temporary!), I copied this file to my project's layout/ 
directory and added the above missing parameters to it. And in my 
preferences.xml I assigned android:layout=@layout/preference_category 
attribute to all of the PreferenceCategory tags. The problem resolved!!!

But I'm still in wonder with such missing parameter, why it works flawlessly 
when I build and run the project under the same Android version??

Best Regards,
Armond




- Original Message 
 From: Lance Nanek lna...@gmail.com
 To: Android Developers android-developers@googlegroups.com
 Sent: Wed, November 4, 2009 3:44:20 AM
 Subject: [android-developers] Re: Problem running a 
 compiled/packaged-with-v1.6  application on v1.5
 
 Hmm, I have an app that similarly uses a PreferenceActivity and build
 target 1.6, but it runs fine on the 1.5 emulator. I wonder what we are
 doing different.
 
 Is your activity just the basic form like this?
 public class Preferences extends PreferenceActivity {
 @Override
 protected void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 addPreferencesFromResource(R.xml.preferences);
 }
 }
 
 Are you calling Preference#setLayoutResource in any way? Seems like
 that could change the XML file being used. I think I found the default
 one in the Android source, but don't see the missing attribute in it.
 
 On Nov 3, 5:03 pm, Armond Avanes wrote:
  Hi Guys,
 
  I have an application which is based Android 1.5 but for enabling different
  screen types support I have to compile and package it with v1.6. When I
  install and run the resulted APK on my 1.5 emulator, everything works fine
  except that Preferences activity crashes every time I launch it!
 
  When I revert back my API dependency to 1.5 and remove a few 1.6 specific
  config blocks from AndroidManifest.xml and compile/package it with 1.5,
  everything works just fine!!
 
  Below is the exception I get when it crashes. I will highly appreciate any
  help on this:
 
  D/AndroidRuntime(  985): Shutting down VM
  W/dalvikvm(  985): threadid=3: thread exiting with uncaught exception
  (group=0x4000fe70)
  E/AndroidRuntime(  985): Uncaught handler: thread main exiting due to
  uncaught exception
  E/AndroidRuntime(  985): java.lang.RuntimeException: Binary XML file line
  #18: You must supply a layout_width attribute.
  E/AndroidRuntime(  985):at
  android.content.res.TypedArray.getLayoutDimension(TypedArray.java:438)
  E/AndroidRuntime(  985):at
  android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:3319)
  E/AndroidRuntime(  985):at
  android.view.ViewGroup$LayoutParams.(ViewGroup.java:3274)
  E/AndroidRuntime(  985):at
  android.widget.AbsListView$LayoutParams.(AbsListView.java:3242)
  E/AndroidRuntime(  985):at
  android.widget.AbsListView.generateLayoutParams(AbsListView.java:3123)
  E/AndroidRuntime(  985):at
  android.widget.AbsListView.generateLayoutParams(AbsListView.java:69)
  E/AndroidRuntime(  985):at
  android.view.LayoutInflater.inflate(LayoutInflater.java:395)
  E/AndroidRuntime(  985):at
  android.view.LayoutInflater.inflate(LayoutInflater.java:320)
  E/AndroidRuntime(  985):at
  android.preference.Preference.onCreateView(Preference.java:412)
  E/AndroidRuntime(  985):at
  android.preference.Preference.getView(Preference.java:389)
  E/AndroidRuntime(  985):at
  android.preference.PreferenceGroupAdapter.getView(PreferenceGroupAdapter.jav
  a:187)
  E/AndroidRuntime(  985):at
  android.widget.AbsListView.obtainView(AbsListView.java:1269)
  E/AndroidRuntime(  985):at
  android.widget.ListView.makeAndAddView(ListView.java:1623)
  E/AndroidRuntime(  985):at
  android.widget.ListView.fillDown(ListView.java:607)
  E/AndroidRuntime(  985):at
  android.widget.ListView.fillFromTop(ListView.java:664)
  E/AndroidRuntime(  985):at
  android.widget.ListView.layoutChildren(ListView.java

Re: [android-developers] Re: Problem running a compiled/packaged-with-v1.6 application on v1.5

2009-11-04 Thread Armond Avanes
Lance,

Digging further showed that it was the problem with my theme customization.

The default preference_category.xml is referring to 
listSeparatorTextViewStyle as its style. But I've customized the 
listSeparatorTextViewStyle and for whatever reason it does not correctly 
inherit the layout_width and layout_hight attributes from Android default 
theme.

In my themes.xml:
item 
name=android:listSeparatorTextViewStyle@style/Widget.TextView.ListSeparator/item

In my styles.xml:
style name=Widget.TextView.ListSeparator 
parent=android:Widget.TextView.ListSeparator
item name=android:background@drawable/blue_header/item
/style

Solution: I just copied all the attributes from Android default 
Widget.TextView.ListSeparator and the problem got fixed! No other changes, 
including the ones I just mentioned in my previous reply, are needed:

style name=Widget.TextView.ListSeparator 
parent=android:Widget.TextView
item name=android:background@drawable/blue_header/item

item name=android:layout_widthfill_parent/item
item name=android:layout_height25dip/item
item name=android:textStylebold/item
item name=android:textColor?android:attr/textColorSecondary/item
item name=android:textSize14sp/item
item name=android:gravitycenter_vertical/item
item name=android:paddingLeft5sp/item
/style

And I guess this is the final solution for those whom want to customize their 
ListViews (and the related separator). But I still can't understand why this 
occurs when the build/packaging platform is not the same as the deployment one. 
Hope someone from Android engineering team answers me.

Best Regards,
Armond



- Original Message 
 From: Armond Avanes armond...@yahoo.com
 To: android-developers@googlegroups.com
 Sent: Wed, November 4, 2009 2:00:50 PM
 Subject: Re: [android-developers] Re: Problem running a 
 compiled/packaged-with-v1.6   application on v1.5
 
 Lance, Thanks for your reply.
 
 Finally I could track down the problem.  was the root of 
 the issue! For whatever reason, that exception occurs when I build against 
 v1.6 
 and run it under v1.5 or when I build it against v1.5 and run it under 
 v1.6... 
 The problem vanishes when I remove my PreferenceCategory's from 
 preferences.xml.
 
 Can you reproduce this with your code?
 
 As for the cause, when I tracked it even further, I found out that when a 
 is inflated using the default layout, it's using  
 preference_category.xml layout from platform (you can find it under 
 /platforms/android-1.x/data/res/layout). You'll find the 
 following block inside the file (both for v1.5 and v1.6):
 
 
 style=?android:attr/listSeparatorTextViewStyle
 android:id=@+android:id/title
 /
 
 And obviously it includes neither layout_height not layout_width 
 attribute! 
 As a solution (maybe temporary!), I copied this file to my project's 
 layout/ 
 directory and added the above missing parameters to it. And in my 
 preferences.xml I assigned android:layout=@layout/preference_category 
 attribute to all of the tags. The problem resolved!!!
 
 But I'm still in wonder with such missing parameter, why it works flawlessly 
 when I build and run the project under the same Android version??
 
 Best Regards,
 Armond
 
 
 
 
 - Original Message 
  From: Lance Nanek 
  To: Android Developers 
  Sent: Wed, November 4, 2009 3:44:20 AM
  Subject: [android-developers] Re: Problem running a 
 compiled/packaged-with-v1.6  application on v1.5
  
  Hmm, I have an app that similarly uses a PreferenceActivity and build
  target 1.6, but it runs fine on the 1.5 emulator. I wonder what we are
  doing different.
  
  Is your activity just the basic form like this?
  public class Preferences extends PreferenceActivity {
  @Override
  protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  addPreferencesFromResource(R.xml.preferences);
  }
  }
  
  Are you calling Preference#setLayoutResource in any way? Seems like
  that could change the XML file being used. I think I found the default
  one in the Android source, but don't see the missing attribute in it.
  
  On Nov 3, 5:03 pm, Armond Avanes wrote:
   Hi Guys,
  
   I have an application which is based Android 1.5 but for enabling 
   different
   screen types support I have to compile and package it with v1.6. When I
   install and run the resulted APK on my 1.5 emulator, everything works fine
   except that Preferences activity crashes every time I launch it!
  
   When I revert back my API dependency to 1.5 and remove a few 1.6 specific
   config blocks from AndroidManifest.xml and compile/package it with 1.5,
   everything works just fine!!
  
   Below is the exception I get when it crashes. I will highly appreciate any
   help on this:
  
   D/AndroidRuntime(  985): Shutting down VM
   W/dalvikvm(  985): threadid=3: thread exiting with uncaught exception
   (group

[android-developers] Problem running a compiled/packaged-with-v1.6 application on v1.5

2009-11-03 Thread Armond Avanes
Hi Guys,

I have an application which is based Android 1.5 but for enabling different
screen types support I have to compile and package it with v1.6. When I
install and run the resulted APK on my 1.5 emulator, everything works fine
except that Preferences activity crashes every time I launch it!

When I revert back my API dependency to 1.5 and remove a few 1.6 specific
config blocks from AndroidManifest.xml and compile/package it with 1.5,
everything works just fine!!

Below is the exception I get when it crashes. I will highly appreciate any
help on this:

D/AndroidRuntime(  985): Shutting down VM
W/dalvikvm(  985): threadid=3: thread exiting with uncaught exception
(group=0x4000fe70)
E/AndroidRuntime(  985): Uncaught handler: thread main exiting due to
uncaught exception
E/AndroidRuntime(  985): java.lang.RuntimeException: Binary XML file line
#18: You must supply a layout_width attribute.
E/AndroidRuntime(  985):at
android.content.res.TypedArray.getLayoutDimension(TypedArray.java:438)
E/AndroidRuntime(  985):at
android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:3319)
E/AndroidRuntime(  985):at
android.view.ViewGroup$LayoutParams.init(ViewGroup.java:3274)
E/AndroidRuntime(  985):at
android.widget.AbsListView$LayoutParams.init(AbsListView.java:3242)
E/AndroidRuntime(  985):at
android.widget.AbsListView.generateLayoutParams(AbsListView.java:3123)
E/AndroidRuntime(  985):at
android.widget.AbsListView.generateLayoutParams(AbsListView.java:69)
E/AndroidRuntime(  985):at
android.view.LayoutInflater.inflate(LayoutInflater.java:395)
E/AndroidRuntime(  985):at
android.view.LayoutInflater.inflate(LayoutInflater.java:320)
E/AndroidRuntime(  985):at
android.preference.Preference.onCreateView(Preference.java:412)
E/AndroidRuntime(  985):at
android.preference.Preference.getView(Preference.java:389)
E/AndroidRuntime(  985):at
android.preference.PreferenceGroupAdapter.getView(PreferenceGroupAdapter.jav
a:187)
E/AndroidRuntime(  985):at
android.widget.AbsListView.obtainView(AbsListView.java:1269)
E/AndroidRuntime(  985):at
android.widget.ListView.makeAndAddView(ListView.java:1623)
E/AndroidRuntime(  985):at
android.widget.ListView.fillDown(ListView.java:607)
E/AndroidRuntime(  985):at
android.widget.ListView.fillFromTop(ListView.java:664)
E/AndroidRuntime(  985):at
android.widget.ListView.layoutChildren(ListView.java:1481)
E/AndroidRuntime(  985):at
android.widget.AbsListView.onLayout(AbsListView.java:1113)
E/AndroidRuntime(  985):at android.view.View.layout(View.java:6133)
E/AndroidRuntime(  985):at
android.widget.FrameLayout.onLayout(FrameLayout.java:333)
E/AndroidRuntime(  985):at android.view.View.layout(View.java:6133)
E/AndroidRuntime(  985):at
android.widget.LinearLayout.setChildFrame(LinearLayout.java:1119)
E/AndroidRuntime(  985):at
android.widget.LinearLayout.layoutVertical(LinearLayout.java:998)
E/AndroidRuntime(  985):at
android.widget.LinearLayout.onLayout(LinearLayout.java:918)
E/AndroidRuntime(  985):at android.view.View.layout(View.java:6133)
E/AndroidRuntime(  985):at
android.widget.FrameLayout.onLayout(FrameLayout.java:333)
E/AndroidRuntime(  985):at android.view.View.layout(View.java:6133)
E/AndroidRuntime(  985):at
android.view.ViewRoot.performTraversals(ViewRoot.java:929)
E/AndroidRuntime(  985):at
android.view.ViewRoot.handleMessage(ViewRoot.java:1482)
E/AndroidRuntime(  985):at
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(  985):at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(  985):at
android.app.ActivityThread.main(ActivityThread.java:3948)
E/AndroidRuntime(  985):at
java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(  985):at
java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime(  985):at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:7
82)
E/AndroidRuntime(  985):at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
E/AndroidRuntime(  985):at dalvik.system.NativeStart.main(Native
Method)

Best Regards,
Armond

-- 
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


RE: [android-developers] Re: Eclair install choked with errors about locks and died horribly leaving corrupted install

2009-11-01 Thread Armond Avanes
Raphael,

The error message says that some files are locked in temp directory not in
destination. At least if you're doing a first-time install (not update), the
destination directory is empty and it's quite safe to copy.

Regards,
Armond

 From: Raphael [mailto:r...@android.com]
 Sent: Monday, November 02, 2009 8:57 AM
 
 On Wed, Oct 28, 2009 at 11:25 PM, Armond Avanes armond...@yahoo.com
 wrote:
  After all, I'm still on my opinion. In the case of failure, the update
  process should try to COPY the contents instead of moving/renaming. And
 a
  warning that some garbage have been left on temp directory. For those
 of
  us on slow connections it's really a pain to download that much and
 throw it
  away!!! I guess I've downloaded 500MB worth of data so far and still
  trying...
 
 The problem with copying is that if a file can't be replaced in the
 middle of the copy operation, what do you want the installer to do?
 You'd be left with half installed platform mixing some old stuff and
 new stuff. Or it'd have to throw away you old install (which might
 fail because of a locked folder anyway).
 
 As for the threading issue, I can't figure it out. It's a very
 sequential mode of operation right now.
 
 On your last point, you're right, I shouldn't throw away the download
 right away if the download was successful yet the install failed. It
 would be easy to allow you to retry installing right away.
 
 Still I'd really like to know what can be locking that thing :(
 
 R/
 
 --
 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

-- 
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: Eclair install choked with errors about locks and died horribly leaving corrupted install

2009-10-29 Thread Armond Avanes

Raphael,

I'm installing from command-line using SDK Setup.exe but the same locking
problem still exists for me.

I just installed Process Explorer and monitored the process which is
locking android-sdk-windows\temp\... directory. While downloading the
package not even a single process has any lock on it. But while installing,
only java.exe keeps the lock once in a while (I pressed the Search
button many times quickly while installing, to have a live view of what's
going on). As an important note, after several retries I succeeded once to
download and install android-1.1!! I guess it may be a threading problem
because for the one I succeed I was pressing/repressing the Search button
quickly (on Process Explorer) and it kinda slowed down my computer a bit.
Just thought it may help!

And by the way I'm running JDK 1.6.0_12.

After all, I'm still on my opinion. In the case of failure, the update
process should try to COPY the contents instead of moving/renaming. And a
warning that some garbage have been left on temp directory. For those of
us on slow connections it's really a pain to download that much and throw it
away!!! I guess I've downloaded 500MB worth of data so far and still
trying...

Regards,
Armond 

 -Original Message-
 From: android-developers@googlegroups.com [mailto:android-
 develop...@googlegroups.com] On Behalf Of Raphael
 Sent: Wednesday, October 28, 2009 9:55 PM
 To: android-developers@googlegroups.com
 Subject: [android-developers] Re: Eclair install choked with errors about
 locks and died horribly leaving corrupted install
 
 
 Hey, do you still have the lock issue from Eclipse?
 
 I could use a bit of help understand what's going on:
 - Install Process Explorer from
 http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx
 - Run Process Explorer
 - Go to Find  Find Handle
 - Search for the one of the locked path, e.g. C:\android-sdk-windows-
 1.6_r1\temp
 - Tell me which process is locking it.
 
 That will help me a lot :-)
 R/
 
 On Tue, Oct 27, 2009 at 2:31 PM, Jim Showalter
 jamesleeshowal...@gmail.com wrote:
  Followed the instructions in
  http://developer.android.com/sdk/adding-components.html for adding 2.0
 as
  components to an existing 1.6 SDK, from within Eclipse.
 
  It didn't work. Not by a long shot. Instead, it got partway through and
 then
  said that C:\android-sdk-windows-1.6_r1\
  temp\DocPackage.new01 couldn't be copied because of a lock, and
 similarly
  for PlatformPackage.new01.
 
  It said to shut down running programs, but the only program running was
  Eclipse, which was needed to do the upgrade.
 
  The cancel button was disabled, and the close box didn't work. Shutting
 down
  Eclipse killed it, but left C:\android-sdk-windows-1.6_r1 in a corrupted
  state. Restarting Eclipse showed the Android projects with errors, no
 SDK,
  and a disabled Android SDK and AVD Manager (which means no ability to
 rerun
  the install).
 
  Shutting down Eclipse, renaming the corrupted SDK directory, unzipping
 1.6
  again into C:, and restarting Eclipse made it as if nothing had ever
  happened, which is good. But it is not possible to complete the install
 from
  Eclipse, which is bad.
 
  The dialog says:
 
  Failed to rename directory
  C:\android-sdk-windows-1.6_r1\temp\DocPackage.new01 to
  C:\android-sdk-windows-1.6_r1\docs
  -= Warning ! =-
  A folder failed to be renamed or moved. On Windows this typically means
 that
  a program is using that folder (for example Windows Explorer.) Please
 close
  all running programs that may be locking the directory
  'C:\android-sdk-windows-1.6_r1\temp\DocPackage.new01' and try again.
 
  Failed to rename directory
  C:\android-sdk-windows-1.6_r1\temp\DocPackage.new01 to
  C:\android-sdk-windows-1.6_r1\docs
  -= Warning ! =-
  A folder failed to be renamed or moved. On Windows this typically means
 that
  a program is using that folder (for example Windows Explorer.) Please
 close
  all running programs that may be locking the directory
  'C:\android-sdk-windows-1.6_r1\temp\DocPackage.new01' and try again.
  Installed: SDK Platform Android 2.0, API 5 (tools rev: 3)
  
 
 
 

--~--~-~--~~~---~--~~
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: Eclair install choked with errors about locks and died horribly leaving corrupted install

2009-10-29 Thread Armond Avanes

Hi Skink,

I was trying to guess the correct path for direct download but no success!
Thanks a million :-) I'm downloading it...

For those who want Google API v5 as well, here it is:
http://dl-ssl.google.com/android/repository/google_apis-5_r01.zip

After all, it would be great if Google mentioned the direct download paths
on Android download page (for those having problem).

Skink, Thanks again :-)

Armond

 -Original Message-
 From: android-developers@googlegroups.com [mailto:android-
 develop...@googlegroups.com] On Behalf Of skink
 Sent: Thursday, October 29, 2009 11:19 AM
 
 On Oct 29, 8:25 am, Armond Avanes armond...@yahoo.com wrote:
 For those of
  us on slow connections it's really a pain to download that much and
 throw it
  away!!! I guess I've downloaded 500MB worth of data so far and still
  trying...
 
 
 
 hi Armond,
 
 you can manually download stuff from:
 
 http://dl-ssl.google.com/android/repository/android-2.0_r01-windows.zip
 
 and then unzip it to platforms folder
 
 skink
 

--~--~-~--~~~---~--~~
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: Eclair install choked with errors about locks and died horribly leaving corrupted install

2009-10-28 Thread Armond Avanes

Xavier,

I've downloaded the SDK package (v3) and have run both SDK Setup.exe and
android.bat (I'm on WinXP). But still the same problem... There are not
any open command-lines (but the one running the SDK tool itself) or
explorers!

Can't it be a bug?

Regards,
Armond 

 -Original Message-
 From: android-developers@googlegroups.com [mailto:android-
 develop...@googlegroups.com] On Behalf Of Xavier Ducrohet
 Sent: Wednesday, October 28, 2009 4:19 AM
 To: android-developers@googlegroups.com
 Subject: [android-developers] Re: Eclair install choked with errors about
 locks and died horribly leaving corrupted install
 
 
 That's correct.
 
 Windows users who are not using eclipse, we recommend that you
 download the SDK package at
 http://developer.android.com/sdk/index.html
 
 This is basically only the tools folder, but it also includes a SDK
 Setup.exe at the top SDK folder which calls android.bat in update
 mode. This should fix the lock problem.
 
 Xav
 
 On Tue, Oct 27, 2009 at 5:44 PM, Streets Of Boston
 flyingdutc...@gmail.com wrote:
 
  I have the same issue.
 
  I started android.bat from the command prompt.
  Since android.bat is in the directory that is reported to be locked,
  my command prompt is holding a lock to it when starting
  android.bat not very handy...
 
  On Oct 27, 7:36 pm, Xavier Ducrohet x...@android.com wrote:
  Hi,
 
  the issue is with Windows putting locks on files/folders. For instance
  if you have a file explorer opened on the folder being updated (e.g.
  the docs folder), it'll prevent other programs from modifying the
  files/folders.
 
  If you have problem using it from eclipse you can always use
  SDK/tools/android.bat which provide you with the same UI.
 
  Which version of Eclipse are you using? I'll double-check that Eclipse
  doesn't open/lock some files in the documentation.
 
  Xav
 
  On Tue, Oct 27, 2009 at 2:31 PM, Jim Showalter
 
 
 
 
 
  jamesleeshowal...@gmail.com wrote:
   Followed the instructions in
  http://developer.android.com/sdk/adding-components.htmlfor adding 2.0
 as
   components to an existing 1.6 SDK, from within Eclipse.
 
   It didn't work. Not by a long shot. Instead, it got partway through
 and then
   said that C:\android-sdk-windows-1.6_r1\
   temp\DocPackage.new01 couldn't be copied because of a lock, and
 similarly
   for PlatformPackage.new01.
 
   It said to shut down running programs, but the only program running
 was
   Eclipse, which was needed to do the upgrade.
 
   The cancel button was disabled, and the close box didn't work.
 Shutting down
   Eclipse killed it, but left C:\android-sdk-windows-1.6_r1 in a
 corrupted
   state. Restarting Eclipse showed the Android projects with errors, no
 SDK,
   and a disabled Android SDK and AVD Manager (which means no ability to
 rerun
   the install).
 
   Shutting down Eclipse, renaming the corrupted SDK directory,
 unzipping 1.6
   again into C:, and restarting Eclipse made it as if nothing had ever
   happened, which is good. But it is not possible to complete the
 install from
   Eclipse, which is bad.
 
   The dialog says:
 
   Failed to rename directory
   C:\android-sdk-windows-1.6_r1\temp\DocPackage.new01 to
   C:\android-sdk-windows-1.6_r1\docs
   -= Warning ! =-
   A folder failed to be renamed or moved. On Windows this typically
 means that
   a program is using that folder (for example Windows Explorer.) Please
 close
   all running programs that may belockingthe directory
   'C:\android-sdk-windows-1.6_r1\temp\DocPackage.new01' and try again.
 
   Failed to rename directory
   C:\android-sdk-windows-1.6_r1\temp\DocPackage.new01 to
   C:\android-sdk-windows-1.6_r1\docs
   -= Warning ! =-
   A folder failed to be renamed or moved. On Windows this typically
 means that
   a program is using that folder (for example Windows Explorer.) Please
 close
   all running programs that may belockingthe directory
   'C:\android-sdk-windows-1.6_r1\temp\DocPackage.new01' and try again.
   Installed: SDK Platform Android 2.0, API 5 (tools rev: 3)
 
  --
  Xavier Ducrohet
  Android SDK Tech Lead
  Google Inc.- Hide quoted text -
 
  - Show quoted text -
  
 
 
 
 
 --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.
 
 Please do not send me questions directly. 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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Eclair install choked with errors about locks and died horribly leaving corrupted install

2009-10-27 Thread Armond Avanes

I don't discuss the reason for failing, but won't it be better to try to
COPY the downloaded package instead of moving/renaming when it fails? This
is the minimum the upgrade tool should do... Downloading tens of MBs on a
slow connection then failing to move/rename is just a pain!

Armond


 Failed to rename directory
 C:\android-sdk-windows-1.6_r1\temp\DocPackage.new01 to 
 C:\android-sdk-windows-1.6_r1\docs
 -= Warning ! =-
 A folder failed to be renamed or moved. On Windows this 
 typically means that a program is using that folder (for 
 example Windows Explorer.) Please close all running 
 programs that may belockingthe directory
'C:\android-sdk-windows-1.6_r1\temp\DocPackage.new01' and try


--~--~-~--~~~---~--~~
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: Numeric-only soft keyboard

2009-10-25 Thread Armond Avanes

So anyone any experience with numeric keyboard?

Regards,
Armond

 -Original Message-
 Sent: Tuesday, October 20, 2009 12:08 PM
 
 
 Hi Guys,
 
 How can I set numeric-only soft keyboard option for a text field? When I
 set the input-type to number it brings a soft keyboard which is actually
 a alpha-numeric one but already switched to numeric mode. What I want is a
 pure numeric soft keyboard with big numbers (no alphabets at all). I've
 already seen this in other applications and but don't know how to do it.
 
 I will appreciate any help or hint...
 
 Armond
 
 
 

--~--~-~--~~~---~--~~
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] Numeric-only soft keyboard

2009-10-20 Thread Armond Avanes

Hi Guys,

How can I set numeric-only soft keyboard option for a text field? When I set 
the input-type to number it brings a soft keyboard which is actually a 
alpha-numeric one but already switched to numeric mode. What I want is a pure 
numeric soft keyboard with big numbers (no alphabets at all). I've already seen 
this in other applications and but don't know how to do it.

I will appreciate any help or hint...

Armond


--~--~-~--~~~---~--~~
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] How to modify system preferences?

2009-10-14 Thread Armond Avanes

Hi Guys,

Does anyone know how I can access and modify the system preferences (the
options you see on system 'Settings' application)?

Cheersss,
Armond


--~--~-~--~~~---~--~~
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] Selling license for free apps

2009-09-28 Thread Armond Avanes

Hi Guys,

Like many other developers here, I can't sell applications from my country
and seeking a way for monetization of my app.

I was thinking to release my app as free ads-supported version, and to sell
license from my website for those who want to remove the ads completely.
Actually users will apply on my website, pay a fee and I will send a
license.

But then I came across the following url saying that collecting payments
through your application is not allowed under the Android Market Developer
Distribution Agreement:
http://market.android.com/support/bin/answer.py?hl=enanswer=140504

Is this to prohibit me from doing what I explained above?

Thank you,
Armond


--~--~-~--~~~---~--~~
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: Countries for selling priced applications in Android Market

2009-09-14 Thread Armond Avanes
But just look at paid applications download rate at SAM. No so many
downloads. And consider the prices like $2-$3 per app. It's not a big market
for developers.

 

Armond

 

  _  

From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of Abdul Mateen
Sent: Monday, September 14, 2009 10:20 AM
To: android-developers@googlegroups.com
Subject: [android-developers] Re: Countries for selling priced applications
in Android Market

 

This is amazingly politics by Google, they should have used the default
system App Store is using for buying and selling apps instead of having a
new system for like Google checkout. I think yes SAM is a good alternative
to Android Market. so much users are using SAM.

On Mon, Sep 14, 2009 at 9:19 AM, CraigsRace craig...@gmail.com wrote:


 Following this discussion, I'm curious to know the reason why Google
pulled
 Australia out of merchant location list? It was in the list for a few
days!

Australian Vodaphone users (HTC Magic) have access to paid apps, while
Australian Optus users (HTC G1) do not.

 





--~--~-~--~~~---~--~~
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: Countries for selling priced applications in Android Market

2009-09-14 Thread Armond Avanes

But I was talking about merchant location list, means the countries where
developers can sell their applications from!

What you're referring to is interesting from end-users' point of view.

Armond

 -Original Message-
 From: android-developers@googlegroups.com [mailto:android-
 develop...@googlegroups.com] On Behalf Of CraigsRace
 Sent: Monday, September 14, 2009 7:50 AM
 
 
  Following this discussion, I'm curious to know the reason why Google
 pulled
  Australia out of merchant location list? It was in the list for a few
 days!
 
 Australian Vodaphone users (HTC Magic) have access to paid apps, while
 Australian Optus users (HTC G1) do not.
 

--~--~-~--~~~---~--~~
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: DatePicker and TimePicker CAN NOT be skined/themed !!

2009-09-09 Thread Armond Avanes

Lee,

Take a look at android.widget.DatePicker and android.widget.TimePicker
source codes, and you'll notice that they're using date_picker.xml and
time_picker.xml as they layouts. So far so good! Now take a look at
date_picker.xml source code and see those
com.android.internal.widget.NumberPicker components. The same story for
time_picker.xml. Even the worse is that DatePicker and TimePicker are both
referring to NumberPicker component in their codes.

So by extending these two classes, I can't see a way to do what I want. I
have to somehow deal with those internal API, unless I copy the whole code
and deal with my own version of DatePicker/TimePicker/NumberPicker from
scratch. Correct me if I'm wrong...

Armond


 -Original Message-
 From: android-developers@googlegroups.com [mailto:android-
 develop...@googlegroups.com] On Behalf Of Lee
 Sent: Wednesday, September 09, 2009 12:50 PM
 
 Really annoying that Date/Time are final classes as well so you can't
 extend them.
 
 Lee
 
 On Sep 8, 8:46 pm, Armond Avanes armond...@yahoo.com wrote:
  Thanks for your answer... Yes, copying the source code will be the worse
  case but how about the future changes and improvements to these
 components?
  The change management will be a headache.
 
  After all, why is it so? Almost all components are skinnable... why not
  these ones? Does this mean that one can not develop a complete new theme
  (just theme!) for all components of Android? One has to pack some
 specific
  components as well.
 
  FYI, AlertDialog's button-bar has the same problem. I had to make my own
  AlertDialog derived directly from Dialog and do all the tricks there.
 Dialog
  themes are not automatically affected by the theme you set in
  AndroidManifest.xml.
 
  Best Regards,
  Armond
 
   -Original Message-
   From: android-developers@googlegroups.com [mailto:android-
   develop...@googlegroups.com] On Behalf Of Yusuf Saib (T-Mobile USA)
   Sent: Tuesday, September 08, 2009 11:49 PM
 
   You could always roll you own skinnable version, borrowing from the
   original source code.
 
   Yusuf Saib
   Android
   ·T· · ·Mobile· stick together
   The views, opinions and statements in this email are those of the
   author solely in their individual capacity, and do not necessarily
   represent those of T-Mobile USA, Inc.
 
   On Sep 8, 11:28 am, Armond Avanes armond...@yahoo.com wrote:
Hi Guys,
 
Is it just me or Android theme-ing system does not allow to set a
 theme
   for
DatePicker and TimePicker? Searching themes.xml and styles.xml
 in
Android source code (v1.5), I couldn't find anything related to
 these
   two
components!
 
Aren't they really skinable?
 
Cheersss,
Armond
 
 
 

--~--~-~--~~~---~--~~
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] Decent AdMob revenue... Anyone?

2009-09-09 Thread Armond Avanes

Hi Guys,

Currently the country where I am is not supported by Google for selling
apps, so my second option is to use AdMob. But first I would like to hear
about your experiences with AdMob revenue generation... Does it generate any
decent revenue for your app(s)? Is it worth?

As well, if you know of any other way to monetize Android apps, please let
me know...

Thank you,
Armond


--~--~-~--~~~---~--~~
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] Where is the default Calendar app on Emulator?

2009-09-08 Thread Armond Avanes

Hi Guys,

Does anybody know where I can find the default Calendar application comes
with Android platform on emulator? I just do not see any Calendar
application around which is odd!

Thank you,
Armond


--~--~-~--~~~---~--~~
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] DatePicker and TimePicker CAN NOT be skined/themed !!

2009-09-08 Thread Armond Avanes

Hi Guys,

Is it just me or Android theme-ing system does not allow to set a theme for
DatePicker and TimePicker? Searching themes.xml and styles.xml in
Android source code (v1.5), I couldn't find anything related to these two
components!

Aren't they really skinable?

Cheersss,
Armond


--~--~-~--~~~---~--~~
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: DatePicker and TimePicker CAN NOT be skined/themed !!

2009-09-08 Thread Armond Avanes

Thanks for your answer... Yes, copying the source code will be the worse
case but how about the future changes and improvements to these components?
The change management will be a headache.

After all, why is it so? Almost all components are skinnable... why not
these ones? Does this mean that one can not develop a complete new theme
(just theme!) for all components of Android? One has to pack some specific
components as well.

FYI, AlertDialog's button-bar has the same problem. I had to make my own
AlertDialog derived directly from Dialog and do all the tricks there. Dialog
themes are not automatically affected by the theme you set in
AndroidManifest.xml.

Best Regards,
Armond 


 -Original Message-
 From: android-developers@googlegroups.com [mailto:android-
 develop...@googlegroups.com] On Behalf Of Yusuf Saib (T-Mobile USA)
 Sent: Tuesday, September 08, 2009 11:49 PM
 
 
 You could always roll you own skinnable version, borrowing from the
 original source code.
 
 
 Yusuf Saib
 Android
 ·T· · ·Mobile· stick together
 The views, opinions and statements in this email are those of the
 author solely in their individual capacity, and do not necessarily
 represent those of T-Mobile USA, Inc.
 
 
 
 On Sep 8, 11:28 am, Armond Avanes armond...@yahoo.com wrote:
  Hi Guys,
 
  Is it just me or Android theme-ing system does not allow to set a theme
 for
  DatePicker and TimePicker? Searching themes.xml and styles.xml in
  Android source code (v1.5), I couldn't find anything related to these
 two
  components!
 
  Aren't they really skinable?
 
  Cheersss,
  Armond
 

--~--~-~--~~~---~--~~
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: Customing the lookfeel of DatePicker and TimePicker widgets

2009-09-02 Thread Armond Avanes

Just thought if I change the subject of the main thread it won't be
considered in the same thread. Seems the old thread track is still somewhere
in email header (although I can't see any with my email client). Sorry
anyways

And I still appreciate if anyone has any answer to my question. Or if I
should repost this to as a new email (to get any answer!), let me know!

Armond

 From: android-developers@googlegroups.com [mailto:android-
 develop...@googlegroups.com] On Behalf Of matthias
 
 Just out of curiosity, why are you hijacking this thread?
 
 On Sep 1, 1:25 pm, Armond Avanes armond...@yahoo.com wrote:
  Hi Guys,
 
  I'm seeking a way to customize the lookfeel of DatePicker and
 TimePicker.
  But I couldn't find any theme attribute to be related to these two
  widgets... Any help is greatly appreciated!
 
  Cheersss,
  Armond
 

--~--~-~--~~~---~--~~
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] Customing the lookfeel of DatePicker and TimePicker widgets

2009-09-01 Thread Armond Avanes

Hi Guys,

I'm seeking a way to customize the lookfeel of DatePicker and TimePicker.
But I couldn't find any theme attribute to be related to these two
widgets... Any help is greatly appreciated!

Cheersss,
Armond


--~--~-~--~~~---~--~~
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: Countries for selling priced applications in Android Market

2009-08-29 Thread Armond Avanes

Following this discussion, I'm curious to know the reason why Google pulled
Australia out of merchant location list? It was in the list for a few days!
Again a typo like the one back in February when they launched the paid
market and Australia was mistakenly in the list? Or something is going on
behind the scene?

Armond

 -Original Message-
 From: android-developers@googlegroups.com [mailto:android-
 develop...@googlegroups.com] On Behalf Of Bruce Rees
 Sent: Saturday, August 29, 2009 4:57 PM
 To: Android Developers
 Subject: [android-developers] Re: Countries for selling priced
 applications in Android Market
 
 
 I'll add my vote, I'm in New Zealand and the HTC magic is available
 thru Vodafone but we can neither buy or sell apps, all enquiries on
 the market forum seem to go unanswered.. Apple seem to have no
 problems with itunes so it's hard to imagine what's holding Google up?
 
 
 On Aug 29, 1:19 am, João Carvalho joaonunoc...@gmail.com wrote:
  Me and and small group of friend developers in Portugal are also very
  interested. Currently there are HTC Magic and Hero in the shops and
  financed  by the operators, but if there is no market to sell apps or
  buy apps, there is point on developing for 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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] AlertDialog buttons not following the currently installed theme!

2009-08-25 Thread Armond Avanes

Hi Folks,

I'm trying to customize the theme of my Android application. But I have
problem customizing the AlertDialogs. Actually the buttons and their
background color do not obey the currently installed theme!

All I could find was alertDialogStyle which only works for dialog overall
background and shape (not button-bar background).

I will appreciate any help or hint on this.

Thanks a lot,
Armond


--~--~-~--~~~---~--~~
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: Error Code 5: Database is locked

2009-08-24 Thread Armond Avanes

So how can I create an in-memory database? I just took a quick look at the
API and couldn't find any.

Cheersss,
Armond

 develop...@googlegroups.com] On Behalf Of Andrei
 Sent: Monday, August 24, 2009 7:35 AM
 
 If your write time take long i would try this
 I would create another in memory database, attach it to yours.
 In memory database table would have same schema.
 You would write to in memory database and after done do insert into
 db1.table as select * from db2.table
 I did something similar but on desktop not phone and of course you
 need to wait for lock to clear
 
 On Aug 23, 2:31 am, Armond Avanes armond...@yahoo.com wrote:
  I forgot to mention that this exception happens (so far) from the
 service I
  have for updating database (is executed every 24 hours).
 
  Cheersss,
  Armond
 
   Hi Guys,
 
   I have different background threads in my application, one doing
   periodical
   database updates, another responsible for doing long searches and so.
   Obviously some are just reading from database while others are writing
 as
   well.
 
   Once in a while I get database is locked exception. I need to know
 the
   safe way of reading/writing from/to database on different threads.
 
   As well I've found isDbLockedByCurrentThread() and
   isDbLockedByOtherThreads() methods on SQLiteDatabase. Should I use
 them
   every time I want to access the database? What if the database is
 locked?
   Should I pause the current thread and retry a few milliseconds later?
 
   Best Regards,
   Armond
 
   08-23 10:17:32.029 E/AndroidRuntime( 1331): Caused by:
   android.database.sqlite.SQLiteException: error code 5: database is
 locked
 
   08-23 10:17:32.029 E/AndroidRuntime( 1331):     at
   android.database.sqlite.SQLiteStatement.native_execute(Native Method)
 
   08-23 10:17:32.029 E/AndroidRuntime( 1331):     at
  
 android.database.sqlite.SQLiteStatement.execute(SQLiteStatement.java:66)
 
   08-23 10:17:32.029 E/AndroidRuntime( 1331):     at
  
 android.database.sqlite.SQLiteDatabase.execSQL(SQLiteDatabase.java:1534)
 
   08-23 10:17:32.029 E/AndroidRuntime( 1331):     at
   com.test.db.TestDao.update (TestDao.java:327)
 
   08-23 10:17:32.029 E/AndroidRuntime( 1331):     at
   com.test.UpdateService.onStart(UpdateService.java:35)
 
   08-23 10:17:32.029 E/AndroidRuntime( 1331):     at
   android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2557)
 
   08-23 10:17:32.029 E/AndroidRuntime( 1331):     . 10 more
 

--~--~-~--~~~---~--~~
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] Error Code 5: Database is locked

2009-08-23 Thread Armond Avanes

Hi Guys,

I have different background threads in my application, one doing periodical
database updates, another responsible for doing long searches and so.
Obviously some are just reading from database while others are writing as
well.

Once in a while I get database is locked exception. I need to know the
safe way of reading/writing from/to database on different threads.

As well I've found isDbLockedByCurrentThread() and
isDbLockedByOtherThreads() methods on SQLiteDatabase. Should I use them
every time I want to access the database? What if the database is locked?
Should I pause the current thread and retry a few milliseconds later?

Best Regards,
Armond


08-23 10:17:32.029 E/AndroidRuntime( 1331): Caused by:
android.database.sqlite.SQLiteException: error code 5: database is locked

08-23 10:17:32.029 E/AndroidRuntime( 1331): at
android.database.sqlite.SQLiteStatement.native_execute(Native Method)

08-23 10:17:32.029 E/AndroidRuntime( 1331): at
android.database.sqlite.SQLiteStatement.execute(SQLiteStatement.java:66)

08-23 10:17:32.029 E/AndroidRuntime( 1331): at
android.database.sqlite.SQLiteDatabase.execSQL(SQLiteDatabase.java:1534)

08-23 10:17:32.029 E/AndroidRuntime( 1331): at
com.test.db.TestDao.update (TestDao.java:327)

08-23 10:17:32.029 E/AndroidRuntime( 1331): at
com.test.UpdateService.onStart(UpdateService.java:35)

08-23 10:17:32.029 E/AndroidRuntime( 1331): at
android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2557)

08-23 10:17:32.029 E/AndroidRuntime( 1331): . 10 more


--~--~-~--~~~---~--~~
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: Error Code 5: Database is locked

2009-08-23 Thread Armond Avanes

I forgot to mention that this exception happens (so far) from the service I
have for updating database (is executed every 24 hours).

Cheersss,
Armond

 Hi Guys,
 
 I have different background threads in my application, one doing
 periodical
 database updates, another responsible for doing long searches and so.
 Obviously some are just reading from database while others are writing as
 well.
 
 Once in a while I get database is locked exception. I need to know the
 safe way of reading/writing from/to database on different threads.
 
 As well I've found isDbLockedByCurrentThread() and
 isDbLockedByOtherThreads() methods on SQLiteDatabase. Should I use them
 every time I want to access the database? What if the database is locked?
 Should I pause the current thread and retry a few milliseconds later?
 
 Best Regards,
 Armond
 
 
 08-23 10:17:32.029 E/AndroidRuntime( 1331): Caused by:
 android.database.sqlite.SQLiteException: error code 5: database is locked
 
 08-23 10:17:32.029 E/AndroidRuntime( 1331): at
 android.database.sqlite.SQLiteStatement.native_execute(Native Method)
 
 08-23 10:17:32.029 E/AndroidRuntime( 1331): at
 android.database.sqlite.SQLiteStatement.execute(SQLiteStatement.java:66)
 
 08-23 10:17:32.029 E/AndroidRuntime( 1331): at
 android.database.sqlite.SQLiteDatabase.execSQL(SQLiteDatabase.java:1534)
 
 08-23 10:17:32.029 E/AndroidRuntime( 1331): at
 com.test.db.TestDao.update (TestDao.java:327)
 
 08-23 10:17:32.029 E/AndroidRuntime( 1331): at
 com.test.UpdateService.onStart(UpdateService.java:35)
 
 08-23 10:17:32.029 E/AndroidRuntime( 1331): at
 android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2557)
 
 08-23 10:17:32.029 E/AndroidRuntime( 1331): . 10 more
 
 
 

--~--~-~--~~~---~--~~
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] Keeping a database instance open... Bad practice?

2009-08-19 Thread Armond Avanes

Hi Guys,

Is it a bad practice to keep an instance of open database (well actually an
instance of SQLiteOpenHelper and SQLiteDatabase) during application running?

Because every once in a while and with every activity screen some database
operations are done as well (both read/write), I open the database at
startup of my application (Application.onCreate()) and close it on shutdown
(Application.onTerminate()).

Please let me know if this may cause problem or should be done in another
way.

Best Regards,
Armond


--~--~-~--~~~---~--~~
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] Keeping writable database instance open... Bad practice?

2009-08-11 Thread Armond Avanes

Hi Guys,

Is keeping a writable instance of a database open
(SQLiteOpenHelper.getWritableDatabase()) during the running application a
bad practice?
Because every once in a while and with every activity screen some database
operations are done as well (both read/write), I open the database at
startup of my application (Application.onCreate()) and close it on shutdown
(Application.onTerminate()).

Just in case it matters, I have background service as well (getting started
on BOOT_COMPLETED) which uses the same database via a separate call to
SQLiteOpenHelper.getWritableDatabase(). Of course here I open the database
whenever service onStart() is called and close it at end of the call.

Best Regards,
Armond


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---