[android-beginners] Test message

2012-08-28 Thread Roman Nurik
Test message

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Project on Android

2010-12-16 Thread Warwick Hunter
Off the top of my head, here are a few suggestions.

An app that scans all the photos on the phone and for any with GPS 
co-ordinates displays a marker on a map.

An app that scans all the SMS messages on a phone and shows a histogram of 
the number of messages sent to each contact in the address book.




-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Exif tags removal

2010-11-24 Thread mahantesh Hunagund
Hi,

In my application there is a need to remove exif tags of a picture. Gone
through android.media.ExifInterface Android public API. There is no remove
API.
Can anyone suggest me efficient way to remove exif tags ?

Thanks,
Mahantesh

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Any existed support for ZigBee module?

2010-10-14 Thread Pedro E. Cunha Brigatto
Hi, guys.

I am currently searching for any news about ZigBee support on Android, and
unfortunately got no answers 'til now.
Does anyone have any update about it or a link for me to speed up my
searches?

Thanks in advance,
Pedro

2009/11/17 meetsang meets...@gmail.com

 Johnson,

 Were you able to find the answer for your question? Please let me know
 if ZigBee support is available. Anybody who has done this?

 Thank you.


 On Nov 2, 9:07 pm, defyer yn.johnson...@gmail.com wrote:
  I'm using TI CC2530 ZigBee module, and I think I'm gonna need ZigBee
  driver to lay the infrastructure for the application, right? So, does
  Android support ZigBee communication? And WiFi??
 
  Cheers,
 
  Johnson

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 To post to this group, send email to android-beginners@googlegroups.com
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en




-- 
Pedro E. Cunha Brigatto

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Internet connection is not working in emulator

2010-09-11 Thread Viral Brahmbhatt
Hi,

I am not able to run the internet from my android emulator. whenever I try
to run my browser i am getting following error on various platforms

Following are some of the entries in log window.

*Android emulator 2.2:*
ERROR/ActivityThread(269): Failed to find provider info for
com.google.settings
onReceivedError -7
http://www.google.com/m?client=ms-android-googlesource=android-home The
server failed to communicate. Try again later.

*Android emulator 2.1:*
ERROR/ActivityThread(114): Failed to find provider info for
android.server.checkin
WARN/Checkin(114): Can't update stat PHONE_GPRS_ATTEMPTED:
java.lang.IllegalArgumentException: Unknown URL
content://android.server.checkin/stats
ERROR/ActivityThread(114): Failed to find provider info for
android.server.checkin
WARN/Checkin(114): Can't update stat PHONE_GPRS_CONNECTED:
java.lang.IllegalArgumentException: Unknown URL
content://android.server.checkin/stats

ERROR/ActivityThread(229): Failed to find provider info for
com.google.settings
onReceivedError -7
http://www.google.com/m?client=ms-android-googlesource=android-home The
server failed to communicate. Try again later.

*Android emulator 1.6:*
ERROR/ActivityThread(122): Failed to find provider info for
android.server.checkin
WARN/Checkin(122): Can't update stat PHONE_GSM_REGISTERED:
java.lang.IllegalArgumentException: Unknown URL
content://android.server.checkin/stats

ERROR/ActivityThread(122): Failed to find provider info for
android.server.checkin
WARN/Checkin(122): Can't update stat PHONE_GPRS_ATTEMPTED:
java.lang.IllegalArgumentException: Unknown URL
content://android.server.checkin/stats
ERROR/ActivityThread(122): Failed to find provider info for
android.server.checkin
WARN/Checkin(122): Can't update stat PHONE_GPRS_CONNECTED:
java.lang.IllegalArgumentException: Unknown URL
content://android.server.checkin/stats

ERROR/ActivityThread(302): Failed to find provider info for
com.google.settings
WARN/ActivityManager(77): Unable to start service Intent {
cmp=com.google.android.googleapps/.GoogleLoginService }: not found
ERROR/browser(302): onReceivedError -7
http://www.google.com/m?client=ms-android-google The server failed to
communicate. Try again later.

*Android emulator 1.5:*
ERROR/ActivityThread(640): Failed to find provider info for
android.server.checkin
WARN/Checkin(640): Can't update stat PHONE_GSM_REGISTERED:
java.lang.IllegalArgumentException: Unknown URL
content://android.server.checkin/stats

ERROR/ActivityThread(640): Failed to find provider info for
android.server.checkin
WARN/Checkin(640): Can't update stat PHONE_GPRS_ATTEMPTED:
java.lang.IllegalArgumentException: Unknown URL
content://android.server.checkin/stats
ERROR/ActivityThread(640): Failed to find provider info for
android.server.checkin
WARN/Checkin(640): Can't update stat PHONE_GPRS_CONNECTED:
java.lang.IllegalArgumentException: Unknown URL
content://android.server.checkin/stats

ERROR/ActivityThread(846): Failed to find provider info for
com.google.settings
ERROR/browser(846): onReceivedError -7
http://www.google.com/m?client=ms-null The server failed to communicate. Try
again later.

Please let me know if any one has having any solution for this issue

Thanks in advance
-- 
Regards,

Viral Brahmbhatt
(M): +919998999518

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Lanunch an application at the time of Start up

2010-09-01 Thread Dirk Jäckel
Hi!

You can launch a service at boot time.

You need the permission RECEIVE_BOOT_COMPLETED and a BroadcastReceiver
that listens to  ACTION_BOOT_COMPLETED.

In Your AndroidManifest you need the following:
uses-permission android:name=android.permission.RECEIVE_BOOT_COMPLETED/

 receiver android:name=.BatteryBroadcastReceiver
intent-filter
action android:name=android.intent.action.BOOT_COMPLETED/
/intent-filter
 /receiver

In your BroadcastReceiver you need to override:

public void onReceive(Context c, Intent intent)

Inside onReceive() you can start your service.



Dirk



On Tue, Aug 24, 2010 at 12:08, Vinay Prasad B R vi...@innovindia.com wrote:
 Hi,


        Is it possible to launch an application at the start up time instead
 of launching an application explicitly.


 --
 Regards,
 Vinay Prasad.B.R



 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. 
 For more information about this change, please read [http://goo.gl/xkfl] or 
 visit the Group home page.

 Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Lanunch an application at the time of Start up

2010-08-24 Thread Vinay Prasad B R
Hi,


Is it possible to launch an application at the start up time instead
of launching an application explicitly. 


-- 
Regards,
Vinay Prasad.B.R

 

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] How to set location information permanently in the emulator

2010-08-09 Thread sunny
Hi,
I am not sure how to set the location permanently in the emulator. I use the
ddms to push the location but I can only see it when I open the map. If I
exit, it is gone. Next time when my open my map, it says waiting for
location details. Can someone advice me what is wrong.  I am not clear how
to setup location permanently.

would appreciate any of your fast response .. thanks a ton..
best regards,
Sunny.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Airplane mode

2010-08-09 Thread Jenus Dong
*public* AirplaneModeEnabler*(*Context context, CheckBoxPreference
airplaneModeCheckBoxPreference*)* *{*

mContext = context;
mCheckBoxPref = airplaneModeCheckBoxPreference;

airplaneModeCheckBoxPreference.setPersistent*(**false**)*;

mPhoneStateReceiver = *new*
PhoneStateIntentReceiver*(*mContext, mHandler*)*;
mPhoneStateReceiver.notifyServiceState*(*EVENT_SERVICE_STATE_CHANGED*)*;
*}*

This is the function code you could trigger when check/uncheck radio in
Setting-wireless network-airplant mode,

mPhoneStateReceiver.notifyServiceState*(*EVENT_SERVICE_STATE_CHANGED*)*;


On Sun, Aug 8, 2010 at 2:31 AM, Webgenius webgenius.co...@gmail.com wrote:

 Hi,

 In AirplaneModEnabler.java present in ..\packages\apps\Settings\src\com
 \android\settings, the handler looks for EVENT_SERVICE_STATE_CHANGED
 to toggle the state of the checkbox and to display the summary.

 When and from where is EVENT_SERVICE_STATE_CHANGED triggered?
 Currently the airplane mode functionality is very weird. I need to
 debug from the point where this event is triggered.

 Any help is greatly appreciated. Thanks in advance.

 -Webgenius

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 ATTENTION: Android-Beginners will be permanently disabled on August 9 2010.
 For more information about this change, please read [http://goo.gl/xkfl]
 or visit the Group home page.

 Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] How to set location information permanently in the emulator

2010-08-09 Thread Mark Murphy
On Mon, Aug 9, 2010 at 2:43 AM, sunny menon1...@gmail.com wrote:
 I am not sure how to set the location permanently in the emulator.

You can't.

 I use the
 ddms to push the location but I can only see it when I open the map. If I
 exit, it is gone.

Correct.

 Next time when my open my map, it says waiting for
 location details.

Correct. You need to simulate another GPS fix.

 Can someone advice me what is wrong.

Nothing is wrong. The emulator emulates GPS fixes, which are transient events.

 I am not clear how
 to setup location permanently.

You can't -- sorry.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Howto integrate 3rd party app to tabhost

2010-08-09 Thread Mark Murphy
On Mon, Aug 9, 2010 at 7:59 AM, daph...@googlemail.com
daph...@googlemail.com wrote:
 I using android 2.2 and I want to integrate a third party application
 into the tabulator. Is that possible and how can I do that?

It is not possible, sorry.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] goodbye android beginners

2010-08-08 Thread Droid
See you in android advanced.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] goodbye android beginners

2010-08-08 Thread Droid
See you in android advanced.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: database

2010-08-08 Thread DanH
You can build the database on any platform (perhaps using a tool like
SQLite Expert) and upload it to Android.  The trick is that you have
get it from wherever you upload it into the app's database directory
(plus add a few extra records that Android wants).  Some info here:

http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/

On Aug 8, 10:59 am, Tanay M. Kapoor tmkap...@gmail.com wrote:
 i need to add a large amount of data to an android database i have
 created. Is there any tool i can use to do this instead of making an
 activity to write and manually add the data. My application need only
 display the data not add new thigns to the datdbase.
 Please help...

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: database

2010-08-08 Thread skink


Tanay M. Kapoor wrote:
 i need to add a large amount of data to an android database i have
 created. Is there any tool i can use to do this instead of making an
 activity to write and manually add the data. My application need only
 display the data not add new thigns to the datdbase.
 Please help...

yes, sqlite is cross-platform db so you can populate it on any host
platform

the easiest is to use sqlite3 tool

pskink

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Default values in SharedPreferences

2010-08-07 Thread skink


Bret Foreman wrote:

 Ideally, the SharedPreferences infrastructure could be told to read in
 the entire preferences.xml file so the SharedPreferences database is
 loaded with all the initial values. But I haven't found any way to do
 that.

did you try
http://developer.android.com/reference/android/preference/PreferenceManager.html#setDefaultValues(android.content.Context,
int, boolean) ?

pskink

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Opening the preferences.xml file

2010-08-07 Thread Bret Foreman
The following code does not give the expected results:

prefInputStream =
getResources().openRawResource(R.xml.preferences);
byte[] rawBytes = new byte[100];
prefInputStream.read( rawBytes, 0, 100 );

The bytes read are not printable ASCII characters. The start of the
file looks like this:

?xml version=1.0 encoding=utf-8?
PreferenceScreen xmlns:android=http://schemas.android.com/apk/res/
android android:key=main_preferencescreen android:title=Settings


What gets read is:

[3, 0, 8, 0, -8, 43, 0, 0, 1, 0, 28, 0, 0, 15, 0, 0, 100, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, -84, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0,
0, 24, 0, 0, 0, 42, 0, 0, 0, 70, 0, 0, 0, 94, 0, 0, 0, 116, 0, 0, 0,
-114, 0, 0, 0, -88, 0, 0, 0, -70, 0, 0, 0, -54, 0, 0, 0, -36, 0, 0, 0,
-12, 0, 0, 0, 8, 1, 0, 0, 26, 1, 0, 0, 114, 1, 0, 0]

Any idea what might be wrong?

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Airplane mode

2010-08-07 Thread Webgenius
Hi,

In AirplaneModEnabler.java present in ..\packages\apps\Settings\src\com
\android\settings, the handler looks for EVENT_SERVICE_STATE_CHANGED
to toggle the state of the checkbox and to display the summary.

When and from where is EVENT_SERVICE_STATE_CHANGED triggered?
Currently the airplane mode functionality is very weird. I need to
debug from the point where this event is triggered.

Any help is greatly appreciated. Thanks in advance.

-Webgenius

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Opening the preferences.xml file

2010-08-07 Thread Mark Murphy
On Sat, Aug 7, 2010 at 2:28 PM, Bret Foreman bret.fore...@gmail.com wrote:
 The following code does not give the expected results:

                prefInputStream =
 getResources().openRawResource(R.xml.preferences);
                byte[] rawBytes = new byte[100];
                prefInputStream.read( rawBytes, 0, 100 );

 The bytes read are not printable ASCII characters. The start of the
 file looks like this:

 ?xml version=1.0 encoding=utf-8?
 PreferenceScreen xmlns:android=http://schemas.android.com/apk/res/
 android android:key=main_preferencescreen android:title=Settings


 What gets read is:

 [3, 0, 8, 0, -8, 43, 0, 0, 1, 0, 28, 0, 0, 15, 0, 0, 100, 0, 0, 0, 0,
 0, 0, 0, 0, 0, 0, 0, -84, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0,
 0, 24, 0, 0, 0, 42, 0, 0, 0, 70, 0, 0, 0, 94, 0, 0, 0, 116, 0, 0, 0,
 -114, 0, 0, 0, -88, 0, 0, 0, -70, 0, 0, 0, -54, 0, 0, 0, -36, 0, 0, 0,
 -12, 0, 0, 0, 8, 1, 0, 0, 26, 1, 0, 0, 114, 1, 0, 0]

 Any idea what might be wrong?

1. XML resources are converted into a binary XML format as part of
the build process.

2. XML resources are not raw resources.

Use getXml(), not getRawResource().

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-07 Thread Indicator Veritatis
But that assumes that people tag them accurately, so that they CAN be
found. That assumption is wildly optimistic: look at how many
meaningless variations of the non-descript tag 'android' there are in
Stack Overflow. I have yet to find a way to do a meaningful tag-based
search in Stack Overflow for an android issue. I doubt there is one.
That is why I am not impressed by Google's attempt to shuffle us off
into Stack Overflow.

Actually, that is only one reason. There are others, but this is the
main one.

On Aug 6, 5:07 pm, Greg Donald gdon...@gmail.com wrote:
 On Fri, Aug 6, 2010 at 3:52 PM, fadden fad...@android.com wrote:
  I do a daily walk through stackoverflow for questions tagged with
  android.  Nobody will be searching based on esoteric tags.  I think
  the point of restricting tag generation is to ensure that people *do*
  find your question because it exists in a pool of other similar
  questions that people are examining.

 I have a problem with linecache.  There's no tag for it.  I couldn't
 create one.  I did go ahead and choose other tags, ones not as
 relevant as the ONE I wanted.  But whatever.

 It's a stupid restriction.  1500 reputation before I can even properly
 tag my question?  I've developed sites that used tags plenty of times
 before.. it's just a join table, not a huge deal.  For them to act
 like tags are so important n00bs like me can't create one?  Fuck them
 and their 1500 reputation tags.

 I've never once got help from there.  I tried again today as a last
 resort.  I'm expecting nothing, as it's likely that's what I'll be
 getting.

 --
 Greg Donald
 destiney.com | gregdonald.com

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-07 Thread Indicator Veritatis
But just how thorough is this daily walk through? Today, there are
14645 questions tagged 'android'. How do you choose which ones you
really look at?

Worse yet, some idiot decided there should be ONE tag for 'android-
sdk', but then three separate tags for 'android-sdk-2.1', 'android-
sdk-2.2' and 'android-sdk-1.6'! With such irrational decision making
as this, searches  based on tags are bound to miss a lot.

On Aug 6, 1:52 pm, fadden fad...@android.com wrote:
 On Aug 6, 1:20 pm, Greg Donald gdon...@gmail.com wrote:

  snip
  # users with less than 1500 reputation can't create new tags. The tags
  'rails3 linecache' are new. Try using existing tags instead.
  /snip

  Good luck only tagging questions that already have popular tags.

 What advantage do you expect to gain from creating new tags?

  do a daily walk through stackoverflow for questions tagged with
 android.  Nobody will be searching based on esoteric tags.  I think
 the point of restricting tag generation is to ensure that people *do*
 find your question because it exists in a pool of other similar
 questions that people are examining.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-07 Thread Indicator Veritatis
BTW: if you do a daily walk-through, why is MY question still
unanswered? It was not even that hard a question. It was:
http://stackoverflow.com/questions/2603391/how-do-we-get-polygon-antialiasing-in-opengl-es-on-android-1-5

On Aug 6, 1:52 pm, fadden fad...@android.com wrote:
 On Aug 6, 1:20 pm, Greg Donald gdon...@gmail.com wrote:

  snip
  # users with less than 1500 reputation can't create new tags. The tags
  'rails3 linecache' are new. Try using existing tags instead.
  /snip

  Good luck only tagging questions that already have popular tags.

 What advantage do you expect to gain from creating new tags?

 I do a daily walk through stackoverflow for questions tagged with
 android.  Nobody will be searching based on esoteric tags.  I think
 the point of restricting tag generation is to ensure that people *do*
 find your question because it exists in a pool of other similar
 questions that people are examining.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Farewell, we hardly knew ye

2010-08-07 Thread DanH
May it rest in peace.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Database handling - when do you open and close

2010-08-06 Thread Bender
Ok I tried to find out at which point the service is started and when
I can access its database variable. The logs I used showed that the
services onCreate() is called after the onResume() method by my
activity. That is a bit late because I need access to the database
before onResume() to fill the views with data. Is there a way to tell
the activity to wait until the service is started?

On 5 Aug., 22:54, Kostya Vasilyev kmans...@gmail.com wrote:
 Starting / binding to a service is asynchronous. You can't call bindService
 and expect it to be already started and bound by the next line.

 Call bindService and return control to Android by returning from onCreate or
 whatever. Your service connection callback will be invoked a little later,
 once the service is started.

 --
 Kostya Vasilyev --http://kmansoft.wordpress.com

 06.08.2010 0:49 пользователь Bender abende...@googlemail.com написал:


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Database handling - when do you open and close

2010-08-06 Thread Kostya Vasilyev
Sure. The service connection callback you seem to already have in your code.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

06.08.2010 12:10 пользователь Bender abende...@googlemail.com написал:

Ok I tried to find out at which point the service is started and when
I can access its database variable. The logs I used showed that the
services onCreate() is called after the onResume() method by my
activity. That is a bit late because I need access to the database
before onResume() to fill the views with data. Is there a way to tell
the activity to wait until the service is started?


On 5 Aug., 22:54, Kostya Vasilyev kmans...@gmail.com wrote:
 Starting / binding to a service is ...
 06.08.2010 0:49 пользователь Bender abende...@googlemail.com написал:



-- 
You received this message because you are subscribed to the Google
Groups Android Beginners...

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010.
For more information abo...

http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
and...

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Hey my friend,

2010-08-06 Thread Eros Stein
Hey my friend,
Hello, I found a good company Electronicnets! My friends introduced it to me
and now I would like to introduce it to you, for it is really very good and
they now have a promotion. You can find various electronic products.
Originating from original factory, their products have received high market
recognition based on their elegant appearance and economical factors. It has
been confirmed that it provides high-quality products and quality services.
Same products, much lower prices! Share my happiness quickly. Come to
visit   www.electronicnets.com
Good luck!

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Database handling - when do you open and close

2010-08-06 Thread Bender
I tried the following in my activity:

mServiceConnection =  new
DbServiceConnection(mDatabaseBinder);
final Intent databaseServiceIntent = new Intent(this,
DatabaseService.class);
this.bindService(databaseServiceIntent, mServiceConnection,
Context.BIND_AUTO_CREATE);

while(mDatabaseBinder == null) {
try {
Thread.sleep(100);
} catch (InterruptedException e) {
// catch...
}
}

Did you mean that? Now it should wait until the mDatabaseBinder is set
which should be in the onServiceConnected() method but that code
results in an endless loop, mDatabaseBinder stays null. Maybe I got it
wrong how the components work together. As far as I understood it, you
have a service running in the background, which returns a binder in
onBind(). The service connection fills the binder
onServiceConnected() so it can be used in the activity to access the
services variables. Is that wrong?

On 6 Aug., 10:26, Kostya Vasilyev kmans...@gmail.com wrote:
 Sure. The service connection callback you seem to already have in your code.

 --
 Kostya Vasilyev --http://kmansoft.wordpress.com

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Database handling - when do you open and close

2010-08-06 Thread Kostya Vasilyev

No, calling Thread.sleep() won't work.

Android framework is largely single-threaded, event-driven.

This means that your application and the framework run on the same 
thread, passing control to each other, doing work in small pieces. This 
thread is called the UI thread, and blocking it by calling sleep() can 
do only one thing - cause the Application Not Responding dialog to appear.


The right thing to do is call bindService, and return from onResume.

You've done your piece of work (responded to onResume, and requested 
that Android bind a service). Now you need to give Android a chance to 
do its piece of work - by returning from onResume into Android framework 
code, which will start the service (if necessary) and bind it, notifying 
your callback.


Then it's your turn again - once in the ServiceConnection callback, you 
know the service has been bound, and you can talk to the service and 
ultimately populate the UI.


So that's basically the scheme with services.

You might also want to look at ContentProviders. They have a few 
advantages over Services for this case - their lifecycle is managed by 
Android, access is synchronous (using ContentResolver), and they handle 
propagating data changes to existing queries / cursors (so if you have a 
ListView, its data will be live).


-- Kostya

06.08.2010 12:52, Bender пишет:

I tried the following in my activity:

 mServiceConnection =  new
DbServiceConnection(mDatabaseBinder);
 final Intent databaseServiceIntent = new Intent(this,
DatabaseService.class);
 this.bindService(databaseServiceIntent, mServiceConnection,
Context.BIND_AUTO_CREATE);

 while(mDatabaseBinder == null) {
try {
Thread.sleep(100);
} catch (InterruptedException e) {
// catch...
}
 }

Did you mean that? Now it should wait until the mDatabaseBinder is set
which should be in the onServiceConnected() method but that code
results in an endless loop, mDatabaseBinder stays null. Maybe I got it
wrong how the components work together. As far as I understood it, you
have a service running in the background, which returns a binder in
onBind(). The service connection fills the binder
onServiceConnected() so it can be used in the activity to access the
services variables. Is that wrong?

On 6 Aug., 10:26, Kostya Vasilyevkmans...@gmail.com  wrote:
   

Sure. The service connection callback you seem to already have in your code.

--
Kostya Vasilyev --http://kmansoft.wordpress.com
 
   



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: how to change colours in a .xml defined layout in run time

2010-08-06 Thread ckloch
Thank you very much for your input
I have solved the problem and the application is now ready for trial.

best regards
ckloch

On 23 Jun., 17:38, TreKing treking...@gmail.com wrote:
 On Wed, Jun 16, 2010 at 6:55 AM, ckloch htc.kl...@hotmail.com wrote:
  In theory it seems to be easy, but I would highly appreciate your help on
  how to do this in Android as I cannot see how I start changing the colours
  of the individual bar in the screen after initially defining the screen.

 Whatever View you're using to represent the bars should have some background
 property for changing it's background image or color. Try that.

 ---­--
 TreKing - Chicago transit tracking app for Android-powered 
 deviceshttp://sites.google.com/site/rezmobileapps/treking

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: How comes that the estimate time becomes negative

2010-08-06 Thread ckloch
Dear all,

I have solved my problem, so the issue below is no logner relevant

Thank you for all the great input I have got in this forum

best regards
CKLOCH

On 22 Jun., 11:25, ckloch htc.kl...@hotmail.com wrote:
 Dear all,

 I have developed a small app that helps the driver to regulate his
 speed in order to pass the traffic light when it is green; and thereby
 minimizing the number of times that he has to stop for red.

 But, the app does not always work as anticipated.
 In my app, I need to get the timedifference from when he starts
 driving to the actual time.
 This time is needed in order to calculate whether he will reach the
 light when it is green, or if he needs to slow down in case the
 current speed is too high.

 I will appreciate any help that can guide me in the right direction to
 identify the problem: is it due to Java and that it cannot control the
 on-going queueing of GPS data? is it due to problems with HTC Hero and
 Android 1.5; or is it something much more simple that causes my
 problem. Please, send me your input.
 I have inserted the most relevant parts of the code below which is
 structurized as:

 1) gpspos() is the function called when I want to start the routine
 (the main app is launched before).

 2) initial_time should contain the timesample from when I call the
 routine. That is the reason why I set it to zero in the beginning and
 then update it the first time the conditions  distance_1 radius and
 counter_L are fulfilled. These conditions are fulfilled when I call
 gpspos().

 3) time=location.getTime() is the GPS clock.

 4) double spend_time_1_sec = (time - initial_time); determines the
 time spend since I called gpspos().

 Thank you for your time and helpCKLOCH

 public void gpspos() {
 super.onResume();

 LocationManager locMgr = (LocationManager)
 getSystemService(Context.LOCATION_SERVICE);
                 LocationListener locListener = new LocationListener()
                 {

                 double initial_time = 0;

                 public void    onLocationChanged(Location location)
                 {

                     if (location != null)
                             {
                             double time = location.getTime()/1000;
                             double spend_time_1_sec = (time -
 initial_time);

                                 if (distance_1radius 
 counter_L==1)  // This is only true once when the routine gpspos() is
 called
                         {
                         initial_time = location.getTime()/1000; //
 initial_time is in seconds
                         }
                             }
                 }



 }- Skjul tekst i anførselstegn -

 - Vis tekst i anførselstegn -

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: WQVGA not respecting android:layout_height=fill_parent for layout.

2010-08-06 Thread ckloch
I have got some support on this and my problem is now solved both on
Android 1.5 and 2.1

Best regards
ckloch

On 17 Jun., 20:41, ckloch htc.kl...@hotmail.com wrote:
 Thanks for this inspiring contribtion.

 I have just ran in to the same problem with a HTC Hero Android 1.5
 By using android:layout_width=fill_parent, the screen does only take
 approximately half of the width of the screen while the rest is black.

 So, does it mean that I have to dictate the width in inches/mm to fill
 the entire width of the screen, or are there other ways to do?

 Thank you for your helpckloch

 On 14 Maj, 19:18, Stormtap Studios r...@stormtapstudios.com wrote:



  Ok, that makes sense for 1.6+ devices.  What will happen on small
  screen devices like QVGA-P and QVGA-L running 1.5 if you specify a -
  small resource folder?  Will it use the -small folder if that minimum
  sdk level is set, or does that SDK level just know nothing about that
  folder and keep on using the regular ones?

  Rob

  On May 14, 10:03šam, Kostya Vasilyev kmans...@gmail.com wrote:

   You can build against 1.6 and set min-sdk to 3, also set supports-screens
   for high and low screen support.

   There was a topic here recently about properly specifying drawables.

   14 ÍÁÑ, 2010 8:47 PM ÐÏÌØÚÏ×ÁÔÅÌØ Stormtap Studios 
   r...@stormtapstudios.com ÎÁÐÉÓÁÌ:

   I've found the reason this happens. šAccording to the documentation:

   Compatibility-mode display on larger screen-sizes
   If the current screen's size is larger than your application supports,
   as specified in the supports-screens element, the platform displays
   the application at the baseline size (normal) and density (medium).
   For screens larger than baseline, the platform displays the
   application in a baseline-sized portion of the overall screen, against
   a black background.

   This is what's happening to me.

   Unfortunately my app is being built against Android 1.5 and I can't
   include the supports-screens tag in the manifest to indicate that I
   support the large screens which would allow it to scale properly.
   Does anyone know of a way to tell the screen to stretch /fill_parent
   on large screens in Android 1.5?

   Thanks,

   Rob

   On May 13, 7:43 pm, Stormtap Studios r...@stormtapstudios.com wrote:  
   Hi
   guys,   I have this l... NEW! Try asking and tagging your question on 
   Stack Overflow athttp://

   stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to 

   android-beginners+unsubscr...@googlegroups.comandroid-beginners%2Bunsubscr
i...@googlegroups.com For more options, visit this group athttp://

   groups.google.com/group/android-beginners?hl=en

   -- You received this message because you are subscribed to the Google 
   Groups
   Android Beginners g...

   --
   You received this message because you are subscribed to the Google
   Groups Android Beginners group.

   NEW! Try asking and tagging your question on Stack Overflow 
   athttp://stackoverflow.com/questions/tagged/android

   To unsubscribe from this group, send email to
   android-beginners+unsubscr...@googlegroups.com
   For more options, visit this group 
   athttp://groups.google.com/group/android-beginners?hl=en

  --
  You received this message because you are subscribed to the Google
  Groups Android Beginners group.

  NEW! Try asking and tagging your question on Stack Overflow 
  athttp://stackoverflow.com/questions/tagged/android

  To unsubscribe from this group, send email to
  android-beginners+unsubscr...@googlegroups.com
  For more options, visit this group 
  athttp://groups.google.com/group/android-beginners?hl=en-Skjul tekst i 
  anførselstegn -

  - Vis tekst i anførselstegn -- Skjul tekst i anførselstegn -

 - Vis tekst i anførselstegn -

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] JavaPassion.com now offers Android Programming (with Passion!)

2010-08-06 Thread sangshin
JavaPassion.com now offers Android Programming (with Passion!)
online course.  Please see some sample lab documents below.

Building Helloworld Android application
http://www.javapassion.com/handsonlabs/android_stepbystep

Android UI Layout
http://www.javapassion.com/handsonlabs/android_ui_layout

Android UI Menu
http://www.javapassion.com/handsonlabs/android_ui_menu

Android UI Dialog
http://www.javapassion.com/handsonlabs/android_ui_dialog

Android UI Misc
http://www.javapassion.com/handsonlabs/android_ui_misc

For registration, please go to

  http://www.javapassion.com

Thanks.

-Sang Shin

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] html formated email

2010-08-06 Thread NBS
Hi all

I am trying to send email with html formated.
I like to send some text with hyperlink and I am trying with following code.

String body = a href=http://www.example.comExample/a
final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
emailIntent.setType(text/html);
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, subject);
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, Html.fromHtml(body));
startActivity(Intent.createChooser(emailIntent, Email:));

The mail sends successfully but there is no hyperlink.
How can I use hyperlink on mail .

regards
NBS

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-06 Thread Greg Donald
On Wed, Aug 4, 2010 at 8:32 PM, Indicator Veritatis mej1...@yahoo.com wrote:
 Yes, the distinction has been getting blurred. This is a bad thing.
 Discontinuing this group only makes the blurring worse, as more and
 more beginners will move to android-developers -- where beginning
 questions really do not belong.

Stackoverflow is much, much too restrictive for my taste, especially
for beginners.  I can't properly tag my own question since I'm a
stackoverflow beginner  :(

snip
# users with less than 1500 reputation can't create new tags. The tags
'rails3 linecache' are new. Try using existing tags instead.
/snip

Good luck only tagging questions that already have popular tags.


-- 
Greg Donald
destiney.com | gregdonald.com

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Default values in SharedPreferences

2010-08-06 Thread Bret Foreman
My application is somewhat complex and has lots of settable
preferences. Fortunately for the user, there are sensible defaults
that I can pre-configure. The SharedPreferences infrastructure
includes defaults in preferences.xml, which I have set accordingly.
The trouble is that if the user has never changed a particular
preference, then SharedPreferences.contains(key) returns false and
SharedPreferences.getXXX(key,default) returns the default field. This
creates a code management issue for defaults. The default values need
to be stored in two different places and kept in sync.

Ideally, the SharedPreferences infrastructure could be told to read in
the entire preferences.xml file so the SharedPreferences database is
loaded with all the initial values. But I haven't found any way to do
that. A key-value pair doesn't come into existence in the database
until the value is changed in the UI.

Second best would be to use the XMLReader to grab the default values,
something like this:

foo = SharedPreferences.getXXX(key,myDefaultReader(key));

Third best would be to store the defaults in their own file and manage
SharedPreferences files and defaults files as pairs. Then on
application startup the defaults file would be read and the values
propagated into the SharedPreferences database.

This is such a generic problem that I'm hoping someone has already
solved it and I can get something off the shelf. Any suggestions?

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Default values in SharedPreferences

2010-08-06 Thread TreKing
On Fri, Aug 6, 2010 at 3:24 PM, Bret Foreman bret.fore...@gmail.com wrote:

 This is such a generic problem that I'm hoping someone has already solved
 it and I can get something off the shelf. Any suggestions?


I haven't done this (yet) but you could probably store your default values
as resources then reference them in the preferences layout and in code as
necessary. Still slightly redundant, but at least then there is only one
place to go modify the default value.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-06 Thread fadden
On Aug 6, 1:20 pm, Greg Donald gdon...@gmail.com wrote:
 snip
 # users with less than 1500 reputation can't create new tags. The tags
 'rails3 linecache' are new. Try using existing tags instead.
 /snip

 Good luck only tagging questions that already have popular tags.

What advantage do you expect to gain from creating new tags?

I do a daily walk through stackoverflow for questions tagged with
android.  Nobody will be searching based on esoteric tags.  I think
the point of restricting tag generation is to ensure that people *do*
find your question because it exists in a pool of other similar
questions that people are examining.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-06 Thread Greg Donald
On Fri, Aug 6, 2010 at 3:52 PM, fadden fad...@android.com wrote:
 I do a daily walk through stackoverflow for questions tagged with
 android.  Nobody will be searching based on esoteric tags.  I think
 the point of restricting tag generation is to ensure that people *do*
 find your question because it exists in a pool of other similar
 questions that people are examining.

I have a problem with linecache.  There's no tag for it.  I couldn't
create one.  I did go ahead and choose other tags, ones not as
relevant as the ONE I wanted.  But whatever.

It's a stupid restriction.  1500 reputation before I can even properly
tag my question?  I've developed sites that used tags plenty of times
before.. it's just a join table, not a huge deal.  For them to act
like tags are so important n00bs like me can't create one?  Fuck them
and their 1500 reputation tags.

I've never once got help from there.  I tried again today as a last
resort.  I'm expecting nothing, as it's likely that's what I'll be
getting.


-- 
Greg Donald
destiney.com | gregdonald.com

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Default values in SharedPreferences

2010-08-06 Thread Bret Foreman
Yeah, that's messy, but it will probably work. One other consideration
is what the next version of Android will do about this. It's pretty
clear that this is an important missing feature. I expect they'll
eventually make a version of getXXX that reads the default value from
preferences.xml if there's no key-value pair in the database yet, and
throws an exception if no default value is found. From that
perspective, it makes more sense to put a wrapper around getXXX and do
my own parsing of the default values from preferences.xml. This has
the added advantage that addition and removal of new preference keys
can happen in the same file where the defaults are defined. And then
when the improved version of getXXX comes out, I can just remove the
wrapper.

The drawback of this is that I know very little about XML parsers. It
looks like I can use DocumentBuilder.parse for this purpose if I can
figure out how to open the file. Does this code look right for getting
at the raw xml data?

AssetManager myAssets = myContext.getAssets();
DisplayMetrics myDM = new DisplayMetrics();
myDM.setToDefaults();
Configuration myConfig = new Configuration();
myConfig.setToDefaults();
Resources myResources = new Resources( myAssets , myDM ,
myConfig );
prefInputStream =
myResources.openRawResource(R.xml.preferences);

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Interaction between an Activity and a Service ?

2010-08-06 Thread Rajesh Bachani
Thanks Justin, this helps :)

:) Rajesh.

On Aug 2, 11:52 pm, Justin Anderson janderson@gmail.com wrote:
 You can pass information via the Intents used to start the service, and vice
 versa, with the various put and get methods on Intent.

 For more information, see this 
 link:http://developer.android.com/resources/faq/framework.html#3

 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --

 On Sun, Aug 1, 2010 at 2:30 PM, Rajesh Bachani 
 rajesh.bach...@gmail.comwrote:

  Hello friends!

  I am trying to explore how information can be exchanged between
  activities and services.
  So, if we have Activity A and a Service S is started from A, using the
  startService() method - is there a way to pass parameters to the
  Service - and also receive values from the Service into the Activity
  once the stopService() method is called?

  I am using Intent to start the service, as one would expect.

  And further what is the advantage of calling the onBind method, as
  opposed to the onStart().

  Thanks,
  Rajesh.

  --
  You received this message because you are subscribed to the Google
  Groups Android Beginners group.

  NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

  To unsubscribe from this group, send email to
  android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Default values in SharedPreferences

2010-08-06 Thread TreKing
On Fri, Aug 6, 2010 at 5:38 PM, Bret Foreman bret.fore...@gmail.com wrote:

 One other consideration is what the next version of Android will do about
 this. It's pretty clear that this is an important missing feature. I expect
 they'll eventually make a version of getXXX that reads the default value
 from preferences.xml if there's no key-value pair in the database yet,
 and throws an exception if no default value is found.


I can't imagine this would change anytime soon, if at all. I've never found
this to be that big of a deal personally. Granted, it's annoying when you
have to change the default value, but my suggestion for using resources
should solve that.


 From that perspective, it makes more sense to put a wrapper around getXXX
 and do my own parsing of the default values from preferences.xml. This
 has the added advantage that addition and removal of new preference keys can
 happen in the same file where the defaults are defined. And then when the
 improved version of getXXX comes out, I can just remove the wrapper.


Those are big assumptions about what will or will not happen.


 Does this code look right for getting at the raw xml data?


Seems like overkill. Assuming you're in Activity:
InputStream is = getResources().openRawResource(R.xml.preferences);

That's it.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-05 Thread Alessandro Pellizzari
Il giorno mer, 04/08/2010 alle 17.16 -0400, Jake Colman ha scritto:

 This mailing list, along with many, many others can be access via NNTP
 using gmane.  Pretty much any mailing list I care to follow is on gmane
 and, if it isn't, it be easily added.

Cool! I didn't know gmane was accessible through nntp, I though it was
web-only.

Thank you very much.

Bye.


-- 
Alessandro Pellizzari

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Importing a keystore into Eclipse

2010-08-05 Thread TreKing
On Wed, Aug 4, 2010 at 11:23 PM, Bret Foreman bret.fore...@gmail.com
 wrote:

 The keystore is in the .android folder but it does not show in the Export
 Wizard.


. folders are hidden by default, maybe that's why?

But why put your keystore in the .android folder? I'd put it somewhere a
little more under your own control, like in your project's folder.


 I can see keystores that were created by the wizard but can't see any that
 are built with the keytool.


So just use the wizard?


 The debug/production key paradigm breaks down as soon as you need the API
 key for google maps, which must be generated from the application key. I
 don't notice any automated tool to swap the API keys when you switch
 application keys. It's all manual - error prone and time consuming, in other
 words.


Yes, but you really don't do this that often.

See this thread:
http://groups.google.com/group/android-developers/browse_thread/thread/a2c0cf7ecd0c3c7b/2b963ca3abe2eaa5

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] adb remote port forwarding

2010-08-05 Thread Gaurav Khurana
Hi,

Is there a way to forward the remote port i.e. port on the android
device/emulator to the local machine to which the device is connected?
using adb or using any other method? I am develop an application to
communicate with a desktop application over USB. The desktop
application listens for connections on a particular port.

The documentation of adb states that:
$ adb forward tcp:port1 tcp:port2 # forwards the local port port1 on
the machine to port2 on the device.

Thanks in advance!

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Google Maps on .apk application not showing maps

2010-08-05 Thread Ivanico
I was working on Google Maps on the emulator on my laptop and with the
Google API Key everything worked perfectly. Then when I created
the .apk and install it on my phone, Google Maps don't show the maps,
but show the pins of my plotted places.

Does anyone might know what is going on or has came across this as
well?

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Google Maps on .apk application not showing maps

2010-08-05 Thread TreKing
On Thu, Aug 5, 2010 at 11:47 AM, Ivanico ivan.fran...@gmail.com wrote:

 Does anyone might know what is going on or has came across this as well?


If you exported the app with your signing key, you need to generate an
associated release MAP API key. Follow the instructions on the Maps API
documentation page, the section on obtaining a key.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Bibrate on screen touch

2010-08-05 Thread Konstantin Burov
((Vibrator) getSystemService(Context.VIBRATOR_SERVICE)).vibrate(200);

You also need to request vibrate permission at manifest:
uses-permission android:name=android.permission.VIBRATE /

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] How to create directory or file into /data/local/ directory?

2010-08-05 Thread jitendra bachhav
Hi,

I want to download my apk file into /data/local/ directory.
I am able do this in external storage but unable on /data/local also
i was trying to create folder on same location but could not do that.

Through adb push it is possible but i need to do this java program.

Regards,
Jitendra.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Database handling - when do you open and close

2010-08-05 Thread Bender
Thanks for your reply, and sorry for my late answer. :-)

I tried to get it running as a service but I don't really get how I
have to use services, binders and service connections. I'm reading a
book with an example for services but can't adopt it to my problem.
What I tried is the following:

I created one class for the service, which holds the variable for my
database:
__

public class DatabaseService extends Service {

public DbAdapter mDbAdapter;
private DatabaseBinder mDatabaseBinder = new DatabaseBinder();

@Override
public IBinder onBind(Intent intent) {
return mDatabaseBinder;
}

@Override
public void onCreate() {
super.onCreate();
mDatabaseBinder.mDatabaseService = this;
mDbAdapter = new DbAdapter(getApplicationContext());
mDbAdapter.open();
}

@Override
public void onDestroy() {
super.onDestroy();
mDatabaseBinder.mDatabaseService = null;
mDbAdapter.close();
}

}

This is my database binder:
__

public class DatabaseBinder extends Binder {

public DatabaseService mDatabaseService;

public DbAdapter getDbAdapter() {
return mDatabaseService.mDbAdapter;
}

}

And this my service connection:
__

public class DbServiceConnection implements ServiceConnection {

DatabaseBinder mBinder;

public DbServiceConnection(DatabaseBinder binder) {
mBinder = binder;
}

@Override
public void onServiceConnected(ComponentName className, IBinder
binder) {
mBinder = (DatabaseBinder) binder;
}

@Override
public void onServiceDisconnected(ComponentName arg0) {
}

}

If I want to use this in my activity with this:

private DatabaseBinder mDatabaseBinder;
private DbServiceConnection mServiceConnection = new
DbServiceConnection(mDatabaseBinder);

final Intent databaseServiceIntent = new Intent(this,
DatabaseService.class);
this.bindService(databaseServiceIntent, mServiceConnection,
Context.BIND_AUTO_CREATE);

mDb = mDatabaseBinder.getDbAdapter();


I'm getting a nullpointer exception at the last line. I don't know if
I'm using it right (I guess not :D ), I haven't used services before.
Do you know why it is throwing a Nullpointer exception? Is this the
right way to use a service and bind it in the activity or should I do
it somehow different?

On 19 Jul., 00:30, brucko geoff.bruck...@gmail.com wrote:
 Bender,

 put your db in a local Service. Open the db in onCreate() close it in
 onDestroy(). Your Activities can bind and unbind to the Service as
 many times as you like. The system will keep the service running as
 long as  you have an activity in the foreground process bound to it or
 otherwise until it needs to reclaim the resources.

 Take a look at :

 http://developer.android.com/resources/samples/ApiDemos/src/com/examp...

 but DONT have your binder as a non-static inner class as in the
 example - or you will create a memory leak and leak your Service.
 Instead, pass the binder a reference to your service in onCreate and
 get the binder to null the reference out in onDestroy

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Database handling - when do you open and close

2010-08-05 Thread Kostya Vasilyev
Starting / binding to a service is asynchronous. You can't call bindService
and expect it to be already started and bound by the next line.

Call bindService and return control to Android by returning from onCreate or
whatever. Your service connection callback will be invoked a little later,
once the service is started.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

06.08.2010 0:49 пользователь Bender abende...@googlemail.com написал:

Thanks for your reply, and sorry for my late answer. :-)

I tried to get it running as a service but I don't really get how I
have to use services, binders and service connections. I'm reading a
book with an example for services but can't adopt it to my problem.
What I tried is the following:

I created one class for the service, which holds the variable for my
database:
__

public class DatabaseService extends Service {

   public DbAdapter mDbAdapter;
   private DatabaseBinder mDatabaseBinder = new DatabaseBinder();

   @Override
   public IBinder onBind(Intent intent) {
   return mDatabaseBinder;
   }

   @Override
   public void onCreate() {
   super.onCreate();
   mDatabaseBinder.mDatabaseService = this;
   mDbAdapter = new DbAdapter(getApplicationContext());
   mDbAdapter.open();
   }

   @Override
   public void onDestroy() {
   super.onDestroy();
   mDatabaseBinder.mDatabaseService = null;
   mDbAdapter.close();
   }

}

This is my database binder:
__

public class DatabaseBinder extends Binder {

   public DatabaseService mDatabaseService;

   public DbAdapter getDbAdapter() {
   return mDatabaseService.mDbAdapter;
   }

}

And this my service connection:
__

public class DbServiceConnection implements ServiceConnection {

   DatabaseBinder mBinder;

   public DbServiceConnection(DatabaseBinder binder) {
   mBinder = binder;
   }

   @Override
   public void onServiceConnected(ComponentName className, IBinder
binder) {
   mBinder = (DatabaseBinder) binder;
   }

   @Override
   public void onServiceDisconnected(ComponentName arg0) {
   }

}

If I want to use this in my activity with this:

   private DatabaseBinder mDatabaseBinder;
   private DbServiceConnection mServiceConnection = new
DbServiceConnection(mDatabaseBinder);

   final Intent databaseServiceIntent = new Intent(this,
DatabaseService.class);
   this.bindService(databaseServiceIntent, mServiceConnection,
Context.BIND_AUTO_CREATE);

   mDb = mDatabaseBinder.getDbAdapter();


I'm getting a nullpointer exception at the last line. I don't know if
I'm using it right (I guess not :D ), I haven't used services before.
Do you know why it is throwing a Nullpointer exception? Is this the
right way to use a service and bind it in the activity or should I do
it somehow different?


On 19 Jul., 00:30, brucko geoff.bruck...@gmail.com wrote:
 Bender,

 put your db in a local Se...
 http://developer.android.com/resources/samples/ApiDemos/src/com/examp...


 but DONT have your binder as a non-static inner class as in the
 example - or you will create a...
ATTENTION: Android-Beginners will be permanently disabled on August 9 2010.
For more information about this change, please read [http://goo.gl/xkfl] or
visit the Group home page.


Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged...

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] SecurityException in AccountManager.get(mContext).getPassword(account);

2010-08-04 Thread parul
I'm trying to  retrieve the password of google account, but getting
security exception.
Also i have given permissions in androidManifest.xml to
account_manager, aunthenticator, get_account, manage account.

code :
=
android.accounts.Account[] googleAccount =
AccountManager.get(mContext).getAccounts();
for (android.accounts.Account account: googleAccount ) {
 String pwd = AccountManager.get(mContext).getPassword(account);
 AccountManager.get(mContext).setPassword(account, null);
}
=
Exception:
=
08-04 06:38:30.821: WARN/AccountManagerService(2248): caller uid 1000
is different than the authenticator's uid
08-04 06:38:30.821: INFO/parul(2804): exception thrown for account
manager try block
08-04 06:38:30.821: WARN/System.err(2804):
java.lang.SecurityException: caller uid 1000 is different than the
authenticator's uid
08-04 06:38:30.821: WARN/System.err(2804): at
android.os.Parcel.readException(Parcel.java:1218)
08-04 06:38:30.821: WARN/System.err(2804): at
android.os.Parcel.readException(Parcel.java:1206)
08-04 06:38:30.821: WARN/System.err(2804): at
android.accounts.IAccountManager$Stub
$Proxy.getPassword(IAccountManager.java:397)
08-04 06:38:30.821: WARN/System.err(2804): at
android.accounts.AccountManager.getPassword(AccountManager.java:157)
08-04 06:38:30.821: WARN/System.err(2804): at
com.samsung.mttwo.service.MtSmsHandler.handleMessage(MtSmsHandler.java:
421)
08-04 06:38:30.826: WARN/System.err(2804): at
com.samsung.mttwo.service.MtSmsHandler.handleMTSmsReceived(MtSmsHandler.java:
146)
08-04 06:38:30.826: WARN/System.err(2804): at
com.samsung.mttwo.service.MTSmsReceiver.onReceive(MTSmsReceiver.java:
30)
08-04 06:38:30.826: WARN/System.err(2804): at
android.app.ActivityThread.handleReceiver(ActivityThread.java:2637)
08-04 06:38:30.826: WARN/System.err(2804): at
android.app.ActivityThread.access$3100(ActivityThread.java:119)
08-04 06:38:30.826: WARN/System.err(2804): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1913)
08-04 06:38:30.826: WARN/System.err(2804): at
android.os.Handler.dispatchMessage(Handler.java:99)
08-04 06:38:30.826: WARN/System.err(2804): at
android.os.Looper.loop(Looper.java:123)
08-04 06:38:30.826: WARN/System.err(2804): at
android.app.ActivityThread.main(ActivityThread.java:4363)
08-04 06:38:30.826: WARN/System.err(2804): at
java.lang.reflect.Method.invokeNative(Native Method)
08-04 06:38:30.826: WARN/System.err(2804): at
java.lang.reflect.Method.invoke(Method.java:521)
08-04 06:38:30.826: WARN/System.err(2804): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:862)
08-04 06:38:30.826: WARN/System.err(2804): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
08-04 06:38:30.826: WARN/System.err(2804): at
dalvik.system.NativeStart.main(Native Method)
=

If anybody is aware why i'm getting this problem plz help.
Thanks

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] SecurityException in AccountManager.get(mContext).getPassword(account);

2010-08-04 Thread parul
I'm trying to  retrieve the password of google account, but getting
security exception.
Also i have given permissions in androidManifest.xml to
account_manager, aunthenticator, get_account, manage account.

code :
=
android.accounts.Account[] googleAccount =
AccountManager.get(mContext).getAccounts();
for (android.accounts.Account account: googleAccount ) {
 String pwd = AccountManager.get(mContext).getPassword(account);
 AccountManager.get(mContext).setPassword(account, null);
}
=
Exception:
=
08-04 06:38:30.821: WARN/AccountManagerService(2248): caller uid 1000
is different than the authenticator's uid
08-04 06:38:30.821: INFO/parul(2804): exception thrown for account
manager try block
08-04 06:38:30.821: WARN/System.err(2804):
java.lang.SecurityException: caller uid 1000 is different than the
authenticator's uid
08-04 06:38:30.821: WARN/System.err(2804): at
android.os.Parcel.readException(Parcel.java:1218)
08-04 06:38:30.821: WARN/System.err(2804): at
android.os.Parcel.readException(Parcel.java:1206)
08-04 06:38:30.821: WARN/System.err(2804): at
android.accounts.IAccountManager$Stub
$Proxy.getPassword(IAccountManager.java:397)
08-04 06:38:30.821: WARN/System.err(2804): at
android.accounts.AccountManager.getPassword(AccountManager.java:157)
08-04 06:38:30.821: WARN/System.err(2804): at
com.samsung.mttwo.service.MtSmsHandler.handleMessage(MtSmsHandler.java:
421)
08-04 06:38:30.826: WARN/System.err(2804): at
com.samsung.mttwo.service.MtSmsHandler.handleMTSmsReceived(MtSmsHandler.java:
146)
08-04 06:38:30.826: WARN/System.err(2804): at
com.samsung.mttwo.service.MTSmsReceiver.onReceive(MTSmsReceiver.java:
30)
08-04 06:38:30.826: WARN/System.err(2804): at
android.app.ActivityThread.handleReceiver(ActivityThread.java:2637)
08-04 06:38:30.826: WARN/System.err(2804): at
android.app.ActivityThread.access$3100(ActivityThread.java:119)
08-04 06:38:30.826: WARN/System.err(2804): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1913)
08-04 06:38:30.826: WARN/System.err(2804): at
android.os.Handler.dispatchMessage(Handler.java:99)
08-04 06:38:30.826: WARN/System.err(2804): at
android.os.Looper.loop(Looper.java:123)
08-04 06:38:30.826: WARN/System.err(2804): at
android.app.ActivityThread.main(ActivityThread.java:4363)
08-04 06:38:30.826: WARN/System.err(2804): at
java.lang.reflect.Method.invokeNative(Native Method)
08-04 06:38:30.826: WARN/System.err(2804): at
java.lang.reflect.Method.invoke(Method.java:521)
08-04 06:38:30.826: WARN/System.err(2804): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:862)
08-04 06:38:30.826: WARN/System.err(2804): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
08-04 06:38:30.826: WARN/System.err(2804): at
dalvik.system.NativeStart.main(Native Method)
=

If anybody is aware why i'm getting this problem plz help.
Thanks

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] How to configure proxy settings on my Droid with Android 1.6 ?? plz help

2010-08-04 Thread wahib haq
Thanks anderson for responding. Apologies for posting a vague question. My
issue is like a very common one .. There is no option to set up proxy
settings on droid. I have searched and there a like hundreds of post with
the same issue. I wanted to know if there has been a kind of hack available
by which i can use wifi internet in my university behind a proxy. Not just
on browser but also with applications.

Thanks in advance.

regards,
wahib

On Wed, Aug 4, 2010 at 1:19 AM, Justin Anderson janderson@gmail.comwrote:

 And even if that isn't the case and your problem lies with something else,
 your question is way to vague to expect to get any help whatsoever...


 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --


 On Tue, Aug 3, 2010 at 2:18 PM, Justin Anderson 
 janderson@gmail.comwrote:

 * I am unable to use internet in university network due to proxy issue*
 Meaning you need to set up proxy settings in order to connect to the
 internet at your university?  If that is the case you need to contact the
 university's IT department... only they will be able to give you the
 settings you need.


 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --



 On Tue, Aug 3, 2010 at 2:10 PM, wahib wahib.t...@gmail.com wrote:

 hey experts,

 I have this issue with my droid phone running 1.6 OS. I am unable to
 use internet in university network due to proxy issue. I cant find out
 a way to setup proxy settings :S I cant even use applications which
 require internet access .. so need to get it resolved. plz help me
 out.


 regards,

 wahib

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 ATTENTION: Android-Beginners will be permanently disabled on August 9
 2010. For more information about this change, please read [
 http://goo.gl/xkfl] or visit the Group home page.

 Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en



  --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 ATTENTION: Android-Beginners will be permanently disabled on August 9 2010.
 For more information about this change, please read [http://goo.gl/xkfl]
 or visit the Group home page.

 Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en




-- 
Wahib-ul-haq

3rd year Communications Engineering Student,
NUST, Pakistan.
Microsoft Student Partner
NUST-SEECS Open Mobile Squad ( Android Dev Team )
Software Internee @ Cogilent Solutions
Blog: www.livetechpro.com
web: http://www.google.com/profiles/wahib.tech
follow me on twitter @wahibhaq

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Changing WiFi network login

2010-08-04 Thread Kostya Vasilyev

Then do it the same way web applications do.

Implement login functionality in your application, and you can check 
credentials. If the app has a web service-based backend, pass some kind 
of login token to the server can track usage.


-- Kostya

04.08.2010 1:09, Kevin Brooks пишет:
My original question was misleading. Let's forget the Android device 
for a moment. If a user logs into a computer, his credentials are 
checked on the network and he has access the Admin grants to him/her.


So without changing the whole Android System, I need a way to 
authenticate the user on the network through my application.



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] SecurityException in AccountManager.get(mContext).getPassword(account);

2010-08-04 Thread Kostya Vasilyev
Looks like Google has a special process that deals with account 
management. Only this process is allowed to get / set account passwords. 
It's probably also signed with a special key, which is checked by the 
kernel when it's started (guessing here).


If any application was allowed this, think how many web sites would be 
offering Google account passwords - 1,000 for $10.-, and 10,000 for 
$75.- (a 25% discount! only this month!)


-- Kostya

04.08.2010 12:26, parul пишет:

I'm trying to  retrieve the password of google account, but getting
security exception.
Also i have given permissions in androidManifest.xml to
account_manager, aunthenticator, get_account, manage account.

code :
=
android.accounts.Account[] googleAccount =
AccountManager.get(mContext).getAccounts();
for (android.accounts.Account account: googleAccount ) {
  String pwd = AccountManager.get(mContext).getPassword(account);
  AccountManager.get(mContext).setPassword(account, null);
}
=
Exception:
=
08-04 06:38:30.821: WARN/AccountManagerService(2248): caller uid 1000
is different than the authenticator's uid
08-04 06:38:30.821: INFO/parul(2804): exception thrown for account
manager try block
08-04 06:38:30.821: WARN/System.err(2804):
java.lang.SecurityException: caller uid 1000 is different than the
authenticator's uid
08-04 06:38:30.821: WARN/System.err(2804): at
android.os.Parcel.readException(Parcel.java:1218)
08-04 06:38:30.821: WARN/System.err(2804): at
android.os.Parcel.readException(Parcel.java:1206)
08-04 06:38:30.821: WARN/System.err(2804): at
android.accounts.IAccountManager$Stub
$Proxy.getPassword(IAccountManager.java:397)
08-04 06:38:30.821: WARN/System.err(2804): at
android.accounts.AccountManager.getPassword(AccountManager.java:157)
08-04 06:38:30.821: WARN/System.err(2804): at
com.samsung.mttwo.service.MtSmsHandler.handleMessage(MtSmsHandler.java:
421)
08-04 06:38:30.826: WARN/System.err(2804): at
com.samsung.mttwo.service.MtSmsHandler.handleMTSmsReceived(MtSmsHandler.java:
146)
08-04 06:38:30.826: WARN/System.err(2804): at
com.samsung.mttwo.service.MTSmsReceiver.onReceive(MTSmsReceiver.java:
30)
08-04 06:38:30.826: WARN/System.err(2804): at
android.app.ActivityThread.handleReceiver(ActivityThread.java:2637)
08-04 06:38:30.826: WARN/System.err(2804): at
android.app.ActivityThread.access$3100(ActivityThread.java:119)
08-04 06:38:30.826: WARN/System.err(2804): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1913)
08-04 06:38:30.826: WARN/System.err(2804): at
android.os.Handler.dispatchMessage(Handler.java:99)
08-04 06:38:30.826: WARN/System.err(2804): at
android.os.Looper.loop(Looper.java:123)
08-04 06:38:30.826: WARN/System.err(2804): at
android.app.ActivityThread.main(ActivityThread.java:4363)
08-04 06:38:30.826: WARN/System.err(2804): at
java.lang.reflect.Method.invokeNative(Native Method)
08-04 06:38:30.826: WARN/System.err(2804): at
java.lang.reflect.Method.invoke(Method.java:521)
08-04 06:38:30.826: WARN/System.err(2804): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:862)
08-04 06:38:30.826: WARN/System.err(2804): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
08-04 06:38:30.826: WARN/System.err(2804): at
dalvik.system.NativeStart.main(Native Method)
=

If anybody is aware why i'm getting this problem plz help.
Thanks

   



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Google map tiles missing with adb install

2010-08-04 Thread Mark Murphy
On Tue, Aug 3, 2010 at 11:34 PM, Bret Foreman bret.fore...@gmail.com wrote:
 Is it kosher to sign an apk file with a debug key or is that only for
 inside Eclipse?

That should be kosher. I suspect there's still something wrong with
your process here -- perhaps signed by both production and debug keys?
I don't know how else to explain your map symptoms.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.1 Available!

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Google map tiles missing with adb install

2010-08-04 Thread TreKing
On Tue, Aug 3, 2010 at 8:26 PM, Bret Foreman bret.fore...@gmail.com wrote:

 If I export to an apk file and install it to the same phone from the
 command line (adb install path/ filename.apk) then the MapView shows the
 Google logo and the grid, but
 no map. Any ideas what might be going wrong?


How are you exporting?
How are you signing your APK after exporting?

Normally, when you export it's for a production / release build, which
requires a corresponding production / release Maps API key. My money's on
you using a debug Maps API key with your release signing key.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Google map tiles missing with adb install

2010-08-04 Thread Bret Foreman
Except I don't have a production/release signing key yet. I've only
ever generated the debug key, which I also used to generate the maps
API key. I'm using the Export wizard in Eclipse with the sign the
package box checked and my debug key chosen.

I shouldn't be able to even install an unsigned package, right? So the
package _is_ signed. And the only app key I have is the debug key. And
the only API key I have was generated with that app key and works when
the app is loaded on the phone from within Eclipse.

It may be a key mismatch, but if it is I can't imagine how to fix it.
As far as I can tell, I'm going strictly by the book.


 Normally, when you export it's for a production / release build, which
 requires a corresponding production / release Maps API key. My money's on
 you using a debug Maps API key with your release signing key.

 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Google map tiles missing with adb install

2010-08-04 Thread TreKing
On Wed, Aug 4, 2010 at 10:45 AM, Bret Foreman bret.fore...@gmail.comwrote:

 Except I don't have a production/release signing key yet.


I would generate one, then a corresponding release Maps API key and try
that.


 I've only ever generated the debug key, which I also used to generate the
 maps API key. I'm using the Export wizard in Eclipse with the sign
 the package box checked and my debug key chosen.


Out of curiosity, why are you exporting with a debug key? You can just run
from Eclipse ...

AFAIK, exporting is for generating a release build. I would not be surprised
if there's something under the hood that's breaking because it's a debug
key.


 I shouldn't be able to even install an unsigned package, right?


No idea, but I don't see why not, if you know what you're doing.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Google map tiles missing with adb install

2010-08-04 Thread Bret Foreman
That's a fair point. I wasn't planning to generate a production key
until I was ready to publish but there's no harm in doing it now. On
careful reading of this: 
http://developer.android.com/guide/publishing/app-signing.html#cert
there is a sentence that goes You can not publish an application that
is signed with the debug key generated by the SDK tools.  I suspect
export and publish are interchangeable in this case. I was
thinking that publish meant placing in the Marketplace. Perhaps we
should log a bug against the documentation to make that clearer?

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Google map tiles missing with adb install

2010-08-04 Thread TreKing
On Wed, Aug 4, 2010 at 11:16 AM, Bret Foreman bret.fore...@gmail.comwrote:

 I was thinking that publish meant placing in the Marketplace.


I believe that's what is meant. I could be wrong, of course - I didn't write
it :)


 Perhaps we should log a bug against the documentation to make that clearer?


If by we, you mean you, go for it =P

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] I need Ivt_bluesoleil_6.4.314.3 activation key

2010-08-04 Thread rajesh rao
Hi guys i'm rajesh, if have  Ivt_bluesoleil_6.4.314.3 activation key or
crack or keygen key means please send me..
thanks

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-04 Thread Alessandro Pellizzari
Il giorno mar, 03/08/2010 alle 14.49 -0400, Mark Murphy ha scritto:

 For those who find StackOverflow to be ineffective, or find the
 behavior of volunteers there to be morally reprehensible, or whatever,
 use the [android-developers] Google Group. The dividing line between
 that group and this one has been extremely blurry over the past 9-12
 months.

The problem with Stackoverflow, IMVHO, is that it is a QA site, not a
discussion place. You ask something, someone replies. Hadrly I found
even a simple thread discussing different ways to do something.

Plus, I find it unusable for a casual visitor.  You visit it if you have
a question, search for it, maybe post a request.
But it is hard to browse through a topic, or just read some messages to
discover things you didn't even think where possible.

This list has the right amount of traffic for casual reading during work
pauses.
Android-developers is way too big (1000 messages a day? I end up marking
them all as read)

As for searching info, I prefer Google to Stackoverflow. This way I also
find blog posts, newsgroup posts, forums and this mailing list.

 There are other support resources as well (JavaRanch, anddev.org,
 etc.). I do not try to participate in all of them, as I would never
 get any sleep. :-)

Too many, I agree, but this one was official, and was easily usable,
being a mailing list.
I would prefer a NNTP newsgroup, but a ml is good too.
A forum or a website? Not so...

 If this list is discontinued, for the near term, I will be focusing on
 StackOverflow and [android-developers], and we will see where things
 go from there.

I understand your position.
Thanks to you and the others who bothered to help us newbies.

I too will continue to read android-developers and see how it goes.
As for stackoverflow, maybe google will find it sometimes. :)

Bye.


-- 
Alessandro Pellizzari

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-04 Thread Kostya Vasilyev
If there are so many regrets about the closing of this list isn't it
possible for anyone to create a mailing list with Google Groups? Let's call
it android-for-beginners or whatever. Anyone?

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

04.08.2010 20:39 пользователь Alessandro Pellizzari a...@amiran.it
написал:

Il giorno mar, 03/08/2010 alle 14.49 -0400, Mark Murphy ha scritto:


 For those who find StackOverflow to be ineffective, or find the
 behavior of volunteers there to...
The problem with Stackoverflow, IMVHO, is that it is a QA site, not a
discussion place. You ask something, someone replies. Hadrly I found
even a simple thread discussing different ways to do something.

Plus, I find it unusable for a casual visitor.  You visit it if you have
a question, search for it, maybe post a request.
But it is hard to browse through a topic, or just read some messages to
discover things you didn't even think where possible.

This list has the right amount of traffic for casual reading during work
pauses.
Android-developers is way too big (1000 messages a day? I end up marking
them all as read)

As for searching info, I prefer Google to Stackoverflow. This way I also
find blog posts, newsgroup posts, forums and this mailing list.


 There are other support resources as well (JavaRanch, anddev.org,
 etc.). I do not try to partic...
Too many, I agree, but this one was official, and was easily usable,
being a mailing list.
I would prefer a NNTP newsgroup, but a ml is good too.
A forum or a website? Not so...


 If this list is discontinued, for the near term, I will be focusing on
 StackOverflow and [andro...
I understand your position.
Thanks to you and the others who bothered to help us newbies.

I too will continue to read android-developers and see how it goes.
As for stackoverflow, maybe google will find it sometimes. :)

Bye.


--
Alessandro Pellizzari


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners g...

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Mgmktukkkekketkektktuekrzkktkkkkurktuekttkkkktkkkktkkt

2010-08-04 Thread Jonas Gehring


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-04 Thread TreKing
2010/8/4 Kostya Vasilyev kmans...@gmail.com

 If there are so many regrets about the closing of this list isn't it
 possible for anyone to create a mailing list with Google Groups? Let's call
 it android-for-beginners or whatever. Anyone?



On Tue, Aug 3, 2010 at 12:52 PM, Greg Donald gdon...@gmail.com wrote:

 I don't see any reason why we can't have one that's not moderated by
 Google:

 http://groups.google.com/group/android-for-beginners

 Moderator volunteers please contact me after joining.


-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Importing a keystore into Eclipse

2010-08-04 Thread Bret Foreman
I've created a new keystore using keytool and placed it in the Users/
MyName/.android folder. However, when I start the Eclipse Export
Wizard, it only shows my old debug keystore. How do I get Eclipse to
know about a new keystore? Also, once I have a second keystore, how do
I tell the debugger that I want to use it rather than the debug
keystore for debugging?

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-04 Thread Jake Colman
 AP == Alessandro Pellizzari a...@amiran.it writes:

   AP Too many, I agree, but this one was official, and was easily usable,
   AP being a mailing list.
   AP I would prefer a NNTP newsgroup, but a ml is good too.
   AP A forum or a website? Not so...

This mailing list, along with many, many others can be access via NNTP
using gmane.  Pretty much any mailing list I care to follow is on gmane
and, if it isn't, it be easily added.

-- 
Jake Colman -- Android Tinkerer

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-04 Thread Indicator Veritatis
Yes, the distinction has been getting blurred. This is a bad thing.
Discontinuing this group only makes the blurring worse, as more and
more beginners will move to android-developers -- where beginning
questions really do not belong.

On Aug 3, 11:49 am, Mark Murphy mmur...@commonsware.com wrote:
 On Tue, Aug 3, 2010 at 1:59 PM, Kevin Brooks bear35...@gmail.com wrote:
  I just joined the new group.  Hopefully Mark Murphy will decide to join as
  well an Volunteer to be a Moderator.

 Personally, I would recommend people use StackOverflow.

 For those who find StackOverflow to be ineffective, or find the
 behavior of volunteers there to be morally reprehensible, or whatever,
 use the [android-developers] Google Group. The dividing line between
 that group and this one has been extremely blurry over the past 9-12
 months.

 There are other support resources as well (JavaRanch, anddev.org,
 etc.). I do not try to participate in all of them, as I would never
 get any sleep. :-)

 If this list is discontinued, for the near term, I will be focusing on
 StackOverflow and [android-developers], and we will see where things
 go from there.

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

 Android Development Wiki:http://wiki.andmob.org

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Importing a keystore into Eclipse

2010-08-04 Thread TreKing
On Wed, Aug 4, 2010 at 3:57 PM, Bret Foreman bret.fore...@gmail.com wrote:

 How do I get Eclipse to know about a new keystore?


When you use the Export Wizard, it should give you the option to use an
existing keystore and let you browse to it.


 Also, once I have a second keystore, how do I tell the debugger that I
 want to use it rather than the debug keystore for debugging?


I don't think you can. And I see no reason to do so.
Why do you need to use a different one for debugging?

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Importing a keystore into Eclipse

2010-08-04 Thread Bret Foreman
The keystore is in the .android folder but it does not show in the
Export Wizard. I can see keystores that were created by the wizard but
can't see any that are built with the keytool. There must be some
import step to tell Eclipse about a new key. Something beyond just
dropping the keystore into the .android folder.

The debug/production key paradigm breaks down as soon as you need the
API key for google maps, which must be generated from the application
key. I don't notice any automated tool to swap the API keys when you
switch application keys. It's all manual - error prone and time
consuming, in other words.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Trying to delete google account programmatically from my app.

2010-08-03 Thread parul
now i've changed implementation as i came to know that we can access
accounts using AccountManager
Therefore i'm using this code: but this is also not giving any output
not even exception.

AccountManager accountManager =
(AccountManager)mContext.getSystemService(Context.ACCOUNT_SERVICE);
android.accounts.Account[] accounts =
AccountManager.get(mContext).getAccounts();
for (android.accounts.Account account: accounts) {
  AccountManager.get(mContext).removeAccount(account, null,
null);
 }

It would be great help if u can suggest something on this.

On Jul 30, 2:18 am, RichardC richard.crit...@googlemail.com wrote:
 In the file you linked above the class AccountManagerService is marked
 as @hide in the java doc - that means it's an internal class.

 Also there is no reference to AccountManagerService on the
 developer.android.com.

 Either of these should indicate to you that what you are trying to do
 is unsupported.

 On Jul 29, 10:03 pm, Nick Richardson richardson.n...@gmail.com
 wrote:



  Usually a good place to start is to find out what's causing it to crash.
   Use logcat and look for caused by in the exception.

  My money's on a NullPointerException.

  On Tue, Jul 27, 2010 at 9:24 PM, parul parulsinghal...@gmail.com wrote:
   Please help me how to delete google accounts from accounts and sync.
   I'm trying to call this code in my app:

   AccountManagerService ams = new AccountManagerService(mContext);
   ams.onServiceChanged(null,true);

   Its crashing at object creation. If anybody is aware of any other way
   to delete account plz let me know.

   ==
   onServiceChanged() method is defined in AccountManagerService.java.
   AccountManagerService.java (frameworks\base\core\java\android
   \accounts)

   public void onServiceChanged(AuthenticatorDescription desc, boolean
   removed) {
      boolean accountDeleted = false;
      SQLiteDatabase db = mOpenHelper.getWritableDatabase();
      Cursor cursor = db.query(TABLE_ACCOUNTS,
              new String[]{ACCOUNTS_ID, ACCOUNTS_TYPE, ACCOUNTS_NAME},
              ACCOUNTS_TYPE + =?, new String[]{desc.type}, null, null,
   null);
      try {
          while (cursor.moveToNext()) {
              final long accountId = cursor.getLong(0);
              final String accountType = cursor.getString(1);
              final String accountName = cursor.getString(2);
              Log.d(TAG, deleting account  + accountName +  because
   type 
                      + accountType +  no longer has a registered
   authenticator);
              db.delete(TABLE_ACCOUNTS, ACCOUNTS_ID + = + accountId,
   null);
              accountDeleted = true;
          }
      } finally {
          cursor.close();
          if (accountDeleted) {
              sendAccountsChangedBroadcast();
          }
      }
   

   --
   You received this message because you are subscribed to the Google
   Groups Android Beginners group.

   NEW! Try asking and tagging your question on Stack Overflow at
  http://stackoverflow.com/questions/tagged/android

   To unsubscribe from this group, send email to
   android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr­...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-beginners?hl=en

  --
  //Nick Richardson
  //richardson.n...@gmail.com- Hide quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Eclipse lockups and crashes

2010-08-03 Thread blindfold
I'm having the same problem with the latest r06 Android SDK and using
Java SDK 1.6.0_21 (C:\Program Files\Java\jdk1.6.0_21) and the latest
Eclipse updates on my Windows 7 64-bit system. It is a lot worse than
it was in the past (on the same PC) with older SDKs. I use Eclipse SDK
3.6.0, build id I20100608-0911. Perhaps Java SDK 1.6.0_21 is too new
but I did no further testing. It is indeed very annoying and I have to
be continuously prepared for Eclipse locking up.

Regards

On Aug 3, 2:33 am, -DC- diskcras...@gmail.com wrote:
 I'm using Eclipse (eclipse-java-galileo-SR2-win32) with ADT rev 6 and
 have Java SDK 1.6.0_21 installed on my system. Eclipse locks up and/or
 crashes on me regularly while coding. I've lost unsaved code and even
 my Eclipse preferences before. It's maddening! Does anyone know what
 might be causing this?

 (I really wish Google would make an ADT plug-in for NetBeans...)

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Camera Preview formats in android

2010-08-03 Thread Sowmya
Hi
I want to set camera preview format to rgb-565 . i read in docs that
platform supports this .But if i try to code only default format i.e
YUV420SP is supported rest all formats preview is throwing error can
anyone confirm me on the formats supported .If android doesnot support
any other formats other than default then does it has conversion
routines or do we need to do manually (conversion from one pixel
format to other )
please reply me i got stuck in this ..

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Eclipse lockups and crashes

2010-08-03 Thread Kostya Vasilyev
1.6 update 21 indeed has an issue with Eclipse, was discussed recently 
either here or on android-developers. Either roll back, or use search.


-- Kostya

03.08.2010 13:19, blindfold пишет:

I'm having the same problem with the latest r06 Android SDK and using
Java SDK 1.6.0_21 (C:\Program Files\Java\jdk1.6.0_21) and the latest
Eclipse updates on my Windows 7 64-bit system. It is a lot worse than
it was in the past (on the same PC) with older SDKs. I use Eclipse SDK
3.6.0, build id I20100608-0911. Perhaps Java SDK 1.6.0_21 is too new
but I did no further testing. It is indeed very annoying and I have to
be continuously prepared for Eclipse locking up.

Regards

On Aug 3, 2:33 am, -DC-diskcras...@gmail.com  wrote:
   

I'm using Eclipse (eclipse-java-galileo-SR2-win32) with ADT rev 6 and
have Java SDK 1.6.0_21 installed on my system. Eclipse locks up and/or
crashes on me regularly while coding. I've lost unsaved code and even
my Eclipse preferences before. It's maddening! Does anyone know what
might be causing this?

(I really wish Google would make an ADT plug-in for NetBeans...)
 
   



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Problem sending variable to java activity.

2010-08-03 Thread Justin
The error I get is The Application has stopped unexpectedly. Please
try again, but it only happens as if I use tthe following 2 lines:
Intent intent = getIntent();
int position = intent.getIntExtra(ImagePosition, -1);

If I create the variable in this activity and blank those lines out it
works, but I need the variable bringing accross.

On 2 Aug, 14:52, TreKing treking...@gmail.com wrote:
 On Mon, Aug 2, 2010 at 5:14 AM, Justin justinbrett1...@gmail.com wrote:
  I am writing a app, and basically I want to carry accross a variable
  from one java file to another.

  So from my first java file I am calling the second one by:

 Just to clarify, a java file is something you edit, not something your
 call or carry variables across. Those are instances of your Activity.

  Which loads up the new page fine, but then causes a error and forces
  close.

 And the error and force close message would be what?

 ---­--
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Problem sending variable to java activity.

2010-08-03 Thread Mark Murphy
On Tue, Aug 3, 2010 at 6:00 AM, Justin justinbrett1...@gmail.com wrote:
 The error I get is The Application has stopped unexpectedly. Please
 try again, but it only happens as if I use tthe following 2 lines:
            Intent intent = getIntent();
            int position = intent.getIntExtra(ImagePosition, -1);

 If I create the variable in this activity and blank those lines out it
 works, but I need the variable bringing accross.

Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
the Java stack trace associated with your error.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Development Wiki: http://wiki.andmob.org

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Serial ports?

2010-08-03 Thread Flamechamp
USB is a serial port right?

On Aug 2, 11:54 am, BobG bobgard...@aol.com wrote:
 Has anyone discovered a serial port in any android phone? Undocumented
 factory debug feature or something?

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Activities and Multiple Views

2010-08-03 Thread Revathi K J Ramanan
Hi,

I start a browser and from the browser,I start  a video which occupies
only a small part of the screen,say the bottom right corner.

Now the browser will be pushed to the 2nd position in the window order
and Video will come to the first position.
Is it possible that browser can have the control for active window and
receive the key events though the video is the Top Most window.

Please help me out.

Thanks in advance.

Regards,
Revathi K J

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: NullPointerException when trying to create TelephonyManager

2010-08-03 Thread Wall-E
Look specifically for a caused by line... 

Yes, in the caused by line is where I'm seeing the
NullPointerException (don't worry I'm not making educated guesses).

My subclassing of the Application class works, or at least it did
before I added the instantiation of the TelophonyManager so I'm pretty
sure there is nothing wrong in the Manifest file.

The debugger was throwing some java async thread exception so I'm
thinking something went haywire with eclipse but I need to do some
more research as to what this error means and from what I've
researched so far this is whats making it throw the
nullpointerexception.

The error:

Exception processing async thread queue




On Aug 2, 5:33 pm, Justin Anderson janderson@gmail.com wrote:
 * My code will run right until it gets to creating the telephony manager
 instance but will not actually create it and it throws aNullPointerException
 (I think).*
 What do you mean I think?  Have you looked at the logcat info to determine
 what the problem may be?  Look specifically for a caused by line...
 * Is there something I'm doing wrong?*

 Yes... otherwise you wouldn't get the exception.  :-)

 * Do I have to create a context and call getSystemService(...) with
 context.getSystemService(...)?*
 Application is a Context... so you don't need to create a new one.  You
 should be able to call this method just fine from an Application subclass.

 I've never subclassed Application before so I'm not super qualified on the
 subject, but what does your application tag in your manifest look like?  I
 ask that because the documentation for the Application class 
 (http://developer.android.com/reference/android/app/Application.html) says
 this:

 *Base class for those who need to maintain global application state. You
 can provide your own implementation by specifying its name in your
 AndroidManifest.xml's application tag, which will cause that class to be
 instantiated for you when the process for your application/package is
 created.
 *
 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --



 On Mon, Aug 2, 2010 at 1:42 PM, Wall-E bashee...@gmail.com wrote:
  Oh, and I do add the following permission:

  uses-permission android:name=android.permission.READ_PHONE_STATE /

  --
  You received this message because you are subscribed to the Google
  Groups Android Beginners group.

  NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

  To unsubscribe from this group, send email to
  android-beginners+unsubscr...@googlegroups.comandroid-beginners%2Bunsubscr 
  i...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Cannot load kml files through Emulator Control in Eclipse..

2010-08-03 Thread prasad

Cannot load kml files through Emulator Control in Eclipse..

Postby saranjith » Thu Mar 26, 2009 4:52 am
I am developing a GPS application...I am using a kml file to simulate
GPS.. I cannot load kml file through Load KML option in Emulator
Control of Eclipse..I am working on a lab computer... Please anyone
help me

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Trying to delete google account programmatically from my app.

2010-08-03 Thread parul
I'm able to delete the accounts with above code. only google account
is not getting deleted now.
Kindly suggest how to delete google account.

On Aug 3, 12:09 pm, parul parulsinghal...@gmail.com wrote:
 now i've changed implementation as i came to know that we can access
 accounts using AccountManager
 Therefore i'm using this code: but this is also not giving any output
 not even exception.

 AccountManager accountManager =
 (AccountManager)mContext.getSystemService(Context.ACCOUNT_SERVICE);
 android.accounts.Account[] accounts =
 AccountManager.get(mContext).getAccounts();
 for (android.accounts.Account account: accounts) {
           AccountManager.get(mContext).removeAccount(account, null,
 null);
  }

 It would be great help if u can suggest something on this.

 On Jul 30, 2:18 am, RichardC richard.crit...@googlemail.com wrote:



  In the file you linked above the class AccountManagerService is marked
  as @hide in the java doc - that means it's an internal class.

  Also there is no reference to AccountManagerService on the
  developer.android.com.

  Either of these should indicate to you that what you are trying to do
  is unsupported.

  On Jul 29, 10:03 pm, Nick Richardson richardson.n...@gmail.com
  wrote:

   Usually a good place to start is to find out what's causing it to crash.
    Use logcat and look for caused by in the exception.

   My money's on a NullPointerException.

   On Tue, Jul 27, 2010 at 9:24 PM, parul parulsinghal...@gmail.com wrote:
Please help me how to delete google accounts from accounts and sync.
I'm trying to call this code in my app:

AccountManagerService ams = new AccountManagerService(mContext);
ams.onServiceChanged(null,true);

Its crashing at object creation. If anybody is aware of any other way
to delete account plz let me know.

==
onServiceChanged() method is defined in AccountManagerService.java.
AccountManagerService.java (frameworks\base\core\java\android
\accounts)

public void onServiceChanged(AuthenticatorDescription desc, boolean
removed) {
   boolean accountDeleted = false;
   SQLiteDatabase db = mOpenHelper.getWritableDatabase();
   Cursor cursor = db.query(TABLE_ACCOUNTS,
           new String[]{ACCOUNTS_ID, ACCOUNTS_TYPE, ACCOUNTS_NAME},
           ACCOUNTS_TYPE + =?, new String[]{desc.type}, null, null,
null);
   try {
       while (cursor.moveToNext()) {
           final long accountId = cursor.getLong(0);
           final String accountType = cursor.getString(1);
           final String accountName = cursor.getString(2);
           Log.d(TAG, deleting account  + accountName +  because
type 
                   + accountType +  no longer has a registered
authenticator);
           db.delete(TABLE_ACCOUNTS, ACCOUNTS_ID + = + accountId,
null);
           accountDeleted = true;
       }
   } finally {
       cursor.close();
       if (accountDeleted) {
           sendAccountsChangedBroadcast();
       }
   }


--
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
   http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr­­...@googlegroups.com
For more options, visit this group at
   http://groups.google.com/group/android-beginners?hl=en

   --
   //Nick Richardson
   //richardson.n...@gmail.com- Hide quoted text -

  - Show quoted text -- Hide quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: NullPointerException when trying to create TelephonyManager

2010-08-03 Thread Wall-E
Did some more searching and I found out that I am not getting the
java async thread exception anymore but I'm still getting the
NullPointerException.

Anybody else know what I'm doing wrong?



On Aug 3, 7:32 am, Wall-E bashee...@gmail.com wrote:
 Look specifically for a caused by line... 

 Yes, in the caused by line is where I'm seeing the
 NullPointerException (don't worry I'm not making educated guesses).

 My subclassing of the Application class works, or at least it did
 before I added the instantiation of the TelophonyManager so I'm pretty
 sure there is nothing wrong in the Manifest file.

 The debugger was throwing some java async thread exception so I'm
 thinking something went haywire with eclipse but I need to do some
 more research as to what this error means and from what I've
 researched so far this is whats making it throw the
 nullpointerexception.

 The error:

 Exception processing async thread queue

 On Aug 2, 5:33 pm, Justin Anderson janderson@gmail.com wrote:



  * My code will run right until it gets to creating the telephony manager
  instance but will not actually create it and it throws aNullPointerException
  (I think).*
  What do you mean I think?  Have you looked at the logcat info to determine
  what the problem may be?  Look specifically for a caused by line...
  * Is there something I'm doing wrong?*

  Yes... otherwise you wouldn't get the exception.  :-)

  * Do I have to create a context and call getSystemService(...) with
  context.getSystemService(...)?*
  Application is a Context... so you don't need to create a new one.  You
  should be able to call this method just fine from an Application subclass.

  I've never subclassed Application before so I'm not super qualified on the
  subject, but what does your application tag in your manifest look like?  I
  ask that because the documentation for the Application class 
  (http://developer.android.com/reference/android/app/Application.html) says
  this:

  *Base class for those who need to maintain global application state. You
  can provide your own implementation by specifying its name in your
  AndroidManifest.xml's application tag, which will cause that class to be
  instantiated for you when the process for your application/package is
  created.
  *
  --
  There are only 10 types of people in the world...
  Those who know binary and those who don't.
  --

  On Mon, Aug 2, 2010 at 1:42 PM, Wall-E bashee...@gmail.com wrote:
   Oh, and I do add the following permission:

   uses-permission android:name=android.permission.READ_PHONE_STATE /

   --
   You received this message because you are subscribed to the Google
   Groups Android Beginners group.

   NEW! Try asking and tagging your question on Stack Overflow at
  http://stackoverflow.com/questions/tagged/android

   To unsubscribe from this group, send email to
   android-beginners+unsubscr...@googlegroups.comandroid-beginners%2Bunsubscr
i...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-03 Thread cellurl
I will probably move to the android-developers group and take the
wrath of the experts like a man...

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Font size

2010-08-03 Thread Varun Khanduja
I am a UX designer and was wondering if anyone could tell me the font
size I should be using whille making a mock-up in pixels ( droid sans)
for a list view and other menu options like context menu etc?

Thanks

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Cannot load kml files through Emulator Control in Eclipse..

2010-08-03 Thread TreKing
On Tue, Aug 3, 2010 at 6:57 AM, prasad prasad.gang...@gmail.com wrote:

 I cannot load kml file through Load KML option in Emulator Control of
 Eclipse


Why not?

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-03 Thread Nick Richardson
I have to agree with the others.  This is a great group, because of the
content as well as the fact that it's a mailing list and therefore can be
easily monitored.  I have received quite a bit of help from this list, as
well as learned a LOT by reading everyone else's questions and answers.  I
also actively read and post to StackOverflow.

I feel disabling this list would be more detrimental then beneficial because
the ease of getting questions distributed would likely be diminished by the
removal of the group.  Plus, the android-developers list, which seems to be
more suited for seasoned developers will likely begin to be flooded by low
level and beginner questions, which may end up being detrimental to that
list as well.

Please consider leaving this list in operation.  If the reasons for
disabling the list are related to overhead in administering it, i would
gladly offer my services in taking over such tasks in order to keep this
group up and running.

Thanks,
//Nick

On Tue, Aug 3, 2010 at 8:17 AM, cellurl gpscru...@gmail.com wrote:

 I will probably move to the android-developers group and take the
 wrath of the experts like a man...

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 ATTENTION: Android-Beginners will be permanently disabled on August 9 2010.
 For more information about this change, please read [http://goo.gl/xkfl]
 or visit the Group home page.

 Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en




-- 
//Nick Richardson
//richardson.n...@gmail.com

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-03 Thread Kevin Brooks
I agree with everyone else that has commented on this thread.  I have
personally receive a fare amount of help from this group.  I also have
attempted to answer a couple questions.  I really feel the loss of this
group will be a large set back for new developers.

On Mon, Aug 2, 2010 at 4:37 PM, Roman N (Google Employee) 
romannu...@google.com wrote:

 Hi all,

 Next week, on Monday, August 9th, 2010 at 9am PDT, this Google Group
 and associated email alias will be permanently disabled and placed
 into archive mode. All new messages and replies will be automatically
 rejected. Existing messages and threads will still be available online
 at http://groups.google.com/group/android-beginners, but closed to
 further discussion.

 Please direct your questions to other discussion forums, as per these
 recommendations:

 - All new, beginner-level questions related to Android application
 development should be posted on Stack Overflow:

  Android questions: http://stackoverflow.com/questions/tagged/android
  Stack Overflow FAQ: http://stackoverflow.com/faq
  Ask a question: http://stackoverflow.com/questions/ask

 For more background on Android and Stack Overflow, please see this
 blog post:


 http://android-developers.blogspot.com/2009/12/hello-stack-overflow.html

 - All existing, unanswered questions on Android-Beginners, that are
 directly related to Android application development, should be posted
 to Stack Overflow. Please read the Stack Overflow FAQ and look at
 examples of popular questions on the site before posting.

 - All new, advanced questions related to Android application
 development should be posted to either Stack Overflow or the Android-
 Developers group:

  http://groups.google.com/group/android-developers

 - As before, all new Android questions not directly related to Android
 application development should be posted to the Android-Discuss group:

  http://groups.google.com/group/android-discuss

 Please reply to this thread if there are any questions or concerns.

 Thanks,

 Roman Nurik
 Android Developer Relations

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en




-- 
Kevin
Proverbs 21:6

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-03 Thread Greg Donald
On Tue, Aug 3, 2010 at 12:36 PM, Kevin Brooks bear35...@gmail.com wrote:
 I agree with everyone else that has commented on this thread.

I don't see any reason why we can't have one that's not moderated by Google:

http://groups.google.com/group/android-for-beginners

Moderator volunteers please contact me after joining.


-- 
Greg Donald
destiney.com | gregdonald.com

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Changing WiFi network login

2010-08-03 Thread Kevin Brooks
It is my understanding that the WiFi connection is based on only one user
for the device.  Here is my situation.  We have an Android device that can
be used by different users.  We want to be able to track which data is
entered by each user.  This requires a different login.  Is there a way I
can access and change the network login?

-- 
Kevin
Proverbs 21:6

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-03 Thread Justin Anderson
I have joined it as well, and will continue to provide support and help on
that list...  Hopefully a few of the other major contributors will join and
help out as well.

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Tue, Aug 3, 2010 at 11:59 AM, Kevin Brooks bear35...@gmail.com wrote:

 I just joined the new group.  Hopefully Mark Murphy will decide to join as
 well an Volunteer to be a Moderator.


 On Tue, Aug 3, 2010 at 12:52 PM, Greg Donald gdon...@gmail.com wrote:

 On Tue, Aug 3, 2010 at 12:36 PM, Kevin Brooks bear35...@gmail.com
 wrote:
  I agree with everyone else that has commented on this thread.

 I don't see any reason why we can't have one that's not moderated by
 Google:

 http://groups.google.com/group/android-for-beginners

 Moderator volunteers please contact me after joining.


 --
 Greg Donald
 destiney.com | gregdonald.com

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 ATTENTION: Android-Beginners will be permanently disabled on August 9
 2010. For more information about this change, please read [
 http://goo.gl/xkfl] or visit the Group home page.

 Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en




 --
 Kevin
 Proverbs 21:6

  --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 ATTENTION: Android-Beginners will be permanently disabled on August 9 2010.
 For more information about this change, please read [http://goo.gl/xkfl]
 or visit the Group home page.

 Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] ERROR... No package identifier when getting value for resource number

2010-08-03 Thread Dean-O
Both activities are in the same package

Second activity uses second layout file

setContentView(R.layout.main2);

Errors on this line in the second activity

EditText text1 = (EditText) findViewById(R.id.EditText03);

Here is the layout file for the second activity

?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent


LinearLayout
android:id=@+id/LinearLayout01
android:layout_width=wrap_content
android:layout_height=wrap_content

TextView
android:id=@+id/TextView01
android:layout_width=wrap_content
android:layout_height=wrap_content
android:text=Answer Is : 
/TextView

EditText
android:id=@+id/EditText03
android:layout_width=wrap_content
android:layout_height=wrap_content
/EditText

/LinearLayout

Button
android:id=@+id/Button01
android:layout_width=wrap_content
android:layout_height=wrap_content
android:onClick=onClick
android:text=Calling an intent
/Button

/LinearLayout

Here are the errors in the LogCat window

08-01 19:32:20.340: WARN/ResourceType(8875): No package identifier
when getting value for resource number 0x0005

08-01 19:32:20.390: ERROR/AndroidRuntime(8875): Caused by:
android.content.res.Resources$NotFoundException: String resource ID
#0x5

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-03 Thread Mark Murphy
On Tue, Aug 3, 2010 at 1:59 PM, Kevin Brooks bear35...@gmail.com wrote:
 I just joined the new group.  Hopefully Mark Murphy will decide to join as
 well an Volunteer to be a Moderator.

Personally, I would recommend people use StackOverflow.

For those who find StackOverflow to be ineffective, or find the
behavior of volunteers there to be morally reprehensible, or whatever,
use the [android-developers] Google Group. The dividing line between
that group and this one has been extremely blurry over the past 9-12
months.

There are other support resources as well (JavaRanch, anddev.org,
etc.). I do not try to participate in all of them, as I would never
get any sleep. :-)

If this list is discontinued, for the near term, I will be focusing on
StackOverflow and [android-developers], and we will see where things
go from there.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Development Wiki: http://wiki.andmob.org

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] ERROR... No package identifier when getting value for resource number

2010-08-03 Thread Justin Anderson
Please don't double post if you don't get any responses...  It just makes
for more stuff to sift through.  Instead, reply to your own post.  Everyone
will then get an email which will bring the post back to the forefront.

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Tue, Aug 3, 2010 at 12:48 PM, Dean-O rockie1...@gmail.com wrote:

 Both activities are in the same package

 Second activity uses second layout file

 setContentView(R.layout.main2);

 Errors on this line in the second activity

 EditText text1 = (EditText) findViewById(R.id.EditText03);

 Here is the layout file for the second activity

 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/
 android
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent


 LinearLayout
android:id=@+id/LinearLayout01
android:layout_width=wrap_content
android:layout_height=wrap_content

TextView
android:id=@+id/TextView01
android:layout_width=wrap_content
android:layout_height=wrap_content
 android:text=Answer Is : 
/TextView

EditText
android:id=@+id/EditText03
android:layout_width=wrap_content
android:layout_height=wrap_content
/EditText

 /LinearLayout

 Button
android:id=@+id/Button01
android:layout_width=wrap_content
android:layout_height=wrap_content
android:onClick=onClick
android:text=Calling an intent
 /Button

 /LinearLayout

 Here are the errors in the LogCat window

 08-01 19:32:20.340: WARN/ResourceType(8875): No package identifier
 when getting value for resource number 0x0005

 08-01 19:32:20.390: ERROR/AndroidRuntime(8875): Caused by:
 android.content.res.Resources$NotFoundException: String resource ID
 #0x5

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 ATTENTION: Android-Beginners will be permanently disabled on August 9 2010.
 For more information about this change, please read [http://goo.gl/xkfl]
 or visit the Group home page.

 Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] ERROR... No package identifier when getting value for resource number

2010-08-03 Thread Justin Anderson
BTW... I am planning on looking into this one, but I just haven't had
time...

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Tue, Aug 3, 2010 at 12:58 PM, Justin Anderson janderson@gmail.comwrote:

 Please don't double post if you don't get any responses...  It just makes
 for more stuff to sift through.  Instead, reply to your own post.  Everyone
 will then get an email which will bring the post back to the forefront.

 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --



 On Tue, Aug 3, 2010 at 12:48 PM, Dean-O rockie1...@gmail.com wrote:

 Both activities are in the same package

 Second activity uses second layout file

 setContentView(R.layout.main2);

 Errors on this line in the second activity

 EditText text1 = (EditText) findViewById(R.id.EditText03);

 Here is the layout file for the second activity

 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/
 android
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent


 LinearLayout
android:id=@+id/LinearLayout01
android:layout_width=wrap_content
android:layout_height=wrap_content

TextView
android:id=@+id/TextView01
android:layout_width=wrap_content
android:layout_height=wrap_content
 android:text=Answer Is : 
/TextView

EditText
android:id=@+id/EditText03
android:layout_width=wrap_content
android:layout_height=wrap_content
/EditText

 /LinearLayout

 Button
android:id=@+id/Button01
android:layout_width=wrap_content
android:layout_height=wrap_content
android:onClick=onClick
android:text=Calling an intent
 /Button

 /LinearLayout

 Here are the errors in the LogCat window

 08-01 19:32:20.340: WARN/ResourceType(8875): No package identifier
 when getting value for resource number 0x0005

 08-01 19:32:20.390: ERROR/AndroidRuntime(8875): Caused by:
 android.content.res.Resources$NotFoundException: String resource ID
 #0x5

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 ATTENTION: Android-Beginners will be permanently disabled on August 9
 2010. For more information about this change, please read [
 http://goo.gl/xkfl] or visit the Group home page.

 Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en




-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Changing WiFi network login

2010-08-03 Thread Mark Murphy
On Tue, Aug 3, 2010 at 2:41 PM, Kevin Brooks bear35...@gmail.com wrote:
 It is my understanding that the WiFi connection is based on only one user
 for the device. Here is my situation.  We have an Android device that can
 be used by different users.  We want to be able to track which data is
 entered by each user.  This requires a different login.  Is there a way I
 can access and change the network login?

What do you consider a network login to be?

A true multi-user Android environment would require substantial
firmware modifications, to the point where it may not resemble Android
anymore.

BTW, since you're one who is decrying the shutdown of this list --
IMHO, this is nowhere remotely near a beginner question.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Development Wiki: http://wiki.andmob.org

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Changing WiFi network login

2010-08-03 Thread Kevin Brooks
I am not looking to create a true Multi-user Android environment.  My idea
would be for my application to change the WiFi settings then connect.

I apologize for posting this one on here.  Most of my questions are more
beginning in Nature than this one.

On Tue, Aug 3, 2010 at 1:59 PM, Mark Murphy mmur...@commonsware.com wrote:

 On Tue, Aug 3, 2010 at 2:41 PM, Kevin Brooks bear35...@gmail.com wrote:
  It is my understanding that the WiFi connection is based on only one user
  for the device. Here is my situation.  We have an Android device that can
  be used by different users.  We want to be able to track which data is
  entered by each user.  This requires a different login.  Is there a way I
  can access and change the network login?

 What do you consider a network login to be?

 A true multi-user Android environment would require substantial
 firmware modifications, to the point where it may not resemble Android
 anymore.

 BTW, since you're one who is decrying the shutdown of this list --
 IMHO, this is nowhere remotely near a beginner question.

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy

 Android Development Wiki: http://wiki.andmob.org

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 ATTENTION: Android-Beginners will be permanently disabled on August 9 2010.
 For more information about this change, please read [http://goo.gl/xkfl]
 or visit the Group home page.

 Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en




-- 
Kevin
Proverbs 21:6

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: NullPointerException when trying to create TelephonyManager

2010-08-03 Thread Wall-E
Ok, so the problem was that I was calling those methods before the
application was fully created.  So I did the getSystemService call
inside of an onCreate method and all is well and dandy now.

On Aug 3, 10:39 am, Wall-E bashee...@gmail.com wrote:
 Did some more searching and I found out that I am not getting the
 java async thread exception anymore but I'm still getting the
 NullPointerException.

 Anybody else know what I'm doing wrong?

 On Aug 3, 7:32 am, Wall-E bashee...@gmail.com wrote:



  Look specifically for a caused by line... 

  Yes, in the caused by line is where I'm seeing the
  NullPointerException (don't worry I'm not making educated guesses).

  My subclassing of the Application class works, or at least it did
  before I added the instantiation of the TelophonyManager so I'm pretty
  sure there is nothing wrong in the Manifest file.

  The debugger was throwing some java async thread exception so I'm
  thinking something went haywire with eclipse but I need to do some
  more research as to what this error means and from what I've
  researched so far this is whats making it throw the
  nullpointerexception.

  The error:

  Exception processing async thread queue

  On Aug 2, 5:33 pm, Justin Anderson janderson@gmail.com wrote:

   * My code will run right until it gets to creating the telephony manager
   instance but will not actually create it and it throws 
   aNullPointerException
   (I think).*
   What do you mean I think?  Have you looked at the logcat info to 
   determine
   what the problem may be?  Look specifically for a caused by line...
   * Is there something I'm doing wrong?*

   Yes... otherwise you wouldn't get the exception.  :-)

   * Do I have to create a context and call getSystemService(...) with
   context.getSystemService(...)?*
   Application is a Context... so you don't need to create a new one.  You
   should be able to call this method just fine from an Application subclass.

   I've never subclassed Application before so I'm not super qualified on the
   subject, but what does your application tag in your manifest look like?  I
   ask that because the documentation for the Application class 
   (http://developer.android.com/reference/android/app/Application.html) says
   this:

   *Base class for those who need to maintain global application state. You
   can provide your own implementation by specifying its name in your
   AndroidManifest.xml's application tag, which will cause that class to be
   instantiated for you when the process for your application/package is
   created.
   *
   --
   There are only 10 types of people in the world...
   Those who know binary and those who don't.
   --

   On Mon, Aug 2, 2010 at 1:42 PM, Wall-E bashee...@gmail.com wrote:
Oh, and I do add the following permission:

uses-permission android:name=android.permission.READ_PHONE_STATE /

--
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
   http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.comandroid-beginners%2Bunsubscr
 i...@googlegroups.com
For more options, visit this group at
   http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Changing WiFi network login

2010-08-03 Thread Mark Murphy
On Tue, Aug 3, 2010 at 3:06 PM, Kevin Brooks bear35...@gmail.com wrote:
 I am not looking to create a true Multi-user Android environment.  My idea
 would be for my application to change the WiFi settings then connect.

Well, WifiManager has addNetworkConfiguration(),
getConfiguredNetworks(), disconnect(), and so on. It is not out of the
question you can use this for your aims. I do not know what
permissions you need, if any, and I do not know if the API is rich
enough for your needs.

However, I don't see where any of that will do you any good. Most WiFi
access points do not support multiple configurations, one per user,
regardless of what your device expects. Similarly, most households and
businesses do not have one WiFi access point per user. I don't know
where your other accounts are going to come from.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Development Wiki: http://wiki.andmob.org

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: NullPointerException when trying to create TelephonyManager

2010-08-03 Thread Justin Anderson
Glad you were able to figure it out!

On Aug 3, 2010 1:11 PM, Wall-E bashee...@gmail.com wrote:

Ok, so the problem was that I was calling those methods before the
application was fully created.  So I did the getSystemService call
inside of an onCreate method and all is well and dandy now.


On Aug 3, 10:39 am, Wall-E bashee...@gmail.com wrote:
 Did some more searching and I found out t...

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


  1   2   3   4   5   6   7   8   9   10   >