Re: [android-beginners] Re: GK:How to Animate the single image in the Gallery
You need to follow the tutorial I gave you a link to On Dec 14, 2009 11:43 PM, Ganesh Ram ganesh...@gmail.com wrote: Hi Justin.., Here is my code.., == private Integer[] gItems = { R.drawable.l, R.drawable.b2, R.drawable.bi2, R.drawable.big2, R.drawable.re, R.drawable.ne, }; Gallery gallery; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); gallery.setImageResource(gItems[position]); } === Whats wrong ? What i need to do now ? ? Cheers, Ganesh On Dec 15, 11:19 am, Justin Anderson janderson@gmail.com wrote: How are you displaying the i... On Mon, Dec 14, 2009 at 8:54 PM, Ganesh Ram ganesh...@gmail.com wrote: Thanks Mr.Justin. ... -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Simple Call App
just hard the number in startActivity() and try.. Then you are giving permission in Manifest, right .. On Dec 15, 10:26 am, AJ amanjsi...@gmail.com wrote: Thanks... but taht does not help either. It launches but the call button does not work: [2009-12-15 00:21:13 - HelloAndroid]Waiting for HOME ('android.process.acore') to be launched... [2009-12-15 00:21:14 - Emulator]2009-12-15 00:21:14.866 emulator [656:903] Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz. [2009-12-15 00:22:58 - HelloAndroid]HOME is up on device 'emulator-5554' [2009-12-15 00:22:58 - HelloAndroid]Uploading HelloAndroid.apk onto device 'emulator-5554' [2009-12-15 00:22:59 - HelloAndroid]Installing HelloAndroid.apk... [2009-12-15 00:23:17 - HelloAndroid]Success! [2009-12-15 00:23:17 - HelloAndroid]Starting activity com.tests.helloandroid.HelloAndroid on device [2009-12-15 00:23:27 - HelloAndroid]ActivityManager: Starting: Intent { cmp=com.tests.helloandroid/.HelloAndroid } There was a warning though. Not sure why doesn't this code work. --aj On Dec 14, 11:56 pm, Nithin nithin.war...@gmail.com wrote: hi, try mEditText_number.getText().toString(); Thanks On Dec 15, 9:41 am, AJ amanjsi...@gmail.com wrote: I am trying to make a very very simple app as a beginner but it does not work. The app just has a text bar and a button. Somehow, the call button does not start a call. Help please. Here is the code: package com.tests.helloandroid; import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.view.KeyEvent; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.LinearLayout; public class HelloAndroid extends Activity { EditText mEditText_number = null; LinearLayout mLinearLayout_no_button = null; Button mButton_dial = null; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mLinearLayout_no_button = new LinearLayout(this); mEditText_number = new EditText(this); mEditText_number.setText(5551222); mLinearLayout_no_button.addView(mEditText_number); mButton_dial = new Button(this); mButton_dial.setText(Dial!); mLinearLayout_no_button.addView(mButton_dial); mButton_dial.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { performDial(); } }); setContentView(mLinearLayout_no_button); } public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_CALL) { performDial(); return true; } return false; } public void performDial(){ if(mEditText_number!=null){ try { startActivity(new Intent(Intent.ACTION_CALL, Uri.parse(tel: + mEditText_number.getText(; } catch (Exception e) { e.printStackTrace(); } }//if } } -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] Re: Simple Call App
Nithin is right, you need to add the following permission to your AndroidManifest.xml, if it's not there already: uses-permission id=android.permission.CALL_PHONE/ You'll find that the KEYCODE_CALL button is being ignored, because by default special buttons like the back/call/home ones are handled internally. You need to override this behaviour by adding the following line into the onCreate() of your activity: setDefaultKeyMode(Activity.DEFAULT_KEYS_DIALER); The rest looks OK to me. If you still have problems, try stepping through the code in the debugger to determine which line is not executing correctly... On Tue, Dec 15, 2009 at 11:18 AM, Nithin nithin.war...@gmail.com wrote: just hard the number in startActivity() and try.. Then you are giving permission in Manifest, right .. On Dec 15, 10:26 am, AJ amanjsi...@gmail.com wrote: Thanks... but taht does not help either. It launches but the call button does not work: [2009-12-15 00:21:13 - HelloAndroid]Waiting for HOME ('android.process.acore') to be launched... [2009-12-15 00:21:14 - Emulator]2009-12-15 00:21:14.866 emulator [656:903] Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz. [2009-12-15 00:22:58 - HelloAndroid]HOME is up on device 'emulator-5554' [2009-12-15 00:22:58 - HelloAndroid]Uploading HelloAndroid.apk onto device 'emulator-5554' [2009-12-15 00:22:59 - HelloAndroid]Installing HelloAndroid.apk... [2009-12-15 00:23:17 - HelloAndroid]Success! [2009-12-15 00:23:17 - HelloAndroid]Starting activity com.tests.helloandroid.HelloAndroid on device [2009-12-15 00:23:27 - HelloAndroid]ActivityManager: Starting: Intent { cmp=com.tests.helloandroid/.HelloAndroid } There was a warning though. Not sure why doesn't this code work. --aj On Dec 14, 11:56 pm, Nithin nithin.war...@gmail.com wrote: hi, try mEditText_number.getText().toString(); Thanks On Dec 15, 9:41 am, AJ amanjsi...@gmail.com wrote: I am trying to make a very very simple app as a beginner but it does not work. The app just has a text bar and a button. Somehow, the call button does not start a call. Help please. Here is the code: package com.tests.helloandroid; import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.view.KeyEvent; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.LinearLayout; public class HelloAndroid extends Activity { EditText mEditText_number = null; LinearLayout mLinearLayout_no_button = null; Button mButton_dial = null; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mLinearLayout_no_button = new LinearLayout(this); mEditText_number = new EditText(this); mEditText_number.setText(5551222); mLinearLayout_no_button.addView(mEditText_number); mButton_dial = new Button(this); mButton_dial.setText(Dial!); mLinearLayout_no_button.addView(mButton_dial); mButton_dial.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { performDial(); } }); setContentView(mLinearLayout_no_button); } public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_CALL) { performDial(); return true; } return false; } public void performDial(){ if(mEditText_number!=null){ try { startActivity(new Intent(Intent.ACTION_CALL, Uri.parse(tel: + mEditText_number.getText(; } catch (Exception e) { e.printStackTrace(); } }//if } } -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Streaming Video using VideoView Sorry Cant play this video
this is the code. appreciate if anyone can tell me whats wrong. package info.shouraig.com; import java.io.IOException; import android.app.Activity; import android.media.MediaPlayer; import android.net.Uri; import android.os.Bundle; import android.util.Log; import android.widget.MediaController; import android.widget.VideoView; public class XSO7 extends Activity { public final static String RTSP = rtsp://rtsp.youtube.com/watch? v=8bmWwxixT0Y; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); // ***VideoView to video element VideoView videoView = (VideoView) findViewById(R.id.videoViewXS07); Log.v(video, ***Video to Play:: + RTSP); MediaController mc = new MediaController(this); mc.setAnchorView(videoView); Uri video = Uri.parse(RTSP); videoView.setMediaController(mc); videoView.setVideoURI(video); videoView.start(); videoView.setVideoURI(Uri.parse(file:///sdcard/ video.XSCycling2.wmv)); videoView = new VideoView(this); MediaPlayer mp = new MediaPlayer(); try { mp.setDataSource(RTSP); } catch (IllegalArgumentException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IllegalStateException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } try { mp.prepare(); } catch (IllegalStateException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } mp.start(); } } -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] Streaming Video using VideoView Sorry Cant play this video
You are trying to play a WMV format. http://developer.android.com/guide/appendix/media-formats.html On Tue, Dec 15, 2009 at 11:42 AM, Valentino XM shourai...@gmail.com wrote: this is the code. appreciate if anyone can tell me whats wrong. package info.shouraig.com; import java.io.IOException; import android.app.Activity; import android.media.MediaPlayer; import android.net.Uri; import android.os.Bundle; import android.util.Log; import android.widget.MediaController; import android.widget.VideoView; public class XSO7 extends Activity { public final static String RTSP = rtsp://rtsp.youtube.com/watch? v=8bmWwxixT0Y; /** Called when the activity is first created. */ �...@override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); // ***VideoView to video element VideoView videoView = (VideoView) findViewById(R.id.videoViewXS07); Log.v(video, ***Video to Play:: + RTSP); MediaController mc = new MediaController(this); mc.setAnchorView(videoView); Uri video = Uri.parse(RTSP); videoView.setMediaController(mc); videoView.setVideoURI(video); videoView.start(); videoView.setVideoURI(Uri.parse(file:///sdcard/ video.XSCycling2.wmv)); videoView = new VideoView(this); MediaPlayer mp = new MediaPlayer(); try { mp.setDataSource(RTSP); } catch (IllegalArgumentException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IllegalStateException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } try { mp.prepare(); } catch (IllegalStateException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } mp.start(); } } -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] C programming
Ok, I see all the examples on how to make a hello world program in c, but all of them have you do an adb shell to run it. Assume I want to have my c program do the useful things it already does and use java for the UI, how would I launch my c program? How do I bundle everything, java, c, into one distributable package? Thanks, Mike -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] IOException with BufferedReader
Hi, You cannot use the regular java IO for res/raw. folder. only if you are using /sd/card you can use regular java.io here is some code that might help you FileInputStream fin = context.openFileInput(sitestore); InputStreamReader br = new InputStreamReader(fin); String readString = ; int i; while((i = br.read()) != -1){ inputBuffer = (char)i; readString = readString + inputBuffer; } FileOutputStream fOut = context.openFileOutput(sitestore, context.MODE_WORLD_READABLE); OutputStreamWriter bw = new OutputStreamWriter(fOut); write the code for writting to file here... Regards, Yousuf. On Mon, Dec 14, 2009 at 4:03 PM, kaloer mkal...@gmail.com wrote: Hi, I have a problem when I'm trying to read a file from the res/raw folder. When I get the file as an InputStream and try reading it line for line with a BufferedReader, I get an IOException when I'm calling the br.readLine(). I do no get any additional information in the exception. Are there anything wrong with this code: private void readFile(InputStream mFile) { DataInputStream in = new DataInputStream(mFile); BufferedReader br = new BufferedReader(new InputStreamReader(in)); String strLine; while ((strLine = br.readLine()) != null) { Log.i(line, strLine); } in.close(); } Thank you very much! //Kaloer -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] C programming
On Tue, Dec 15, 2009 at 3:26 PM, Michael Dorin bsddo...@gmail.com wrote: Ok, I see all the examples on how to make a hello world program in c, but all of them have you do an adb shell to run it. Assume I want to have my c program do the useful things it already does and use java for the UI, how would I launch my c program? How do I bundle everything, java, c, into one distributable package? Thanks, Mike This is probably best asked on the android-ndk mailing list. My understanding is that you can place your C library into the lib/ directory of your project, and it becomes accessible to your Java code via JNI calls. You'll probably get a better answer on that list though. -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: IOException with BufferedReader
Hi Yousuf, Thank you very much for the answer. However, I don't know in which directory i should put the file? I don't want to save the file from my application - it should just be there when the application is installed. I don't think I can access this file with the context.openFileInput() method? Or am I wrong? //Kaloer On 15 Dec., 16:44, Yousuf Syed yousuf.syed@gmail.com wrote: Hi, You cannot use the regular java IO for res/raw. folder. only if you are using /sd/card you can use regular java.io here is some code that might help you FileInputStream fin = context.openFileInput(sitestore); InputStreamReader br = new InputStreamReader(fin); String readString = ; int i; while((i = br.read()) != -1){ inputBuffer = (char)i; readString = readString + inputBuffer; } FileOutputStream fOut = context.openFileOutput(sitestore, context.MODE_WORLD_READABLE); OutputStreamWriter bw = new OutputStreamWriter(fOut); write the code for writting to file here... Regards, Yousuf. On Mon, Dec 14, 2009 at 4:03 PM, kaloer mkal...@gmail.com wrote: Hi, I have a problem when I'm trying to read a file from the res/raw folder. When I get the file as an InputStream and try reading it line for line with a BufferedReader, I get an IOException when I'm calling the br.readLine(). I do no get any additional information in the exception. Are there anything wrong with this code: private void readFile(InputStream mFile) { DataInputStream in = new DataInputStream(mFile); BufferedReader br = new BufferedReader(new InputStreamReader(in)); String strLine; while ((strLine = br.readLine()) != null) { Log.i(line, strLine); } in.close(); } Thank you very much! //Kaloer -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: IOException with BufferedReader
Hi again, I've just tried putting a simple file with the Hello, world text into the raw folder, and this works as it should. The other file is 1.1 megabyte. Can the error be caused because of the size? On 15 Dec., 19:52, Yousuf Syed yousuf.syed@gmail.com wrote: Hi Kaloer, The procedure is as follows: 1. create a raw folder, 2. place a file.(txt or regular file with no extension) in the raw folder. 3.write the code as said earlier. 4 one more thing that you can do is push the file through eclipse's ddms to data/data/your application dir/files directory. (Your file in the DDMS will be updated not the one contained in /res/raw/ folder so look for the size of the file present in ddms under /data/data/com.app.files/files/ ) 5 path to be specified: just give the file name that is present in the raw folder. if the name of file is sample.txt which is present in /res/raw/ folder FileInputStream fin = context.openFileInput(sample.txt); // if used within a adapter class or somewhere outside the activity class if you are using this within the activity it should be FileInputStream fin = openFileInput(sample.txt); I guess step 4 is needed for the first time since your read is performed before your write. if you are writing before reading then the FileOutputStream object either writes to a existing file or creates a new one( FileInputStream object cannot create a new file). Do remember that raw folder has a limit to the data that it can contain so files with large amount of data cant be stored there. For your convenience I am attaching my filehandling projected that reads and writes to file. This is a working example. for some reason if this is not working try using permissions. read_owner_data write_owner_data write_external_storage but these permissions are for files stored on /sdcard/filename Hope this would help. Regards, Yousuf. On Tue, Dec 15, 2009 at 12:28 PM, kaloer mkal...@gmail.com wrote: Hi Yousuf, Thank you very much for the answer. However, I don't know in which directory i should put the file? I don't want to save the file from my application - it should just be there when the application is installed. I don't think I can access this file with the context.openFileInput() method? Or am I wrong? //Kaloer On 15 Dec., 16:44, Yousuf Syed yousuf.syed@gmail.com wrote: Hi, You cannot use the regular java IO for res/raw. folder. only if you are using /sd/card you can use regular java.io here is some code that might help you FileInputStream fin = context.openFileInput(sitestore); InputStreamReader br = new InputStreamReader(fin); String readString = ; int i; while((i = br.read()) != -1){ inputBuffer = (char)i; readString = readString + inputBuffer; } FileOutputStream fOut = context.openFileOutput(sitestore, context.MODE_WORLD_READABLE); OutputStreamWriter bw = new OutputStreamWriter(fOut); write the code for writting to file here... Regards, Yousuf. On Mon, Dec 14, 2009 at 4:03 PM, kaloer mkal...@gmail.com wrote: Hi, I have a problem when I'm trying to read a file from the res/raw folder. When I get the file as an InputStream and try reading it line for line with a BufferedReader, I get an IOException when I'm calling the br.readLine(). I do no get any additional information in the exception. Are there anything wrong with this code: private void readFile(InputStream mFile) { DataInputStream in = new DataInputStream(mFile); BufferedReader br = new BufferedReader(new InputStreamReader(in)); String strLine; while ((strLine = br.readLine()) != null) { Log.i(line, strLine); } in.close(); } Thank you very much! //Kaloer -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com android-beginners%2bunsubscr...@googlegroups.comandroid-beginners%252bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en filehandling.zip 59KVisDownload --
Re: [android-beginners] Re: IOException with BufferedReader
yes, For sure. the raw folder has a limit to the amount of data that it can hold. It cant hold large data files. Regards, Yousuf. On Tue, Dec 15, 2009 at 1:58 PM, kaloer mkal...@gmail.com wrote: Hi again, I've just tried putting a simple file with the Hello, world text into the raw folder, and this works as it should. The other file is 1.1 megabyte. Can the error be caused because of the size? On 15 Dec., 19:52, Yousuf Syed yousuf.syed@gmail.com wrote: Hi Kaloer, The procedure is as follows: 1. create a raw folder, 2. place a file.(txt or regular file with no extension) in the raw folder. 3.write the code as said earlier. 4 one more thing that you can do is push the file through eclipse's ddms to data/data/your application dir/files directory. (Your file in the DDMS will be updated not the one contained in /res/raw/ folder so look for the size of the file present in ddms under /data/data/com.app.files/files/ ) 5 path to be specified: just give the file name that is present in the raw folder. if the name of file is sample.txt which is present in /res/raw/ folder FileInputStream fin = context.openFileInput(sample.txt); // if used within a adapter class or somewhere outside the activity class if you are using this within the activity it should be FileInputStream fin = openFileInput(sample.txt); I guess step 4 is needed for the first time since your read is performed before your write. if you are writing before reading then the FileOutputStream object either writes to a existing file or creates a new one( FileInputStream object cannot create a new file). Do remember that raw folder has a limit to the data that it can contain so files with large amount of data cant be stored there. For your convenience I am attaching my filehandling projected that reads and writes to file. This is a working example. for some reason if this is not working try using permissions. read_owner_data write_owner_data write_external_storage but these permissions are for files stored on /sdcard/filename Hope this would help. Regards, Yousuf. On Tue, Dec 15, 2009 at 12:28 PM, kaloer mkal...@gmail.com wrote: Hi Yousuf, Thank you very much for the answer. However, I don't know in which directory i should put the file? I don't want to save the file from my application - it should just be there when the application is installed. I don't think I can access this file with the context.openFileInput() method? Or am I wrong? //Kaloer On 15 Dec., 16:44, Yousuf Syed yousuf.syed@gmail.com wrote: Hi, You cannot use the regular java IO for res/raw. folder. only if you are using /sd/card you can use regular java.io here is some code that might help you FileInputStream fin = context.openFileInput(sitestore); InputStreamReader br = new InputStreamReader(fin); String readString = ; int i; while((i = br.read()) != -1){ inputBuffer = (char)i; readString = readString + inputBuffer; } FileOutputStream fOut = context.openFileOutput(sitestore, context.MODE_WORLD_READABLE); OutputStreamWriter bw = new OutputStreamWriter(fOut); write the code for writting to file here... Regards, Yousuf. On Mon, Dec 14, 2009 at 4:03 PM, kaloer mkal...@gmail.com wrote: Hi, I have a problem when I'm trying to read a file from the res/raw folder. When I get the file as an InputStream and try reading it line for line with a BufferedReader, I get an IOException when I'm calling the br.readLine(). I do no get any additional information in the exception. Are there anything wrong with this code: private void readFile(InputStream mFile) { DataInputStream in = new DataInputStream(mFile); BufferedReader br = new BufferedReader(new InputStreamReader(in)); String strLine; while ((strLine = br.readLine()) != null) { Log.i(line, strLine); } in.close(); } Thank you very much! //Kaloer -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com android-beginners%2bunsubscr...@googlegroups.comandroid-beginners%252bunsubscr...@googlegroups.com android-beginners%2bunsubscr...@googlegroups.comandroid-beginners%252bunsubscr...@googlegroups.com android-beginners%252bunsubscr...@googlegroups.comandroid-beginners%25252bunsubscr...@googlegroups.com For more options,
[android-beginners] Re: IOException with BufferedReader
Oh okay.. But how can I use it them? Do I need to download it from a server or so? I have tried putting it into the assets folder but this seems to have the same limit. On 15 Dec., 20:04, Yousuf Syed yousuf.syed@gmail.com wrote: yes, For sure. the raw folder has a limit to the amount of data that it can hold. It cant hold large data files. Regards, Yousuf. On Tue, Dec 15, 2009 at 1:58 PM, kaloer mkal...@gmail.com wrote: Hi again, I've just tried putting a simple file with the Hello, world text into the raw folder, and this works as it should. The other file is 1.1 megabyte. Can the error be caused because of the size? On 15 Dec., 19:52, Yousuf Syed yousuf.syed@gmail.com wrote: Hi Kaloer, The procedure is as follows: 1. create a raw folder, 2. place a file.(txt or regular file with no extension) in the raw folder. 3.write the code as said earlier. 4 one more thing that you can do is push the file through eclipse's ddms to data/data/your application dir/files directory. (Your file in the DDMS will be updated not the one contained in /res/raw/ folder so look for the size of the file present in ddms under /data/data/com.app.files/files/ ) 5 path to be specified: just give the file name that is present in the raw folder. if the name of file is sample.txt which is present in /res/raw/ folder FileInputStream fin = context.openFileInput(sample.txt); // if used within a adapter class or somewhere outside the activity class if you are using this within the activity it should be FileInputStream fin = openFileInput(sample.txt); I guess step 4 is needed for the first time since your read is performed before your write. if you are writing before reading then the FileOutputStream object either writes to a existing file or creates a new one( FileInputStream object cannot create a new file). Do remember that raw folder has a limit to the data that it can contain so files with large amount of data cant be stored there. For your convenience I am attaching my filehandling projected that reads and writes to file. This is a working example. for some reason if this is not working try using permissions. read_owner_data write_owner_data write_external_storage but these permissions are for files stored on /sdcard/filename Hope this would help. Regards, Yousuf. On Tue, Dec 15, 2009 at 12:28 PM, kaloer mkal...@gmail.com wrote: Hi Yousuf, Thank you very much for the answer. However, I don't know in which directory i should put the file? I don't want to save the file from my application - it should just be there when the application is installed. I don't think I can access this file with the context.openFileInput() method? Or am I wrong? //Kaloer On 15 Dec., 16:44, Yousuf Syed yousuf.syed@gmail.com wrote: Hi, You cannot use the regular java IO for res/raw. folder. only if you are using /sd/card you can use regular java.io here is some code that might help you FileInputStream fin = context.openFileInput(sitestore); InputStreamReader br = new InputStreamReader(fin); String readString = ; int i; while((i = br.read()) != -1){ inputBuffer = (char)i; readString = readString + inputBuffer; } FileOutputStream fOut = context.openFileOutput(sitestore, context.MODE_WORLD_READABLE); OutputStreamWriter bw = new OutputStreamWriter(fOut); write the code for writting to file here... Regards, Yousuf. On Mon, Dec 14, 2009 at 4:03 PM, kaloer mkal...@gmail.com wrote: Hi, I have a problem when I'm trying to read a file from the res/raw folder. When I get the file as an InputStream and try reading it line for line with a BufferedReader, I get an IOException when I'm calling the br.readLine(). I do no get any additional information in the exception. Are there anything wrong with this code: private void readFile(InputStream mFile) { DataInputStream in = new DataInputStream(mFile); BufferedReader br = new BufferedReader(new InputStreamReader(in)); String strLine; while ((strLine = br.readLine()) != null) { Log.i(line, strLine); } in.close(); } Thank you very much! //Kaloer -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
Re: [android-beginners] Re: IOException with BufferedReader
Hi, Write another supporting application to download them and save it to the location used in your main application. then install the main applicaiton. This should do. but I have not worked on downloading files from server. So cant help you in this regard. Sorry for that. Regards, Yousuf. On Tue, Dec 15, 2009 at 2:11 PM, kaloer mkal...@gmail.com wrote: Oh okay.. But how can I use it them? Do I need to download it from a server or so? I have tried putting it into the assets folder but this seems to have the same limit. On 15 Dec., 20:04, Yousuf Syed yousuf.syed@gmail.com wrote: yes, For sure. the raw folder has a limit to the amount of data that it can hold. It cant hold large data files. Regards, Yousuf. On Tue, Dec 15, 2009 at 1:58 PM, kaloer mkal...@gmail.com wrote: Hi again, I've just tried putting a simple file with the Hello, world text into the raw folder, and this works as it should. The other file is 1.1 megabyte. Can the error be caused because of the size? On 15 Dec., 19:52, Yousuf Syed yousuf.syed@gmail.com wrote: Hi Kaloer, The procedure is as follows: 1. create a raw folder, 2. place a file.(txt or regular file with no extension) in the raw folder. 3.write the code as said earlier. 4 one more thing that you can do is push the file through eclipse's ddms to data/data/your application dir/files directory. (Your file in the DDMS will be updated not the one contained in /res/raw/ folder so look for the size of the file present in ddms under /data/data/com.app.files/files/ ) 5 path to be specified: just give the file name that is present in the raw folder. if the name of file is sample.txt which is present in /res/raw/ folder FileInputStream fin = context.openFileInput(sample.txt); // if used within a adapter class or somewhere outside the activity class if you are using this within the activity it should be FileInputStream fin = openFileInput(sample.txt); I guess step 4 is needed for the first time since your read is performed before your write. if you are writing before reading then the FileOutputStream object either writes to a existing file or creates a new one( FileInputStream object cannot create a new file). Do remember that raw folder has a limit to the data that it can contain so files with large amount of data cant be stored there. For your convenience I am attaching my filehandling projected that reads and writes to file. This is a working example. for some reason if this is not working try using permissions. read_owner_data write_owner_data write_external_storage but these permissions are for files stored on /sdcard/filename Hope this would help. Regards, Yousuf. On Tue, Dec 15, 2009 at 12:28 PM, kaloer mkal...@gmail.com wrote: Hi Yousuf, Thank you very much for the answer. However, I don't know in which directory i should put the file? I don't want to save the file from my application - it should just be there when the application is installed. I don't think I can access this file with the context.openFileInput() method? Or am I wrong? //Kaloer On 15 Dec., 16:44, Yousuf Syed yousuf.syed@gmail.com wrote: Hi, You cannot use the regular java IO for res/raw. folder. only if you are using /sd/card you can use regular java.io here is some code that might help you FileInputStream fin = context.openFileInput(sitestore); InputStreamReader br = new InputStreamReader(fin); String readString = ; int i; while((i = br.read()) != -1){ inputBuffer = (char)i; readString = readString + inputBuffer; } FileOutputStream fOut = context.openFileOutput(sitestore, context.MODE_WORLD_READABLE); OutputStreamWriter bw = new OutputStreamWriter(fOut); write the code for writting to file here... Regards, Yousuf. On Mon, Dec 14, 2009 at 4:03 PM, kaloer mkal...@gmail.com wrote: Hi, I have a problem when I'm trying to read a file from the res/raw folder. When I get the file as an InputStream and try reading it line for line with a BufferedReader, I get an IOException when I'm calling the br.readLine(). I do no get any additional information in the exception. Are there anything wrong with this code: private void readFile(InputStream mFile) { DataInputStream in = new DataInputStream(mFile); BufferedReader br = new BufferedReader(new InputStreamReader(in)); String strLine; while ((strLine = br.readLine()) != null) {
[android-beginners] Re: IOException with BufferedReader
Thank you very much for your help! No problem, I know how to do this. Best regards, Kaloer On 15 Dec., 20:22, Yousuf Syed yousuf.syed@gmail.com wrote: Hi, Write another supporting application to download them and save it to the location used in your main application. then install the main applicaiton. This should do. but I have not worked on downloading files from server. So cant help you in this regard. Sorry for that. Regards, Yousuf. On Tue, Dec 15, 2009 at 2:11 PM, kaloer mkal...@gmail.com wrote: Oh okay.. But how can I use it them? Do I need to download it from a server or so? I have tried putting it into the assets folder but this seems to have the same limit. On 15 Dec., 20:04, Yousuf Syed yousuf.syed@gmail.com wrote: yes, For sure. the raw folder has a limit to the amount of data that it can hold. It cant hold large data files. Regards, Yousuf. On Tue, Dec 15, 2009 at 1:58 PM, kaloer mkal...@gmail.com wrote: Hi again, I've just tried putting a simple file with the Hello, world text into the raw folder, and this works as it should. The other file is 1.1 megabyte. Can the error be caused because of the size? On 15 Dec., 19:52, Yousuf Syed yousuf.syed@gmail.com wrote: Hi Kaloer, The procedure is as follows: 1. create a raw folder, 2. place a file.(txt or regular file with no extension) in the raw folder. 3.write the code as said earlier. 4 one more thing that you can do is push the file through eclipse's ddms to data/data/your application dir/files directory. (Your file in the DDMS will be updated not the one contained in /res/raw/ folder so look for the size of the file present in ddms under /data/data/com.app.files/files/ ) 5 path to be specified: just give the file name that is present in the raw folder. if the name of file is sample.txt which is present in /res/raw/ folder FileInputStream fin = context.openFileInput(sample.txt); // if used within a adapter class or somewhere outside the activity class if you are using this within the activity it should be FileInputStream fin = openFileInput(sample.txt); I guess step 4 is needed for the first time since your read is performed before your write. if you are writing before reading then the FileOutputStream object either writes to a existing file or creates a new one( FileInputStream object cannot create a new file). Do remember that raw folder has a limit to the data that it can contain so files with large amount of data cant be stored there. For your convenience I am attaching my filehandling projected that reads and writes to file. This is a working example. for some reason if this is not working try using permissions. read_owner_data write_owner_data write_external_storage but these permissions are for files stored on /sdcard/filename Hope this would help. Regards, Yousuf. On Tue, Dec 15, 2009 at 12:28 PM, kaloer mkal...@gmail.com wrote: Hi Yousuf, Thank you very much for the answer. However, I don't know in which directory i should put the file? I don't want to save the file from my application - it should just be there when the application is installed. I don't think I can access this file with the context.openFileInput() method? Or am I wrong? //Kaloer On 15 Dec., 16:44, Yousuf Syed yousuf.syed@gmail.com wrote: Hi, You cannot use the regular java IO for res/raw. folder. only if you are using /sd/card you can use regular java.io here is some code that might help you FileInputStream fin = context.openFileInput(sitestore); InputStreamReader br = new InputStreamReader(fin); String readString = ; int i; while((i = br.read()) != -1){ inputBuffer = (char)i; readString = readString + inputBuffer; } FileOutputStream fOut = context.openFileOutput(sitestore, context.MODE_WORLD_READABLE); OutputStreamWriter bw = new OutputStreamWriter(fOut); write the code for writting to file here... Regards, Yousuf. On Mon, Dec 14, 2009 at 4:03 PM, kaloer mkal...@gmail.com wrote: Hi, I have a problem when I'm trying to read a file from the res/raw folder. When I get the file as an InputStream and try reading it line for line with a BufferedReader, I get an IOException when I'm calling the br.readLine(). I do no get any additional information in the exception. Are there anything wrong with this code: private void readFile(InputStream mFile) { DataInputStream in = new DataInputStream(mFile);
Re: [android-beginners] Re: IOException with BufferedReader
Hey can you help me with that. I am in the middle of developing a video dictionary. the main application is complete. I am working on the support application for downloading files form the server. can you help me with sample code or useful hints in downloading the files. Thanks in advance. Yousuf. On Tue, Dec 15, 2009 at 2:25 PM, kaloer mkal...@gmail.com wrote: Thank you very much for your help! No problem, I know how to do this. Best regards, Kaloer On 15 Dec., 20:22, Yousuf Syed yousuf.syed@gmail.com wrote: Hi, Write another supporting application to download them and save it to the location used in your main application. then install the main applicaiton. This should do. but I have not worked on downloading files from server. So cant help you in this regard. Sorry for that. Regards, Yousuf. On Tue, Dec 15, 2009 at 2:11 PM, kaloer mkal...@gmail.com wrote: Oh okay.. But how can I use it them? Do I need to download it from a server or so? I have tried putting it into the assets folder but this seems to have the same limit. On 15 Dec., 20:04, Yousuf Syed yousuf.syed@gmail.com wrote: yes, For sure. the raw folder has a limit to the amount of data that it can hold. It cant hold large data files. Regards, Yousuf. On Tue, Dec 15, 2009 at 1:58 PM, kaloer mkal...@gmail.com wrote: Hi again, I've just tried putting a simple file with the Hello, world text into the raw folder, and this works as it should. The other file is 1.1 megabyte. Can the error be caused because of the size? On 15 Dec., 19:52, Yousuf Syed yousuf.syed@gmail.com wrote: Hi Kaloer, The procedure is as follows: 1. create a raw folder, 2. place a file.(txt or regular file with no extension) in the raw folder. 3.write the code as said earlier. 4 one more thing that you can do is push the file through eclipse's ddms to data/data/your application dir/files directory. (Your file in the DDMS will be updated not the one contained in /res/raw/ folder so look for the size of the file present in ddms under /data/data/com.app.files/files/ ) 5 path to be specified: just give the file name that is present in the raw folder. if the name of file is sample.txt which is present in /res/raw/ folder FileInputStream fin = context.openFileInput(sample.txt); // if used within a adapter class or somewhere outside the activity class if you are using this within the activity it should be FileInputStream fin = openFileInput(sample.txt); I guess step 4 is needed for the first time since your read is performed before your write. if you are writing before reading then the FileOutputStream object either writes to a existing file or creates a new one( FileInputStream object cannot create a new file). Do remember that raw folder has a limit to the data that it can contain so files with large amount of data cant be stored there. For your convenience I am attaching my filehandling projected that reads and writes to file. This is a working example. for some reason if this is not working try using permissions. read_owner_data write_owner_data write_external_storage but these permissions are for files stored on /sdcard/filename Hope this would help. Regards, Yousuf. On Tue, Dec 15, 2009 at 12:28 PM, kaloer mkal...@gmail.com wrote: Hi Yousuf, Thank you very much for the answer. However, I don't know in which directory i should put the file? I don't want to save the file from my application - it should just be there when the application is installed. I don't think I can access this file with the context.openFileInput() method? Or am I wrong? //Kaloer On 15 Dec., 16:44, Yousuf Syed yousuf.syed@gmail.com wrote: Hi, You cannot use the regular java IO for res/raw. folder. only if you are using /sd/card you can use regular java.io here is some code that might help you FileInputStream fin = context.openFileInput(sitestore); InputStreamReader br = new InputStreamReader(fin); String readString = ; int i; while((i = br.read()) != -1){ inputBuffer = (char)i; readString = readString + inputBuffer; } FileOutputStream fOut = context.openFileOutput(sitestore, context.MODE_WORLD_READABLE); OutputStreamWriter bw = new OutputStreamWriter(fOut); write the code for writting to file here... Regards, Yousuf. On Mon, Dec 14, 2009 at 4:03 PM, kaloer mkal...@gmail.com wrote:
[android-beginners]
I am confused in camera application what is use of DPAD_CENTER public boolean onKeyDown(int keyCode, KeyEvent event) { ImageCaptureCallback iccb = null; if(keyCode == KeyEvent.KEYCODE_DPAD_CENTER) { try { String filename = timeStampFormat.format(new Date()); ContentValues values = new ContentValues(); values.put(Media.TITLE, filename); values.put(Media.DESCRIPTION, Image capture by camera); Uri uri = getContentResolver().insert(Media.EXTERNAL_CONTENT_URI, values); //String filename = timeStampFormat.format(new Date()); iccb = new ImageCaptureCallback( getContentResolver().openOutputStream(uri)); } catch(Exception ex ){ ex.printStackTrace(); Log.e(getClass().getSimpleName(), ex.getMessage(), ex); } } if (keyCode == KeyEvent.KEYCODE_BACK) { return super.onKeyDown(keyCode, event); } if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER) { camera.takePicture(mShutterCallback, mPictureCallbackRaw, iccb); return true; } return false; } what is use of Keycode_dpad_centerwhich key is used for dpad_center -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners]
I believe that would be clicking of a trackball on devices with a trackball or the middle button on devices with a d-pad (directional buttons plus center button). -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Tue, Dec 15, 2009 at 12:38 PM, saurabh sinha saurso...@gmail.com wrote: I am confused in camera application what is use of DPAD_CENTER public boolean onKeyDown(int keyCode, KeyEvent event) { ImageCaptureCallback iccb = null; if(keyCode == KeyEvent.KEYCODE_DPAD_CENTER) { try { String filename = timeStampFormat.format(new Date()); ContentValues values = new ContentValues(); values.put(Media.TITLE, filename); values.put(Media.DESCRIPTION, Image capture by camera); Uri uri = getContentResolver().insert(Media.EXTERNAL_CONTENT_URI, values); //String filename = timeStampFormat.format(new Date()); iccb = new ImageCaptureCallback( getContentResolver().openOutputStream(uri)); } catch(Exception ex ){ ex.printStackTrace(); Log.e(getClass().getSimpleName(), ex.getMessage(), ex); } } if (keyCode == KeyEvent.KEYCODE_BACK) { return super.onKeyDown(keyCode, event); } if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER) { camera.takePicture(mShutterCallback, mPictureCallbackRaw, iccb); return true; } return false; } what is use of Keycode_dpad_centerwhich key is used for dpad_center -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Problems installing Android SDK - no target available
@afarrell: I agree - thanks for posting this explanation. I was running through O'Reilly's Android Application Development book and had tried a couple different versions of Eclipse, with no luck. Finally I found this post and followed your explanations. The install process took a while, but worked like a charm. My trusty Hello Android application is working! Thanks! On Dec 8, 8:03 pm, DaveIsAwesome davidsmithisawes...@gmail.com wrote: Thank you very much for posting this. I've been running around looking at tutorials for the past few nights trying to figure this out, and finally everything works. On Dec 5, 2:36 pm, afarrell afarrell_2...@yahoo.com wrote: you have to open the SDK manager (type 'android' at the command prompt or open it in eclipse under the 'window' tab) go to settings, check the box for 'forcehttps://...sourcestobe fetched', then go to available packages which should have the site 'https://dl- ssl.google.com/android/repository/repository.xml' listed. If not, click 'add site' and put in this url. check this box and it willlist a bunch of sdk's and api's, choose the one you want, (both the SDK and the API) and hit 'install selected' You should now have some targets available. On Nov 30, 12:46 am, cbartsie cbart...@gmail.com wrote: Hey Guys! Were you all able to get an answer? I'm having the same problems. I'd love to find out how you guys got it work. I'm stuck. I can't get the setup.exe to run, which is then suppose to allow you to import various platforms. Any help you can provide would be great. cbartsie -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Transfer iTunes Amazon music video DVD movie to Motorola Droid CLIQ Rival
Any android phone users? just thinking this article might be helpful http://www.all-media-converter.com/knowledge/transfer-itunes-amazon-music-video-dvd-movie-to-motorola-droid-cliq-rival.html#136 -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Android SDK and ADB
I own a mytouch 3g and have recently rooted my phone. Today I decided I wanted to partition my SD card and wanted to do it using the adb feature. I downloaded Android SDK and moved its contents to my C drive under a folder named android. I created a path named C:/android/tools. I connected my phone to my computer and opened a command window. When I typed adb shell into the command prompt it said that a device was not found. After this I went in and deleted all of the HTC drivers and then plugged my phone into the computer again. This time it said that new drivers needed to be installed so i let the computer install them, but it said that the driver could not be found. I have tried reinstalling the sdk file with no luck. I really do not know what the problem is. I think one problem might be that when I try to open up SDK Setup a command window flashes and nothing happens. I am new to this so any help would be appreciated. Thank you. -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Dymanic View Populated From DB Schema
Hello, I am looking to create views containing checkboxes, input fields and various toggles based on a database schema that I have little control over. I have gone through the menus example from the API Demos and it is very close to what I'd like to do, however I am hesitant to subscribe to the idea of Inflaters. The data model is likely to change and I'd like use a system that is flexible and can adapt to these chagnes. It seems that Inflators use static xml files to define layouts. If there is a way to use Inflators that is more dynamic that would be great. Any ideas? Thanks, ~Jeremy -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Android EMail Client
msysGit is a good option in Windows. I've used it a few times for cloning things off GitHub. Here is a tutorial on the setup: http://github.com/guides/using-git-and-github-for-the-windows-for-newbies Hope that helps, adam On Dec 13, 11:41 am, SandVoiD mitchell.ros...@gmail.com wrote: Could someone please tell me how I can get a copy of the email client for a project I want to work on. I have windows and the only way I have found is to use git/repo but I do not have linux system or mac. Any help would be appreciated. Thanks -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] R.id.faver_andrecents
Hi, I'm new to Android. I'm trying to complie the Home sample, using MotoDev Studio for Android and SDK 1.5 I have copied the source of that sample, but it failed every time R.id. in use (R.id.faver_andrecents). How it can solved? Thanks and nice to meet, Eyal. -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: HelloViews Tutorials , etc.
Hey, Jason, I found the same problem. Do you think it's a problem from the latest versions of the SDK? In the meantime, I've headed to this website (http://www.anddev.org/ viewforum.php?f=8) for additional tutorials. -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Mouse cursor on Android emulator (Non x86 platforms)?
Hi folks, I am working on mouse cursor patch to see mouse cursor on Android emulator. In STFW, i got few hits like http://code.google.com/p/patch-hosting-for-android-x86-support/downloads/list?can=2q=mousecolspec=Filename+Summary+Uploaded+Size+DownloadCount. I applied recommended patches from the above link 1.eventhub.patch and 001-fixed-diff ... patch. Not applied boot_able_Img.patch. I am unable to see mouse cursor anyway. Could somebody please put me in right direction to see mouse cursor on Android emulator. I have no other data ... Thanks in advance, Pradeep -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Google Maps Api - No image displayed
Thanks to all, Now i have issue same as Denis. As i have made one application for displaying maps. It was running fine for first 2 to 3 times then encounter same problem as Danish. I have set all the permission of ACCESS_COARSE_LOCATION, INTERNET and as all of you told and also uses-library android:name=com.google.android.maps/ It shows me only Grid, no pictures. So how can I resolve it now? And if i want to display Map on Buton OnClick event theb how can i do it? Thanks, On Dec 14, 3:04 am, Denis 87elem...@gmail.com wrote: Everyone thanks for responses. I've solved it myself - first of course all those steps with Key obtaining and registration (be aware always to direct Eclipse to right .keystore file!). My problem was here: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=eatfind.stdpackage android:versionCode=1 android:versionName=1.0 //*These 2 lines are required** uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.INTERNET / application android:icon=@drawable/icon android:label=@string/ app_name uses-library android:name=com.google.android.maps/ //***But I added also this one here and only after that it worked (Don't what to change anything anymore (enough experiments for me - development time;)) uses-permission android:name=android.permission.INTERNET / activity android .. On 11 дек, 05:12, Yousuf Syed yousuf.syed@gmail.com wrote: Do you have the right key generated com.google.android.maps.MapView android:id=@+id/mapview android:layout_width=fill_parent android:layout_height=fill_parent android:clickable=true android:apiKey=*Your Maps API Key* / step 1: create your key store by going to cmd_promt step 2: copy the key store and paste it herehttp://code.google.com/android/maps-api-signup.html you will recieve your Maps API key . Place it in the code above. You will be able to see the google mapview. For more details on how to visit this link :http://code.google.com/android/add-ons/google-apis/mapkey.html regards, Yousuf. On Thu, Dec 10, 2009 at 1:15 PM, TreKing treking...@gmail.com wrote: Also make sure you have the internet permission in your manifest, otherwise the maps can't download the image tiles. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking On Tue, Dec 8, 2009 at 11:06 AM, Denis 87elem...@gmail.com wrote: Hi, guys, It is interesting, but I have the same problem. I've found a guide to construct Google Maps-aware application (as simple as possible, just a map even without zoom...) and it doesn't work (Well, it works - shows me nice grey grid). The advice is always one - check API keys. But the key is correct, because another application (that is built-in MapsDemo in Eclipse) runs well using my key! Regards, Denis On 14 ноя, 21:27, Raphaël Piéroni raphaelpier...@gmail.com wrote: Thanks for the answer, Yes i am running in debug mode. But i think i did it right, as i gave the debug keystore fingerprint to the registration process. I have not performed yet the creation of a release keystore for wndows nor macosx. Regards, Raphaël 2009/11/11 TreKing treking...@gmail.com Looks like you're running in debug mode. Are you sure you're using the debug key? If you tested a release version on your Mac it would explain why it works there. 2009/11/10 Raphaël Piéroni raphaelpier...@gmail.com Hi Folks, Some updates, I retried on mac osx JAVA6 (i was on winXP JAVA5) and it works fine. I have 2 hypothesys on my problem : - OS but i don't believe it - Java version but i don't believe also Raphaël Le 10 novembre 2009 12:36, Raphaël Piéroni raphaelpier...@gmail.com a écrit : Hello folks, In my map view i have NO image displayed. I did get an apiKey from my keystore fingerprint. I using the ant script that affirms to sign the apk with the same keystore. I have proper permissions and library usage. But still I got no image. If anyone has a clue for displaying the map in my simulator i will be very happy. Regards, Raphaël Extracts from the manifest : ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android android:versionCode=1 android:versionName=1.0 *uses-permission android:name=android.permission.INTERNET / uses-permission android:name=android.permission.ACCESS_FINE_LOCATION / uses-permission
[android-beginners] Re: Google Maps Api - No image displayed
Hi, I have set all the permissions and also google library as all of you said. When i have started it working fine but after 3 to 4 times it shows me grids same as Denis. I have not change any settings or not the keystore file. What will be the problem? Thanks in Advance On Dec 14, 3:04 am, Denis 87elem...@gmail.com wrote: Everyone thanks for responses. I've solved it myself - first of course all those steps with Key obtaining and registration (be aware always to direct Eclipse to right .keystore file!). My problem was here: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=eatfind.stdpackage android:versionCode=1 android:versionName=1.0 //*These 2 lines are required** uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.INTERNET / application android:icon=@drawable/icon android:label=@string/ app_name uses-library android:name=com.google.android.maps/ //***But I added also this one here and only after that it worked (Don't what to change anything anymore (enough experiments for me - development time;)) uses-permission android:name=android.permission.INTERNET / activity android .. On 11 дек, 05:12, Yousuf Syed yousuf.syed@gmail.com wrote: Do you have the right key generated com.google.android.maps.MapView android:id=@+id/mapview android:layout_width=fill_parent android:layout_height=fill_parent android:clickable=true android:apiKey=*YourMapsAPIKey* / step 1: create your key store by going to cmd_promt step 2: copy the key store and paste it herehttp://code.google.com/android/maps-api-signup.html you will recieve yourMapsAPIkey . Place it in the code above. You will be able to see thegooglemapview. For more details on how to visit this link :http://code.google.com/android/add-ons/google-apis/mapkey.html regards, Yousuf. On Thu, Dec 10, 2009 at 1:15 PM, TreKing treking...@gmail.com wrote: Also make sure you have the internet permission in your manifest, otherwise themapscan't download theimagetiles. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking On Tue, Dec 8, 2009 at 11:06 AM, Denis 87elem...@gmail.com wrote: Hi, guys, It is interesting, but I have the same problem. I've found a guide to constructGoogleMaps-aware application (as simple as possible, just a map even without zoom...) and it doesn't work (Well, it works - shows me nice grey grid). The advice is always one - checkAPIkeys. But the key is correct, because another application (that is built-in MapsDemo in Eclipse) runs well using my key! Regards, Denis On 14 ноя, 21:27, Raphaël Piéroni raphaelpier...@gmail.com wrote: Thanks for the answer, Yes i am running in debug mode. But i think i did it right, as i gave the debug keystore fingerprint to the registration process. I have not performed yet the creation of a release keystore for wndows nor macosx. Regards, Raphaël 2009/11/11 TreKing treking...@gmail.com Looks like you're running in debug mode. Are you sure you're using the debug key? If you tested a release version on your Mac it would explain why it works there. 2009/11/10 Raphaël Piéroni raphaelpier...@gmail.com Hi Folks, Some updates, I retried on mac osx JAVA6 (i was on winXP JAVA5) and it works fine. I have 2 hypothesys on my problem : - OS but i don't believe it - Java version but i don't believe also Raphaël Le 10 novembre 2009 12:36, Raphaël Piéroni raphaelpier...@gmail.com a écrit : Hello folks, In my map view i haveNOimagedisplayed. I did get an apiKey from my keystore fingerprint. I using the ant script that affirms to sign the apk with the same keystore. I have proper permissions and library usage. But still I gotnoimage. If anyone has a clue for displaying the map in my simulator i will be very happy. Regards, Raphaël Extracts from the manifest : ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android android:versionCode=1 android:versionName=1.0 *uses-permission android:name=android.permission.INTERNET / uses-permission android:name=android.permission.ACCESS_FINE_LOCATION / uses-permission android:name=android.permission.ACCESS_LOCATION_EXTRA_COMMANDS / uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION /* uses-sdk android:minSdkVersion=5 / application
[android-beginners] Cannot get versionName when it set with string reference
Hi, all I've read the android document and it say that manifest's android:versionName can be set with string reference. but when I set it as following: android:versionName=@string/version and in strings.xml I wrote: string name=version1.2.7/string and try to read it by code: PackageInfo pinfo = getPackageManager().getPackageInfo (getPackageName(), 0); return pinfo.versionName; I got a null string. but it can be read when I use raw-string: android:versionName=1.2.7 How can I get the correct versionName when it used reference? thanks. -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: support of jdbc for sqlite
hi manigault android does come with an unofficial JDBC driver, please see http://groups.google.com/group/android-developers/browse_thread/thread/cf3dea94d2f6243c# Kris On Nov 12, 7:15 pm, manigault manig...@gmail.com wrote: Hi, can i open connection tosqlitedatabase usingJDBCand use all the classes that are in java.sql or i have to use SQLiteOpenHelper.getWritableDatabase() and use android.database.sqlite -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Preventing snapshot preview on Camera.takePicture() ?
After taking a photo with: Camera.takePicture(...); the live preview begun with: Camera.startPreview(); is replaced with a preview image of the snapshot just taken. Currently I'm halting the camera preview and restarting it again after the snapshot preview is brought up on screen with: Camera.stopPreview(); and Camera.startPreview(); again However, I don't want to display the snapshot preview at all (rather, I just want to display a picture taken/saved icon over the live preview, on completion) - is there any way to prevent this behaviour? or, if not, is there a better way to handle this - or is stopping and starting the preview the correct way to go? Phone used is the HTC G1 (dev). I would appreciate a nudge in the right direction, or a link, if I've failed to find something obvious thus far! Thanks :) -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Getting android.view.WindowManager$BadTokenException alternatively
Hi, I am trying to write a small game application in Android. Following error is seen when I try to do showDialog(). When I launch the emulator and start the game the first time it works fine. Then, the second time, it fails with the error. And 3rd, 5th, 7th time it works fine. Whereas it fails 4th,6th, 8th time and so on... I do not have any clue why it is happening. Please help. May be the exception is cleaning up something and the next time the application works fine. Code snippet is below. I am not doing any cleanup in onDestroy() method as of now. -- Code GameActivity.onCreateDialog() start -- public Dialog onCreateDialog(int id) { AlertDialog ad = null; AlertDialog.Builder builder = new AlertDialog.Builder(this); ad = builder.create(); this.id = id; if(id == Consts.WINNER_DIALOG_ID) ad.setMessage(player[winnerId]+ is the winner); else if(id == Consts.TIE_DIALOG_ID) ad.setMessage(It's a tie); ad.setButton(OK, new DialogInterface.OnClickListener() { public void onClick(DialogInterface di, int i) { ((GameActivity)mContext).finish(); } }); return ad; } -- Code GameActivity.onCreateDialog() end -- -- Exception start here -- 12-14 08:25:40.166: WARN/WindowManager(52): Attempted to add application window with unknown token HistoryRecord{433b63b8 {com.abcd.android.examples/com.abcd.android.examples.GameActivity}}. Aborting. 12-14 08:25:40.176: DEBUG/AndroidRuntime(169): Shutting down VM 12-14 08:25:40.186: WARN/dalvikvm(169): threadid=3: thread exiting with uncaught exception (group=0x4000fe68) 12-14 08:25:40.186: ERROR/AndroidRuntime(169): Uncaught handler: thread main exiting due to uncaught exception 12-14 08:25:40.216: ERROR/AndroidRuntime(169): android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.binderpr...@4338 is not valid; is your activity running? 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.ViewRoot.setView(ViewRoot.java:384) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:90) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.Window$LocalWindowManager.addView(Window.java:393) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.app.Dialog.show(Dialog.java:212) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.app.Activity.showDialog(Activity.java:2277) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at com.abcd.android.examples.ImageAdapter.clicked(ImageAdapter.java:115) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at com.abcd.android.examples.ImageAdapter$1.onClick(ImageAdapter.java: 149) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.View.performClick(View.java:2129) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.View.onTouchEvent(View.java:3543) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.View.dispatchTouchEvent(View.java:3198) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at com.android.internal.policy.impl.PhoneWindow $DecorView.superDispatchTouchEvent(PhoneWindow.java:1593) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent (PhoneWindow.java:1089) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.app.Activity.dispatchTouchEvent(Activity.java:1871) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at com.android.internal.policy.impl.PhoneWindow $DecorView.dispatchTouchEvent(PhoneWindow.java:1577) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.ViewRoot.handleMessage(ViewRoot.java:1140) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.os.Handler.dispatchMessage(Handler.java:88) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.os.Looper.loop(Looper.java:123) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.app.ActivityThread.main(ActivityThread.java:3739) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at
[android-beginners] I want to create an app for work orders - HELP
I am an engineer for a small IT consulting company. we have a work order form that we email to a distribution group and the client. how would I go about doing this on our moto driod phone? i downloaded the sdk and have little programming but willing to learn. I have done access database and some vb work. We use exchange 2007 so I could use smtp, imap4 or activesync to send the info. the fields are Date Arrival Time - maybe able to be done as a stopwatch Departure Time Company - this could be a lookup somehow address1 address2 city state zip contact email Work Done - Parts/Price Follow up info Technician - another lookup Other thoughts are multiple open work orders for phone calls while multitasking. How would I go about doing this? -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Android EMail Client
msysGit for Windows works pretty well. Here is a good setup tutorial. http://github.com/guides/using-git-and-github-for-the-windows-for-newbies -adam On Dec 13, 11:41 am, SandVoiD mitchell.ros...@gmail.com wrote: Could someone please tell me how I can get a copy of theemailclient for a project I want to work on. I have windows and the only way I have found is to use git/repo but I do not have linux system or mac. Any help would be appreciated. Thanks -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] ADB and T-Mobile Pulse on Windows
I am having the same problem. I have T-Mobile Pulse device, drivers are installed, but ADB can not see it when it is connected. Has anyone been able to solve this? On Oct 18, 9:02 am, Joshua Schwartz joshuaaschwa...@googlemail.com wrote: I have just bought a t-mobilepulse, and am having a few issues with it. One of which If I try to connect to adb shell (or any other adb function by that matter) I get the following: C:\androidsdk\android-sdk-windows-1.5_r3\toolsadb shell * daemon not running. starting it now * * daemon started successfully * error: device not found I have had this on both 1.5_r3 and 1.6 As far as I am aware the device is installed as adb in devide manager - adb interface - t-mobile 3g phone adb interface. I have windows xp, but can try this on vista, if it is thought to work better, and the device runs on Android 1.5. Any ideas? Thanks -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Serial over Bluetooth
I'm learning Android quickly but I'm still very much a newbie. Once I'm up to speed, I have a project in mind that I'd like to try with my new Droid. I want to interface it with a robot. I'm brand new to Android development, though I've been doing electronics for some time now. One of the recent trends in hobby robotics is adding wireless control, often using Bluetooth as a wireless serial communication medium. Does anyone out there know if I can use the Motorola Droid's onboard Bluetooth capabilities (or any Android phone for that matter) to communicate with a home-brew Bluetooth device? That is, can I manually roll my own serial protocol using the existing Bluetooth framework? I know it's a weird question but hey - I'm a weird guy. Thanks for any and all ideas! -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] My game force closes when calling a class i made..
I am creating a simple little pong style game, so far the the code setup is based off of the lunar lander code...that is to say the canvas drawing is done in a seperate thread. I created a simple simple simple class within the cavas drawing thread: public class anim_helper{ private int frame; private int frame_max; private int fps; private long time_start; public anim_helper(Context context, AttributeSet attrs) { super(); } public boolean start_anim_timer(int nfps,int nframe_max){ return true; } public int getframe(){ return (0); } } But when ever i call any of these methods the game force closes before even entering the class structure.I am sure what i am doing wrong must be simple, i have Zero java programming experiance please help. -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Audio capabilities
Hey all, I have done a little searching about the capabilities of the audio in Android. I have a love for iPhone music apps like BeatMaker, iDrum, and more. I would love to work on something like this, but I fear from what I've read even in Android 2.0 there is nowhere near the capabilities on Android devices as there is on iPhone for audio apps this sophisticated. My first thought is, to mix all the audio myself in software, then use the single audio output to play my own mixed audio tracks. That would at least avoid the issue of trying to play multiple sounds at once using the Android audio engine. Has anyone done something like this.. if so how has it worked out? I would hope that the 600Mhz cpu would have plenty of power to do this while keeping somewhat accurate timing resolution to play music back in real-time. However, I have yet to see any music app on my Moto Droid that doesn't have significant lag from the time you press a button to the time the sound comes out. Are we just hosed right now on Android for any potential music app? -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] Basic SMS
Check out this link http://www.anddev.org/how_to_send_sms-t552.html Its what I used to write my first SMS program. On Fri, Dec 11, 2009 at 4:15 PM, jmccarthy jmccarth...@gmail.com wrote: There are a couple things I'm not sure how to do. 1. How can I read incoming or recieved SMS messages? I don't see an intent listed for 'sms received' or anything of the like. Or do I have to read an SMS database/content somewhere? Seems like this should be fairly simple. 2. I want to know if I can make the phone think it recieved an SMS -- Can I say, have an app write an sms and broadcast it to the phone, which would then take it in its native SMS app as if it received it OTA? Really appreciate any help with this, or insight in how SMS access works. -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: adb push ..... system/lib
Hi, when I try to run adb shell, I get permitted denied. On Dec 14, 5:30 pm, Jeffrey Blattman jeffrey.blatt...@gmail.com wrote: do you have /system mounted read / write?http://android-tricks.blogspot.com/2009/01/mount-filesystem-read-writ... On 12/10/09 7:30 PM, me,Ramesh Yankati wrote: Hi Have you installed USB driver??. Regards Ramesh On 12/11/09, Zlate87zlatko.stama...@gmail.com wrote: Hi, I'm trying to install voice search to my t-mobile pulse. However I run in to a problem, I need to run this command adb push C: \libspeech.so system/lib, but I get error: read-only file system. I read that adb remount will help, but when I run it, I get this error: operation not permitted. I also read that adb root will help, but when I run it, I get this error: adbd cannot run as root in production builds. I have enabled USB debugging in Settings-Applications- Development. Can someone please help me? Thanks in advance :) Regards, Zlatko Stamatov -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- qr-gmail.png 1KViewDownload -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Bridging the gap between Java and Linux/C
Hi I have an engine type application written in portable C++ that I would like to port to Android and then add a UI to interact with it. Every book I've looked at on amazon relating to Android development just concentrates on writing Apps using Java. And I can find books elsewhere about Linux 2.6 Kernal development. But I've not been able to find anywhere (including in the Android documentation) about how to link the two layers together. Is there somewhere that describes how to add services in the kernel and make them available to the Java layer for apps to use? Thanks -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: ERROR: the user data image is used by another emulator. aborting
I'm getting the same issue. I've read, in several places, to keep the emulator running (which is good because the emulator takes FOREVER to start up). It's a pain when I want to check a small code change Any thoughts? On Nov 1, 11:34 pm, kk_Kiran simplyurki...@gmail.com wrote: Hi, Can anybody help me in getting rid of this annoying error. ERROR: the user data image is used by another emulator. aborting I frequently get this error while testing my application on emulotor. As of my readings the only solution is close the emulotor and restart it. This has become very annoying activity now as the frequency of doing this is very high. Also emulator takes its own time to start. Please help. -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: SDK : how can I get result from the dialer ?
Dear Android Beginners Group, I am also wondering if it's possible to get a result from the dialer. It seems that when you press the hangup button, the phone locks. There's an issue about it here: http://code.google.com/p/android/issues/detail?id=3455#c4 I'm using this code String num1 = tel:333; Intent intent; intent = new Intent(Intent.ACTION_DIAL, Uri.parse(num1)); startActivityForResult(intent, 0); Thank you very much for your time. On Nov 9, 2:42 am, kapsicom kapsy...@gmail.com wrote: Hello, I'm trying to start thedialerand to continue my work after the call is ended. I'm doing this : protected void onResume() { Intent call = new Intent(Intent.ACTION_DIAL); startActivityForResult(call, 0 );} protected void onActivityResult(int requestCode, int resultCode, Intent data) { if ( requestCode == 0 ) { ... } } But it doesn't work. The log says that Activity is launching as a new task, so cancelling activityresult. Also, the doc for startActivityForResult states that this method should only be used with Intent protocols that are defined to return aresult. So it seems that the ACTION_DIAL is not defined to return aresult... So how can I know if the user has made a call ? (Couldn't find a convenient CALL_STATE to listen either) -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Delphi app to Android: New to Java...
Monday - December 14th, 2009 Oklahoma Hello everyone, I have a calculator type app that I've developed in Delphi. I want to make an Android app out of it but I've never programmed in Java. I installed Eclipse, got the Android plug-in, the SDK and all that. I've also set-up my AVD in Eclipse and did the 'Hello World' thingy. I'm about to try to go through that 'Notepad' program too. I'm not sure if I need to just try my best at 'learning while doing' using Android examples or if I should just drop every thing and start at square one with a JAVA for beginners book. Has anyone out there been in my shoes? Ya know, had an app in another language and then had to learn Java and Android and were successful at creating an app and putting it in the Android Market? I sure would like to get some hints and comments about what would be the best way for me to go. Note: ( I'll tell ya what, if any of you know of a good 'Android Simple Calculator' example - I'm sure that would get me off to a good start ) Help please... ajb -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] start another activity through onclick event
hi, I had 2 activity (called androidGallery and HelloAndroid). i try to call helloAndroid from the androidGallery when user click on the button. basically, androidGallery is just to get the onclick event. The helloAndroid activity will set the text of a textview. however, i cant get it working. Once i click the button, a dialog box pop up saying that the application has been stopped unexpectedly with a force close button. Can anyone help me with it? androidGallery.java : package testt.android.androidgallery; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; public class androidGallery extends Activity { private Button btnclickme; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); final Button button = (Button) findViewById(R.id.button_id); button.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { // Perform action on click Intent myIntent = new Intent(androidGallery.this, helloAndroid.class); androidGallery.this.startActivity(myIntent); } }); } } helloAndroid.java : package test.android.androidgallery; import java.io.BufferedInputStream; import java.io.InputStream; import java.net.URL; import java.net.URLConnection; import java.util.ArrayList; import java.util.List; import org.apache.http.util.ByteArrayBuffer; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.widget.TextView; public class helloAndroid extends Activity{ /** Called when the activity is first created. */ public void onCreate(Bundle savedInstanceState) { // super.onCreate(savedInstanceState); // setContentView(R.layout.main); String a = hello Lynn; super.onCreate(savedInstanceState); TextView tv = new TextView(this); tv.setText(a); setContentView(tv); } } -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Help finding documentation for actions in the manifest file
Anybody have any ideas on this? All I'm asking is how is one supposed to find this documentation in the SDK Docs? Thanks, Joe On Thu, Dec 10, 2009 at 11:37 AM, Joe Mihalich jmihal...@gmail.com wrote: Hi, This has been killing me. I finally found examples around the net for things I wanted to experiment with. I had to go searching cuz I could find this information anywhere in the API Docs. I got one answered, but I need help with the other. 1) For listening for broadcast SMS messages through a broadcast receiver, I see that you have to defined the action, for the intent in the broadcast receiver element as: receiver android:name=.myClassName intent-filter action android:name= android.provider.Telephony.SMS_RECEIVED / /intent-filter First, where is that name android.provider.Telephony.SMS_RECEIVED defined? How am I supposed to track that down in the API Doc? There is no android.provider.Telephony class or package. Second, in the code for receiving the actual broadcast, I see you need to do something like this to get the message(s). Object[] pdus = (Object[]) bundle.get(pdus); Where is it defined that the extra name in the bundle is pdus for SMS messages. Thanks, Joe -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Android 2.0 SDK is here!
hi xavier, give me the suggestions to a beginner in android development. -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Hi There
Hi there. -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: adb push ..... system/lib
Sorry if the answer is simple, but I'm new at this. What are ADP1, ADP2 and ADP. I'm not developing, I need to run adb push in order to get the google voice search working. On Dec 12, 1:01 am, Ryan Beesley ryan.bees...@swypeinc.com wrote: You need a non-retail device for something like that. ADP1 or ADP2. It may be possible to root that device, I don't know, but this is the sort of reason the developers use ADP devices. /Ryan -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Zlate87 Sent: Thursday, December 10, 2009 5:36 PM To: Android Beginners Subject: [android-beginners] adb push . system/lib Hi, I'm trying to install voice search to my t-mobilepulse. However I run in to a problem, I need to run this command adb push C: \libspeech.so system/lib, but I get error: read-only file system. I read that adb remount will help, but when I run it, I get this error: operation not permitted. I also read that adb root will help, but when I run it, I get this error: adbd cannot run as root in production builds. I have enabled USB debugging in Settings-Applications- Development. Can someone please help me? Thanks in advance :) Regards, Zlatko Stamatov -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: SDK : how can I get result from the dialer ?
Actually, I think what I meant to ask was: how to I get the dialer to go to a different activity once the user hangs up? I'm now using ACTION_CALL rather than ACTION_DIAL and now the dialer immediately gets started, but, it seems that once the dialer starts, the code continues running as seen by text.setText(lolz); immediately running and then the dialer popping up. String num1 = tel:333; Intent intent; intent = new Intent(Intent.ACTION_CALL, Uri.parse(num1)); startActivityForResult(intent, 0); text.setText(Lolz); Basically, I'm just wondering if there's any way to pause the application, go into calling mode once the user presses the hang up button or the back button, hang up and display a different activity? Thank you for your time. -Sean Neilan On Nov 9, 2:42 am, kapsicom kapsy...@gmail.com wrote: Hello, I'm trying to start thedialerand to continue my work after the call is ended. I'm doing this : protected void onResume() { Intent call = new Intent(Intent.ACTION_DIAL); startActivityForResult(call, 0 );} protected void onActivityResult(int requestCode, int resultCode, Intent data) { if ( requestCode == 0 ) { ... } } But it doesn't work. The log says that Activity is launching as a new task, so cancelling activityresult. Also, the doc for startActivityForResult states that this method should only be used with Intent protocols that are defined to return aresult. So it seems that the ACTION_DIAL is not defined to return aresult... So how can I know if the user has made a call ? (Couldn't find a convenient CALL_STATE to listen either) -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Trouble installing from SDK and AVD Manager: access denied unzipping
Problem solved. Changing from https to http in settings fixed this problem. On Dec 9, 8:20 pm, Rick Jones fjjone...@gmail.com wrote: I have successfully installed and am using sdk API's 2-5 and google api level 5 from within eclipse. However, I am unable to install other updates (such as API 6 and, more importantly, the USB driver package) with errors such as Unzip failed: C:\Program Files\eclipse \android-sdk-windows\temp \ExtraPackage.new01\i386\WinUSBCoInstaller.dll (Access is denied). Has anyone seen this before? I don't know what, if anything would be preventing access to these files. I am not out of disk space or running multiple IDE's or anything like that. I am running under Windows 7, but I have seen issues like this on another XP machine as well. -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] stream internet radio
hi,,, i' need some simple code to stream my radio station ...vulive.co.uk -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Issue Launching Emulator from Command Line
Hi, I am facing problem while launching the emulator from command line. When i run following command: ~/Android/SDK/android-sdk-linux_86/tools/emulator -system ~/Android/ Code/out/target/product/generic/system.img -kernel ~/Android/Code/ prebuilt/android-arm/kernel/kernel-qemu -data ~/Android/Code/out/ target/product/generic/userdata.img I see emulator starting-up with buttons and ANDROOID_ ( '_' Blinks ), and it never boots. adb devices - Shows device offline. Following command Launches Emulator successfully, but without any button: ~/Android/SDK/android-sdk-linux_86/tools/emulator -system ~/Android/ Code/out/target/product/generic/ -kernel ~/Android/Code/prebuilt/ android-arm/kernel/kernel-qemu -data ~/Android/Code/out/target/product/ generic/userdata.img This shows just the Display Area and no button. I have taken latest code from the Main Branch, and SDK from the Android site. I have run ~/Android/SDK/android-sdk-linux_86/tools/android and installed all the components. To compile the code I have used maks sdk command. Please help me to launch successfully. Regards Rana -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re:
The directional keypad on the physical keyboard. Center = the center button. On Dec 15, 12:38 pm, saurabh sinha saurso...@gmail.com wrote: I am confused in camera application what is use of DPAD_CENTER public boolean onKeyDown(int keyCode, KeyEvent event) { ImageCaptureCallback iccb = null; if(keyCode == KeyEvent.KEYCODE_DPAD_CENTER) { try { String filename = timeStampFormat.format(new Date()); ContentValues values = new ContentValues(); values.put(Media.TITLE, filename); values.put(Media.DESCRIPTION, Image capture by camera); Uri uri = getContentResolver().insert(Media.EXTERNAL_CONTENT_URI, values); //String filename = timeStampFormat.format(new Date()); iccb = new ImageCaptureCallback( getContentResolver().openOutputStream(uri)); } catch(Exception ex ){ ex.printStackTrace(); Log.e(getClass().getSimpleName(), ex.getMessage(), ex); } } if (keyCode == KeyEvent.KEYCODE_BACK) { return super.onKeyDown(keyCode, event); } if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER) { camera.takePicture(mShutterCallback, mPictureCallbackRaw, iccb); return true; } return false; } what is use of Keycode_dpad_center which key is used for dpad_center -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] How to develop Arabic to English Dictionary in Android
Hi All, Can you please provide a code snippet on how develop dictionay in android. Is arabic to english and vice-versa is possible in Android. If So how?? Thanks in Advance Kumar -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] C#.NET program compatibility
Dear Friends, I want to ask if there is some way to make a C#.Net program work on android devices. My C# program uses USB port and SQL server 2005 database. This is running perfect on windows envoironment. I want to know if there is the way to use the code of C#.NET in Android OS. I am new here and very keen to study Android OS. Thank You. -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Android Map API Key
Hi all, I just start android app development few days ago since im quite excited with the google map. But i find problem finding the map api key for using it in my app. As i know, i need to register the MD5 fingerprint from debug.keystore. However, i have no clue of finding this file in my computer. FYI, i use eclipse for my development and all the SDK, JRE are installed. Please help me on this! Thanks. -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] make call from app go directly back to app after call hangup?
Is it possible to make a call from an application and as soon as the user hangs up, go directly back to wherever the user was in the application without viewing any of the call screens that show when you hang up? -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Must I restart the emulator on code changes?
I'm using Eclipse as my IDE and I can start the emulator and test code without issue (although it takes FOREVER to start up). I've read that I should keep the emulator running and retest code changes but, when I try, I get the following error: Emulator]emulator: ERROR: the user data image is used by another emulator. aborting Any thoughts? -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Seeing What Phone Numbers Are Around You
Hi group, I have an idea, and I was wondering if it was possible to see what phone numbers are around a single phone. For example, if I am a Motorola Droid, and there is a Motorola Droid 2 feet away from me, I want to be able to see what phone number that Droid has. Anyone have any ideas, or links to point me in the right direction? Thanks! -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Android - Calling Webservice of .Net
Hi, I want to call one web services made in .Net. I want to consume this server in my Android application. The method inside Web service will accept one parameter. I want to pass some value from my application and later want the response that is given by web service. I have tried many options but facing problem. Need help. Do any one have sample sources , URL , resources? Please send it to me. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners]
It's the directional pad on the physical keyboard. Center button. On Tue, Dec 15, 2009 at 12:38 PM, saurabh sinha saurso...@gmail.com wrote: I am confused in camera application what is use of DPAD_CENTER public boolean onKeyDown(int keyCode, KeyEvent event) { ImageCaptureCallback iccb = null; if(keyCode == KeyEvent.KEYCODE_DPAD_CENTER) { try { String filename = timeStampFormat.format(new Date()); ContentValues values = new ContentValues(); values.put(Media.TITLE, filename); values.put(Media.DESCRIPTION, Image capture by camera); Uri uri = getContentResolver().insert(Media.EXTERNAL_CONTENT_URI, values); //String filename = timeStampFormat.format(new Date()); iccb = new ImageCaptureCallback( getContentResolver().openOutputStream(uri)); } catch(Exception ex ){ ex.printStackTrace(); Log.e(getClass().getSimpleName(), ex.getMessage(), ex); } } if (keyCode == KeyEvent.KEYCODE_BACK) { return super.onKeyDown(keyCode, event); } if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER) { camera.takePicture(mShutterCallback, mPictureCallbackRaw, iccb); return true; } return false; } what is use of Keycode_dpad_centerwhich key is used for dpad_center -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] eclipse can't find emulator
Hi, I've just installed eclipse and the android SDK as instructed in the developers guide. When running the 'Hello Android' application I get the following error: [2009-12-15 13:15:51 - HelloAndroid]-- [2009-12-15 13:15:51 - HelloAndroid]Android Launch! [2009-12-15 13:15:51 - HelloAndroid]adb is running normally. [2009-12-15 13:15:51 - HelloAndroid]Performing com.example.helloandroid.HelloAndroid activity launch [2009-12-15 13:15:51 - HelloAndroid]Automatic Target Mode: Preferred AVD 'my_avd' is not available. Launching new emulator. [2009-12-15 13:15:52 - HelloAndroid]Launching a new emulator with Virtual Device 'my_avd' [2009-12-15 13:15:52 - Emulator]emulator: ERROR: unknown virtual device name: 'my_avd' [2009-12-15 13:15:52 - Emulator]emulator: could not find virtual device named 'my_avd' I run Vista 32 bit and the path for the avd library is:C: \.android The path for the SDK is: C:\Program Files\android-sdk-windows The path for my workspace is: C: \Eclipse\workspace In eclipse under Run - Run configurations.. - Android Application - HelloAndroid the Automatic target deployment mode as well as my_avd is selected. -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Wanting to start and would like a good book. Suggestions?
I'm more of a hardware guy myself so I'm familiar with C/C++, but have no Java or XML experience to speak of. I picked up the O'Reilly book on Android development and so far it's been great. I had some issues getting Eclipse to work, but then I can't remember a time when setting up Eclipse was NOT painful. I got the first Hello Android app working in minutes (once Eclipse worked), and in the next chapter I'll be playing with the map features. I'm still working my way through it so I can't give a coherent review, but so far I'm really glad I bought it. On Dec 10, 1:52 am, Jay Swartzfeger swartzfe...@gmail.com wrote: I started out much like you -- I'm basically a LAMP guy with HTML and SQL experience, a smattering of XML and general scripting stuff. No real programming experience to speak of, but I do have a general understanding of basic programming concepts. Check out Hello, Android by Pragmatic Programmers. Excellent book. On Tue, Dec 8, 2009 at 7:29 AM, Subjective Effect subjective.eff...@gmail.com wrote: Hi, I'm very interested in learning to develop apps for Android and I've been reading all about it and reading lots of the info here on Google. My background: I've got some experience using PHP, JavaScript, HTML, mySQL (SQL and Oracle) and I've created a few sites with PHP/Apache/ mySQL as well as the old HTML/CSS stuff. I did some work with ASP/ Visual Basic about 10 years ago and although the details will be out of date my point is I know a little programming. I've no experience with Java or C/C++ or XML though (although XML isn't totally alien to me - it's often mentioned in the books I used for HTML). What I'd like is a nice book for beginners for Android. Has anyone any suggestions? I've look at reviews for a few books and I'm usually a fan of O'Reilly stuff but the reviews for their Android stuff aren't too encouraging. Thanks for any help Subjective Effect -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- Jay Swartzfegerhttp://www.swartzfeger.com/ -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] ImageView alpha fade to transparent vs. fade to black
Greetings! I have searched this group, read the Common Tasks FAQ, searched elsewhere, to no avail. Here's what I've got working so far. Pardon the obvious lack of refactoring. Right now I'm in the make it work phase of things (vs. make it right and make it fast grin): For starters, we have a basic, tire-kicking type of Android 2.0 app. Main layout (XML) is a simple LinearLayout with two views, an ImageView and a WebView. Both use fill_parent for width + height. ImageView appears on top of WebView, z-order wise. (Done/working.) An anim(ation) resource for fadeout has also been created, using accelerate_decelerate_interpolator. All it does is run the alpha down from 1.0 to 0.0, using config_longAnimTime. (Done/working.) A given Activity (that also implements AnimationListener) is initialized with the aforementioned main layout. Thus, once this particular Activity kicks in, you start off by seeing just the ImageView. Meanwhile, the WebView is asked to load a particular URI. When onPageFinished is called, we see if the ImageView is visible. (Done/working.) If ImageView is visible, we create an Animation object, loading our trusty fadeout via loadAnimation. We set up an animation listener (keep reading) and kick off the fadeout on our ImageView. (Done/ working.) Once onAnimationEnd is called (remember, we 'set up us the listener') we set the ImageView's visibility to View.GONE. (Yes, we should very likely remove the view entirely since we never need it again, but bear with me - I'm starting off with make it work - still finding our way around town in this regard!) (Done/working.) Here's the part that is NOT working - or at least it's not working as expected/desired. The animation is fading the ImageView, but it's fading to black instead of fading to transparent. We want to fade in such a way that we reveal the WebView lurking beneath it - our desired effect if you will. What's happening now is, you see the image fade to black, then the view is hidden (View.GONE), thus at that point the now-black display disappears, and POP - there's our web view. Ah-ha, you (might?) say, use a transparent background color! Then it fades to transparent and you're all set. Sure enough, that's what I tried next, adjusting the ImageView's XML to use a background color of transparent (@android:color/transparent IIRC) … and it STILL fades to black. Thus, I suspect I'm doing something blatantly wrong but can't put my finger on why. Clues welcome/appreciated. Thank you! - JD -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Getting android.view.WindowManager$BadTokenException alternatively
Hi, I am trying to write a small game application in Android. Following error is seen when I try to do showDialog(). When I launch the emulator and start the game the first time it works fine. Then, the second time, it fails with the error. And 3rd, 5th, 7th time it works fine. Whereas it fails 4th,6th, 8th time and so on... I do not have any clue why it is happening. Please help. May be the exception is cleaning up something and the next time the application works fine. Code snippet is below. I am not doing any cleanup in onDestroy() method as of now. -- Code GameActivity.onCreateDialog() start -- public Dialog onCreateDialog(int id) { AlertDialog ad = null; AlertDialog.Builder builder = new AlertDialog.Builder (this); ad = builder.create(); this.id = id; if(id == Consts.WINNER_DIALOG_ID) ad.setMessage(player[winnerId]+ is the winner); else if(id == Consts.TIE_DIALOG_ID) ad.setMessage(It's a tie); ad.setButton(OK, new DialogInterface.OnClickListener () { public void onClick(DialogInterface di, int i) { ((GameActivity)mContext).finish(); } }); return ad; } -- Code GameActivity.onCreateDialog() end -- -- Exception start here -- 12-14 08:25:40.166: WARN/WindowManager(52): Attempted to add application window with unknown token HistoryRecord{433b63b8 {com.abcd.android.examples/com.abcd.android.examples.GameActivity}}. Aborting. 12-14 08:25:40.176: DEBUG/AndroidRuntime(169): Shutting down VM 12-14 08:25:40.186: WARN/dalvikvm(169): threadid=3: thread exiting with uncaught exception (group=0x4000fe68) 12-14 08:25:40.186: ERROR/AndroidRuntime(169): Uncaught handler: thread main exiting due to uncaught exception 12-14 08:25:40.216: ERROR/AndroidRuntime(169): android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.binderpr...@4338 is not valid; is your activity running? 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.ViewRoot.setView(ViewRoot.java:384) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:90) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.Window$LocalWindowManager.addView(Window.java:393) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.app.Dialog.show(Dialog.java:212) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.app.Activity.showDialog(Activity.java:2277) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at com.abcd.android.examples.ImageAdapter.clicked(ImageAdapter.java:115) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at com.abcd.android.examples.ImageAdapter$1.onClick(ImageAdapter.java: 149) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.View.performClick(View.java:2129) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.View.onTouchEvent(View.java:3543) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.View.dispatchTouchEvent(View.java:3198) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at com.android.internal.policy.impl.PhoneWindow $DecorView.superDispatchTouchEvent(PhoneWindow.java:1593) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent (PhoneWindow.java:1089) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.app.Activity.dispatchTouchEvent(Activity.java:1871) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at com.android.internal.policy.impl.PhoneWindow $DecorView.dispatchTouchEvent(PhoneWindow.java:1577) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.ViewRoot.handleMessage(ViewRoot.java:1140) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.os.Handler.dispatchMessage(Handler.java:88) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.os.Looper.loop(Looper.java:123) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.app.ActivityThread.main(ActivityThread.java:3739) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at
[android-beginners] Re: adb push ..... system/lib
Hi Ryan, Thanks, I found a page with online guides on how to root my Pulse: http://android.modaco.com/content/t-mobile-pulse-pulse-modaco-com/294178/11-12-1-4-rooting-the-pulse-introducing-superboot/ Now I have to work :), but I'll try it this days and write a feedback. Best Regards, Zlatko On Dec 15, 3:07 am, Ryan Beesley ryan.bees...@swypeinc.com wrote: I'm pretty sure this problem is that the phone doesn't have root access. This isn't the ADP1, it is the Pulse. adb remount accomplishes the same thing as what is mentioned in the link. There are some online guides on how to root the Pulse, but if you are doing development work, you'd be better off with an ADP1 or ADP2. /Ryan From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Jeffrey Blattman Sent: Monday, December 14, 2009 8:31 AM To: android-beginners@googlegroups.com Subject: Re: [android-beginners] adb push . system/lib do you have /system mounted read / write?http://android-tricks.blogspot.com/2009/01/mount-filesystem-read-writ... On 12/10/09 7:30 PM, me,Ramesh Yankati wrote: Hi Have you installed USB driver??. Regards Ramesh On 12/11/09, Zlate87 zlatko.stama...@gmail.commailto:zlatko.stama...@gmail.com wrote: Hi, I'm trying to install voice search to my t-mobile pulse. However I run in to a problem, I need to run this command adb push C: \libspeech.so system/lib, but I get error: read-only file system. I read that adb remount will help, but when I run it, I get this error: operation not permitted. I also read that adb root will help, but when I run it, I get this error: adbd cannot run as root in production builds. I have enabled USB debugging in Settings-Applications- Development. Can someone please help me? Thanks in advance :) Regards, Zlatko Stamatov -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.commailto:android-beginn...@googlegroups.co m To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.commailto:android-beginners+uns ubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- [cid:image001@01CA7CE8.082C0540] -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-beginners?hl=en image001.png 1KViewDownload -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] Geopoint not giving the correct location
more than the icon missing , what is concerning is that Geopoint is not showing the correct location. I know it is Tulsa bcoz i can see the map/street view. thanks. any pointers will help. On Dec 10, 2009 1:05 AM, TreKing treking...@gmail.com wrote: If the icon is missing how do you know it's pointing to Tulsa? Have you zoomed out all the way to see if you see the icon *somewhere* ? - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking On Mon, Dec 7, 2009 at 12:59 AM, Sunil Menon menon1...@gmail.com wrote: Hi, I am using An... -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Intent return string - split into variables ?
I am working with the zxing intent. I have this much working but I want to be able to split the string into an array and then a key = var relationship to enter into text fields. for example I have the following returned: Name:Matthew Pickachue;Address:111 Wish I knew java and android better, Waybetter, MI, 49111;Phone: 8052033180;Note:blahblahblahblahblahblahblahblahblahblahblahblahblahblahblah and I want the it to end up like: outputname=(TextView)findViewById(R.id.name); outputname.setText(Name); outputaddress=(TextView)findViewById(R.id.address); outputaddress.setText(Address); and so on. There maybe a better way to do this I would assume but not sure how. Please any assistance would help. Here is what I have so far: public void onActivityResult(int requestCode, int resultCode, Intent intent) { if (requestCode == 0) { if (resultCode == RESULT_OK) { String contents = intent.getStringExtra(SCAN_RESULT); String format = intent.getStringExtra (SCAN_RESULT_FORMAT); setContentView(R.layout.form2); TextView outpformat; outpformat=(TextView)findViewById(R.id.widget433); outpformat.setText(contents); } -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] C#.NET program compatibility
Currently, no. There is no way to get .Net code to run on Android, other than a web application. Ryan On Tue, Dec 15, 2009 at 11:46 AM, J Imran muhammad.imr...@gmail.com wrote: Dear Friends, I want to ask if there is some way to make a C#.Net program work on android devices. My C# program uses USB port and SQL server 2005 database. This is running perfect on windows envoironment. I want to know if there is the way to use the code of C#.NET in Android OS. I am new here and very keen to study Android OS. Thank You. -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
RE: [android-beginners] Re: adb push ..... system/lib
ADP1 and ADP2 are the Android Dev Phones. You can see more about them here: http://android.brightstarcorp.com/index.htm If you are going to be doing development work, these are the reference devices to use. /Ryan -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Zlate87 Sent: Monday, December 14, 2009 11:29 AM To: Android Beginners Subject: [android-beginners] Re: adb push . system/lib Sorry if the answer is simple, but I'm new at this. What are ADP1, ADP2 and ADP. I'm not developing, I need to run adb push in order to get the google voice search working. On Dec 12, 1:01 am, Ryan Beesley ryan.bees...@swypeinc.com wrote: You need a non-retail device for something like that. ADP1 or ADP2. It may be possible to root that device, I don't know, but this is the sort of reason the developers use ADP devices. /Ryan -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Zlate87 Sent: Thursday, December 10, 2009 5:36 PM To: Android Beginners Subject: [android-beginners] adb push . system/lib Hi, I'm trying to install voice search to my t-mobilepulse. However I run in to a problem, I need to run this command adb push C: \libspeech.so system/lib, but I get error: read-only file system. I read that adb remount will help, but when I run it, I get this error: operation not permitted. I also read that adb root will help, but when I run it, I get this error: adbd cannot run as root in production builds. I have enabled USB debugging in Settings-Applications- Development. Can someone please help me? Thanks in advance :) Regards, Zlatko Stamatov -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] Getting android.view.WindowManager$BadTokenException alternatively
Check your code for context and change getApplicationContext(); to this I Guess your context assignment is Context context = getApplicationContext(); // this give you the bad token error. change it to: *Context context = this;* // this assignment will remove your bad token exception. On Tue, Dec 15, 2009 at 8:27 AM, Ronin akpra...@gmail.com wrote: Hi, I am trying to write a small game application in Android. Following error is seen when I try to do showDialog(). When I launch the emulator and start the game the first time it works fine. Then, the second time, it fails with the error. And 3rd, 5th, 7th time it works fine. Whereas it fails 4th,6th, 8th time and so on... I do not have any clue why it is happening. Please help. May be the exception is cleaning up something and the next time the application works fine. Code snippet is below. I am not doing any cleanup in onDestroy() method as of now. -- Code GameActivity.onCreateDialog() start -- public Dialog onCreateDialog(int id) { AlertDialog ad = null; AlertDialog.Builder builder = new AlertDialog.Builder (this); ad = builder.create(); this.id = id; if(id == Consts.WINNER_DIALOG_ID) ad.setMessage(player[winnerId]+ is the winner); else if(id == Consts.TIE_DIALOG_ID) ad.setMessage(It's a tie); ad.setButton(OK, new DialogInterface.OnClickListener () { public void onClick(DialogInterface di, int i) { ((GameActivity)mContext).finish(); } }); return ad; } -- Code GameActivity.onCreateDialog() end -- -- Exception start here -- 12-14 08:25:40.166: WARN/WindowManager(52): Attempted to add application window with unknown token HistoryRecord{433b63b8 {com.abcd.android.examples/com.abcd.android.examples.GameActivity}}. Aborting. 12-14 08:25:40.176: DEBUG/AndroidRuntime(169): Shutting down VM 12-14 08:25:40.186: WARN/dalvikvm(169): threadid=3: thread exiting with uncaught exception (group=0x4000fe68) 12-14 08:25:40.186: ERROR/AndroidRuntime(169): Uncaught handler: thread main exiting due to uncaught exception 12-14 08:25:40.216: ERROR/AndroidRuntime(169): android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.binderpr...@4338 is not valid; is your activity running? 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.ViewRoot.setView(ViewRoot.java:384) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:90) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.Window$LocalWindowManager.addView(Window.java:393) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.app.Dialog.show(Dialog.java:212) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.app.Activity.showDialog(Activity.java:2277) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at com.abcd.android.examples.ImageAdapter.clicked(ImageAdapter.java:115) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at com.abcd.android.examples.ImageAdapter$1.onClick(ImageAdapter.java: 149) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.View.performClick(View.java:2129) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.View.onTouchEvent(View.java:3543) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.View.dispatchTouchEvent(View.java:3198) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at com.android.internal.policy.impl.PhoneWindow $DecorView.superDispatchTouchEvent(PhoneWindow.java:1593) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent (PhoneWindow.java:1089) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at android.app.Activity.dispatchTouchEvent(Activity.java:1871) 12-14 08:25:40.216: ERROR/AndroidRuntime(169): at com.android.internal.policy.impl.PhoneWindow $DecorView.dispatchTouchEvent(PhoneWindow.java:1577) 12-14 08:25:40.216: ERROR/AndroidRuntime(169):
Re: [android-beginners] Re: HelloViews Tutorials , etc.
It definitely can be a little maddening, because a lot of them are out-of-date and/or do not show all the classes that you need to import. If you are using Eclipse you should be able to get around problems caused by not importing everything by pressing Ctrl+Shift+O... It will automatically add missing imports and remove imports that aren't needed. -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Dec 14, 2009 at 7:33 AM, Burt Lo b...@blomain.net wrote: Hey, Jason, I found the same problem. Do you think it's a problem from the latest versions of the SDK? In the meantime, I've headed to this website (http://www.anddev.org/ viewforum.php?f=8 http://www.anddev.org/%0Aviewforum.php?f=8) for additional tutorials. -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] I want to create an app for work orders - HELP
First, I would start by learning Java (not the GUI stuff though). Then look at the tutorials found in the Dev Guide. When I build my first app, I started with the Hello World tutorial and then just added onto it from other tutorials... -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Dec 14, 2009 at 7:44 PM, ronnieb captronn...@gmail.com wrote: I am an engineer for a small IT consulting company. we have a work order form that we email to a distribution group and the client. how would I go about doing this on our moto driod phone? i downloaded the sdk and have little programming but willing to learn. I have done access database and some vb work. We use exchange 2007 so I could use smtp, imap4 or activesync to send the info. the fields are Date Arrival Time - maybe able to be done as a stopwatch Departure Time Company - this could be a lookup somehow address1 address2 city state zip contact email Work Done - Parts/Price Follow up info Technician - another lookup Other thoughts are multiple open work orders for phone calls while multitasking. How would I go about doing this? -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] Re: Hello Date Picker
If you are using Eclipse you can do this quickly with the Ctrl+Shift+O shortcut... It will automatically add missing imports and remove those you don't need. -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Dec 14, 2009 at 10:04 AM, Waiter wai...@iflyez.com wrote: ME TOO. I'm going through the tutorials one at a time. Very helpful and learning as I go. So, I need to import both the Textview and the Button, (and whatever else I'll be using) import android.widget.TextView; import android.widget.Button; Added this to the imports, worked like a champ. Thanks Waiter On Dec 10, 3:59 pm, Lee $$$ leegi...@gmail.com wrote: Nevermind, already figured out what was wrong. As a note to beginners, always double-check that you are importing all the android packages for the tutorials. It will save you mountains of time and problems. On Dec 9, 2009 11:58 PM, LeeGiT leegi...@gmail.com wrote: I am working through the tutorial for Hello Date Picker. I copied the code for the HelloDatePicker.java file but I keep getting syntax error on tokens for the 'int'. Here some code... package com.example.hellodatepicker; import android.app.Activity; import android.os.Bundle; import java.util.Calendar; private TextView mDateDisplay; == Error Here - Syntax error on these tokens, delete these tokens. private Button mPickDate; == and here private int mYear; == and here private int mMonth;== and here private int mDay;== and here. static final int DATE_DIALOG_ID = 0; == Error Here - Syntax error on these tokens, AnnotationName expected instead. What is going on here? Is seems all the tutorials are based on Android 1.5 - 1.6 -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] My game force closes when calling a class i made..
A couple things: First, look at the logcat info... it will give more detailed information about what is going wrong and you might be able to figure it out. Second, please provide samples of how you are using the anim_helper class... You gave us the class you are using but not the code used to call methods on the class. More than likely the problem is not with the class implementation but with how it is being used Thanks, Justin -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Dec 14, 2009 at 3:00 PM, nathan upchurch nupchurch...@gmail.comwrote: I am creating a simple little pong style game, so far the the code setup is based off of the lunar lander code...that is to say the canvas drawing is done in a seperate thread. I created a simple simple simple class within the cavas drawing thread: public class anim_helper{ private int frame; private int frame_max; private int fps; private long time_start; public anim_helper(Context context, AttributeSet attrs) { super(); } public boolean start_anim_timer(int nfps,int nframe_max){ return true; } public int getframe(){ return (0); } } But when ever i call any of these methods the game force closes before even entering the class structure.I am sure what i am doing wrong must be simple, i have Zero java programming experiance please help. -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Wanting to start and would like a good book. Suggestions?
I too was pretty Happy with O'Reilly's book until it was time to import MJAndroid. Following the Authors notes in the Errata section still was no help. Hello Android Version 2 is good, but imo your best option is: The Busy Coder's Guide to ANDROID development go to www.commonsware.com/android There is an e-book option for like 35 dollars or something. You get access to all their books which are updated as android evolves, so you shouldn't run into any problems like you will with Oreilly's book. -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] start another activity through onclick event
Do this Intent myIntent = new Intent(androidGallery.this, helloAndroid.class); startActivity(myIntent); On Mon, Dec 14, 2009 at 3:56 AM, Lynn Ooi lynnooi@gmail.com wrote: hi, I had 2 activity (called androidGallery and HelloAndroid). i try to call helloAndroid from the androidGallery when user click on the button. basically, androidGallery is just to get the onclick event. The helloAndroid activity will set the text of a textview. however, i cant get it working. Once i click the button, a dialog box pop up saying that the application has been stopped unexpectedly with a force close button. Can anyone help me with it? androidGallery.java : package testt.android.androidgallery; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; public class androidGallery extends Activity { private Button btnclickme; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); final Button button = (Button) findViewById(R.id.button_id); button.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { // Perform action on click Intent myIntent = new Intent(androidGallery.this, helloAndroid.class); androidGallery.this.startActivity(myIntent); } }); } } helloAndroid.java : package test.android.androidgallery; import java.io.BufferedInputStream; import java.io.InputStream; import java.net.URL; import java.net.URLConnection; import java.util.ArrayList; import java.util.List; import org.apache.http.util.ByteArrayBuffer; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.widget.TextView; public class helloAndroid extends Activity{ /** Called when the activity is first created. */ public void onCreate(Bundle savedInstanceState) { // super.onCreate(savedInstanceState); // setContentView(R.layout.main); String a = hello Lynn; super.onCreate(savedInstanceState); TextView tv = new TextView(this); tv.setText(a); setContentView(tv); } } -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] Using AlarmManager for more than one alarm
Sorry to bump this, but I'm wondering if anyone saw the email. On Fri, Dec 11, 2009 at 2:05 PM, Adam Olsen arol...@gmail.com wrote: Take, for example, the built in Alarm application. You are able to set multiple alarms in it, and the phone will wake up for each of them to alert you. In a situation like that, I imagine the PendingIntent for each alarm would look very similar: Intent intent = new Intent(this, AlarmReceiver.class); PendingIntent pendingIntent = PendingIntent.getBroadcast(context, REQUEST_CODE, intent, 0); AlarmManager alarmManager = (AlarmManager) getSystemService (ALARM_SERVICE); alarmManager.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis() + (5 * 1000), sender); If you wanted to set up multiple alarms, though, the PendingIntent created here would need to be different, because AlarmManager.set() will just replace the previous alarm if the PendingIntents are equal. How can you create a PendingIntent in this manner that will not be equal to the one you previously used? Adam -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- Adam Olsen SendOutCards.com http://www.vimtips.org http://last.fm/user/synic -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] start another activity through onclick event
* Do this* * Intent myIntent = new Intent(androidGallery.this, helloAndroid.class); * * startActivity(myIntent);* I may be wrong but I think that your suggestion and the method already being used are logically equivalent. If just using startActivity without qualifiers doesn't work: Force close problems always have more information in the logcat output. Look at that first. You might be able to figure it out. If not, post the relevant portion of the output and someone can probably help figure it out. Thanks, Justin -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Dec 14, 2009 at 1:56 AM, Lynn Ooi lynnooi@gmail.com wrote: hi, I had 2 activity (called androidGallery and HelloAndroid). i try to call helloAndroid from the androidGallery when user click on the button. basically, androidGallery is just to get the onclick event. The helloAndroid activity will set the text of a textview. however, i cant get it working. Once i click the button, a dialog box pop up saying that the application has been stopped unexpectedly with a force close button. Can anyone help me with it? androidGallery.java : package testt.android.androidgallery; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; public class androidGallery extends Activity { private Button btnclickme; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); final Button button = (Button) findViewById(R.id.button_id); button.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { // Perform action on click Intent myIntent = new Intent(androidGallery.this, helloAndroid.class); androidGallery.this.startActivity(myIntent); } }); } } helloAndroid.java : package test.android.androidgallery; import java.io.BufferedInputStream; import java.io.InputStream; import java.net.URL; import java.net.URLConnection; import java.util.ArrayList; import java.util.List; import org.apache.http.util.ByteArrayBuffer; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.widget.TextView; public class helloAndroid extends Activity{ /** Called when the activity is first created. */ public void onCreate(Bundle savedInstanceState) { // super.onCreate(savedInstanceState); // setContentView(R.layout.main); String a = hello Lynn; super.onCreate(savedInstanceState); TextView tv = new TextView(this); tv.setText(a); setContentView(tv); } } -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Android EMail Client
Thanks for all your help I will read tutorial and hopefully figure it out. On Dec 14, 10:27 am, adam.mokan amo...@gmail.com wrote: msysGit for Windows works pretty well. Here is a good setup tutorial. http://github.com/guides/using-git-and-github-for-the-windows-for-new... -adam On Dec 13, 11:41 am, SandVoiD mitchell.ros...@gmail.com wrote: Could someone please tell me how I can get a copy of theemailclient for a project I want to work on. I have windows and the only way I have found is to use git/repo but I do not have linux system or mac. Any help would be appreciated. Thanks -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Bridging the gap between Java and Linux/C
On Dec 14, 11:42 am, Martin Hardman martin.hard...@mobidia.com wrote: Is there somewhere that describes how to add services in the kernel and make them available to the Java layer for apps to use? Search for information about the Android NDK (native development kit). You can post questions to the android-ndk mailing list. -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
RE: [android-beginners] ADB and T-Mobile Pulse on Windows
Unplug your phone from your PC. Next, make sure that the device has debugging over USB enabled. If it does, grab USBDeview from NirSoft and use it to uninstall anything that looks like it could be related to your phone, maybe it says ADB or Android. Then plug your phone back in, when prompted for a driver, point Windows to the correct path. Usually that fixes the issues for me. /Ryan -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Viktor Bresan Sent: Monday, December 14, 2009 2:05 PM To: Android Beginners Subject: [android-beginners] ADB and T-Mobile Pulse on Windows I am having the same problem. I have T-Mobile Pulse device, drivers are installed, but ADB can not see it when it is connected. Has anyone been able to solve this? On Oct 18, 9:02 am, Joshua Schwartz joshuaaschwa...@googlemail.com wrote: I have just bought a t-mobilepulse, and am having a few issues with it. One of which If I try to connect to adb shell (or any other adb function by that matter) I get the following: C:\androidsdk\android-sdk-windows-1.5_r3\toolsadb shell * daemon not running. starting it now * * daemon started successfully * error: device not found I have had this on both 1.5_r3 and 1.6 As far as I am aware the device is installed as adb in devide manager - adb interface - t-mobile 3g phone adb interface. I have windows xp, but can try this on vista, if it is thought to work better, and the device runs on Android 1.5. Any ideas? Thanks -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] best way to store last calculations
I have experience with windowsXP when you want to 'savesettings'/'getsettings' using the windows registry, my question is what would be the BEST way if you would wanted to: A) save the user input(what was entered) B) quit the app C) restart the app E) AND THEN RETRIEVE THOSE SETTING ? Thanks for your help/suggestions, Rc3375 -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] best way to store last calculations
Just out of curiosity, have you even looked over the Dev Guide? Either an SQLite database or Shared Preferences... http://developer.android.com/guide/topics/data/data-storage.html -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Tue, Dec 15, 2009 at 4:27 PM, Rc3375 rcobb3...@gmail.com wrote: I have experience with windowsXP when you want to 'savesettings'/'getsettings' using the windows registry, my question is what would be the BEST way if you would wanted to: A) save the user input(what was entered) B) quit the app C) restart the app E) AND THEN RETRIEVE THOSE SETTING ? Thanks for your help/suggestions, Rc3375 -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Simple Call App
ACTION_DIAL works fine and without any changes to the permissions. thanks a lot --aj On Dec 15, 6:40 am, Sean Hodges seanhodge...@googlemail.com wrote: Nithin is right, you need to add the following permission to your AndroidManifest.xml, if it's not there already: uses-permission id=android.permission.CALL_PHONE/ You'll find that the KEYCODE_CALL button is being ignored, because by default special buttons like the back/call/home ones are handled internally. You need to override this behaviour by adding the following line into the onCreate() of your activity: setDefaultKeyMode(Activity.DEFAULT_KEYS_DIALER); The rest looks OK to me. If you still have problems, try stepping through the code in the debugger to determine which line is not executing correctly... On Tue, Dec 15, 2009 at 11:18 AM, Nithin nithin.war...@gmail.com wrote: just hard the number in startActivity() and try.. Then you are giving permission in Manifest, right .. On Dec 15, 10:26 am, AJ amanjsi...@gmail.com wrote: Thanks... but taht does not help either. It launches but the call button does not work: [2009-12-15 00:21:13 - HelloAndroid]Waiting for HOME ('android.process.acore') to be launched... [2009-12-15 00:21:14 - Emulator]2009-12-15 00:21:14.866 emulator [656:903] Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz. [2009-12-15 00:22:58 - HelloAndroid]HOME is up on device 'emulator-5554' [2009-12-15 00:22:58 - HelloAndroid]Uploading HelloAndroid.apk onto device 'emulator-5554' [2009-12-15 00:22:59 - HelloAndroid]Installing HelloAndroid.apk... [2009-12-15 00:23:17 - HelloAndroid]Success! [2009-12-15 00:23:17 - HelloAndroid]Starting activity com.tests.helloandroid.HelloAndroid on device [2009-12-15 00:23:27 - HelloAndroid]ActivityManager: Starting: Intent { cmp=com.tests.helloandroid/.HelloAndroid } There was a warning though. Not sure why doesn't this code work. --aj On Dec 14, 11:56 pm, Nithin nithin.war...@gmail.com wrote: hi, try mEditText_number.getText().toString(); Thanks On Dec 15, 9:41 am, AJ amanjsi...@gmail.com wrote: I am trying to make a very very simple app as a beginner but it does not work. The app just has a text bar and a button. Somehow, the call button does not start a call. Help please. Here is the code: package com.tests.helloandroid; import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.view.KeyEvent; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.LinearLayout; public class HelloAndroid extends Activity { EditText mEditText_number = null; LinearLayout mLinearLayout_no_button = null; Button mButton_dial = null; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mLinearLayout_no_button = new LinearLayout(this); mEditText_number = new EditText(this); mEditText_number.setText(5551222); mLinearLayout_no_button.addView(mEditText_number); mButton_dial = new Button(this); mButton_dial.setText(Dial!); mLinearLayout_no_button.addView(mButton_dial); mButton_dial.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { performDial(); } }); setContentView(mLinearLayout_no_button); } public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_CALL) { performDial(); return true; } return false; } public void performDial(){ if(mEditText_number!=null){ try { startActivity(new Intent(Intent.ACTION_CALL, Uri.parse(tel: + mEditText_number.getText(; } catch (Exception e) { e.printStackTrace(); } }//if } } -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners]
somebody tell me public void onKey(int x,KeyEvent e) { if(x==KeyEvent.keycode_dpad_center) HERE which key is press for keycode_dpad_center deepak tell me which key is pressed for keycode_dpad_center -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners]
This exact same question was asked earlier today Do a search on the group and you will get the answer. -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Tue, Dec 15, 2009 at 9:56 PM, saurabh sinha saurso...@gmail.com wrote: somebody tell me public void onKey(int x,KeyEvent e) { if(x==KeyEvent.keycode_dpad_center) HERE which key is press for keycode_dpad_center deepak tell me which key is pressed for keycode_dpad_center -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en