[android-developers] How to get the GIVEN_NAME and FAMILY_NAME via android 2.0 contacts api
att -- 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 know whether a resource is compressed or not?
we can let aapt not compress the resource via command -0. which api can be used to check the resource is compress or not? thanks a lot -- 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: How to use the ninepatch png image via file, not from resource?
anybody can tell me the detailed process of 9patch png? Thanks On May 25, 9:50 am, Paranoia zheny...@gmail.com wrote: i want to use the ninepatch image in the file system. but seems that it can be referenced via res. how to get the auto-scale support for the images in file system. Thanks! Best Regards --~--~-~--~~~---~--~~ 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 use the ninepatch png image via file, not from resource?
i want to use the ninepatch image in the file system. but seems that it can be referenced via res. how to get the auto-scale support for the images in file system. Thanks! Best Regards --~--~-~--~~~---~--~~ 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: How to control composing text more flexibly in Android 1.5 IMF.
On May 11, 4:57 am, Dianne Hackborn hack...@android.com wrote: On Sat, May 9, 2009 at 10:39 PM, Paranoia zheny...@gmail.com wrote: i want to draw the compoing text and the cursor by myself. but i do not find how to implement this. You can't. You can deliver the composing text with style information, however. i also want to set the cursor position into the composing text when i call setComposingText. seems it's impossible. Yes because the application may do filtering or other modification of the text. why not do filtering when the text is committed to editor? i do need to set the cursor in the composing text And i found an issue that. setComposingText is also insert the composing text to a fixed position. the following code does not work. InputConnection ic = getCurrentInputConnection(); ic.setSelection(xxx, yyy); ic.setComposingText(composingtext, 1); Any one can tell me why? Thanks! The composing text is placed at the current cursor location. I'd need to have a full sample code to know what you are trying to do and what is not happening how you want. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to control composing text more flexibly in Android 1.5 IMF.
On May 11, 4:57 am, Dianne Hackborn hack...@android.com wrote: On Sat, May 9, 2009 at 10:39 PM, Paranoia zheny...@gmail.com wrote: i want to draw the compoing text and the cursor by myself. but i do not find how to implement this. You can't. You can deliver the composing text with style information, however. i also want to set the cursor position into the composing text when i call setComposingText. seems it's impossible. Yes because the application may do filtering or other modification of the text. why not do filtering when the text is committed to editor? i do need to set the cursor in the composing text And i found an issue that. setComposingText is also insert the composing text to a fixed position. the following code does not work. InputConnection ic = getCurrentInputConnection(); ic.setSelection(xxx, yyy); ic.setComposingText(composingtext, 1); Any one can tell me why? Thanks! The composing text is placed at the current cursor location. I'd need to have a full sample code to know what you are trying to do and what is not happening how you want. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to control composing text more flexibly in Android 1.5 IMF.
On May 11, 4:57 am, Dianne Hackborn hack...@android.com wrote: On Sat, May 9, 2009 at 10:39 PM, Paranoia zheny...@gmail.com wrote: i want to draw the compoing text and the cursor by myself. but i do not find how to implement this. You can't. You can deliver the composing text with style information, however. i also want to set the cursor position into the composing text when i call setComposingText. seems it's impossible. Yes because the application may do filtering or other modification of the text. why not do filtering when the text is committed to editor? i do need to set the cursor in the composing text And i found an issue that. setComposingText is also insert the composing text to a fixed position. the following code does not work. InputConnection ic = getCurrentInputConnection(); ic.setSelection(xxx, yyy); ic.setComposingText(composingtext, 1); Any one can tell me why? Thanks! The composing text is placed at the current cursor location. I'd need to have a full sample code to know what you are trying to do and what is not happening how you want. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to control composing text more flexibly in Android 1.5 IMF.
i found the methods to control composing text in IMF are very limited. for example: i want to draw the compoing text and the cursor by myself. but i do not find how to implement this. i also want to set the cursor position into the composing text when i call setComposingText. seems it's impossible. And i found an issue that. setComposingText is also insert the composing text to a fixed position. the following code does not work. InputConnection ic = getCurrentInputConnection(); ic.setSelection(xxx, yyy); ic.setComposingText(composingtext, 1); Any one can tell me why? Thanks! --~--~-~--~~~---~--~~ 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: Lost focus on soft keyboard
do you mean the keyboard is popped up, but the activity is not pushed aside? right? i DID meet this issue. seems it's bug of the imf, or windowmanager. On May 7, 3:15 pm, Yossi yossi@gmail.com wrote: Hi Dianne, Did you find anything wrong with my code? Thanks, Yossi On May 6, 11:00 am, Yossi yossi@gmail.com wrote: this is the layout ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:id=@+android:id/widget_frame android:orientation=vertical android:padding=10px android:layout_width=fill_parent android:layout_height=fill_parent TextView android:text=@string/settings_text_email android:layout_width=wrap_content android:layout_height=wrap_content android:textSize=24px android:textColor=#ff android:gravity=left android:paddingLeft=3dip/ TextView android:text=@string/settings_text_email_info android:layout_width=wrap_content android:layout_height=wrap_content android:textColor=#ff android:textSize=14px android:gravity=left android:paddingLeft=3dip/ LinearLayout android:orientation=horizontal android:gravity=left|top android:layout_width=fill_parent android:layout_height=fill_parent EditText android:id=@+id/settings_edit_email android:text= android:layout_width=248px android:layout_height=wrap_content android:textColor=#262626 android:textSize=16px android:gravity=left|center/ Button android:id=@+id/settings_button_save android:text=@string/settings_button_save android:layout_width=52px android:layout_height=44px android:gravity=left|center/ /LinearLayout /LinearLayout and this is the code import android.content.Context; import android.preference.Preference; import android.util.AttributeSet; import android.view.View; import android.widget.Button; import android.widget.EditText; public class EditEmailPreference extends Preference implements View.OnClickListener { private EditText _emailEditText; public EditEmailPreference(Context context, AttributeSet attrs) { super(context, attrs); setLayoutResource(R.layout.settings_email); } @Override protected void onBindView(View view) { super.onBindView(view); _emailEditText = (EditText) view.findViewById (R.id.settings_edit_email); _emailEditText.setText(getPersistedString()); Button saveButton = (Button) view.findViewById (R.id.settings_button_save); saveButton.setOnClickListener(this); } @Override public void onClick(View v) { persistString(_emailEditText.getText().toString()); } } Thanks for your help. On May 6, 10:50 am, Dianne Hackborn hack...@android.com wrote: You'll need to supply code that demonstrates the problem. Given that this behavior is nothing like the standard behavior of EditText anywhere else in the system, here must be something in your code instigating it. On Wed, May 6, 2009 at 12:24 AM, Yossi yossi@gmail.com wrote: 1. User clicks on the EditText 2.Softkeyboardpops-up and EditText loses the focus. Any typing on thekeyboarddoes nothing 3. User touches again the EditText to get focus 4. Now, any click on thekeyboardshows the character for a second in the EditText but then it disappears. Thanks. On May 6, 10:11 am, Dianne Hackborn hack...@android.com wrote: IMEs do not take input focus, so I don't really understand what you are describing. What behavior are you seeing that is different than how the IME behaves in other parts of the UI? On Tue, May 5, 2009 at 11:47 PM, Yossi yossi@gmail.com wrote: Anyone has this issue or am I doing something wrong? On May 2, 11:51 am, Yossi yossi@gmail.com wrote: Hi, I implemented a custom preference screen on which I have an EditText control. The problem I have is when the user clicks on the EditText control to enter data,
[android-developers] How to change the text style of the composing text in IMF
currently, the composing text is set underlined with the cursor. can not change this default text style? e.g. change the text to italic. Thanks --~--~-~--~~~---~--~~ 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 parse and analyze the call stack of native code? any tools?
Thanks! the following is the log from native code. I/DEBUG ( 543): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** I/DEBUG ( 543): Build fingerprint: 'generic/generic/generic/:1.5/ CUPCAKE/eng.xx.20090418.095237:eng/test-keys' I/DEBUG ( 543): pid: 644, tid: 644 com.xxx..xxx I/DEBUG ( 543): signal 7 (SIGBUS), fault addr I/DEBUG ( 543): r0 0019a890 r1 054c r2 r3 00198aa0 I/DEBUG ( 543): r4 016a0002 r5 44d1b338 r6 0005 r7 0013f4f8 I/DEBUG ( 543): r8 beb81550 r9 41049ba8 10 41049b94 fp I/DEBUG ( 543): ip 00ce sp beb813d0 lr afc1d698 pc 804216fc cpsr 2030 I/DEBUG ( 543): #00 pc 000216fc /system/lib/lib.so I/DEBUG ( 543): #01 pc 0001279c /system/lib/lib.so I/DEBUG ( 543): #02 pc d41a /system/lib/lib.so I/DEBUG ( 543): #03 pc c59e /system/lib/lib.so I/DEBUG ( 543): #04 pc b486 /system/lib/lib.so I/DEBUG ( 543): #05 pc c252 /system/lib/lib.so I/DEBUG ( 543): #06 pc 8a7a /system/lib/lib.so I/DEBUG ( 543): #07 pc e3b4 /system/lib/libdvm.so --~--~-~--~~~---~--~~ 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] Some problems in cupcake imf
i am developing an ime on android. i have some questions. 1. why InputMethodService force the ime developer to follow the fixed layout - extracted text, candidate view and input view. i want to layout them by myself. can i do this via derive the AbstractInputMethodService? if yes, can android team keep this abstract class always open and stable? BTW: InputMethodService is really hard to use. 2. what's the correct behavior of the InputConnection.commitText? i write the following code. but it can not satisfy me. ... InputConnection ic = getInputConnection(); ic.commitText(textA, 1); ic.commitText(textB, 0); i want the cursor to before the textB and after the textA. but it always be present after textB. anyone can answer my questions? Thanks --~--~-~--~~~---~--~~ 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: Some problems in cupcake imf
Thank you for such a quick reply! please see my comments in line. On Mar 27, 3:14 pm, Dianne Hackborn hack...@android.com wrote: On Fri, Mar 27, 2009 at 12:04 AM, Paranoia zheny...@gmail.com wrote: 1. why InputMethodService force the ime developer to follow the fixed layout - extracted text, candidate view and input view. i want to layout them by myself. can i do this via derive the AbstractInputMethodService? if yes, can android team keep this abstract class always open and stable? I would strongly recommend against using that directly. Using InputMethodService isn't really going to limit what you can do, and it takes care of a lot of the details of interacting correctly with the application. There is a lot of default functionality in InputMethodService for providing the correct standard behavior for an IME. If you want to force particular behavior, there are various methods you can override to impact that. Just go through the methods and see what you want to do. For example, if you want to do your own candidate view, just do that. Don't call the method to show the candidate view. Likewise if you want to always run in fullscreen/extract mode, then implement the method that decides when to be in that mode and just always do it. BTW: InputMethodService is really hard to use. Well writing a well behaving input method is a little harder than writing a regular application. :) 2. what's the correct behavior of the InputConnection.commitText? i write the following code. but it can not satisfy me. ... InputConnection ic = getInputConnection(); ic.commitText(textA, 1); ic.commitText(textB, 0); i want the cursor to before the textB and after the textA. but it always be present after textB. Use -1 for the second param; I am pretty sure the doc explains how the cursor position argument works. i tried this the cursor is moved before textA let me summarize the test result. (i use | to represent the cursor) ic.commitText(textA, 1); ic.commitText(textB, 0); result: textA textB | ic.commitText(textA, 1); ic.commitText(textB, -1); result: | textA textB I want this: result: textA | textB actually, i found that the results are same whatever the newCursorPosition is 0 or 1. seems it's not so consistent with the comment. Also please note... there is not yet an SDK for cupcake, these are all new APIs, I have no idea of what build you are working against, and depending on which that is various things may or may not be broken, or have changed, or whatever else. Thank you for you advice. I have been following the code changes for a long time. :-) -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Some problems in cupcake imf
all right... i will follow this issue. hope for new change. On Mar 27, 3:46 pm, Dianne Hackborn hack...@android.com wrote: It may be broken. I don't know the state of the code you are working with. On Fri, Mar 27, 2009 at 12:23 AM, Paranoia zheny...@gmail.com wrote: Thank you for such a quick reply! please see my comments in line. On Mar 27, 3:14 pm, Dianne Hackborn hack...@android.com wrote: On Fri, Mar 27, 2009 at 12:04 AM, Paranoia zheny...@gmail.com wrote: 1. why InputMethodService force the ime developer to follow the fixed layout - extracted text, candidate view and input view. i want to layout them by myself. can i do this via derive the AbstractInputMethodService? if yes, can android team keep this abstract class always open and stable? I would strongly recommend against using that directly. Using InputMethodService isn't really going to limit what you can do, and it takes care of a lot of the details of interacting correctly with the application. There is a lot of default functionality in InputMethodService for providing the correct standard behavior for an IME. If you want to force particular behavior, there are various methods you can override to impact that. Just go through the methods and see what you want to do. For example, if you want to do your own candidate view, just do that. Don't call the method to show the candidate view. Likewise if you want to always run in fullscreen/extract mode, then implement the method that decides when to be in that mode and just always do it. BTW: InputMethodService is really hard to use. Well writing a well behaving input method is a little harder than writing a regular application. :) 2. what's the correct behavior of the InputConnection.commitText? i write the following code. but it can not satisfy me. ... InputConnection ic = getInputConnection(); ic.commitText(textA, 1); ic.commitText(textB, 0); i want the cursor to before the textB and after the textA. but it always be present after textB. Use -1 for the second param; I am pretty sure the doc explains how the cursor position argument works. i tried this the cursor is moved before textA let me summarize the test result. (i use | to represent the cursor) ic.commitText(textA, 1); ic.commitText(textB, 0); result: textA textB | ic.commitText(textA, 1); ic.commitText(textB, -1); result: | textA textB I want this: result: textA | textB actually, i found that the results are same whatever the newCursorPosition is 0 or 1. seems it's not so consistent with the comment. Also please note... there is not yet an SDK for cupcake, these are all new APIs, I have no idea of what build you are working against, and depending on which that is various things may or may not be broken, or have changed, or whatever else. Thank you for you advice. I have been following the code changes for a long time. :-) -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] how to check whether a char can be or not be displayed normally?
basically, the default font droid can not support all of the characters in unicode. how can i find all unsupported characters in droid font? thanks --~--~-~--~~~---~--~~ 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: how to check whether a char can be or not be displayed normally?
so does google have any plan to help find all abnormal characters? after all, some are displayed as the small rectangles, which are really ugly... On Feb 19, 2:10 am, Mike Reed r...@google.com wrote: There is no API for that. On Wed, Feb 18, 2009 at 11:13 AM, Paranoia zheny...@gmail.com wrote: basically, the default font droid can not support all of the characters in unicode. how can i find all unsupported characters in droid font? thanks --~--~-~--~~~---~--~~ 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: How to handle ini file in android?
no, they are 2 different issues. one is how to use ini file as the config file. another is that there is the file size limit in assets dir. On Feb 3, 8:57 am, Emmanuel emmanuel.ast...@gmail.com wrote: Do you mean you want to use a .ini file that is more than 1 mo ? 1mo is a lot of memory for a mobile phone ! Though if you really need to, you can always concatenate several 1 Mo asset files to fit your needs. Emmanuelhttp://androidblogger.blogspot.com/ On Feb 2, 8:18 am, Paranoia zheny...@gmail.com wrote: and seems there is a limit on the file size in assets. the file can not be larger than 1MB! On Feb 2, 2:39 pm, Paranoia zheny...@gmail.com wrote: how to use assets directory? i have rebuild the apk by apkbuilder manually? On Jan 30, 9:56 pm, Tote tot...@gmail.com wrote: Or alternatively you can put your asset files under 'assets' directory in your package. AssetManager helps you opening those files, however, parsing is really up to you. Anyway, I let the users of my application edit preferences and for that I use PreferenceActivity along with PreferenceManager. Might be useful for you, too. On Jan 30, 8:59 am, hmmm akul...@mail.ru wrote: You can place your ini file (or any file), say config,ini, in the 'raw' subdir of the 'res' dir and then use InputStream is = Context.getResources().openRawResource(R.raw.config) But then, I guess, there's no API in android dealing with ini files specifically so you then might want to create your own class to represent an ini file - Original Message - From: Paranoia zheny...@gmail.com To: Android Developers android-developers@googlegroups.com Sent: Friday, January 30, 2009 10:32 AM Subject: [android-developers] Re: How to handle ini file in android? i want to use ini file as my config files. how to use ini file in android instead of xml file. i mean replace xml with ini in android On Jan 30, 11:48 am, Dianne Hackborn hack...@android.com wrote: Android doesn't do ini files; we generally use XML for these kinds of things. You will probably need to find a parser elsewhere, or write your own, and compile it into your app. On Thu, Jan 29, 2009 at 6:59 PM, Paranoia zheny...@gmail.com wrote: Thanks but it seems that this method can not handle the ini file with multiple sections. e.g. [Section1] X=a Y=b [Section2] U=c V=d ... On Jan 22, 2:37 pm, Freepine freep...@gmail.com wrote: Hi, maybe you can try java.util.Properties.load(InputStream http://code.google.com/android/reference/java/io/InputStream.html in) http://code.google.com/intl/zh-CN/android/reference/java/util/Propert...) On Thu, Jan 22, 2009 at 2:14 PM, Paranoia zheny...@gmail.com wrote: i can not find any utility to parse the ini file in android. any one can help me? -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: is there any setStyle method?
so android does not support dynamic theme, right? do you guys have any plan to support it? On Feb 2, 10:36 am, Dianne Hackborn hack...@android.com wrote: Sorry there is no way to change the style/theme that a view is using after is is created. On Sun, Feb 1, 2009 at 4:30 PM, skink psk...@gmail.com wrote: On 1 Lut, 22:34, Romain Guy romain...@google.com wrote: The style can be passed to a view's constructor. thanks Romain for your reply, but i think it's equivalent of setting style in xml - it's static. what about setting the style after the View is constructed - that way style could be dynamically changed? -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to handle ini file in android?
how to use assets directory? i have rebuild the apk by apkbuilder manually? On Jan 30, 9:56 pm, Tote tot...@gmail.com wrote: Or alternatively you can put your asset files under 'assets' directory in your package. AssetManager helps you opening those files, however, parsing is really up to you. Anyway, I let the users of my application edit preferences and for that I use PreferenceActivity along with PreferenceManager. Might be useful for you, too. On Jan 30, 8:59 am, hmmm akul...@mail.ru wrote: You can place your ini file (or any file), say config,ini, in the 'raw' subdir of the 'res' dir and then use InputStream is = Context.getResources().openRawResource(R.raw.config) But then, I guess, there's no API in android dealing with ini files specifically so you then might want to create your own class to represent an ini file - Original Message - From: Paranoia zheny...@gmail.com To: Android Developers android-developers@googlegroups.com Sent: Friday, January 30, 2009 10:32 AM Subject: [android-developers] Re: How to handle ini file in android? i want to use ini file as my config files. how to use ini file in android instead of xml file. i mean replace xml with ini in android On Jan 30, 11:48 am, Dianne Hackborn hack...@android.com wrote: Android doesn't do ini files; we generally use XML for these kinds of things. You will probably need to find a parser elsewhere, or write your own, and compile it into your app. On Thu, Jan 29, 2009 at 6:59 PM, Paranoia zheny...@gmail.com wrote: Thanks but it seems that this method can not handle the ini file with multiple sections. e.g. [Section1] X=a Y=b [Section2] U=c V=d ... On Jan 22, 2:37 pm, Freepine freep...@gmail.com wrote: Hi, maybe you can try java.util.Properties.load(InputStream http://code.google.com/android/reference/java/io/InputStream.html in) http://code.google.com/intl/zh-CN/android/reference/java/util/Propert...) On Thu, Jan 22, 2009 at 2:14 PM, Paranoia zheny...@gmail.com wrote: i can not find any utility to parse the ini file in android. any one can help me? -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to handle ini file in android?
Thanks but it seems that this method can not handle the ini file with multiple sections. e.g. [Section1] X=a Y=b [Section2] U=c V=d ... On Jan 22, 2:37 pm, Freepine freep...@gmail.com wrote: Hi, maybe you can try java.util.Properties.load(InputStreamhttp://code.google.com/android/reference/java/io/InputStream.html in)http://code.google.com/intl/zh-CN/android/reference/java/util/Propert...) On Thu, Jan 22, 2009 at 2:14 PM, Paranoia zheny...@gmail.com wrote: i can not find any utility to parse the ini file in android. any one can help me? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to handle ini file in android?
i want to use ini file as my config files. how to use ini file in android instead of xml file. i mean replace xml with ini in android On Jan 30, 11:48 am, Dianne Hackborn hack...@android.com wrote: Android doesn't do ini files; we generally use XML for these kinds of things. You will probably need to find a parser elsewhere, or write your own, and compile it into your app. On Thu, Jan 29, 2009 at 6:59 PM, Paranoia zheny...@gmail.com wrote: Thanks but it seems that this method can not handle the ini file with multiple sections. e.g. [Section1] X=a Y=b [Section2] U=c V=d ... On Jan 22, 2:37 pm, Freepine freep...@gmail.com wrote: Hi, maybe you can try java.util.Properties.load(InputStream http://code.google.com/android/reference/java/io/InputStream.html in) http://code.google.com/intl/zh-CN/android/reference/java/util/Propert...) On Thu, Jan 22, 2009 at 2:14 PM, Paranoia zheny...@gmail.com wrote: i can not find any utility to parse the ini file in android. any one can help me? -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Porting JMF - Native source code to android based
hi, can you tell me when android will publish it? On Jan 23, 3:48 pm, Dave Sparks davidspa...@android.com wrote: We do not support native code on Android at this time, but we have plans to publish a native SDK soon. On Jan 22, 2:03 am, MRK infoto...@gmail.com wrote: I am creating an Android application which uses the JMF (SIP, RTP, JAIN). So i downloaded the JMF source code for some adhoc change to my application. The basic questions 1. How will it behave the native files - C/C++/header in JMF source files(downloaded)? because android is based on java right now. 2. Is there any complete different way to porting/doing the SIP, RTP working in android? Note : The downloaded JMF source code is not direct under from sun.com (this) site but thread start from this forum only. Is there any link from sun.com(this) site for JMF source code? Any suggestion and comment about this? Advance thanks. --~--~-~--~~~---~--~~ 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: How to set sdp file in the MediaPlayer
open this file directly... but you have to need add a new data source PVMF_DATA_SOURCE_SDP_FILE in playerdriver.cpp On Jan 22, 4:58 pm, develop code developcod...@gmail.com wrote: Hi, I want to play a video file sitting in a server by setting local sdp file in the mediaplayer. How to set the mediaplayer to read the local sdp file and start playing depending on the sdp connect (if it has unicast/multicast, start corresponding session)? I want to test unicast for now. Anybody has does this? --~--~-~--~~~---~--~~ 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 handle ini file in android?
i can not find any utility to parse the ini file in android. any one can help me? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: can not find http proxy support for opencore http streaming playback
anybody here??? i hope android guys can know this issue. thanks! On Jan 11, 9:12 am, Paranoia zheny...@gmail.com wrote: http streaming playback can be support by opencore. but no any api for this in mediaplayer. can android developers add this functionality? i have no idea whether they can see my post. --~--~-~--~~~---~--~~ 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: can not find http proxy support for opencore http streaming playback
opencore supports http streaming playback. but mediaplayer does not support http proxy, since no relevant api. On Jan 13, 5:37 pm, rktb yend...@pv.com wrote: mediaplayer does support http playback.http://code.google.com/android/reference/android/media/MediaPlayer.ht...) On Jan 13, 2:21 pm, Paranoia zheny...@gmail.com wrote: anybody here??? i hope android guys can know this issue. thanks! On Jan 11, 9:12 am, Paranoia zheny...@gmail.com wrote: http streaming playback can be support by opencore. but no any api for this in mediaplayer. can android developers add this functionality? i have no idea whether they can see my post. --~--~-~--~~~---~--~~ 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: How To Start a RTSP connection
exactly,opencore dose not support mp3 rtp playback, whatever it's rfc3119 or rfc2250. On Dec 20 2008, 3:37 am, kamil kamit...@gmail.com wrote: Hi, I've encountered the very same error as described above. I'm using VLC as MP3/RTSP streaming server, and this looks exactly like Android didn't like something he got in DESCRIBE SDP response. SDP looks like: v=0 o=- 2819777490 2 IN IP4 192.168.100.108 c=IN IP4 0.0.0.0 t=0 0 a=tool:vlc 0.9.8a a=range:npt=0-176.091 m=audio 0 RTP/AVP 14 a=rtpmap:14 MPA/9 a=control:rtsp://192.168.100.108:5554/Test/trackID=0 VLC is streaming single MP3 file. Debug shows MediaPlayer's error (-1,0) and I haven't manage to find any explanation of this message. Does anyone have any idea? Thanks in advance Kamil --~--~-~--~~~---~--~~ 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: How To Start a RTSP connection
thanks. you mean pv will not support mp3 rtp in opencore. right? or it is some value-add feature? i heard that it's not opencore in G1, but core. On Jan 3, 9:45 pm, Ravi Yenduri yend...@pv.com wrote: http://code.google.com/p/android/issues/detail?id=1513 On Jan 3, 6:33 pm, Paranoia zheny...@gmail.com wrote: exactly,opencore dose not support mp3 rtp playback, whatever it's rfc3119 or rfc2250. On Dec 20 2008, 3:37 am, kamil kamit...@gmail.com wrote: Hi, I've encountered the very same error as described above. I'm using VLC as MP3/RTSP streaming server, and this looks exactly like Android didn't like something he got in DESCRIBE SDP response. SDP looks like: v=0 o=- 2819777490 2 IN IP4 192.168.100.108 c=IN IP4 0.0.0.0 t=0 0 a=tool:vlc 0.9.8a a=range:npt=0-176.091 m=audio 0 RTP/AVP 14 a=rtpmap:14 MPA/9 a=control:rtsp://192.168.100.108:5554/Test/trackID=0 VLC is streaming single MP3 file. Debug shows MediaPlayer's error (-1,0) and I haven't manage to find any explanation of this message. Does anyone have any idea? Thanks in advance Kamil --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---