[android-developers] Android how to send the hex code out?
Dear All : I want to send out the hex code like 0xfa through the serial port. How do I send the 0x code in the program? Thanks in advanced. BR, Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to send thw hexstring
Dear All : I want to send out the hex code(0xfa,). I had prepared the hexstring to send. But it will change into string when I received it from another terminal. 1 byte will be changed into 2 bytes. Is there any mechod to keep it in hex(just 1 byte)? Thanks in advanced. Br, Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android how to send the hex code out?
Dear Todd : Thanks for your kindly hint. Could you give me a more detail? Thanks. BR, Mark On 3月6日, 下午6時57分, Todd Grigsby tgrigsby...@gmail.com wrote: Google hex notation and hexadecimal. On Mar 6, 2012 12:34 AM, mark2011 androidmark2...@gmail.com wrote: Dear All : I want to send out the hex code like 0xfa through the serial port. How do I send the 0x code in the program? Thanks in advanced. BR, Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en- 隱藏被引用文字 - - 顯示被引用文字 - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] My eclipse can't produce APK anymore
Dear All : Today I found that my eclipse went wrong. After I update the program save it in the projects, Eclipse doesn't produce the APK automatically. How do I to generate the apk? Thanks in advanced. My Eclipse is Indigo under Windows/XP. BR, Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Common subroutine
Dear All : Could I write some common subroutine in a single program, then I can call these subroutine from other programs. How do I call them? Thanks in advanced. BR, mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Image button Issue
Dear fei ji : Thanks for your kindly response. I had tried to use dip instead of px, but it doesm't work. Should I add anything except dip? BR, Mark On Feb 10, 7:31 pm, fei ji ufo22940...@gmail.com wrote: Did you use dip when setting height and width of ImageButton? On Fri, Feb 10, 2012 at 7:19 PM, mark2011 androidmark2...@gmail.com wrote: Dear All : I set up the background image, it will automatically adjust to match the diffent screens of different devices. But the image set for the button is not. Is there any method that I don't need to adjust the position of the ImageButton to match the different devices? Thanks in advanced. BR, Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Layout
Dear All : I want to write a application to display some information the users can set up some data while they click some buttons. If I want to install this apk into different screen size devices without too much effort, what kind of layout should I use? Thanks in advanced. BR, Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Layout
Dear fei ji : I had tried. But the result isn't what I want. Maybe I misunderstand your meaning. Could you give me an example? Thanks. Br, Mark On Feb 13, 1:49 pm, fei ji ufo22940...@gmail.com wrote: Using dip instead of px, then the size will change according the dpi value of specific device. then put your image files in drawable-mdpi -hdpi -ldpi, Then android will get the most suitable image when needed. Then layout is the same as image. On Mon, Feb 13, 2012 at 12:48 PM, mark2011 androidmark2...@gmail.comwrote: Dear All : I want to write a application to display some information the users can set up some data while they click some buttons. If I want to install this apk into different screen size devices without too much effort, what kind of layout should I use? Thanks in advanced. BR, Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Image button Issue
Dear All : I set up the background image, it will automatically adjust to match the diffent screens of different devices. But the image set for the button is not. Is there any method that I don't need to adjust the position of the ImageButton to match the different devices? Thanks in advanced. BR, Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] android fullscreen issue
Dear All : I had written the below command at my project AndroidMainfest.xml. android:theme=@android:style/Theme.NoTitleBar.Fullscreen. I installed the apk into 2 different android phone(one is android 2.2.1, the other is 2.2.2). One is fullscreen display, but the other isn't. It displays electronic cell status still. Is there anyone know the why? Thanks in advanced. BR, Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: android fullscreen issue
Dear ji fei : Thanks for your quick reply. After I change minSdkVersion from 7 to 9, I Can't install this apk into android 2.1 anymore. BR, Mark On Feb 7, 5:37 pm, ji fei ufo22940...@gmail.com wrote: Try to add follow code to AndroidManifest.xml. Maybe works. uses-sdk android:minSdkVersion=9/ On Tue, Feb 7, 2012 at 4:56 PM, mark2011 androidmark2...@gmail.com wrote: Dear All : I had written the below command at my project AndroidMainfest.xml. android:theme=@android:style/Theme.NoTitleBar.Fullscreen. I installed the apk into 2 different android phone(one is android 2.2.1, the other is 2.2.2). One is fullscreen display, but the other isn't. It displays electronic cell status still. Is there anyone know the why? Thanks in advanced. BR, Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Eclipse find error
Dear All : One day I can't run the eclipse to edit the android api. The message is that JRE error occurred while run. So I new install jdk, then I can run the eclipse. But there is an error flag is on my old project, I can't find any error in my source res. Can anyone help me to fix this problem? Thanks in advanced. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] can I change the images after some minutes period
Dear All : I want to display some images during a period of time. I use sleep to delay the time want to change another image. But It always displays the last image. Is there anyone can help me? Thanks. BR, Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Preference issue
Dear All : I had written back into the PREFERENCE after I set some parameters. But when I open another api to retrieve back these preferences, the data wasn't what I thought. My command is like : settings.edit() .putString(PREF_MINUTES, Integer.toString(out_time_minutes)) .commit(); What does it go wrong? Thanks in advanced. BR, Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Is there Android RS232 sample code ?
Dear All : I am a new learner of Android. My cell phone is android 2.1. I want to communicate with other computer(windows xp) through rs232. Is there any sample code? Thanks. BR, Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] back home key in api
Dear All : I want to set the back home function in my API. I use finish or system.exit(0) to return my last page. How do I go back to my home page? Thanks. BR, Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] display the same Image in the different Position duing the a period of time
Hi, all : I want to display the same Image in the different Position duing the a period of time. How can I do ? Is there any example code? Thanks. BR, Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] OnClick error
Dear All : I install eclipse Android SDK under the Windows/XP successful. If I test a program using onClick that I want to click a button, it displays an error. But the code is ok on an another pc. Can anyone help me? my code is that : btnNumberOne.setOnClickListener(new ImageButton.OnClickListener() { @Override public void onClick(View v) { =error line Thanks. BR, mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] SharedPreferences update issue
Dear All : I had use getSharedPreferences, edit, putString commit to save the setting in activity A successfully. I start another Activity B from Activity A. I can display the setting on the Activity A. I also use the same command to update the setting on the Activity B ( getSharedPreferences, edit, putString commit command) the program doesn't occur error. But I check the setting on the SharedPreferences, the value is still the same as I set on Activity A. What's wrong ? Can anyone help me? Thanks. BR, Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Screen size supported
Dear All : Is there anyone know the maximum screen size supported by Android? Is it possible to display on 1366 X 738 density? Thanks. BR,Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Can I call a web service to get some data return the screen to the android?
Dear All : Can I call a web service to get some data return the screen to the android? Actually, I want to get some data on the remote web server from the android phone return back the android platform. How can I do it? Thanks. BR, Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] android loop problem
Dear All : I met a strange event. I write a simple code to display a screen once the user click a button to start. In the screen, the user can click some button to set up the factors that I use onclicklistener to accept the onclick. But the start button is that I use onclick to start. Once I use a loop using the for/while command to loop the display the screen. The start button doesn't work. Can anyone help me? Thanks. BR, mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] socket connect through a bluetooth issue
Dear All : I'm a new to Android. I try to code a client API to allow the user to input some data in an android 2.1 to send out through the bluetooth. The hyperterminal can displays the received data in a Windows pc in the first time. But When I input data the second time from the Android, the pc can't receive the data any more. My code is the below : public void run() { adapter.cancelDiscovery(); try { Socket.connect(); BufferedOutputStream bout = new BufferedOutputStream(Socket.getOutputStream()); bout.write(str1.getBytes()); bout.flush(); bout.close(); } catch (IOException connectException) { Log.i(BT Client, not connect); try { Socket.close(); } catch (IOException closeException) { } return; } } Can anyone help me? Thanks in advanced. BR, Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android how to talk with Windows 7 via the bluetooth?
Dear All : I had chated with 2 android devices using the bluetooth devices. I want to use a android device to chat with Windows 7 through the bluetooth. How do I do? Is there any standard API in the windows 7 to accept the data whicj is sent from my android device(I had acoed a BTCLient.java to sent the data by the user)? Can I use hyperterminal to accept the data? Thanks in advanced. BR mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] BT transfer data issue
Dear All : I write a BTClient.java on a ViewPad a BTServer.java on a ACER A500. I hope to tranfer data through the Bluetooth devices. When I input some data on Viewpad, the same data will be displayed on A500. My problem is that A500 will display the old buffer + replaced data. For example: BTClient input BTServer display 1. abcdefghijklmnop abcdefghijklmnop 2. 12345 12345fghijklmnop How do I to clear the output buffer before it display the new-coming data? Thanks. Best Regards, Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Emulator in Windows 7
Dear All : I had installed eclipse android sdk in windows xp. it works when I run the emulator to display my application. But when I installed in the windows 7. When I run my application, it just display the emulator it stop in the first page. There is no error message. It doesn't continue to display my application screen. Can you help me ? Thanks. Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] return to Android from a web page
Dear All : I use a intent to start the activity to link to a web page. How can I return to control to the android application after the user had see the message on the page? Intent i = new Intent(Intent.ACTION_VIEW); i.setData(Uri.parse(url)); startActivity(i); Thanks. Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] android how to use the MS/SQL?
Dear All : I want to retrieve a MS SQL DB from android applicatio. How can I do ? Is there any example can be for regerence? Thanks. Best Regards, Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] UUID in Bluetootht sample
Dear All : I'm trying to communicate through the bluetooth now. I see the sample code in the book that said the BTServer BTClient had set the UUID. Is the UUID the same in these 2 Java program? I had paired discoverered it, but fail to build RfComm connection. How can I do ? Thanks. Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] BluetoothChat.java error
Dear All : I follow the sample code and use Eclipse to code in order to test the bluetooth device, but it displays the error message at the line inport android.app.ActionBar;, Should I do anything befor? Thanks. Best Regards, Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Why can't I get the Bluetooth adapter in a windows 7 environment?
Dear All : When I click the Bluetooth icon to list all the devices, I can see the bluetooth devices in my near environment. I'm sure the bluetooth work in my notebook run a Windows 7. But I run a Android API to get BlueTooth Adapter, it failed. Can anyone know the why? How do I fix it? Thanks. Best Regards, Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android talk with NB through the BLUETOOTH device
Dear All : I had followed the examples in the book about the bluetooth in the android and coded the BTClient .java. I'm sure that my android phone has enabled the bluetoothadapter paired. I can see the the NB in my android bluetooth device list with the status paired not connected. I had executed the command BTAdapter.startDiscovery(); but it can't be succeeded. I can't find the reason to fail. Can anyone help me? Thanks advanced. Best Regards, Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en