[android-developers] Re: install font with apk
Oh, After a long time, I have seen Ethiopic font which come with Android 4.0 OS. I am very much happy to see this. Andu On Monday, February 7, 2011 5:08:22 PM UTC+3, Brill Pappin wrote: I just last night came across a good article on the subject. http://mobile.tutsplus.com/tutorials/android/customize-android-fonts/ In my case it was of limited value because I wanted a Style to load that font, which I haven't figured out how to do (but also havent put enough time into figuring out. - Brill Pappin On Feb 7, 3:01 am, andu alemf...@yahoo.com wrote: How are you all? I have tried to develop soft-keyboard for Android phone. The soft- keyboard is for Ethiopic script (Amharic language, Ethiopian language). The keyboard works well both in emulator and actual device. But I would like to keep the Amharic font file within the apk file so that the font will be installed together with the soft-keyboard apk file. Is there any means that I can install the font file together with the apk file? Thank you in advance andu -- 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] Add and re-size pictures with processing Android
I am using processing in order to develop mobile application for Android.I am trying to build an application like paint for android with processing.i managed to do all the drawing changing color etc but i don't know how to write a function that allows the user to load a picture from his mobile Thank you -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] HTC Hero API upgrade and root access?
hello all! I want to ask one question. I have HTC Hero (With API level-7). The API does not have org.w3c.dom.Text.getWholeText() function. Because of these I want to either upgrade it to API level-8 (or more) or have external library access to org.w3c.dom jar file. Is it possible to upgrade? or use external API library instead of the internal one? In addition, I want to have root access to my mobile phone. Is there any possible and safe way to do that? Because I want to install new fonts to the phone. Thanks in advace, Andu -- 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] install font with apk
How are you all? I have tried to develop soft-keyboard for Android phone. The soft- keyboard is for Ethiopic script (Amharic language, Ethiopian language). The keyboard works well both in emulator and actual device. But I would like to keep the Amharic font file within the apk file so that the font will be installed together with the soft-keyboard apk file. Is there any means that I can install the font file together with the apk file? Thank you in advance andu -- 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: Developing sotfkeyboard
Thank you Galbayar D. It helps me very much. Thank you again Andu. On Jun 4, 9:40 am, Galbayar D galba...@usi.mn wrote: http://code.google.com/p/android-greek-ime/ Gala On Fri, Jun 4, 2010 at 3:30 PM, Indicator Veritatis mej1...@yahoo.com wrote: 'The sample soft keyboard'? Which one? And will it work even on phones that have no localization for Amharic? On Jun 3, 10:52 pm,andualemf...@yahoo.com wrote: how are you all? I am trying to develop soft keyboard in my language, Amharic (Ethiopian language). I start developing the soft keyboard by using the sample soft keyboard with is included in the android SDK. But I have the following questions to ask: 1. How can I include keyboard setting options such as vibrate on key press, sound on key press, etc. such setting options are available in English soft keyboard. If you have any idea about this, please help me. 2. The other question is related to copyright issue. If I can succeed in developing the keyboard and want to sell it in market, am I going to violate the copyright law? Because I have developed this application by using the sample soft keyboard. thank you in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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] Developing sotfkeyboard
how are you all? I am trying to develop soft keyboard in my language, Amharic (Ethiopian language). I start developing the soft keyboard by using the sample soft keyboard with is included in the android SDK. But I have the following questions to ask: 1. How can I include keyboard setting options such as vibrate on key press, sound on key press, etc. such setting options are available in English soft keyboard. If you have any idea about this, please help me. 2. The other question is related to copyright issue. If I can succeed in developing the keyboard and want to sell it in market, am I going to violate the copyright law? Because I have developed this application by using the sample soft keyboard. thank you in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] questions about developing soft keyboard
how are you all? I am trying to develop soft keyboard in my language, Amharic (Ethiopian language). I start developing the soft keyboard by using the sample soft keyboard with is included in the android SDK. But I have the following questions to ask: 1. How can I include keyboard setting options such as vibrate on key press, sound on key press, etc. such setting options are available in English soft keyboard. If you have any idea about this, please help me. 2. The other question is related to copyright issue. If I can succeed in developing the keyboard and want to sell it in market, am I violating the copyright rule? Because I have developed this application by using the sample soft keyboard. thank you in advance Andu -- 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] adding and updating key rows dynamically
How are you all? I have been developing soft keyboard in my language. In my java program I want to add new row of key in the keyboard and update it dynamically at runtime. How can I do that from the java program. That is: The xml file has the following content: Keyboard xmlns:android=http://schemas.android.com/apk/res/android; android:keyWidth=10%p android:horizontalGap=0px android:verticalGap=0px android:keyHeight=@dimen/key_height Row Key android:codes=4879 android:keyLabel=\u130F android:keyEdgeFlags=left/ Key android:codes=4880 android:keyLabel=\u1310 / Key android:codes=4882 android:keyLabel=\u1312/ Key android:codes=4884 android:keyLabel=\u1314/ /Row /Keyboard I want to add some more rows to the keyboard from the Java code. And how can I get the xml file as a file. I can only access its ID number through R.xml.file_name? please help me. Andu. -- 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] Remove attention box while activating softkeyboard
How are you all I am developing android applications. currently I have customized the sample softkeyAndroid project to include amharic language (Ethiopian language). The keyboard works well. But when I try to activate it from the setting (Local Text) option, it displays some warning message that says This input method may be able to collect all the text you type, including personal data like password and credit card numbers. . I think this text is include for security purpose. But users may not be interested to use the keyboard. So my question is How can I remove this warning message to make the keyboard available for users (without payment). or is there anything that I have to consider while developing the application? Please help me. Thank you in advance. Andu -- 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] Upgrading android 1.1 platform to android 1.5
How are you all? I have android phone with platform version 1.1. I have developed and tested some applications on it, But now I want to upgrade the platform from 1.1 to 1.5 or latest. my question is : 1. Is it possible to upgrade the phone from 1.1 to 1.5 (or latest) 2. If it is possible, how can I do the upgrade? Please help me. Thanks in advance Andu -- 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: softkeyboard in Android 1.1
How are you Currently I have Android 1.1 phone. That is why. I have tried the sample softkey in the emulator with Android 1.5 platform. It works. But in 1.1 platform, there is problem. Andu On Feb 10, 4:24 pm, swapnil kamble swap.kam...@gmail.com wrote: Why you want Android 1.1 ? On Wed, Feb 10, 2010 at 6:32 PM, andu alemf...@yahoo.com wrote: How are you all I want to develop softkeyboard for android 1.1 platform. when I check the sample softkeyboard application in the emulator, some of the imported packages are not accessible. some of them are: import android.inputmethodservice.Keyboard; import android.inputmethodservice.Keyboard.Key; import android.inputmethodservice.Keyboard.Row; import android.view.inputmethod.EditorInfo; are there any similar packages in android 1.1 so as to develop softkeyboard. Andu -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare Rama Hare Rama Rama Rama Hare Hare || -- 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] softkeyboard in Android 1.1
How are you all I want to develop softkeyboard for android 1.1 platform. when I check the sample softkeyboard application in the emulator, some of the imported packages are not accessible. some of them are: import android.inputmethodservice.Keyboard; import android.inputmethodservice.Keyboard.Key; import android.inputmethodservice.Keyboard.Row; import android.view.inputmethod.EditorInfo; are there any similar packages in android 1.1 so as to develop softkeyboard. Andu -- 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: Problem while sending unicode character via SMS
How are you I would like to thank you for your support. I get some code that enables me to send unicode character. I get it for the following site http://since2006.com/blog/android-send-unicode-message/# It may help others. Thank you again Andu On Jan 25, 10:58 pm, Frank Weiss fewe...@gmail.com wrote: Howdy. I didn't think the missing fonts would solve the problem, but I think they're ultimately necessary. If you try a latin character, chances are you will get the same reuslt, but I would try it to make sure. I still think the problem is either in how the messages are being sent or possibly a limitiation of the carrier. Unfortunately, I'm not coding an SMS application, which would allow me to help you better. Can you check the PDU metadata and see if the message is being restricted to 7-bit or 8-bit instead of UCS-16? You can find more technical details on the web, but here's some info I found on a quick search:http://communication.howstuffworks.com/framed.htm?parent=sms.htmurl=... Note especially the TP-DCS field (follow the data coding scheme link. Bits 3 and 2 define the character coding. I suspect you'll see either 00 or 01, which would explain why the U+1200, etc., characters you are trying to send are reduced to U+0020. I think you should expect bits 3 and 2 to be 10 for UCS2 (16-bit). I wish I could give you a more definite answer, but this is the best I can do without actually coding an SMS application myself. -- 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: Problem while sending unicode character via SMS
Hi How are you As you have suggested me I have installed the Ethiopian font in my device. And I think the font is installed properly. But still the SMS doesn't work. I don't know which part I can check. The message still replaces unicode characters by space characters in the receiving side. can you suggest me some more points that I should check or correct? Thank you again. Andu. On Jan 22, 7:51 pm, Frank Weiss fewe...@gmail.com wrote: If the received character is U+0020 instead of U+1200, then chances are that the message is being restricted to 7-bit somewhere along the line. This is somewhat alluded to in the SDK Referencehttp://developer.android.com/reference/android/telephony/SmsMessage.h... ) Another problem may be the font. Have you installed the Ethiopian fonts in your device or emulator? I just tried adding ቁ into an Android application's string.xml res file. On both the emulator and the Droid, the character is displayed as a small rectangle. It may help in debugging to try some Latin-1/ISO-8859-1 characters, such as U+00E3. This would test the 7-bit issue without having to install Ethiopian fonts on the emulator or device. On Thu, Jan 21, 2010 at 10:53 PM, andu alemf...@yahoo.com wrote: Hello How are you I have tried to send the sms with unicode character to the android phone itself and accept the message by my application (using BroadcastReceiver ...) to view its content. but still the unicode character is displayed as space. And I tried to see its code using codePointAt( ) and it displays number 32. What do you suggest? Should I change the encoding for my code, JVM, ...? How can I change the encoding of my program? I am developing my application by Eclipse and Android ADT. Thank you for response. and also I waiting your response Andu On Jan 1, 1:49 am, Frank Weiss fewe...@gmail.com wrote: The code looks good AFAICT. Please give the actual before/after characters that are coming out wrong. For example, try the Ethiopian syllable qu, U+1241. If it's coming across as a box followed by an A, then the receiver has gotten two characters, U+0012 and U+0041. I really need to see the hexadecimal data in your sent and received SMS messages to figure out what's going wrong. I would also suggest that using the debugger or android.util.Log, instead of Toast, would be a better way to debug. On Thu, Dec 31, 2009 at 2:26 AM, andu alemf...@yahoo.com wrote: To send the message I have used the following function: public boolean sendSMSMessage(String compiledContent, String DistinationAddress) { String receiverPhoneNumber = DistinationAddress; String messageCenterPhoneNumber = ; SmsManager smsMgr = SmsManager.getDefault(); smsMgr.sendTextMessage(receiverPhoneNumber, null, compiledContent, null, null); return isSent; } To receive the message I have used the following function: @Override public void onReceive(Context context, Intent intent) { Bundle bundle = intent.getExtras(); if(bundle != null) { Object messages[] = (Object[]) bundle.get(pdus); SmsMessage smsMessage[] = new SmsMessage[messages.length]; for (int n = 0; n messages.length; n++) { smsMessage[n] = SmsMessage.createFromPdu((byte[]) messages [n]); } // show first message Toast toast = Toast.makeText(context, Brhp Received SMS: + smsMessage[0].getMessageBody()+ from + smsMessage [0].getOriginatingAddress(), Toast.LENGTH_LONG); toast.show(); String messageBody = smsMessage[0].getMessageBody(); String messageSource = smsMessage[0].getOriginatingAddress(); } } On Dec 29, 1:02 am, andu alemf...@yahoo.com wrote: How are you all? I am developing application for android phone. Currently I am testing my system in the emulator. In my application, I want to send unicode character (Amharic language character) via SMS to the other emulator instance. But in the receiver side, the message is not viewed properly. I think the problem is some character encoding related problem. In addition similar problem happens for texts which are queried for the sqlite database. that is when I send a query result via SMS the same problem occurs. Please help me. Sorry for posting the same message again. Please help me. Thank you Andu. -- 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
[android-developers] Re: Problem while sending unicode character via SMS
Hello How are you I have tried to send the sms with unicode character to the android phone itself and accept the message by my application (using BroadcastReceiver ...) to view its content. but still the unicode character is displayed as space. And I tried to see its code using codePointAt( ) and it displays number 32. What do you suggest? Should I change the encoding for my code, JVM, ...? How can I change the encoding of my program? I am developing my application by Eclipse and Android ADT. Thank you for response. and also I waiting your response Andu On Jan 1, 1:49 am, Frank Weiss fewe...@gmail.com wrote: The code looks good AFAICT. Please give the actual before/after characters that are coming out wrong. For example, try the Ethiopian syllable qu, U+1241. If it's coming across as a box followed by an A, then the receiver has gotten two characters, U+0012 and U+0041. I really need to see the hexadecimal data in your sent and received SMS messages to figure out what's going wrong. I would also suggest that using the debugger or android.util.Log, instead of Toast, would be a better way to debug. On Thu, Dec 31, 2009 at 2:26 AM, andu alemf...@yahoo.com wrote: To send the message I have used the following function: public boolean sendSMSMessage(String compiledContent, String DistinationAddress) { String receiverPhoneNumber = DistinationAddress; String messageCenterPhoneNumber = ; SmsManager smsMgr = SmsManager.getDefault(); smsMgr.sendTextMessage(receiverPhoneNumber, null, compiledContent, null, null); return isSent; } To receive the message I have used the following function: @Override public void onReceive(Context context, Intent intent) { Bundle bundle = intent.getExtras(); if(bundle != null) { Object messages[] = (Object[]) bundle.get(pdus); SmsMessage smsMessage[] = new SmsMessage[messages.length]; for (int n = 0; n messages.length; n++) { smsMessage[n] = SmsMessage.createFromPdu((byte[]) messages [n]); } // show first message Toast toast = Toast.makeText(context, Brhp Received SMS: + smsMessage[0].getMessageBody()+ from + smsMessage [0].getOriginatingAddress(), Toast.LENGTH_LONG); toast.show(); String messageBody = smsMessage[0].getMessageBody(); String messageSource = smsMessage[0].getOriginatingAddress(); } } On Dec 29, 1:02 am, andu alemf...@yahoo.com wrote: How are you all? I am developing application for android phone. Currently I am testing my system in the emulator. In my application, I want to send unicode character (Amharic language character) via SMS to the other emulator instance. But in the receiver side, the message is not viewed properly. I think the problem is some character encoding related problem. In addition similar problem happens for texts which are queried for the sqlite database. that is when I send a query result via SMS the same problem occurs. Please help me. Sorry for posting the same message again. Please help me. Thank you Andu. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problem while sending unicode character via SMS
To send the message I have used the following function: public boolean sendSMSMessage(String compiledContent, String DistinationAddress) { String receiverPhoneNumber = DistinationAddress; String messageCenterPhoneNumber = ; SmsManager smsMgr = SmsManager.getDefault(); smsMgr.sendTextMessage(receiverPhoneNumber, null, compiledContent, null, null); return isSent; } To receive the message I have used the following function: @Override public void onReceive(Context context, Intent intent) { Bundle bundle = intent.getExtras(); if(bundle != null) { Object messages[] = (Object[]) bundle.get(pdus); SmsMessage smsMessage[] = new SmsMessage[messages.length]; for (int n = 0; n messages.length; n++) { smsMessage[n] = SmsMessage.createFromPdu((byte[]) messages [n]); } // show first message Toast toast = Toast.makeText(context, Brhp Received SMS: + smsMessage[0].getMessageBody()+ from + smsMessage [0].getOriginatingAddress(), Toast.LENGTH_LONG); toast.show(); String messageBody = smsMessage[0].getMessageBody(); String messageSource = smsMessage[0].getOriginatingAddress(); } } On Dec 29, 1:02 am, andu alemf...@yahoo.com wrote: How are you all? I am developing application for android phone. Currently I am testing my system in the emulator. In my application, I want to send unicode character (Amharic language character) via SMS to the other emulator instance. But in the receiver side, the message is not viewed properly. I think the problem is some character encoding related problem. In addition similar problem happens for texts which are queried for the sqlite database. that is when I send a query result via SMS the same problem occurs. Please help me. Sorry for posting the same message again. Please help me. Thank you Andu. -- 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] Problem while sending unicode character via SMS
How are you all? I am developing application for android phone. Currently I am testing my system in the emulator. In my application, I want to send unicode character (Amharic language character) via SMS to the other emulator instance. But in the receiver side, the message is not viewed properly. I think the problem is some character encoding related problem. In addition similar problem happens for texts which are queried for the sqlite database. that is when I send a query result via SMS the same problem occurs. Please help me. Sorry for posting the same message again. Please help me. Thank you Andu. -- 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] Problem while sending and receiving SMS
How are you all? I am developing application for android phone. Currently I am testing my system in the emulator. In my application, I want to send unicode character (Amharic language character) via SMS to the other emulator instance. But in the receiver side, the message is not viewed properly. I think the problem is some character encoding related problem. In addition similar problem happens for texts which are queried for the sqlite database. that is when I send a query result via SMS the same problem occurs. Please help me. Thank you Andu -- 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: Send message from Android emulator to web
Thank you. your response helps me very much. In addition I found a working code from the internet. It may help ... # public void postData() { # // Create a new HttpClient and Post Header # HttpClient httpclient = new DefaultHttpClient(); # HttpPost httppost = new HttpPost(http://www.yoursite.com/ script.php); # # try { # // Add your data # ListNameValuePair nameValuePairs = new ArrayListNameValuePair(2); # nameValuePairs.add(new BasicNameValuePair(id, 12345)); # nameValuePairs.add(new BasicNameValuePair(stringdata, AndDev is Cool!)); # httppost.setEntity(new UrlEncodedFormEntity (nameValuePairs)); # # // Execute HTTP Post Request # HttpResponse response = httpclient.execute(httppost); # # } catch (ClientProtocolException e) { # // TODO Auto-generated catch block # } catch (IOException e) { # // TODO Auto-generated catch block # } # } -- 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] Send message from Android emulator to web
I have been trying to send message from the android emulator to the web server by using HttpURLConnection. In the server side I use php to read the sent message and keep it in database (mysql). when I send the message, a blank row is added in the database, but the message sent doesn't appear. I think the emulator can communicate with the server but I don't know what happens to the message. Please help me. Here is my Android and PHP code: URL url = new URL(http://10.0.2.2/receiveSampleAndroid.php;); HttpURLConnection httpCon = (HttpURLConnection)url.openConnection(); httpCon.setDoInput(true); httpCon.setDoOutput(true); httpCon.setRequestMethod(POST); httpCon.setUseCaches(false); httpCon.setRequestProperty(Connection, Keep-Alive); DataOutputStream out = new DataOutputStream(httpCon.getOutputStream ()); DataInputStream in = new DataInputStream(httpCon.getInputStream()); String value = msg content; String Boundary = `; out.write(value.getBytes()); out.write(Boundary.getBytes()); out.flush(); int responseCode = httpCon.getResponseCode(); switch(responseCode) { case HttpURLConnection.HTTP_OK: case HttpURLConnection.HTTP_CREATED: Toast.makeText(getBaseContext(), Message is sent, Toast.LENGTH_LONG).show(); int httpReslut = 1; int ch; in.readByte(); in.readByte(); in.readByte(); break; default: //not ok } httpCon.disconnect(); in.close(); out.close(); My PHP Code is: ?php if(isset($_POST)) { $string = file_get_contents('php://input'); $boundary = `; $data = explode($boundary,$string); /** Content of the Message is Store in local variable ***/ $id = $data[0]; $name = $data[1]; $fname = $data[2]; /** Connect to database, Sample_android and ***/ mysql_connect(localhost,root,root) or die(Server Connection Error); mysql_query(use sample_android) or die(Can not communicate with the database.); //Insert patient record in patient_record table $sql_InsertPatientRecord = insert into sample(id, name, fname) values ('$id', '$name', '$fname'); mysql_query($sql_InsertPatientRecord); mysql_close(); echo Message is inserted; } ? -- 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 can I change the typeface of the Android project
Hello I am developing a localized application for android phone. the language that I use is Amharic. Can I change the font type (typeface) of the android project label to another language. that is, in the AndroidManifest.xml file, can make the android:label to be in another language. application android:icon=@drawable/icon android:label=@string/ app_name Please help me Andu. -- 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] Change the Typeface of ListView and Spinner
How are you all! I am developing android application. currently I am creating a user interface in my language, Amharic. I can change the font for Textview, button and other controls. But I can change the font for ListView and Spinner control. When I search the internet I found out that Listview and spinner has their own textview to keep the text. But I don't know how to access the textview component of this controls. 1. How can I change the typeface of Listview and Spinner? or 2. How can I access the built-in textview of these component so that I can change the typeface for the textview? Please Help me :-) Andu. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---