[android-developers] OnKeyListener is not working, why?

2012-03-14 Thread xi developer
I have a fragment class, in the fragment class, I implement the onCreateView(...) callback in the following way: @Override public View onCreateView(LayoutInflater inflater, ViewGrou

[android-developers] After I added ACTION_SEND in my Activity intent-filter, how can I still use android build-in email app??

2010-12-02 Thread xi developer
I know I can use android build in email app when I use the intent with ACTION_SEND, there is no problem for me. The problem comes after I defined the ACTION_SEND in my AndroidManifest.xml like follows: Since I would li

[android-developers] How to startActivity() in a subclass of Dialog?

2010-11-25 Thread xi developer
I have one subclass which extends Dialog class, it seems I can not use startActivity() function to start a new Activity in this subclass which extends Dialog class, how to resolve it? How to start a new Activity in a Dialog subclass? (In my customized dialog class, I have one button, when pressed,

[android-developers] how to implement Two line text with different colors on one button

2010-11-24 Thread xi developer
In my android app development, I have one button, the button text is not a single color text, it is two lines text, with each line uses different color for line text. How to implement this? "Two lines" can be simply implemented by adding "\n" in the text, I don know how to set different colors for

[android-developers] how to increase camera resolution??

2010-11-18 Thread xi developer
I run my application with camera functionality implemented in an android-powered phone, but the camera image I got always has small resolution. It seems by default, the android camera resolution is small (e.g. 640*410), how to increase the resolution (e.g. to 1024 * 768), I use the following code t

[android-developers] Re: How can service return a string back to Activity?

2010-11-11 Thread xi developer
o activity with string in broadcast's intent as an extra. > > Best regards, > Filip Havlicek > > 2010/11/11 xi developer > > > > > > > > > I am new in Android . I encounter the following situation, > > > I have a background running service,

[android-developers] How can service return a string back to Activity?

2010-11-11 Thread xi developer
I am new in Android . I encounter the following situation, I have a background running service, which will get a keep-updating string from a webpage, I need to show this keep-updating string in my UI through Activity, since this string is get from service, I am wondering, How can the service pass

[android-developers] How to get a string from a website, and show the string on my android app. ?

2010-11-11 Thread xi developer
I have made a service which extends Service in android, and running in the background of my android app. What I want from this background service is to get the euro to dollar exchange rate from a finance website, I have my service ready, it can periodically run a function, I am now need to implemen

[android-developers] how to inject view from a dialog layout xml file when using RoboGuice?

2010-11-03 Thread xi developer
It seems that roboguice can only inject views from the contentView defined in onCreate(...) of the activity, outside onCreate(), for example, if I have my custom dialog, which has also a content view (e.g.dialog.setContentView(R.layout.dialog_layout);), the views inside the dialog_layout.xml can no

[android-developers] Warning msg “No keyboard for id 0”????

2010-10-14 Thread xi developer
I am new in Android app. development, now I have encountered a strange problem with the Menu button. Here is the thing: I have two activities, "ActivityOne" and "ActivityTwo", where "ActivityTwo" is the child Activity of "ActivityOne". In both activity, I have defined the menu button options like

[android-developers] Re: How to change the icon position on a tab

2010-10-06 Thread xi developer
height="fill_parent" android:gravity="center_vertical" android:background="@color/row_bg_color"> On Oct 6, 4:31 pm, Mark Murphy wrote: > On Wed, Oct 6, 2010 at 9:30 AM, xi developer wrote: > > Where can I change my icon positi

[android-developers] How to change the icon position on a tab

2010-10-06 Thread xi developer
Where can I change my icon position on a tab to be in the center of the tab. Currently, my icon is located on top of the tab by default... -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-develop

[android-developers] Why I can not open database in my service layer class

2010-09-15 Thread xi developer
When I create a instance of the SQLiteOpenHelper, I always need a "Context" to be passed as its constructor's argument. To use this "Context", in my service layer class, I extends Activity class, though I do not display this activity on the screen because it is my service layer. I always get NullPo

[android-developers] How to use 'SQLiteStatement' to insert a item ( with multiple columns)

2010-09-07 Thread xi developer
I am new in Android development, I got a simple question to ask, I know the way how to implement item insert to DB table when there is only one id column and one "name" column in the table, which is: "CREATE TABLE myTable (id INTEGER PRIMARY KEY, name TEXT)" String INSERT = "insert into myTable

[android-developers] How to "printf" in android development

2010-09-03 Thread xi developer
I just notice that in android app. development( I use Eclipse as my IDE), if I have a statement "System.out.printf("hello")", it wont show anywhere, either console or LogCat, How can I see the output of "printf" in android app. development?? -- You received this message because you are subscribed