[android-developers] Re: Please help me to get a rid of this error - The type android.app.Fragment cannot be resolved

2013-02-27 Thread Nobu Games
If you compile the app with API level 8 (Android 2.2) then the class 
Fragment cannot be found because it does not exist there. It has been 
introduced with API level 11. Make sure to set the target API level to the 
highest your app can support and minSdkLevel to 8.

On Wednesday, February 27, 2013 9:43:48 AM UTC-6, Manas wrote:

 Greeting,
  
 I am using android.support.v13 and android.support.v4 external JAR files. 
 I have done necessary typecasting in the code so it will always refer 
 above mention JAR files but not the android.app.Fragment . 
 But still its gives below error :
  
 The type android.app.Fragment cannot be resolved. It is indirectly 
 referenced from required .class files
  
 I have also checked build path. Build sequence is android.support.v4 -- 
 android.support.v13 -- Android 2.2 -- Android dependence.
  
 Any idea what I`m missing here. I am attaching the code for reference.
  
 Thank you in advance !
 -Manas


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: Please help me to get a rid of this error - The type android.app.Fragment cannot be resolved

2013-02-27 Thread Manas Shah
Thanks Nobu for reply

Yes, I have set minSdkLevel = 8 and targetSdkVersion =15 but still no
luck...

I am not able to understand why code is referring to android.app.Fragment
class as I am no where using it.

Thanks again,
Manas

On Wed, Feb 27, 2013 at 9:23 PM, Nobu Games dev.nobu.ga...@gmail.comwrote:

 If you compile the app with API level 8 (Android 2.2) then the class
 Fragment cannot be found because it does not exist there. It has been
 introduced with API level 11. Make sure to set the target API level to the
 highest your app can support and minSdkLevel to 8.


 On Wednesday, February 27, 2013 9:43:48 AM UTC-6, Manas wrote:

 Greeting,

 I am using android.support.v13 and android.support.v4 external JAR files.
 I have done necessary typecasting in the code so it will always refer
 above mention JAR files but not the android.app.Fragment .
 But still its gives below error :

 The type android.app.Fragment cannot be resolved. It is indirectly
 referenced from required .class files

 I have also checked build path. Build sequence is android.support.v4 --
 android.support.v13 -- Android 2.2 -- Android dependence.

 Any idea what I`m missing here. I am attaching the code for reference.

 Thank you in advance !
 -Manas

  --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.






-- 
Thanks,
Manas Shah.

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Please help me to get a rid of this error - The type android.app.Fragment cannot be resolved

2013-02-27 Thread Jonathan S
android.support.v13 is for API Level 13+ only

If you are doing Minimum API Level 8, you have to remove 
android.support.v13 

On Wednesday, February 27, 2013 10:43:48 AM UTC-5, Manas wrote:

 Greeting,
  
 I am using android.support.v13 and android.support.v4 external JAR files. 
 I have done necessary typecasting in the code so it will always refer 
 above mention JAR files but not the android.app.Fragment . 
 But still its gives below error :
  
 The type android.app.Fragment cannot be resolved. It is indirectly 
 referenced from required .class files
  
 I have also checked build path. Build sequence is android.support.v4 -- 
 android.support.v13 -- Android 2.2 -- Android dependence.
  
 Any idea what I`m missing here. I am attaching the code for reference.
  
 Thank you in advance !
 -Manas


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: please help me

2012-10-19 Thread bob
Sounds like you will want to launch the Adobe PDF Reader.  I'm guessing you 
want something like this:

Intent intent = new Intent();
intent.setPackage(com.adobe.reader);
intent.setDataAndType(Uri.parse(doc), application/pdf);
startActivity(intent);



On Thursday, October 18, 2012 3:45:55 PM UTC-5, bahmani iman wrote:

 Hi
 I use the program to create an electronic book.
   Someone help me?
 I emphasize the use of programming
 For example, I use the html language and its application in the Android 
 could make a simple book, but I want to make a career book.
 I want to be more like a professional, not like a book, a simple 
 application


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

Re: [android-developers] Re: please help me

2012-10-19 Thread bahmani iman
On Fri, Oct 19, 2012 at 6:45 PM, bob b...@coolfone.comze.com wrote:

 Sounds like you will want to launch the Adobe PDF Reader.  I'm guessing
 you want something like this:

 Intent intent = new Intent();
 intent.setPackage(com.adobe.reader);
 intent.setDataAndType(Uri.parse(doc), application/pdf);
 startActivity(intent);


  -hello bob no i dont use adobe pdf reader i want make a application like
 other application with text file no with adobe pdf you know i want create a
 application that this have a home page and other menu are you have a
 refrence or source for this work?


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

Re: [android-developers] Re: please help me

2012-10-19 Thread TreKing
On Fri, Oct 19, 2012 at 3:24 PM, bahmani iman imanbahm...@gmail.com wrote:

 i want make a application like other application with text file no with
 adobe pdf you know i want create a application that this have a home page
 and other menu are you have a refrence or source for this work?


Your question is extremely vague and unclear. You need to clarify exactly
what you're asking.

-
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 Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: please help me

2012-04-03 Thread Ali Chousein
Android documentation makes very good suggestions on this:
http://developer.android.com/resources/faq/framework.html#3

-
Ali Chousein
http://socialnav.blogspot.com | http://twitter.com/socialnav1
http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy
http://www.codeproject.com/KB/android/PayGol-Android.aspx
http://geo-filtered-assistant.blogspot.com

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


[android-developers] Re: Please Help me! I have SQLiteDatabaseCorruption Error

2012-03-23 Thread lbendlin
Rename your 5MB database file to something Android does not recognize by the 
extension ( I used .db.jet ) and then use that raw resource as the source when 
copying. Works for me. 

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


[android-developers] Re: Please Help me! I have SQLiteDatabaseCorruption Error

2012-03-22 Thread Halil Enver Soylu
so what would you suggest?
I checked if all bytes of db copied, any yes it copies all of it. 
what should I do now? how can I load my prefilled 5MB database?

On Tuesday, March 13, 2012 11:30:11 AM UTC+2, Zsolt Vasvari wrote:

 I would very strongly advise you against doing this.  There is 
 no guarantee that the binary database file will be compatible across 
 Android version and much less across all custom ROMs.   

 On Tuesday, March 13, 2012 6:00:16 AM UTC+8, Halil Enver Soylu wrote:

 I have a 5MB database. I split it into 1MB chuck files.
 application merges these files and creates its database. 

 However it works in some Android phones, and does not works in others. I 
 tried almost dozen of code example in blogs. everytime I got same result.
 App's platform vers. is 1.5 so it is not about platform vers.

 According to logs of phones that application crushs, app creates copies 
 db file from Assets to database. then when it attempts to get a query for 
 the first time, it crushs and gives that error:

 03-11 01:11:34.111 I/Database( 4516): sqlite returned: error code = 11, msg 
 = database corruption at line 46886 of [42537b6056]
 03-11 01:11:34.111 I/Database( 4516): sqlite returned: error code = 11, msg 
 = database disk image is malformed
 03-11 01:11:34.111 D/AndroidRuntime( 4516): Shutting down VM
 03-11 01:11:34.111 W/dalvikvm( 4516): threadid=1: thread exiting with 
 uncaught exception (group=0x40018560)
 03-11 01:11:34.111 E/AndroidRuntime( 4516): FATAL EXCEPTION: main
 03-11 01:11:34.111 E/AndroidRuntime( 4516): 
 android.database.sqlite.​SQLiteDatabaseCorruptException​: database disk 
 image is malformed: , while compiling: SELECT Names FROM MYTABLE WHERE 
 SayfaNo = 1


 and here is my codes that copies asset files into database


 String[] dbFiles = myContext.getAssets().list(​ASSETS_DB_FOLDER);
 OutputStream myOutput = new FileOutputStream(DB_PATH+DB_​NAME);
  for(int i =0; i  dbFiles.length; i++) 
 {
 Log.i(FFLOG,COPYDB:+​dbFiles[i]);
 InputStream myInput = 
 myContext.getAssets().open(​ASSETS_DB_FOLDER+/+dbFiles[​i]);
 byte[] buffer = new byte[1024];
 int length;
 while ((length = myInput.read(buffer))  0) {
 myOutput.write(buffer, 0, length);
 }
 myInput.close();
 }
 myOutput.flush();
 myOutput.close();

 please help me
 if there were a problem about database file or query SQL code, it would 
 not work in some phones. So, it is not about db file or query. I am looking 
 for a solution for 2 weeks please help me



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

[android-developers] Re: Please Help me! I have SQLiteDatabaseCorruption Error

2012-03-22 Thread Halil Enver Soylu
so what would you suggest?
I checked if all bytes of db copied, and yes it copies all of it. 
what should I do now? how can I load my prefilled 5MB database?

On Tuesday, March 13, 2012 11:30:11 AM UTC+2, Zsolt Vasvari wrote:

 I would very strongly advise you against doing this.  There is 
 no guarantee that the binary database file will be compatible across 
 Android version and much less across all custom ROMs.   

 On Tuesday, March 13, 2012 6:00:16 AM UTC+8, Halil Enver Soylu wrote:

 I have a 5MB database. I split it into 1MB chuck files.
 application merges these files and creates its database. 

 However it works in some Android phones, and does not works in others. I 
 tried almost dozen of code example in blogs. everytime I got same result.
 App's platform vers. is 1.5 so it is not about platform vers.

 According to logs of phones that application crushs, app creates copies 
 db file from Assets to database. then when it attempts to get a query for 
 the first time, it crushs and gives that error:

 03-11 01:11:34.111 I/Database( 4516): sqlite returned: error code = 11, msg 
 = database corruption at line 46886 of [42537b6056]
 03-11 01:11:34.111 I/Database( 4516): sqlite returned: error code = 11, msg 
 = database disk image is malformed
 03-11 01:11:34.111 D/AndroidRuntime( 4516): Shutting down VM
 03-11 01:11:34.111 W/dalvikvm( 4516): threadid=1: thread exiting with 
 uncaught exception (group=0x40018560)
 03-11 01:11:34.111 E/AndroidRuntime( 4516): FATAL EXCEPTION: main
 03-11 01:11:34.111 E/AndroidRuntime( 4516): 
 android.database.sqlite.​SQLiteDatabaseCorruptException​: database disk 
 image is malformed: , while compiling: SELECT Names FROM MYTABLE WHERE 
 SayfaNo = 1


 and here is my codes that copies asset files into database


 String[] dbFiles = myContext.getAssets().list(​ASSETS_DB_FOLDER);
 OutputStream myOutput = new FileOutputStream(DB_PATH+DB_​NAME);
  for(int i =0; i  dbFiles.length; i++) 
 {
 Log.i(FFLOG,COPYDB:+​dbFiles[i]);
 InputStream myInput = 
 myContext.getAssets().open(​ASSETS_DB_FOLDER+/+dbFiles[​i]);
 byte[] buffer = new byte[1024];
 int length;
 while ((length = myInput.read(buffer))  0) {
 myOutput.write(buffer, 0, length);
 }
 myInput.close();
 }
 myOutput.flush();
 myOutput.close();

 please help me
 if there were a problem about database file or query SQL code, it would 
 not work in some phones. So, it is not about db file or query. I am looking 
 for a solution for 2 weeks please help me



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

[android-developers] Re: Please Help me! I have SQLiteDatabaseCorruption Error

2012-03-22 Thread Nadeem Hasan
How are you ensuring that they are being reassembled in the same order? 
From the code, it looks like you just get a list of all the files in the 
assets directory and concatenate them in the order they were returned by 
the API. This order may or may not be the same as the natural order of 
these files. This probably explains why it works sometimes but not always.

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

[android-developers] Re: Please Help me! I have SQLiteDatabaseCorruption Error

2012-03-22 Thread Halil Enver Soylu
nope, I can check which file read in which order by logs. They are in 
order. if they were not in order, it would not work in any phone.

On Thursday, March 22, 2012 8:35:58 PM UTC+2, Nadeem Hasan wrote:

 How are you ensuring that they are being reassembled in the same order? 
 From the code, it looks like you just get a list of all the files in the 
 assets directory and concatenate them in the order they were returned by 
 the API. This order may or may not be the same as the natural order of 
 these files. This probably explains why it works sometimes but not always.

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

[android-developers] Re: Please Help me! I have SQLiteDatabaseCorruption Error

2012-03-22 Thread Nadeem Hasan
Then copy the corrupted file to your desktop and do a binary compare with 
the original. This may give you some clues about what is going wrong.

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

[android-developers] Re: Please Help me! I have SQLiteDatabaseCorruption Error

2012-03-13 Thread moktarul anam
Hi Soylu,


First u check whether 
myContext.getAssets().open(ASSETS_DB_FOLDER+/+dbFiles[i]); files exists 
or not 

then then copy method  do it in asyntask 

Moktarul 


On Tuesday, 13 March 2012 03:30:16 UTC+5:30, Halil Enver Soylu wrote:

 I have a 5MB database. I split it into 1MB chuck files.
 application merges these files and creates its database. 

 However it works in some Android phones, and does not works in others. I 
 tried almost dozen of code example in blogs. everytime I got same result.
 App's platform vers. is 1.5 so it is not about platform vers.

 According to logs of phones that application crushs, app creates copies db 
 file from Assets to database. then when it attempts to get a query for the 
 first time, it crushs and gives that error:

 03-11 01:11:34.111 I/Database( 4516): sqlite returned: error code = 11, msg = 
 database corruption at line 46886 of [42537b6056]
 03-11 01:11:34.111 I/Database( 4516): sqlite returned: error code = 11, msg = 
 database disk image is malformed
 03-11 01:11:34.111 D/AndroidRuntime( 4516): Shutting down VM
 03-11 01:11:34.111 W/dalvikvm( 4516): threadid=1: thread exiting with 
 uncaught exception (group=0x40018560)
 03-11 01:11:34.111 E/AndroidRuntime( 4516): FATAL EXCEPTION: main
 03-11 01:11:34.111 E/AndroidRuntime( 4516): 
 android.database.sqlite.SQLiteDatabaseCorruptException: database disk image 
 is malformed: , while compiling: SELECT Names FROM MYTABLE WHERE SayfaNo = 1


 and here is my codes that copies asset files into database


 String[] dbFiles = myContext.getAssets().list(ASSETS_DB_FOLDER);
 OutputStream myOutput = new FileOutputStream(DB_PATH+DB_NAME);
  for(int i =0; i  dbFiles.length; i++) 
 {
 Log.i(FFLOG,COPYDB:+dbFiles[i]);
 InputStream myInput = 
 myContext.getAssets().open(ASSETS_DB_FOLDER+/+dbFiles[i]);
 byte[] buffer = new byte[1024];
 int length;
 while ((length = myInput.read(buffer))  0) {
 myOutput.write(buffer, 0, length);
 }
 myInput.close();
 }
 myOutput.flush();
 myOutput.close();

 please help me
 if there were a problem about database file or query SQL code, it would 
 not work in some phones. So, it is not about db file or query. I am looking 
 for a solution for 2 weeks please help me


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

[android-developers] Re: Please Help me! I have SQLiteDatabaseCorruption Error

2012-03-13 Thread Zsolt Vasvari
I would very strongly advise you against doing this.  There is 
no guarantee that the binary database file will be compatible across 
Android version and much less across all custom ROMs.   

On Tuesday, March 13, 2012 6:00:16 AM UTC+8, Halil Enver Soylu wrote:

 I have a 5MB database. I split it into 1MB chuck files.
 application merges these files and creates its database. 

 However it works in some Android phones, and does not works in others. I 
 tried almost dozen of code example in blogs. everytime I got same result.
 App's platform vers. is 1.5 so it is not about platform vers.

 According to logs of phones that application crushs, app creates copies db 
 file from Assets to database. then when it attempts to get a query for the 
 first time, it crushs and gives that error:

 03-11 01:11:34.111 I/Database( 4516): sqlite returned: error code = 11, msg = 
 database corruption at line 46886 of [42537b6056]
 03-11 01:11:34.111 I/Database( 4516): sqlite returned: error code = 11, msg = 
 database disk image is malformed
 03-11 01:11:34.111 D/AndroidRuntime( 4516): Shutting down VM
 03-11 01:11:34.111 W/dalvikvm( 4516): threadid=1: thread exiting with 
 uncaught exception (group=0x40018560)
 03-11 01:11:34.111 E/AndroidRuntime( 4516): FATAL EXCEPTION: main
 03-11 01:11:34.111 E/AndroidRuntime( 4516): 
 android.database.sqlite.SQLiteDatabaseCorruptException: database disk image 
 is malformed: , while compiling: SELECT Names FROM MYTABLE WHERE SayfaNo = 1


 and here is my codes that copies asset files into database


 String[] dbFiles = myContext.getAssets().list(ASSETS_DB_FOLDER);
 OutputStream myOutput = new FileOutputStream(DB_PATH+DB_NAME);
  for(int i =0; i  dbFiles.length; i++) 
 {
 Log.i(FFLOG,COPYDB:+dbFiles[i]);
 InputStream myInput = 
 myContext.getAssets().open(ASSETS_DB_FOLDER+/+dbFiles[i]);
 byte[] buffer = new byte[1024];
 int length;
 while ((length = myInput.read(buffer))  0) {
 myOutput.write(buffer, 0, length);
 }
 myInput.close();
 }
 myOutput.flush();
 myOutput.close();

 please help me
 if there were a problem about database file or query SQL code, it would 
 not work in some phones. So, it is not about db file or query. I am looking 
 for a solution for 2 weeks please help me


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

[android-developers] Re: Please help me out with problem of indefinite service

2011-12-08 Thread Soma
Hi,

Please let me know.. how do we make the service still run even though the 
Activity that launched it is killed.. I tried STICK_SERVICE, but of no 
use.. I still find the service being killed...

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

Re: [android-developers] Re: Please help me out with problem of indefinite service

2011-12-08 Thread Mark Murphy
Services are not designed to live forever. Users detest developers who
create such services, in cases where the *user* does not want the
service to run forever. Users will attack you with task killers and
the Force Stop option in Settings. And so on.

If you believe that the user truly wants a service to run forever --
say, a music player -- use startForeground(). The user will see a
Notification and know that your service is running. The Notification
should provide a means for the user to shut down your service.

Better yet, reorganize your project to avoid the everlasting service
in the first place, such as using AlarmManager to get control
periodically.

On Thu, Dec 8, 2011 at 4:20 PM, Soma megamanmillm2...@gmail.com wrote:
 Hi,

 Please let me know.. how do we make the service still run even though the
 Activity that launched it is killed.. I tried STICK_SERVICE, but of no use..
 I still find the service being killed...

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



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

Android Training in NYC: http://marakana.com/training/android/

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


[android-developers] Re: please help me...

2011-10-19 Thread Ali Chousein
Try Android groups in LinkedIn. They have job posting on daily basis.
You won't find any job postings in this group.

-
Ali Chousein
Weather-Buddy
http://weatherbuddy.blogspot.com/ | http://twitter.com/weather_buddy
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com/

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


[android-developers] Re: Please help me with this issue

2011-06-27 Thread Jatin Salla
Thanks for the reply. I realized this that I had Login activity 2
times in my manifest file and that really resolved me issue.

Thanks a lot for the reply, how come the catlog do not show property
error message here. Anyway the problem is resolved and thanks to all.

On Jun 23, 10:14 pm, Ed edscha...@gmail.com wrote:
 you have this twice:
  activity android:name=.Login

 may or may not be the issue

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


[android-developers] Re: Please help me with this issue

2011-06-23 Thread Ed
you have this twice:
 activity android:name=.Login

may or may not be the issue

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


Re: [android-developers] Re: Please Help ME!!

2011-03-14 Thread vikash srivastava
Windows 7

Its Not Working Fine Still

On Sat, Mar 12, 2011 at 9:37 AM, lbendlin l...@bendlin.us wrote:

 Just compiled this and it ran just fine.  What is your desktop
 environment?

 On Mar 11, 12:15 pm, Vikash srivastava.vikash.bs...@gmail.com wrote:
  This is Coding I am Running It
  Error Occuring : ActivityManager: - exec '/system/bin/sh' failed: Exec
  format error (8) -
  Please Help ME!!
 
  public class HelloAndroid extends Activity {
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  /**setContentView(R.layout.main);*/
 
  TextView tv = new TextView(this);
  tv.setText(Hello, Android);
  setContentView(tv);
  }
 
  }

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

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

[android-developers] Re: Please Help ME!!

2011-03-11 Thread lbendlin
Just compiled this and it ran just fine.  What is your desktop
environment?

On Mar 11, 12:15 pm, Vikash srivastava.vikash.bs...@gmail.com wrote:
 This is Coding I am Running It
 Error Occuring : ActivityManager: - exec '/system/bin/sh' failed: Exec
 format error (8) -
 Please Help ME!!

 public class HelloAndroid extends Activity {
     /** Called when the activity is first created. */
     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         /**setContentView(R.layout.main);*/

         TextView tv = new TextView(this);
         tv.setText(Hello, Android);
         setContentView(tv);
     }

 }

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


[android-developers] Re: Please help me with calculating direction from point A to B

2010-09-23 Thread Per
hmm..

Have you checked the numerical values that you get (mHeading,
mBearing, angleDegrees) ?
Log them and check if they look reasonable (assuming that you know
where north is :). Expect some deviation caused by your surroundings.
Not only the Earth is magnetic...

If that looks ok, I'd suggest to recehck your line drawing code.
I took a simpler way (having some arrow bitmap to draw):

Drawable d = get_your_bitmap();
canvas.save();
canvas.rotate(angleDegrees, centerX, centerY);
d.draw(canvas);
canvas.restore();

BR
Per


On 22 Sep., 18:17, Pedro Teixeira pedroteixeir...@gmail.com wrote:
 Per can you explain your example a little bit further?
 My code seems fine but the direction of the arrow doesnt seem accurate:

 public void onSensorChanged(SensorEvent event) {
         double mLatitude  =  (mLocation.getLatitude()); // lat1 location  
 manager
         double mLongitude =  (mLocation.getLongitude()); // long1 locationg  
 manager
         double picLatitude = Double.parseDouble(picLatitudeString); //lat2  
 fixed
         double picLongitude = Double.parseDouble(picLongitudeString); //long2 
  
 fixed
          float mHeading = event.values[0]; // azimuth value
          float[] results = new float[1];
          Location.distanceBetween(mLatitude, mLongitude, picLatitude,  
 picLongitude, results);
         float mBearing = results[1]; // bearing
          float angleDegrees =  ((mBearing - mHeading)+360) % 360;

         myCompass.updateDirection(angleDegrees);

 }

 The update method goes simply like this:

         public void updateDirection(float dir)
                 {
                 firstDraw = false;
                 direction = dir;
                 invalidate();
                 }

 And this is how I draw the compass:

 public static class compassLook extends View {

                 private Paint paintPointer = new Paint(Paint.ANTI_ALIAS_FLAG);
                 private Paint paintCircle = new Paint(Paint.ANTI_ALIAS_FLAG);
                 private Paint paintLeters = new Paint(Paint.ANTI_ALIAS_FLAG);
                 private boolean firstDraw;
                 private float direction;

 protected void onDraw(Canvas canvas) {
                 int cxCompass = (getMeasuredWidth()/2);
                 int cyCompass = (getMeasuredHeight()/2);
                 float radiusCompass;
                 if(cxCompass  cyCompass){
                  radiusCompass = (float) (cyCompass * 0.9);
                 }
                 else{
                  radiusCompass = (float) (cxCompass * 0.9);
                 }
                 // circle drawing
                 canvas.drawCircle(cxCompass, cyCompass, radiusCompass, 
 paintCircle);
                 if(!firstDraw){

                 // line pointer
                  canvas.drawLine(cxCompass, cyCompass,
                    (float)(cxCompass + radiusCompass * 
 Math.sin((double)(-direction)  
 * 3.14/180)),
                    (float)(cyCompass - radiusCompass * 
 Math.cos((double)(-direction)  
 * 3.14/180)),
                    paintPointer);
                         double mLatitude  =  (mLocation.getLatitude()); //lat1
                         double mLongitude =  
 (mLocation.getLongitude());//long1
                         double picLatitude = 
 Double.parseDouble(picLatitudeString); //lat2
                         double picLongitude = 
 Double.parseDouble(picLongitudeString); //long2

                  // Distance formula (harversin)
                         float R = 6371; // km
                         float dLat = (float) 
 Math.toRadians(picLatitude-mLatitude);
                         float dLon = (float) 
 Math.toRadians((picLongitude-mLongitude));
                         float a = (float) (Math.sin(dLat/2) * 
 Math.sin(dLat/2) +
                                 Math.cos(Math.toRadians(mLatitude)) * Math.cos
 (Math.toRadians(picLatitude)) *
                                 Math.sin(dLon/2) * Math.sin(dLon/2));
                         float c = (float) (2 * Math.atan2(Math.sqrt(a), 
 Math.sqrt(1-a)));
                         float distancia = R * c;

                  canvas.drawText(String.valueOf(distancia*1000) + m, 
 cxCompass-30,  
 cyCompass+20, paintLeters);
                 }

 }

 I didn't wrote all the methods on compssLook since they are not  
 relevant..

 On Sep 22, 2010, at 1:12 PM, Per wrote:





  this works for me:

  1: listen to location changes. Store the most recent location. You
  need it below.
  2: listen to orientation changes. Store the most recent heading
  (azimuth) in mHeading - that's the compass direction corresponding to
  your viewing direction when holding your phone horizontally in
  portrait mode;
  3: the bearing to your destination (assuming you have its coordinates)
  can be found using Location.distanceBetween() (call it mBearing)
  4: to point your directional arrow towards the destination, its
  required rotation (from 'up') is  ((mBearing - mHeading)+360) % 360;

  You may wish to compensate for 

Re: [android-developers] Re: Please help me with calculating direction from point A to B

2010-09-23 Thread Frank Weiss
Sounds like writing some unit test cases would help. Of course, you may need
to refactor the code to make it testable.

The advantage would be that you will see more clearly the input parameters
and the constraints. It would divide and conquer the problem. The test
cases would be the theory of what the sensors say and what the algorithm
should output. If either of these theories needs adjustment, it is then
easier to fix the algorithm.

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

[android-developers] Re: Please help me with calculating direction from point A to B

2010-09-22 Thread Per
this works for me:

1: listen to location changes. Store the most recent location. You
need it below.
2: listen to orientation changes. Store the most recent heading
(azimuth) in mHeading - that's the compass direction corresponding to
your viewing direction when holding your phone horizontally in
portrait mode;
3: the bearing to your destination (assuming you have its coordinates)
can be found using Location.distanceBetween() (call it mBearing)
4: to point your directional arrow towards the destination, its
required rotation (from 'up') is  ((mBearing - mHeading)+360) % 360;

You may wish to compensate for device rotation (portrait/landscape),
too. See Display.getOrientation / Display.getRotation

Not a complete 3D solution, but works ok.

/Per


(not sure if the terms bearing/heading are 100% in sync with common
naval use, but hey...)

On 22 Sep., 11:28, Kostya Vasilyev kmans...@gmail.com wrote:
   Pedro,

 I think you should learn something about the way direction (and
 orientation) is specified in computer programming.

 http://en.wikipedia.org/wiki/Yaw,_pitch,_and_roll

 http://en.wikipedia.org/wiki/Euler_angles

 http://en.wikipedia.org/wiki/Rotation_representation_(mathematics)#Ro...

 I believe that Android orientation sensors work this way.

 Now about the compass

 There are two ways you can think about this:

 First, take the value you get from the algorithm and make it into a
 vector in 3D space (i.e. think of the arrow you're going to draw to
 indicate direction). Then:

 One: Compute the device's orientation matrix using sensor data. Take the
 inverse of this matix, and multiply the arrow vector by this matrix.

 Two: Compute the device's orientation matrix using sensor data. Rather
 than interpreting it as a rotation matrix, think of it as defining a
 plane in space (aligned with the device's screen).  Then project the
 arrow vector onto this plane, in the plane's coordinates.

 You might want to start with compensating just for the vertical axis
 (the device's rotation from the true north direction), it might be enough.

 -- Kostya

 22.09.2010 13:02, Pedro Teixeira пишет:





  I'm really not understanding how to go with this...

  I've been reading and reading.. I can find all kind of algorithms.. I
  can find a haversin algorithm that points me to the correct direction
  if my device is pointing north.. but the needle is static... so if i
  change the device orientation the measure is incorrect... and I know
  this happens because I'm not using device's sensor values like
  azimuth, pitch and roll.. oh god.. 2 weeks on this.. I'm just
  desperate now.

  On Sep 18, 2010, at 10:29 AM, Kostya Vasilyev wrote:

  Pedro,

  If I understand you correctly, you are having difficulties with the
  device's orientation.

  The bearing angle seems to be computed in the horizontal plane. If
  you wish to adjust for the device's orientation, you need to
  concatenate it with the bearing angle.

  Google for quaternions.

  This is a (relatively) simple math technique to work with rotations
  the same way you can work with vectors: add / subtract, interpolate.

  -- Kostya

  18.09.2010 0:56, Pedro Teixeira пишет:
  Hi everyone...

  I'm back with the same issue for the last couple of days… I'm trying
  to create a compass for my application BUT the difference is that,
  instead of having a line always pointing to north, I want this line to
  point for a specific point. I've been trying dozens of algorithms and
  nothing works..
  I've finally found one that points me exactlly to the point I want..
  BUT it doesn't move if I change the position of the device which is my
  objective.. basicly, what I want is that no matter the direction I'm
  using my device.. the line always point me to the point
  (picLatitude,picLongitude)…

  I understood that for the line to move, I can't use static variables…
  I need to use the values offered by the onSensorChanged(SensorEvent
  event).

  This are the data I have available:

  event.values[0]: azimuth, rotation around the Z axis (device in
  relation to north, 0º)
  event.values[1]: pitch, rotation around the X axis
  event.values[2]: roll, rotation around the Y axis
  mLatitude: device current latitude gottern from GPS (variable)
  mLongitude: device current longitude gotten from GPS (variable)
  picLatitude: static picture latitude established previously
  picLongitude: static picture longitude established previously
  distance: distance in Km from device to the picture calculated
  previously

  And this the formula that works correct, and gives me the correct
  angle.. ( BUT IT DOESN'T USE ANY OF THE SENSOR DATA SO THE LINE
  COMPASS DOESNT MOVE):

  double dLong = picLongitude - mLongitude;
  double y =  (Math.sin(dLong) * Math.cos(picLatitude));
  double x =  (Math.cos(mLatitude) * Math.sin(picLatitude) -
  Math.sin(mLatitude)*Math.cos(picLatitude)*Math.cos(dLong));
  double angleDegreesWrongRange = Math.abs(Math.toDegrees(Math.atan2(y,
  x)));
  

Re: [android-developers] Re: Please help me with calculating direction from point A to B

2010-09-22 Thread Pedro Teixeira

I'll try this method you described.

I have 1. 2. and the destinations coordinates of 3.So I guess I can  
use it


PS: I just want this for landscape mode, I've set it on the Manifest  
already.


On Sep 22, 2010, at 1:12 PM, Per wrote:


this works for me:

1: listen to location changes. Store the most recent location. You
need it below.
2: listen to orientation changes. Store the most recent heading
(azimuth) in mHeading - that's the compass direction corresponding to
your viewing direction when holding your phone horizontally in
portrait mode;
3: the bearing to your destination (assuming you have its coordinates)
can be found using Location.distanceBetween() (call it mBearing)
4: to point your directional arrow towards the destination, its
required rotation (from 'up') is  ((mBearing - mHeading)+360) % 360;

You may wish to compensate for device rotation (portrait/landscape),
too. See Display.getOrientation / Display.getRotation

Not a complete 3D solution, but works ok.

/Per


(not sure if the terms bearing/heading are 100% in sync with common
naval use, but hey...)

On 22 Sep., 11:28, Kostya Vasilyev kmans...@gmail.com wrote:

  Pedro,

I think you should learn something about the way direction (and
orientation) is specified in computer programming.

http://en.wikipedia.org/wiki/Yaw,_pitch,_and_roll

http://en.wikipedia.org/wiki/Euler_angles

http://en.wikipedia.org/wiki/Rotation_representation_(mathematics)#Ro...

I believe that Android orientation sensors work this way.

Now about the compass

There are two ways you can think about this:

First, take the value you get from the algorithm and make it into a
vector in 3D space (i.e. think of the arrow you're going to draw to
indicate direction). Then:

One: Compute the device's orientation matrix using sensor data.  
Take the
inverse of this matix, and multiply the arrow vector by this  
matrix.


Two: Compute the device's orientation matrix using sensor data.  
Rather

than interpreting it as a rotation matrix, think of it as defining a
plane in space (aligned with the device's screen).  Then project the
arrow vector onto this plane, in the plane's coordinates.

You might want to start with compensating just for the vertical axis
(the device's rotation from the true north direction), it might be  
enough.


-- Kostya

22.09.2010 13:02, Pedro Teixeira пишет:






I'm really not understanding how to go with this...


I've been reading and reading.. I can find all kind of  
algorithms.. I
can find a haversin algorithm that points me to the correct  
direction

if my device is pointing north.. but the needle is static... so if i
change the device orientation the measure is incorrect... and I know
this happens because I'm not using device's sensor values like
azimuth, pitch and roll.. oh god.. 2 weeks on this.. I'm just
desperate now.



On Sep 18, 2010, at 10:29 AM, Kostya Vasilyev wrote:



Pedro,



If I understand you correctly, you are having difficulties with the
device's orientation.



The bearing angle seems to be computed in the horizontal plane. If
you wish to adjust for the device's orientation, you need to
concatenate it with the bearing angle.



Google for quaternions.



This is a (relatively) simple math technique to work with rotations
the same way you can work with vectors: add / subtract,  
interpolate.



-- Kostya



18.09.2010 0:56, Pedro Teixeira пишет:

Hi everyone...


I'm back with the same issue for the last couple of days… I'm  
trying

to create a compass for my application BUT the difference is that,
instead of having a line always pointing to north, I want this  
line to
point for a specific point. I've been trying dozens of  
algorithms and

nothing works..
I've finally found one that points me exactlly to the point I  
want..
BUT it doesn't move if I change the position of the device which  
is my
objective.. basicly, what I want is that no matter the direction  
I'm

using my device.. the line always point me to the point
(picLatitude,picLongitude)…


I understood that for the line to move, I can't use static  
variables…
I need to use the values offered by the onSensorChanged 
(SensorEvent

event).



This are the data I have available:



event.values[0]: azimuth, rotation around the Z axis (device in
relation to north, 0º)
event.values[1]: pitch, rotation around the X axis
event.values[2]: roll, rotation around the Y axis
mLatitude: device current latitude gottern from GPS (variable)
mLongitude: device current longitude gotten from GPS (variable)
picLatitude: static picture latitude established previously
picLongitude: static picture longitude established previously
distance: distance in Km from device to the picture calculated
previously



And this the formula that works correct, and gives me the correct
angle.. ( BUT IT DOESN'T USE ANY OF THE SENSOR DATA SO THE LINE
COMPASS DOESNT MOVE):



double dLong = picLongitude - mLongitude;
double y =  (Math.sin(dLong) * Math.cos(picLatitude));
double x =  

Re: [android-developers] Re: Please help me with calculating direction from point A to B

2010-09-22 Thread Pedro Teixeira

Per can you explain your example a little bit further?
My code seems fine but the direction of the arrow doesnt seem accurate:


public void onSensorChanged(SensorEvent event) {
	double mLatitude  =  (mLocation.getLatitude()); // lat1 location  
manager
	double mLongitude =  (mLocation.getLongitude()); // long1 locationg  
manager
	double picLatitude = Double.parseDouble(picLatitudeString); //lat2  
fixed
	double picLongitude = Double.parseDouble(picLongitudeString); //long2  
fixed

float mHeading = event.values[0]; // azimuth value
float[] results = new float[1];
Location.distanceBetween(mLatitude, mLongitude, picLatitude,  
picLongitude, results);

float mBearing = results[1]; // bearing
float angleDegrees =  ((mBearing - mHeading)+360) % 360;

myCompass.updateDirection(angleDegrees);
}

The update method goes simply like this:

public void updateDirection(float dir)
{
firstDraw = false;
direction = dir;
invalidate();
}

And this is how I draw the compass:

public static class compassLook extends View {

private Paint paintPointer = new Paint(Paint.ANTI_ALIAS_FLAG);
private Paint paintCircle = new Paint(Paint.ANTI_ALIAS_FLAG);
private Paint paintLeters = new Paint(Paint.ANTI_ALIAS_FLAG);
private boolean firstDraw;
private float direction;

protected void onDraw(Canvas canvas) {
int cxCompass = (getMeasuredWidth()/2);
int cyCompass = (getMeasuredHeight()/2);
float radiusCompass;
if(cxCompass  cyCompass){
 radiusCompass = (float) (cyCompass * 0.9);
}
else{
 radiusCompass = (float) (cxCompass * 0.9);
}
// circle drawing
canvas.drawCircle(cxCompass, cyCompass, radiusCompass, 
paintCircle);
if(!firstDraw){ 

// line pointer
 canvas.drawLine(cxCompass, cyCompass,
		   (float)(cxCompass + radiusCompass * Math.sin((double)(-direction)  
* 3.14/180)),
		   (float)(cyCompass - radiusCompass * Math.cos((double)(-direction)  
* 3.14/180)),

   paintPointer);
double mLatitude  =  (mLocation.getLatitude()); //lat1
double mLongitude =  (mLocation.getLongitude());//long1
double picLatitude = 
Double.parseDouble(picLatitudeString); //lat2
double picLongitude = 
Double.parseDouble(picLongitudeString); //long2


 // Distance formula (harversin)
float R = 6371; // km
float dLat = (float) 
Math.toRadians(picLatitude-mLatitude);
float dLon = (float) 
Math.toRadians((picLongitude-mLongitude));
float a = (float) (Math.sin(dLat/2) * Math.sin(dLat/2) +
			Math.cos(Math.toRadians(mLatitude)) * Math.cos 
(Math.toRadians(picLatitude)) *

Math.sin(dLon/2) * Math.sin(dLon/2));
float c = (float) (2 * Math.atan2(Math.sqrt(a), 
Math.sqrt(1-a)));
float distancia = R * c;

		 canvas.drawText(String.valueOf(distancia*1000) + m, cxCompass-30,  
cyCompass+20, paintLeters);

}

}

I didn't wrote all the methods on compssLook since they are not  
relevant..



On Sep 22, 2010, at 1:12 PM, Per wrote:


this works for me:

1: listen to location changes. Store the most recent location. You
need it below.
2: listen to orientation changes. Store the most recent heading
(azimuth) in mHeading - that's the compass direction corresponding to
your viewing direction when holding your phone horizontally in
portrait mode;
3: the bearing to your destination (assuming you have its coordinates)
can be found using Location.distanceBetween() (call it mBearing)
4: to point your directional arrow towards the destination, its
required rotation (from 'up') is  ((mBearing - mHeading)+360) % 360;

You may wish to compensate for device rotation (portrait/landscape),
too. See Display.getOrientation / Display.getRotation

Not a complete 3D solution, but works ok.

/Per


(not sure if the terms bearing/heading are 100% in sync with common
naval use, but hey...)

On 22 Sep., 11:28, Kostya Vasilyev kmans...@gmail.com wrote:

  Pedro,

I think you should learn something about the way direction (and
orientation) is specified in computer programming.

http://en.wikipedia.org/wiki/Yaw,_pitch,_and_roll

http://en.wikipedia.org/wiki/Euler_angles

http://en.wikipedia.org/wiki/Rotation_representation_(mathematics)#Ro...

I believe that Android orientation sensors work this way.

Now about the compass

There are two ways you can think about this:

First, take the value you 

[android-developers] Re: Please help me on Android.

2010-08-30 Thread Dev Android
On Mon, Aug 30, 2010 at 4:53 PM, Dev Android devandroid1...@gmail.comwrote:


 Hi,

 I have written an application and i want to measure the performance of each
 module. Can you please suggest me the good approach to do this. Currently,
 i'm following traditional approach by calculating system's current time.


 --
 Dev



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

Re: [android-developers] Re: Please help me on Android.

2010-08-30 Thread Mark Murphy
On Mon, Aug 30, 2010 at 7:44 AM, Dev Android devandroid1...@gmail.com wrote:
 I have written an application and i want to measure the performance of
 each module. Can you please suggest me the good approach to do this.

Use traceview:

http://developer.android.com/guide/developing/tools/traceview.html

 Currently, i'm following traditional approach by calculating system's
 current time.

Use SystemClock and the uptimeMillis() method. Quoting the SystemClock
documentation:

This clock is guaranteed to be monotonic, and is the recommended
basis for the general purpose interval timing of user interface
events, performance measurements, and anything else that does not need
to measure elapsed time during device sleep.

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

Warescription: Three Android Books, Plus Updates, One Low Price!

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


[android-developers] Re: Please help me with permission problems

2010-04-03 Thread Brion Emde
Thanks Mark, that's helpful.

What I was trying to do was to get that example to work that I posted
a link to.

Then I was going to try to figure out what I actually need. So far,
I'm pretty stupid as far as Android permissions go.



On Apr 3, 1:15 pm, Mark Murphy mmur...@commonsware.com wrote:
 Brion Emde wrote:
  I'm just trying to make happen what is described here, with the custom
  permission:

 http://developer.android.com/guide/topics/manifest/manifest-intro.htm...

  i.e. I want my activities (I'm only showing one below) and
  ContentProvider to not be accessible from other applications, because
  they hold the user's personal medical data.

 Bear in mind that they *will* be accessible from other applications, so
 long as those other applications request the permission and the user
 agrees to it.

 If you absolutely do not ever want another application to access the
 data, don't implement a ContentProvider, because the primary purpose of
 a ContentProvider is to provide data to other applications.





  Here is my AndroidManifest.xml. I can't figure out what is wrong. My
  main activity gets a permission denial like this:

  ActivityManager: java.lang.SecurityException: Permission Denial:
  starting Intent { act=android.intent.action.MAIN
  cat=[android.intent.category.LAUNCHER] flg=0x1000
  cmp=com.eyebrowssoftware.bptracker/.BPRecordList } from null (pid=-1,
  uid=-1) requires com.eyebrowssoftware.BPTracker.permission.MEDICAL

  --- ANDROID MANIFEST.xml ---

  ?xml version=1.0 encoding=utf-8?
  manifest xmlns:android=http://schemas.android.com/apk/res/android;
     package=com.eyebrowssoftware.bptracker
     android:versionCode=1
     android:versionName=1.0
     permission
             android:name=com.eyebrowssoftware.BPTracker.permission.MEDICAL
             android:permissionGroup=android.permission-group.PERSONAL_INFO
             android:label=@string/bp_permission_label
             android:description=@string/bp_permission_description
             android:protectionLevel=normal
     /
     uses-permission
             android:name=com.eyebrowssoftware.BPTracker.permission.MEDICAL
     /
      application
             android:name=.BPTracker
             android:icon=@drawable/icon
             android:label=@string/app_name
             android:debuggable=true

          activity
              android:name=.BPRecordList
              android:label=@string/app_name
              android:theme=@android:style/Theme.Light

  android:permission=com.eyebrowssoftware.BPTracker.permission.MEDICAL

              intent-filter
                  action android:name=android.intent.action.MAIN /
                  category
  android:name=android.intent.category.LAUNCHER /
              /intent-filter
          /activity
          !-- only showing launcher activity, others omitted for
  clarity --

          provider
             android:name=.BPProvider
             android:authorities=com.eyebrowssoftware.bptracker.bp
             android:label=@string/title_provider
             android:icon=@drawable/icon

  android:permission=com.eyebrowssoftware.BPTracker.permission.MEDICAL
          /
      /application
      uses-sdk
             android:targetSdkVersion=4
             android:minSdkVersion=3
      /
      supports-screens
             android:largeScreens=true
             android:smallScreens=true
             android:anyDensity=true
             android:resizeable=true
             android:normalScreens=true
      /
  /manifest

 android:permission -- The name of a permission that clients must have
 to launch the activity or otherwise get it to respond to an intent. If a
 caller of startActivity() or startActivityForResult() has not been
 granted the specified permission, its intent will not be delivered to
 the activity.

 (fromhttp://developer.android.com/guide/topics/manifest/activity-element.h...)

 The Launcher does not hold the
 com.eyebrowssoftware.BPTracker.permission.MEDICAL permission. Hence, it
 can't start it.

 I am not quite sure why you are trying to protect activities with a
 permission. I can understand the permission on the content provider, if
 you want users to agree to allow the other apps access to the data. But
 who cares if, for some screwball reason, something else (like, say, the
 Launcher) wants to open one of your activities? It's not like they can
 access the actual data in any way. That's why, for example, you can do
 an ACTION_VIEW on a contact without the READ_CONTACTS permission.

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

 Android Training in NYC: 30 April-2 May 2010:http://guruloft.com

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

[android-developers] Re: Please help me with permission problems

2010-04-03 Thread Brion Emde
I discarded the permissions on the Activities, as I didn't know why
they were there either, I was trying out that example.

If I go with a permission entry on my ContentProvider, I cannot query
the data. If I change the android:permission on my ContentProvider
like so:

provider
android:name=.BPProvider
android:authorities=com.eyebrowssoftware.bptracker.bp
android:label=@string/title_provider
android:icon=@drawable/icon

android:readPermission=com.eyebrowssoftware.BPTracker.permission.MEDICAL

android:writePermission=com.eyebrowssoftware.BPTracker.permission.MEDICAL
   /

I cannot query the data. I do have, as shown above, the uses-
permission element declared at the top of my manifest file.



On Apr 3, 1:15 pm, Mark Murphy mmur...@commonsware.com wrote:
 Brion Emde wrote:
  I'm just trying to make happen what is described here, with the custom
  permission:

 http://developer.android.com/guide/topics/manifest/manifest-intro.htm...

  i.e. I want my activities (I'm only showing one below) and
  ContentProvider to not be accessible from other applications, because
  they hold the user's personal medical data.

 Bear in mind that they *will* be accessible from other applications, so
 long as those other applications request the permission and the user
 agrees to it.

 If you absolutely do not ever want another application to access the
 data, don't implement a ContentProvider, because the primary purpose of
 a ContentProvider is to provide data to other applications.





  Here is my AndroidManifest.xml. I can't figure out what is wrong. My
  main activity gets a permission denial like this:

  ActivityManager: java.lang.SecurityException: Permission Denial:
  starting Intent { act=android.intent.action.MAIN
  cat=[android.intent.category.LAUNCHER] flg=0x1000
  cmp=com.eyebrowssoftware.bptracker/.BPRecordList } from null (pid=-1,
  uid=-1) requires com.eyebrowssoftware.BPTracker.permission.MEDICAL

  --- ANDROID MANIFEST.xml ---

  ?xml version=1.0 encoding=utf-8?
  manifest xmlns:android=http://schemas.android.com/apk/res/android;
     package=com.eyebrowssoftware.bptracker
     android:versionCode=1
     android:versionName=1.0
     permission
             android:name=com.eyebrowssoftware.BPTracker.permission.MEDICAL
             android:permissionGroup=android.permission-group.PERSONAL_INFO
             android:label=@string/bp_permission_label
             android:description=@string/bp_permission_description
             android:protectionLevel=normal
     /
     uses-permission
             android:name=com.eyebrowssoftware.BPTracker.permission.MEDICAL
     /
      application
             android:name=.BPTracker
             android:icon=@drawable/icon
             android:label=@string/app_name
             android:debuggable=true

          activity
              android:name=.BPRecordList
              android:label=@string/app_name
              android:theme=@android:style/Theme.Light

  android:permission=com.eyebrowssoftware.BPTracker.permission.MEDICAL

              intent-filter
                  action android:name=android.intent.action.MAIN /
                  category
  android:name=android.intent.category.LAUNCHER /
              /intent-filter
          /activity
          !-- only showing launcher activity, others omitted for
  clarity --

          provider
             android:name=.BPProvider
             android:authorities=com.eyebrowssoftware.bptracker.bp
             android:label=@string/title_provider
             android:icon=@drawable/icon

  android:permission=com.eyebrowssoftware.BPTracker.permission.MEDICAL
          /
      /application
      uses-sdk
             android:targetSdkVersion=4
             android:minSdkVersion=3
      /
      supports-screens
             android:largeScreens=true
             android:smallScreens=true
             android:anyDensity=true
             android:resizeable=true
             android:normalScreens=true
      /
  /manifest

 android:permission -- The name of a permission that clients must have
 to launch the activity or otherwise get it to respond to an intent. If a
 caller of startActivity() or startActivityForResult() has not been
 granted the specified permission, its intent will not be delivered to
 the activity.

 (fromhttp://developer.android.com/guide/topics/manifest/activity-element.h...)

 The Launcher does not hold the
 com.eyebrowssoftware.BPTracker.permission.MEDICAL permission. Hence, it
 can't start it.

 I am not quite sure why you are trying to protect activities with a
 permission. I can understand the permission on the content provider, if
 you want users to agree to allow the other apps access to the data. But
 who cares if, for some screwball reason, something else (like, say, the
 Launcher) wants to open one of your activities? It's not like they can
 access the actual data in any way. That's why, for 

[android-developers] Re: Please help me with permission problems

2010-04-03 Thread Brion Emde
Ok, I was wrong.

Apparently, changing the security on the ContentProvider resulted in a
new database being created. I was thrown off by the empty screen of my
ListView that I was getting a security failure. But there was no
message.

So, I can create, update, delete and read the data in the new
database.

Thanks!

On Apr 3, 1:48 pm, Brion Emde brione2...@gmail.com wrote:
 I discarded the permissions on the Activities, as I didn't know why
 they were there either, I was trying out that example.

 If I go with a permission entry on my ContentProvider, I cannot query
 the data. If I change the android:permission on my ContentProvider
 like so:

             provider
                 android:name=.BPProvider
                 android:authorities=com.eyebrowssoftware.bptracker.bp
                 android:label=@string/title_provider
                 android:icon=@drawable/icon

 android:readPermission=com.eyebrowssoftware.BPTracker.permission.MEDICAL

 android:writePermission=com.eyebrowssoftware.BPTracker.permission.MEDICAL
            /

 I cannot query the data. I do have, as shown above, the uses-
 permission element declared at the top of my manifest file.

 On Apr 3, 1:15 pm, Mark Murphy mmur...@commonsware.com wrote:



  Brion Emde wrote:
   I'm just trying to make happen what is described here, with the custom
   permission:

  http://developer.android.com/guide/topics/manifest/manifest-intro.htm...

   i.e. I want my activities (I'm only showing one below) and
   ContentProvider to not be accessible from other applications, because
   they hold the user's personal medical data.

  Bear in mind that they *will* be accessible from other applications, so
  long as those other applications request the permission and the user
  agrees to it.

  If you absolutely do not ever want another application to access the
  data, don't implement a ContentProvider, because the primary purpose of
  a ContentProvider is to provide data to other applications.

   Here is my AndroidManifest.xml. I can't figure out what is wrong. My
   main activity gets a permission denial like this:

   ActivityManager: java.lang.SecurityException: Permission Denial:
   starting Intent { act=android.intent.action.MAIN
   cat=[android.intent.category.LAUNCHER] flg=0x1000
   cmp=com.eyebrowssoftware.bptracker/.BPRecordList } from null (pid=-1,
   uid=-1) requires com.eyebrowssoftware.BPTracker.permission.MEDICAL

   --- ANDROID MANIFEST.xml ---

   ?xml version=1.0 encoding=utf-8?
   manifest xmlns:android=http://schemas.android.com/apk/res/android;
      package=com.eyebrowssoftware.bptracker
      android:versionCode=1
      android:versionName=1.0
      permission
              
   android:name=com.eyebrowssoftware.BPTracker.permission.MEDICAL
              
   android:permissionGroup=android.permission-group.PERSONAL_INFO
              android:label=@string/bp_permission_label
              android:description=@string/bp_permission_description
              android:protectionLevel=normal
      /
      uses-permission
              
   android:name=com.eyebrowssoftware.BPTracker.permission.MEDICAL
      /
       application
              android:name=.BPTracker
              android:icon=@drawable/icon
              android:label=@string/app_name
              android:debuggable=true

           activity
               android:name=.BPRecordList
               android:label=@string/app_name
               android:theme=@android:style/Theme.Light

   android:permission=com.eyebrowssoftware.BPTracker.permission.MEDICAL

               intent-filter
                   action android:name=android.intent.action.MAIN /
                   category
   android:name=android.intent.category.LAUNCHER /
               /intent-filter
           /activity
           !-- only showing launcher activity, others omitted for
   clarity --

           provider
              android:name=.BPProvider
              android:authorities=com.eyebrowssoftware.bptracker.bp
              android:label=@string/title_provider
              android:icon=@drawable/icon

   android:permission=com.eyebrowssoftware.BPTracker.permission.MEDICAL
           /
       /application
       uses-sdk
              android:targetSdkVersion=4
              android:minSdkVersion=3
       /
       supports-screens
              android:largeScreens=true
              android:smallScreens=true
              android:anyDensity=true
              android:resizeable=true
              android:normalScreens=true
       /
   /manifest

  android:permission -- The name of a permission that clients must have
  to launch the activity or otherwise get it to respond to an intent. If a
  caller of startActivity() or startActivityForResult() has not been
  granted the specified permission, its intent will not be delivered to
  the activity.

  (fromhttp://developer.android.com/guide/topics/manifest/activity-element.h...)

  The Launcher does not hold the
  

[android-developers] Re: Please help me find documentation on actions for the manifest file

2009-12-23 Thread Alberto
I'm adding to this thread because I too was looking at using the Gmail
content provider. I understand it's not documented as part of the API
(and I think it should be) but that hasn't stopped popular apps like
SMS Popup from using and building apps on the undocumented SMS API for
example.

Of course, I haven't been able to get the GMail content provider to
work, every time I try to get a cursor I get back null with code like
this:

Cursor mailCursor = context.getContentResolver().query(Uri.parse
(content://gmail-ls/messages/myownem...@gmail.com/), (new String[]
{_id, fromAddress, subject}), null, null, null);

Has anyone been able to get a cursor from the Gmail provider? Any help
would be appreciated as there are a few of us looking to try this.

 It is undocumented, unsupported, not recommended, and a really bad idea.
 This is hacking into another application, no different than you calling
 random exported functions out of an Excel DLL.

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 Android App Developer Books:http://commonsware.com/books.html

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


[android-developers] Re: please help me with opengl exception.

2009-12-14 Thread Nightwolf
It should be allocateDirect instead of allocate.

On 14 дек, 02:22, billconan billco...@gmail.com wrote:
 hello guys,

 i'm trying to draw a very simple 2D triangle with opengl. but i have
 exception illegal parameters

 the problematic line is

         gl.glVertexPointer(3, GL11.GL_FLOAT, 0, mVertexBuffer);

 i'm new to android, my experience with it so far is so frustrating. i
 simply copied code from other examples. and it simply doesn't work.

 i'm pretty sure the mVertexBuffer is successfully initialized. because
 i can see the size of the buffer is 48 right before the execution of
 the problematic line with the debugger. and this size is correct.

 however it just doesn't work.

 i initialized the buffer this way:

                 mVertexBuffer = ByteBuffer.allocate(12*4);
                 mVertexBuffer.order(ByteOrder.nativeOrder());
                 mVertexBuffer.position(0);
                 mVertexBuffer.putFloat(-1);
                 mVertexBuffer.putFloat(-1);
                 mVertexBuffer.putFloat(-1);
                 mVertexBuffer.putFloat(1);
                 mVertexBuffer.putFloat(1);
                 mVertexBuffer.putFloat(1);
                 mVertexBuffer.position(0);

 the code was actually copied from a opensource example.

 can somebody help me?

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


[android-developers] Re: Please Help me find why htt pclient.execute(httppost);always throws IOException

2009-12-10 Thread Alex Tang
how is the header of httppost. is it correct?

On Dec 11, 3:29 am, LeeMoon tanmi...@hotmail.com wrote:
 hi
 is there someone troubled the same  issue,please try to help me . i am
 waiting for you , thanks

 the code in run();//a thread class
         reqEntity = new StringEntity(sendContent.toString());
                         
 reqEntity.setContentType(application/x-www-form-urlencoded);
                         httppost.setEntity(reqEntity);
                         HttpResponse response = httpclient.execute(httppost);
                         HttpEntity entity = response.getEntity();
                         if(entity != null) {
                                 return entity.getContent();
                         }

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


[android-developers] Re: Please Help me find why htt pclient.execute(httppost);always throws IOException

2009-12-10 Thread LeeMoon
thanks

i will show you the code , i have try to connect httpserver with
j2me .it works.the httpserver is running in my tomcat.

part 1 :...i have created two TextView  to input userid and
password;so i try to get the InpustStream
code:
switch(v.getId()) {
case R.id.ok:
 //the code of  class PackMessage show you later
PackMessage pm = new PackMessage();
   //sendContent to get the message that have packed
sendContent = pm.login(id.getText().toString
(), pas.getText
().toString());
  //let sm get packedm.toString
SendMessage sm = new SendMessage
(sendContent.toString());
  //the class SendMessage have implemented Runnable
Thread smthread = new Thread(sm);
 //so turn to method run in class SendMessage
smthread.start();
break;


case R.id.cancel:
finish();
break;
   }


part2: this is the code of class PackMessage


public class PackMessage {
public StringBuffer  login(String userid,String password)
{


   //put the input from in sb


StringBuffer sb = new StringBuffer();
sb.append(purposelogin/purpose);
sb.append(userid+userid+/userid );
sb.append(password+password+/password);
return sb;


}



}


part3:the constructor of  class SendMessage

   public SendMessage(String sendContent)
{
SendMessage.sendContent = sendContent;
}


part4:   the code of   run();


public void run() {


getHttpStream();
Intent Intent = new Intent();
// that is the point :getHttpStram();
Intent.putExtra(id, getHttpStream().toString());
Intent.setAction(com.google.lm.Main);
startActivity(Intent);


}


part5 : code of getHttpStram();and the


public static InputStream getHttpStream() {
HttpPost httppost = new HttpPost(http://localhost:
8080/J2ME/servlet/
HelloServlet);
DefaultHttpClient httpclient = new DefaultHttpClient
();
StringEntity reqEntity;
try {
reqEntity = new StringEntity
(sendContent.toString());
reqEntity.setContentType(application/x-www-
form-urlencoded);
httppost.setEntity(reqEntity);
 //always catched IOException when --
httpclient.execute(httppost);
HttpResponse response = httpclient.execute
(httppost);
HttpEntity entity = response.getEntity();
if(entity != null) {
return entity.getContent();
}
}
catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
catch (IllegalStateException e) {
e.printStackTrace();
}
catch (IOException e) {
e.printStackTrace();
}
return null;
}


thanks Alex
On 12月11日, 上午9时39分, Alex Tang tangli1987...@gmail.com wrote:
 how is the header of httppost. is it correct?

 On Dec 11, 3:29 am, LeeMoon tanmi...@hotmail.com wrote:



  hi
  is there someone troubled the same  issue,please try to help me . i am
  waiting for you , thanks

  the code in run();//a thread class
          reqEntity = new StringEntity(sendContent.toString());
                          
  reqEntity.setContentType(application/x-www-form-urlencoded);
                          httppost.setEntity(reqEntity);
                          HttpResponse response = 
  httpclient.execute(httppost);
                          HttpEntity entity = response.getEntity();
                          if(entity != null) {
                                  return entity.getContent();
                          }- 隐藏被引用文字 -

 - 显示引用的文字 -

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


[android-developers] Re: Please Help me find why htt pclient.execute(httppost);always throws IOException

2009-12-10 Thread Samuh
I think, one of the problems could be with the use of localhost in
your server URL:
http://localhost:8080/J2ME/servlet/HelloServlet;

Try specifying the IP address of your machine instead and see if it
helps.

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


[android-developers] Re: Please Help me find why htt pclient.execute(httppost);always throws IOException

2009-12-10 Thread Samuh
My opinion was based on this: 
http://code.google.com/p/android/issues/detail?id=133

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


[android-developers] Re: Please Help me find why htt pclient.execute(httppost);always throws IOException

2009-12-10 Thread LeeMoon
thanks
Alex and Samuh
now,i  will try it  .
it is helpful
http://code.google.com/p/android/issues/detail?id=133
thanks again


On 12月11日, 上午11时58分, Samuh samuh.va...@gmail.com wrote:
 My opinion was based on 
 this:http://code.google.com/p/android/issues/detail?id=133

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


RE: [android-developers] Re: Please Help me find why httpclient.execute(httppost);always throws IOException

2009-12-10 Thread 李淼

 

hey friend 
thanks 
 httppost.setEntity(reqEntity); //it is ok now ,not thorws IOException again,
but i try it in debug. find these error,can i  detain you some time to see this 
log:
 
12-10 12:41:07.719: ERROR/AndroidRuntime(1454): Uncaught handler: thread 
Thread-9 exiting due to uncaught exception
12-10 12:41:07.729: ERROR/AndroidRuntime(1454): java.lang.NullPointerException
12-10 12:41:07.729: ERROR/AndroidRuntime(1454): at 
com.google.lm.Message.SendMessage.run(SendMessage.java:28)
12-10 12:41:07.729: ERROR/AndroidRuntime(1454): at 
java.lang.Thread.run(Thread.java:1058)

and the response of httpServer must be wrong . ah,that bothers me.
also thank you for your advice.
my friend .

 
 Date: Thu, 10 Dec 2009 19:58:10 -0800
 Subject: [android-developers] Re: Please Help me find why 
 httpclient.execute(httppost);always throws IOException
 From: samuh.va...@gmail.com
 To: android-developers@googlegroups.com
 
 My opinion was based on this: 
 http://code.google.com/p/android/issues/detail?id=133
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
  
_
约会说不清地方?来试试微软地图最新msn互动功能!
http://ditu.live.com/?form=TLswm=1

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

[android-developers] Re: Please Help me find why htt pclient.execute(httppost);always throws IOException

2009-12-10 Thread LeeMoon
hey friend
thanks
 httppost.setEntity(reqEntity); //it is ok now ,not thorws IOException
again,
but i try it in debug. find these error,can i  detain you some time to
see this log:

12-10 12:41:07.719: ERROR/AndroidRuntime(1454): Uncaught handler:
thread Thread-9 exiting due to uncaught exception
12-10 12:41:07.729: ERROR/AndroidRuntime(1454):
java.lang.NullPointerException
12-10 12:41:07.729: ERROR/AndroidRuntime(1454): at
com.google.lm.Message.SendMessage.run(SendMessage.java:28)
12-10 12:41:07.729: ERROR/AndroidRuntime(1454): at
java.lang.Thread.run(Thread.java:1058)

and the response of httpServer must be wrong . ah,that bothers me.
also thank you for your advice.
my friend .


On 12月11日, 下午12时05分, LeeMoon tanmi...@hotmail.com wrote:
 thanks
 Alex and Samuh
 now,i  will try it  .
 it is helpfulhttp://code.google.com/p/android/issues/detail?id=133
 thanks again

 On 12月11日, 上午11时58分, Samuh samuh.va...@gmail.com wrote:



  My opinion was based on 
  this:http://code.google.com/p/android/issues/detail?id=133- 隐藏被引用文字 -

 - 显示引用的文字 -

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


[android-developers] Re: Please help me !!

2009-12-07 Thread Phil V
Do you mean like an android exclusive chatroom?

On Dec 7, 1:44 pm, IPEG Student ipeg.stud...@gmail.com wrote:
 Hi

       Can any one tell me is group messaging is possible in android
 or not. If yes then please tell me something like how can i implement this?

 Thanks,

 Suman

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


Re: [android-developers] Re: Please help me !!

2009-12-07 Thread IPEG Student
On Tue, Dec 8, 2009 at 12:29 AM, Phil V trainstro...@gmail.com wrote:

 Do you mean like an android exclusive chatroom?

 On Dec 7, 1:44 pm, IPEG Student ipeg.stud...@gmail.com wrote:
  Hi
 
Can any one tell me is group messaging is possible in android
  or not. If yes then please tell me something like how can i implement
 this?
 
  Thanks,
 
  Suman

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



  Thanks for reply first. But i want to ask you that whether  group
sms  activity  like  sms  sending  to multiple  contacts  at a time is
possible on android or not. Am not asking for chatroom.

 Thanks,

 Suman

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

[android-developers] Re: Please help me !!

2009-12-07 Thread Phil V
Yes. Just select multiple contacts when creating a text message.

On Dec 7, 4:01 pm, IPEG Student ipeg.stud...@gmail.com wrote:
 On Tue, Dec 8, 2009 at 12:29 AM, Phil V trainstro...@gmail.com wrote:
  Do you mean like an android exclusive chatroom?

  On Dec 7, 1:44 pm, IPEG Student ipeg.stud...@gmail.com wrote:
   Hi

         Can any one tell me is group messaging is possible in android
   or not. If yes then please tell me something like how can i implement
  this?

   Thanks,

   Suman

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

           Thanks for reply first. But i want to ask you that whether  group
 sms  activity  like  sms  sending  to multiple  contacts  at a time is
 possible on android or not. Am not asking for chatroom.

          Thanks,

  Suman

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


[android-developers] Re: Please help me to choose Android Phones (For Android development)

2009-11-19 Thread kolel2
Hi Ash,

I work for a company called PerfectoMobile (used to be Nexperience).
See www.perfectomobile.com.
We enable access to real mobile devices via the web.
You can install your app on the device and test it as if you were
holding the device
in your hands.

We just launched a campaign especially for our Android developers and
I thought that might be interesting for you. We offer you access to
over a dozen of the hottest Android devices for a special deal.

Just check out this campaign by following the link below:

http://www.perfectomobile.com/portal/cms/android.html

Have fun!

On Nov 10, 11:32 pm, Ash ashwin.disco...@gmail.com wrote:
 Thank you so much Scott, Patrick, Pankaj and others...
 This thread is of great help to me and to others like me. Please  keep
 this
 thread going adding your viewpoints and comments.

  And also could you please help me find where can we order theMotorolaDroid
 and some HTC phones. As we are ordering for the university, we do not
 use the phone service
 of any carrier. We just require the instrument without any service
 plan or contract.

 Thank you

 On Nov 10, 3:42 am, Pankaj Godbole panka...@gmail.com wrote:



  This is a good analysis of which phones to consider for development.

  I also am ready to purchase a phone for testing of real-world apps
  (i.e. not for educational purposes). I have been advised by a couple
  of people to consider purchasing the ADP1 from Google.

  What are your views on using the ADP1 which is, moreover, an unlocked
  phone.

  Thanks

  On Nov 10, 10:17 am, SoftwareForMe.com SoftwareForMe.com

  softwareforme@gmail.com wrote:
   Personally, I find all Android phones to be excellent for development.

   However, here are some things I would consider before deciding.

   Let's consider these devices:
   HTC G1
   HTC Magic
   HTC MyTouch
   HTC Hero
   HTC Eris
   Samsung Galaxy
   Samsung Moment
  MotorolaCliq
  MotorolaDroid

   Given the choice of a device with or without a keyboard, I'd choose one 
   with
   a keyboard. You can use the soft keyboard on a device with a hard 
   keyboard,
   but not vice versa. This leave us with:

   HTC G1
   Samsung Moment
  MotorolaCliq
  MotorolaDroid

   Next, I would make Android 2.0 a priority. The Multi-touch API, Bluetooth
   API and others are key to the near-term feature of mobile development.
   Nobody seems to know for sure, but it's unlikely the G1 will get 2.0, so I
   would probably not consider it unless you hear differently.

   Next, 3D UIs are getting more important, so I'd want a phone that has 
   decent
   accelerated 3D hardware. This eliminates the Samsung Galaxy, but leaves 
   all
   others.

   Last there is screen size. Most smartphones are HVGA now (320x480), but 
   WVGA
   (800 or 854 x 480) will be the standard soon.

   So, the best choice depends on what you want to do. If you only want to
   cover the basics and don't mind skipping a few capabilities or API's, then
   the cheapest or most rugged might be the best choice.

   If you want the best device to prepare students for all aspects of Android
   and mobile development, there's really no choice but theMotorolaDroid,
   because of it's:

   * WVGA screen
   * Terrific hardware accelerated OpenGL
   * Android 2.0
   * Hardware keyboard
   * Full set of sensors (has a proximity sensor)

   I hope this helps.

   Scott,
   SoftwareForMe.com

   On Mon, Nov 9, 2009 at 5:31 PM, Ash ashwin.disco...@gmail.com wrote:
I'm new to android development. We need to buy around 20 phones for
android development for our university. Please share your views and
comments on the phone you think is good for Android development.

Thank You

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

   --
   Warm regards,
   The PhoneMyPC Team

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


[android-developers] Re: Please help me to choose Android Phones (For Android development)

2009-11-11 Thread android-coder
Unless you have 1000 students at a time to cater for, I see no need to
buy 20 phones.  Just buy one of each of the 5 most popular phones at
the time, and save the budget for future releases.

Developing on the emulator is perfectly fine and is easier than
transferring to the device each time.  You only need to test on a
device when you're ready to release, at which point you want to test
on as many different devices as possible.

On Nov 10, 3:31 am, Ash ashwin.disco...@gmail.com wrote:
 I'm new to android development. We need to buy around 20 phones for
 android development for our university. Please share your views and
 comments on the phone you think is good for Android development.

 Thank You

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


Re: [android-developers] Re: Please help me to choose Android Phones (For Android development)

2009-11-11 Thread dan raaka
If you are not using sensors or openGL, you can pretty much get away with
emulator.

-Dan


On Tue, Nov 10, 2009 at 11:41 PM, android-coder ahutchin...@gmail.comwrote:

 Unless you have 1000 students at a time to cater for, I see no need to
 buy 20 phones.  Just buy one of each of the 5 most popular phones at
 the time, and save the budget for future releases.

 Developing on the emulator is perfectly fine and is easier than
 transferring to the device each time.  You only need to test on a
 device when you're ready to release, at which point you want to test
 on as many different devices as possible.

 On Nov 10, 3:31 am, Ash ashwin.disco...@gmail.com wrote:
  I'm new to android development. We need to buy around 20 phones for
  android development for our university. Please share your views and
  comments on the phone you think is good for Android development.
 
  Thank You

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


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

[android-developers] Re: Please help me to choose Android Phones (For Android development)

2009-11-10 Thread Pankaj Godbole
This is a good analysis of which phones to consider for development.

I also am ready to purchase a phone for testing of real-world apps
(i.e. not for educational purposes). I have been advised by a couple
of people to consider purchasing the ADP1 from Google.

What are your views on using the ADP1 which is, moreover, an unlocked
phone.

Thanks



On Nov 10, 10:17 am, SoftwareForMe.com SoftwareForMe.com
softwareforme@gmail.com wrote:
 Personally, I find all Android phones to be excellent for development.

 However, here are some things I would consider before deciding.

 Let's consider these devices:
 HTC G1
 HTC Magic
 HTC MyTouch
 HTC Hero
 HTC Eris
 Samsung Galaxy
 Samsung Moment
 Motorola Cliq
 Motorola Droid

 Given the choice of a device with or without a keyboard, I'd choose one with
 a keyboard. You can use the soft keyboard on a device with a hard keyboard,
 but not vice versa. This leave us with:

 HTC G1
 Samsung Moment
 Motorola Cliq
 Motorola Droid

 Next, I would make Android 2.0 a priority. The Multi-touch API, Bluetooth
 API and others are key to the near-term feature of mobile development.
 Nobody seems to know for sure, but it's unlikely the G1 will get 2.0, so I
 would probably not consider it unless you hear differently.

 Next, 3D UIs are getting more important, so I'd want a phone that has decent
 accelerated 3D hardware. This eliminates the Samsung Galaxy, but leaves all
 others.

 Last there is screen size. Most smartphones are HVGA now (320x480), but WVGA
 (800 or 854 x 480) will be the standard soon.

 So, the best choice depends on what you want to do. If you only want to
 cover the basics and don't mind skipping a few capabilities or API's, then
 the cheapest or most rugged might be the best choice.

 If you want the best device to prepare students for all aspects of Android
 and mobile development, there's really no choice but the Motorola Droid,
 because of it's:

 * WVGA screen
 * Terrific hardware accelerated OpenGL
 * Android 2.0
 * Hardware keyboard
 * Full set of sensors (has a proximity sensor)

 I hope this helps.

 Scott,
 SoftwareForMe.com

 On Mon, Nov 9, 2009 at 5:31 PM, Ash ashwin.disco...@gmail.com wrote:
  I'm new to android development. We need to buy around 20 phones for
  android development for our university. Please share your views and
  comments on the phone you think is good for Android development.

  Thank You

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

 --
 Warm regards,
 The PhoneMyPC Team

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


[android-developers] Re: Please help me to choose Android Phones (For Android development)

2009-11-10 Thread Ash
Thank you so much Scott, Patrick, Pankaj and others...
This thread is of great help to me and to others like me. Please  keep
this
thread going adding your viewpoints and comments.

 And also could you please help me find where can we order the
Motorola Droid
and some HTC phones. As we are ordering for the university, we do not
use the phone service
of any carrier. We just require the instrument without any service
plan or contract.

Thank you

On Nov 10, 3:42 am, Pankaj Godbole panka...@gmail.com wrote:
 This is a good analysis of which phones to consider for development.

 I also am ready to purchase a phone for testing of real-world apps
 (i.e. not for educational purposes). I have been advised by a couple
 of people to consider purchasing the ADP1 from Google.

 What are your views on using the ADP1 which is, moreover, an unlocked
 phone.

 Thanks

 On Nov 10, 10:17 am, SoftwareForMe.com SoftwareForMe.com

 softwareforme@gmail.com wrote:
  Personally, I find all Android phones to be excellent for development.

  However, here are some things I would consider before deciding.

  Let's consider these devices:
  HTC G1
  HTC Magic
  HTC MyTouch
  HTC Hero
  HTC Eris
  Samsung Galaxy
  Samsung Moment
  Motorola Cliq
  Motorola Droid

  Given the choice of a device with or without a keyboard, I'd choose one with
  a keyboard. You can use the soft keyboard on a device with a hard keyboard,
  but not vice versa. This leave us with:

  HTC G1
  Samsung Moment
  Motorola Cliq
  Motorola Droid

  Next, I would make Android 2.0 a priority. The Multi-touch API, Bluetooth
  API and others are key to the near-term feature of mobile development.
  Nobody seems to know for sure, but it's unlikely the G1 will get 2.0, so I
  would probably not consider it unless you hear differently.

  Next, 3D UIs are getting more important, so I'd want a phone that has decent
  accelerated 3D hardware. This eliminates the Samsung Galaxy, but leaves all
  others.

  Last there is screen size. Most smartphones are HVGA now (320x480), but WVGA
  (800 or 854 x 480) will be the standard soon.

  So, the best choice depends on what you want to do. If you only want to
  cover the basics and don't mind skipping a few capabilities or API's, then
  the cheapest or most rugged might be the best choice.

  If you want the best device to prepare students for all aspects of Android
  and mobile development, there's really no choice but the Motorola Droid,
  because of it's:

  * WVGA screen
  * Terrific hardware accelerated OpenGL
  * Android 2.0
  * Hardware keyboard
  * Full set of sensors (has a proximity sensor)

  I hope this helps.

  Scott,
  SoftwareForMe.com

  On Mon, Nov 9, 2009 at 5:31 PM, Ash ashwin.disco...@gmail.com wrote:
   I'm new to android development. We need to buy around 20 phones for
   android development for our university. Please share your views and
   comments on the phone you think is good for Android development.

   Thank You

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

  --
  Warm regards,
  The PhoneMyPC Team

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


[android-developers] Re: Please help me to choose Android Phones (For Android development)

2009-11-10 Thread CyberQat
If you are a university I would contact Motorola and HTC directly.

In general these sorts of large corporations have University liaison
programs in place.

In fact you might get it cheaper for academic purposes then you
could on the street or
through normal channels.

On Nov 10, 4:32 pm, Ash ashwin.disco...@gmail.com wrote:
 Thank you so much Scott, Patrick, Pankaj and others...
 This thread is of great help to me and to others like me. Please  keep
 this
 thread going adding your viewpoints and comments.

  And also could you please help me find where can we order the
 Motorola Droid
 and some HTC phones. As we are ordering for the university, we do not
 use the phone service
 of any carrier. We just require the instrument without any service
 plan or contract.

 Thank you

 On Nov 10, 3:42 am, Pankaj Godbole panka...@gmail.com wrote:

  This is a good analysis of which phones to consider for development.

  I also am ready to purchase a phone for testing of real-world apps
  (i.e. not for educational purposes). I have been advised by a couple
  of people to consider purchasing the ADP1 from Google.

  What are your views on using the ADP1 which is, moreover, an unlocked
  phone.

  Thanks

  On Nov 10, 10:17 am, SoftwareForMe.com SoftwareForMe.com

  softwareforme@gmail.com wrote:
   Personally, I find all Android phones to be excellent for development.

   However, here are some things I would consider before deciding.

   Let's consider these devices:
   HTC G1
   HTC Magic
   HTC MyTouch
   HTC Hero
   HTC Eris
   Samsung Galaxy
   Samsung Moment
   Motorola Cliq
   Motorola Droid

   Given the choice of a device with or without a keyboard, I'd choose one 
   with
   a keyboard. You can use the soft keyboard on a device with a hard 
   keyboard,
   but not vice versa. This leave us with:

   HTC G1
   Samsung Moment
   Motorola Cliq
   Motorola Droid

   Next, I would make Android 2.0 a priority. The Multi-touch API, Bluetooth
   API and others are key to the near-term feature of mobile development.
   Nobody seems to know for sure, but it's unlikely the G1 will get 2.0, so I
   would probably not consider it unless you hear differently.

   Next, 3D UIs are getting more important, so I'd want a phone that has 
   decent
   accelerated 3D hardware. This eliminates the Samsung Galaxy, but leaves 
   all
   others.

   Last there is screen size. Most smartphones are HVGA now (320x480), but 
   WVGA
   (800 or 854 x 480) will be the standard soon.

   So, the best choice depends on what you want to do. If you only want to
   cover the basics and don't mind skipping a few capabilities or API's, then
   the cheapest or most rugged might be the best choice.

   If you want the best device to prepare students for all aspects of Android
   and mobile development, there's really no choice but the Motorola Droid,
   because of it's:

   * WVGA screen
   * Terrific hardware accelerated OpenGL
   * Android 2.0
   * Hardware keyboard
   * Full set of sensors (has a proximity sensor)

   I hope this helps.

   Scott,
   SoftwareForMe.com

   On Mon, Nov 9, 2009 at 5:31 PM, Ash ashwin.disco...@gmail.com wrote:
I'm new to android development. We need to buy around 20 phones for
android development for our university. Please share your views and
comments on the phone you think is good for Android development.

Thank You

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

   --
   Warm regards,
   The PhoneMyPC Team

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


[android-developers] Re: Please help me to choose Android Phones (For Android development)

2009-11-10 Thread ander...@phdgaming.com
Note: According to a Google Employee, using the Motorola Droid without
service might cause problems. See individual message at:
http://groups.google.com/group/android-discuss/msg/fb2066c22b44f5c9 or
the thread at: 
http://groups.google.com/group/android-discuss/browse_thread/thread/1b2c72555e0733b1

On Nov 10, 4:32 pm, Ash ashwin.disco...@gmail.com wrote:
 Thank you so much Scott, Patrick, Pankaj and others...
 This thread is of great help to me and to others like me. Please  keep
 this
 thread going adding your viewpoints and comments.

  And also could you please help me find where can we order the
 Motorola Droid
 and some HTC phones. As we are ordering for the university, we do not
 use the phone service
 of any carrier. We just require the instrument without any service
 plan or contract.

 Thank you

 On Nov 10, 3:42 am, Pankaj Godbole panka...@gmail.com wrote:



  This is a good analysis of which phones to consider for development.

  I also am ready to purchase a phone for testing of real-world apps
  (i.e. not for educational purposes). I have been advised by a couple
  of people to consider purchasing the ADP1 from Google.

  What are your views on using the ADP1 which is, moreover, an unlocked
  phone.

  Thanks

  On Nov 10, 10:17 am, SoftwareForMe.com SoftwareForMe.com

  softwareforme@gmail.com wrote:
   Personally, I find all Android phones to be excellent for development.

   However, here are some things I would consider before deciding.

   Let's consider these devices:
   HTC G1
   HTC Magic
   HTC MyTouch
   HTC Hero
   HTC Eris
   Samsung Galaxy
   Samsung Moment
   Motorola Cliq
   Motorola Droid

   Given the choice of a device with or without a keyboard, I'd choose one 
   with
   a keyboard. You can use the soft keyboard on a device with a hard 
   keyboard,
   but not vice versa. This leave us with:

   HTC G1
   Samsung Moment
   Motorola Cliq
   Motorola Droid

   Next, I would make Android 2.0 a priority. The Multi-touch API, Bluetooth
   API and others are key to the near-term feature of mobile development.
   Nobody seems to know for sure, but it's unlikely the G1 will get 2.0, so I
   would probably not consider it unless you hear differently.

   Next, 3D UIs are getting more important, so I'd want a phone that has 
   decent
   accelerated 3D hardware. This eliminates the Samsung Galaxy, but leaves 
   all
   others.

   Last there is screen size. Most smartphones are HVGA now (320x480), but 
   WVGA
   (800 or 854 x 480) will be the standard soon.

   So, the best choice depends on what you want to do. If you only want to
   cover the basics and don't mind skipping a few capabilities or API's, then
   the cheapest or most rugged might be the best choice.

   If you want the best device to prepare students for all aspects of Android
   and mobile development, there's really no choice but the Motorola Droid,
   because of it's:

   * WVGA screen
   * Terrific hardware accelerated OpenGL
   * Android 2.0
   * Hardware keyboard
   * Full set of sensors (has a proximity sensor)

   I hope this helps.

   Scott,
   SoftwareForMe.com

   On Mon, Nov 9, 2009 at 5:31 PM, Ash ashwin.disco...@gmail.com wrote:
I'm new to android development. We need to buy around 20 phones for
android development for our university. Please share your views and
comments on the phone you think is good for Android development.

Thank You

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

   --
   Warm regards,
   The PhoneMyPC Team

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


Re: [android-developers] Re: Please help me to choose Android Phones (For Android development)

2009-11-10 Thread SoftwareForMe.com SoftwareForMe.com
The ADP1 is a great phone, but essentially the same thing as a T-Mobile G1.
We've done most of our development on these phones, and they're powerful,
robust and reliable.

But, as I said, it's unlikely they'll get Android 2.0, and they are HVGA.

@Nightwolf: my understanding is that the Galaxy either has no hardware 3D
support, or that it's not properly enabled. I recently read an article about
how some people found a hack (stole a file from the G1 and put it on the
Galaxy) that enabled 3D HW, but this only worked on rooted phones.

Note: I have never laid my hands on one, let alone tested it. I am repeating
what I've read in various Android communities on this topic.

Warm regards,
Scott
SoftwareForMe.com

On Tue, Nov 10, 2009 at 12:42 AM, Pankaj Godbole panka...@gmail.com wrote:

 This is a good analysis of which phones to consider for development.

 I also am ready to purchase a phone for testing of real-world apps
 (i.e. not for educational purposes). I have been advised by a couple
 of people to consider purchasing the ADP1 from Google.

 What are your views on using the ADP1 which is, moreover, an unlocked
 phone.

 Thanks



 On Nov 10, 10:17 am, SoftwareForMe.com SoftwareForMe.com
 softwareforme@gmail.com wrote:
  Personally, I find all Android phones to be excellent for development.
 
  However, here are some things I would consider before deciding.
 
  Let's consider these devices:
  HTC G1
  HTC Magic
  HTC MyTouch
  HTC Hero
  HTC Eris
  Samsung Galaxy
  Samsung Moment
  Motorola Cliq
  Motorola Droid
 
  Given the choice of a device with or without a keyboard, I'd choose one
 with
  a keyboard. You can use the soft keyboard on a device with a hard
 keyboard,
  but not vice versa. This leave us with:
 
  HTC G1
  Samsung Moment
  Motorola Cliq
  Motorola Droid
 
  Next, I would make Android 2.0 a priority. The Multi-touch API, Bluetooth
  API and others are key to the near-term feature of mobile development.
  Nobody seems to know for sure, but it's unlikely the G1 will get 2.0, so
 I
  would probably not consider it unless you hear differently.
 
  Next, 3D UIs are getting more important, so I'd want a phone that has
 decent
  accelerated 3D hardware. This eliminates the Samsung Galaxy, but leaves
 all
  others.
 
  Last there is screen size. Most smartphones are HVGA now (320x480), but
 WVGA
  (800 or 854 x 480) will be the standard soon.
 
  So, the best choice depends on what you want to do. If you only want to
  cover the basics and don't mind skipping a few capabilities or API's,
 then
  the cheapest or most rugged might be the best choice.
 
  If you want the best device to prepare students for all aspects of
 Android
  and mobile development, there's really no choice but the Motorola Droid,
  because of it's:
 
  * WVGA screen
  * Terrific hardware accelerated OpenGL
  * Android 2.0
  * Hardware keyboard
  * Full set of sensors (has a proximity sensor)
 
  I hope this helps.
 
  Scott,
  SoftwareForMe.com
 
  On Mon, Nov 9, 2009 at 5:31 PM, Ash ashwin.disco...@gmail.com wrote:
   I'm new to android development. We need to buy around 20 phones for
   android development for our university. Please share your views and
   comments on the phone you think is good for Android development.
 
   Thank You
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com
 
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  Warm regards,
  The PhoneMyPC Team

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




-- 
Warm regards,
The PhoneMyPC Team

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

[android-developers] Re: Please help me to choose Android Phones (For Android development)

2009-11-10 Thread Eric Wong (hdmp4.com)
I would say get at least one unit for each Android models out there?
Since every unit seems to have slight variation of Android
implementation and apk tested on one may not work on the other.

Hope this spreadsheet would help
http://spreadsheets.google.com/pub?key=rdm8c2ZfSDKd5l-dVy4SrnAoutput=html

Cheers
Eric


On Nov 10, 12:31 pm, Ash ashwin.disco...@gmail.com wrote:
 I'm new to android development. We need to buy around 20 phones for
 android development for our university. Please share your views and
 comments on the phone you think is good for Android development.

 Thank You

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


[android-developers] Re: Please help me to choose Android Phones (For Android development)

2009-11-10 Thread PJ
I can't agree more with Eric.  Why get 20 phones that are all
identical?  Get some variety so that you write apps that work as
expected for multiple devices.  You can't put a price tag on quality.
It's not worth saving $50 per phone if you end up writing an app that
breaks on a particular device and you get a bunch of upset customers
and bad ratings/image.

You definitely want to vary things like:
* hard keyboard vs soft keyboard
* high-res screens vs low-res screens
* fast vs slow cpus

And Eric's link to that spreadsheet is freaking great.

-- PJ



On Nov 10, 5:42 pm, Eric Wong (hdmp4.com) ericwon...@gmail.com
wrote:
 I would say get at least one unit for each Android models out there?
 Since every unit seems to have slight variation of Android
 implementation and apk tested on one may not work on the other.

 Hope this spreadsheet would 
 helphttp://spreadsheets.google.com/pub?key=rdm8c2ZfSDKd5l-dVy4SrnAoutput...

 Cheers
 Eric

 On Nov 10, 12:31 pm, Ash ashwin.disco...@gmail.com wrote:



  I'm new to android development. We need to buy around 20 phones for
  android development for our university. Please share your views and
  comments on the phone you think is good for Android development.

  Thank You

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


[android-developers] Re: Please help me to choose Android Phones (For Android development)

2009-11-10 Thread Pankaj Godbole
I agree that quality is priceless. I know this first-hand from
spending several years in testing and quality assurance.

It might be possible for an institution to purchase 20 different phone
models to test on. But how is an independent individual developer like
me supposed to purchase so many phones, when perhaps all of them would
be locked to a carrier and most would come with a 2yr service
agreement? I am also not based in the US.

Is there a more feasible way without compromising on quality?

Eric's spreadsheet is awesome! Here's another one I found pertaining
to US carriers: 
http://spreadsheets.google.com/pub?key=tIuLv6KThktwpCyNu5lbrWQgid=0

- Pankaj.


On Nov 11, 9:13 am, PJ pjbar...@gmail.com wrote:
 I can't agree more with Eric.  Why get 20 phones that are all
 identical?  Get some variety so that you write apps that work as
 expected for multiple devices.  You can't put a price tag on quality.
 It's not worth saving $50 per phone if you end up writing an app that
 breaks on a particular device and you get a bunch of upset customers
 and bad ratings/image.

 You definitely want to vary things like:
 * hard keyboard vs soft keyboard
 * high-res screens vs low-res screens
 * fast vs slow cpus

 And Eric's link to that spreadsheet is freaking great.

 -- PJ

 On Nov 10, 5:42 pm, Eric Wong (hdmp4.com) ericwon...@gmail.com
 wrote:

  I would say get at least one unit for each Android models out there?
  Since every unit seems to have slight variation of Android
  implementation and apk tested on one may not work on the other.

  Hope this spreadsheet would 
  helphttp://spreadsheets.google.com/pub?key=rdm8c2ZfSDKd5l-dVy4SrnAoutput...

  Cheers
  Eric

  On Nov 10, 12:31 pm, Ash ashwin.disco...@gmail.com wrote:

   I'm new to android development. We need to buy around 20 phones for
   android development for our university. Please share your views and
   comments on the phone you think is good for Android development.

   Thank You



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


[android-developers] Re: Please help me to choose Android Phones (For Android development)

2009-11-10 Thread PJ
Pankaj, I'm in the same boat as you are: I'm an independent developer
that doesn't have funding to buy 20 phones.

The emulator comes with a lot of options, so that could be used to
some extent to simulate different devices.  You can simulate slower
devices with -cpu-delay, set the resolution with -dpi-device and -
scale, etc.:
http://developer.android.com/intl/fr/guide/developing/tools/emulator.html#startup-options

But, it's impossible to test for everything.  When I published my
first app, I found out the hard way that for Hero phone users, the
soft keyboard wouldn't pop out for them.  I got some bad reviews and I
had to publish a quick fix.

Neverthelss (I'm pre-empting the Android haters), I'd much rather an
app work on 80% of 20 different Android devices than 100% of a handful
of Apple devices.  No open platform is perfect, but Android rocks in
my book.



On Nov 10, 11:07 pm, Pankaj Godbole panka...@gmail.com wrote:
 I agree that quality is priceless. I know this first-hand from
 spending several years in testing and quality assurance.

 It might be possible for an institution to purchase 20 different phone
 models to test on. But how is an independent individual developer like
 me supposed to purchase so many phones, when perhaps all of them would
 be locked to a carrier and most would come with a 2yr service
 agreement? I am also not based in the US.

 Is there a more feasible way without compromising on quality?

 Eric's spreadsheet is awesome! Here's another one I found pertaining
 to US 
 carriers:http://spreadsheets.google.com/pub?key=tIuLv6KThktwpCyNu5lbrWQgid=0

 - Pankaj.

 On Nov 11, 9:13 am, PJ pjbar...@gmail.com wrote:



  I can't agree more with Eric.  Why get 20 phones that are all
  identical?  Get some variety so that you write apps that work as
  expected for multiple devices.  You can't put a price tag on quality.
  It's not worth saving $50 per phone if you end up writing an app that
  breaks on a particular device and you get a bunch of upset customers
  and bad ratings/image.

  You definitely want to vary things like:
  * hard keyboard vs soft keyboard
  * high-res screens vs low-res screens
  * fast vs slow cpus

  And Eric's link to that spreadsheet is freaking great.

  -- PJ

  On Nov 10, 5:42 pm, Eric Wong (hdmp4.com) ericwon...@gmail.com
  wrote:

   I would say get at least one unit for each Android models out there?
   Since every unit seems to have slight variation of Android
   implementation and apk tested on one may not work on the other.

   Hope this spreadsheet would 
   helphttp://spreadsheets.google.com/pub?key=rdm8c2ZfSDKd5l-dVy4SrnAoutput...

   Cheers
   Eric

   On Nov 10, 12:31 pm, Ash ashwin.disco...@gmail.com wrote:

I'm new to android development. We need to buy around 20 phones for
android development for our university. Please share your views and
comments on the phone you think is good for Android development.

Thank You

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


[android-developers] Re: Please help me to choose Android Phones (For Android development)

2009-11-09 Thread Nightwolf
What's wrong with Samsung Galaxy in terms of 3D?

On 10 ноя, 08:17, SoftwareForMe.com SoftwareForMe.com
softwareforme@gmail.com wrote:
 Personally, I find all Android phones to be excellent for development.

 However, here are some things I would consider before deciding.

 Let's consider these devices:
 HTC G1
 HTC Magic
 HTC MyTouch
 HTC Hero
 HTC Eris
 Samsung Galaxy
 Samsung Moment
 Motorola Cliq
 Motorola Droid

 Given the choice of a device with or without a keyboard, I'd choose one with
 a keyboard. You can use the soft keyboard on a device with a hard keyboard,
 but not vice versa. This leave us with:

 HTC G1
 Samsung Moment
 Motorola Cliq
 Motorola Droid

 Next, I would make Android 2.0 a priority. The Multi-touch API, Bluetooth
 API and others are key to the near-term feature of mobile development.
 Nobody seems to know for sure, but it's unlikely the G1 will get 2.0, so I
 would probably not consider it unless you hear differently.

 Next, 3D UIs are getting more important, so I'd want a phone that has decent
 accelerated 3D hardware. This eliminates the Samsung Galaxy, but leaves all
 others.

 Last there is screen size. Most smartphones are HVGA now (320x480), but WVGA
 (800 or 854 x 480) will be the standard soon.

 So, the best choice depends on what you want to do. If you only want to
 cover the basics and don't mind skipping a few capabilities or API's, then
 the cheapest or most rugged might be the best choice.

 If you want the best device to prepare students for all aspects of Android
 and mobile development, there's really no choice but the Motorola Droid,
 because of it's:

 * WVGA screen
 * Terrific hardware accelerated OpenGL
 * Android 2.0
 * Hardware keyboard
 * Full set of sensors (has a proximity sensor)

 I hope this helps.

 Scott,
 SoftwareForMe.com

 On Mon, Nov 9, 2009 at 5:31 PM, Ash ashwin.disco...@gmail.com wrote:
  I'm new to android development. We need to buy around 20 phones for
  android development for our university. Please share your views and
  comments on the phone you think is good for Android development.

  Thank You

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

 --
 Warm regards,
 The PhoneMyPC Team

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


[android-developers] Re: Please help me to choose Android Phones (For Android development)

2009-11-09 Thread Patrick
There is one more thing to take in to account, are they just learning
to develop or will they actually produce software that others can use?
As it is now most Users have a HTC Magic or Hero which means for that
something the runs on a new phone might not do as well for the general
public also while a keyboard is nice it's in my opinion often better
while learning to develop not to start with something that might later
on require you to learn it all over again, many people will not have a
physical keyboard and forgetting that during development can lead to
trouble.
This ofc if it's more then just learning the basic idea of the system,
I would personally go for the HTC Magic since if you get stuff working
on that you can more or less count on it working well on all phones.

On Nov 10, 6:17 am, SoftwareForMe.com SoftwareForMe.com
softwareforme@gmail.com wrote:
 Personally, I find all Android phones to be excellent for development.

 However, here are some things I would consider before deciding.

 Let's consider these devices:
 HTC G1
 HTC Magic
 HTC MyTouch
 HTC Hero
 HTC Eris
 Samsung Galaxy
 Samsung Moment
 Motorola Cliq
 Motorola Droid

 Given the choice of a device with or without a keyboard, I'd choose one with
 a keyboard. You can use the soft keyboard on a device with a hard keyboard,
 but not vice versa. This leave us with:

 HTC G1
 Samsung Moment
 Motorola Cliq
 Motorola Droid

 Next, I would make Android 2.0 a priority. The Multi-touch API, Bluetooth
 API and others are key to the near-term feature of mobile development.
 Nobody seems to know for sure, but it's unlikely the G1 will get 2.0, so I
 would probably not consider it unless you hear differently.

 Next, 3D UIs are getting more important, so I'd want a phone that has decent
 accelerated 3D hardware. This eliminates the Samsung Galaxy, but leaves all
 others.

 Last there is screen size. Most smartphones are HVGA now (320x480), but WVGA
 (800 or 854 x 480) will be the standard soon.

 So, the best choice depends on what you want to do. If you only want to
 cover the basics and don't mind skipping a few capabilities or API's, then
 the cheapest or most rugged might be the best choice.

 If you want the best device to prepare students for all aspects of Android
 and mobile development, there's really no choice but the Motorola Droid,
 because of it's:

 * WVGA screen
 * Terrific hardware accelerated OpenGL
 * Android 2.0
 * Hardware keyboard
 * Full set of sensors (has a proximity sensor)

 I hope this helps.

 Scott,
 SoftwareForMe.com

 On Mon, Nov 9, 2009 at 5:31 PM, Ash ashwin.disco...@gmail.com wrote:
  I'm new to android development. We need to buy around 20 phones for
  android development for our university. Please share your views and
  comments on the phone you think is good for Android development.

  Thank You

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

 --
 Warm regards,
 The PhoneMyPC Team

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


[android-developers] Re: Please help me !

2009-09-21 Thread Smelly Eddie

please help me is a useless topic title. You are not going tom get
valuable help this way.

Please trya  clear title that rel;ates to ty7our problem. and in the
text describe what you ahve tried or read until this point, and why
that may not be working.

This is not a 'code my app' forum

On Sep 20, 12:03 pm, Nine quachtoanch...@gmail.com wrote:
 I want to display a overlay in maps ( as Overlay of MyLocation - The
 circle which can flash ).
 How to do ?
 Thanks in advance.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Please help me !

2009-09-21 Thread Eduardo Gonçalves
*Try this!*

package org.apache.maps;

import android.graphics.Canvas;
import android.graphics.Paint;
import com.google.android.maps.Overlay;
import com.google.android.maps.Point;
import com.google.googlenav.Placemark;
import com.google.googlenav.Search;

public class MyOverlay extends Overlay {
BrowseMap mMap;
Paint paint1 = new Paint();
Paint paint2 = new Paint();

public MyOverlay(BrowseMap map) {
mMap = map;
paint2.setARGB(255, 255, 255, 255);
}

public void draw(Canvas canvas, PixelCalculator pixelCalculator,
boolean b) {
super.draw(canvas, pixelCalculator, b);

Search search = mMap.getSearch();
if (search != null) {
for (int i = 0; i  search.numPlacemarks(); i++) {
Placemark placemark = search.getPlacemark(i);
int[] screenCoords = new int[2];
Point point = new Point(placemark.getLocation().getLatitude(),
placemark.getLocation().getLongitude());
pixelCalculator.getPointXY(point, screenCoords);
canvas.drawCircle(screenCoords[0], screenCoords[1], 9, paint1);
canvas.drawText(Integer.toString(i + 1),
screenCoords[0] - 4,
screenCoords[1] + 4, paint2);
}
}
}
}



On Mon, Sep 21, 2009 at 9:37 AM, Smelly Eddie ollit...@gmail.com wrote:


 please help me is a useless topic title. You are not going tom get
 valuable help this way.

 Please trya  clear title that rel;ates to ty7our problem. and in the
 text describe what you ahve tried or read until this point, and why
 that may not be working.

 This is not a 'code my app' forum

 On Sep 20, 12:03 pm, Nine quachtoanch...@gmail.com wrote:
  I want to display a overlay in maps ( as Overlay of MyLocation - The
  circle which can flash ).
  How to do ?
  Thanks in advance.
 


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



[android-developers] Re: Please help me !

2009-09-21 Thread Jason Proctor

we have this thing called Google now. a simple search led me to this article --

http://developer.android.com/guide/tutorials/views/hello-mapview.html

-- which was enough for me to get Maps and Overlays going.

hth


I want to display a overlay in maps ( as Overlay of MyLocation - The
circle which can flash ).
How to do ?
Thanks in advance.


-- 
jason.vp.engineering.particle

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



[android-developers] Re: please help me?

2009-07-01 Thread Dianne Hackborn
You can't.  You need to have your UI displayed and in focus to receive input
events.

On Tue, Jun 30, 2009 at 11:06 PM, Dorj b.dor...@gogo.mn wrote:


 hello all, How to detect key event without activty in android?
 How to detect key event in broadcastReceiver in android?
 



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

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

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



[android-developers] Re: please help me:

2009-06-09 Thread Mark Murphy

manoj wrote:
 Hi,
 
 I written a small app also to play youtube video as shown below
 
 startActivity(new Intent(Intent.ACTION_VIEW,Uri.parse(youtubeUrl)));
 
 I got an alert saying sorry, this video cannot be played.
 
 can any one please help me.
 
 Thanks,
 Manoj.
 
 On Jun 9, 5:11 pm, manoj manojkumar.m...@gmail.com wrote:
 Hi friends,

 I tried to play youtube url from ADP 1.5 device's browser. It doesn't
 play.

 Shows warning as  the video you have requested is not available.

 But when played in pc i got a video playing in my pc. The url 
 ishttp://www.youtube.com/watch?v=yiALvl1rILE

 Can any one please suggest me what is the problem for not playing in
 the device.

Perhaps the Browser application cannot play YouTube videos. Try using
the YouTube application.

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

Need help for your Android OSS project? http://wiki.andmob.org/hado

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



[android-developers] Re: please help me:

2009-06-09 Thread manoj

Hi Murphy,

I used youtube application on device.

It didn't work. for some urls youtube application is working. see my
second mail, I written the code like you mentioned activating the
youtube app. But it didn't work. can you please try on your device
with the link which I provide in first mail.

Thanks,
Manoj.

On Jun 9, 5:26 pm, Mark Murphy mmur...@commonsware.com wrote:
 manoj wrote:
  Hi,

  I written a small app also to play youtube video as shown below

  startActivity(new Intent(Intent.ACTION_VIEW,Uri.parse(youtubeUrl)));

  I got an alert saying sorry, this video cannot be played.

  can any one please help me.

  Thanks,
  Manoj.

  On Jun 9, 5:11 pm, manoj manojkumar.m...@gmail.com wrote:
  Hi friends,

  I tried to play youtube url from ADP 1.5 device's browser. It doesn't
  play.

  Shows warning as  the video you have requested is not available.

  But when played in pc i got a video playing in my pc. The url 
  ishttp://www.youtube.com/watch?v=yiALvl1rILE

  Can any one please suggest me what is the problem for not playing in
  the device.

 Perhaps the Browser application cannot play YouTube videos. Try using
 the YouTube application.

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

 Need help for your Android OSS project?http://wiki.andmob.org/hado
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: please help me:

2009-06-09 Thread manoj

Hi,

I think some of you guys already might have experienced this kind of
behaviour. and also some might solve this.

can any one please help me.

Thanks,
Manoj.

On Jun 9, 5:32 pm, manoj manojkumar.m...@gmail.com wrote:
 Hi Murphy,

 I used youtube application on device.

 It didn't work. for some urls youtube application is working. see my
 second mail, I written the code like you mentioned activating the
 youtube app. But it didn't work. can you please try on your device
 with the link which I provide in first mail.

 Thanks,
 Manoj.

 On Jun 9, 5:26 pm, Mark Murphy mmur...@commonsware.com wrote:

  manoj wrote:
   Hi,

   I written a small app also to play youtube video as shown below

   startActivity(new Intent(Intent.ACTION_VIEW,Uri.parse(youtubeUrl)));

   I got an alert saying sorry, this video cannot be played.

   can any one please help me.

   Thanks,
   Manoj.

   On Jun 9, 5:11 pm, manoj manojkumar.m...@gmail.com wrote:
   Hi friends,

   I tried to play youtube url from ADP 1.5 device's browser. It doesn't
   play.

   Shows warning as  the video you have requested is not available.

   But when played in pc i got a video playing in my pc. The url 
   ishttp://www.youtube.com/watch?v=yiALvl1rILE

   Can any one please suggest me what is the problem for not playing in
   the device.

  Perhaps the Browser application cannot play YouTube videos. Try using
  the YouTube application.

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

  Need help for your Android OSS project?http://wiki.andmob.org/hado
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---