[android-developers] Layout Problem
Hello, I am trying to design a layout where the top half of the screen contains a ListView and then aligned at the bottom is an EditText and a Button at the side. Now I've got that currently laid out as I want, however when the ListView contains more items it displays itself over the EditText. I am trying to get it so the ListView scrolls it's items but the EditText and Button remain stationary. Could someone please have a look at my Layout XML and tell me where I am going wrong? PS: I am coding for 1.5 version and above. Regards Anthoni ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:layout_height=wrap_content android:layout_width=fill_parent ListView android:id=@+id/lvReplies android:layout_width=fill_parent android:layout_height=wrap_content android:layout_alignParentTop=true/ TableLayout android:layout_width=fill_parent android:layout_height=wrap_content android:layout_alignParentBottom=true android:stretchColumns=0 TableRow android:layout_width=fill_parent android:layout_height=fill_parent EditText android:id=@+id/txtSay android:layout_height=wrap_content android:layout_width=fill_parent android:layout_span=3 android:singleLine=true android:hint=What do want to say to me ? / Button android:id=@+id/btnSend android:layout_height=wrap_content android:layout_width=wrap_content android:layout_span=1 android:text=Send / /TableRow /TableLayout /RelativeLayout -- 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: I can't find my own application in the market
What did you search for maybe one of us can find it? Try searching for pname:your full package name If you limited the apps region and you phone is from a different area it won't show. Acer Liquid should be and1.6 if your application uses a higher sdk then 5 it won't show. If your phone is rooted and you selected use copy protection is also shouldn't show. On May 15, 7:37 pm, Simone simone.russ...@gmail.com wrote: I just bought an Acer Liquid today, and of course the first application I looked for in the market was my own. I couldn't find it. What gives? Thanks, Simone -- 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 athttp://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] Is there a library for either choosing a photo or taking one with the camera?
Trying to find a library or a good example so I can try to get this to work within my Android app. 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: I can't find my own application in the market
Nope, my application uses 1.6, and I have not restricted the app region nor my phone is rooted. Here you can find the QR core of my application (it's free): http://www.androlib.com/android.application.applications-fartfactory-DwjC.aspx Thanks again, Simone On 16 Mag, 10:34, Martrinex ad...@martrinex.net wrote: What did you search for maybe one of us can find it? Try searching for pname:your full package name If you limited the apps region and you phone is from a different area it won't show. Acer Liquid should be and1.6 if your application uses a higher sdk then 5 it won't show. If your phone is rooted and you selected use copy protection is also shouldn't show. On May 15, 7:37 pm, Simone simone.russ...@gmail.com wrote: I just bought an Acer Liquid today, and of course the first application I looked for in the market was my own. I couldn't find it. What gives? Thanks, Simone -- 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 athttp://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 athttp://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: Creation of Activities from Tabhost
I want each tab activity to register for events on creation. Otherwise it could happen that a tab is not up2date because it missed the event simply because the instance didn't register itself. And the second point is that the selection of each tab the first time works smoother. Therefore I thought, if there is a way to deactivate lacy creation, it would help me with this problem. And since I know that the user must use each tab, it doesn't matter if it is created on startup... On May 15, 8:13 am, skink psk...@gmail.com wrote: On May 14, 5:36 pm, Patrick patrick.manges...@gmail.com wrote: Hallo! I have a TabActivity. Within this activity (in the onCreate method) I create a TabHost and a TabSpec and do a tabSpectSearch.setContent(intenSearch); The Indent is created using intentSearch = new Intent().setClass(this, MyActivity.class); As far as I already found out the class MyActivity is instantiated when I select the tab, to which it is connected. Is there a way from my TabActivity to force the creation of all activities (all tabs) at once? -- 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 athttp://groups.google.com/group/android-developers?hl=en why lazy creation is not good for you? pskink -- 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 athttp://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] Problem with ListView, getting selection to stick first time and when scrolling
Hi, I have a ListView that I can't get to behave as I like. When I click it the first time the item I click won't get selected? It fires the onItemClick event but it is not selected on the screen. If I click the list one more time the selection remains. I want this to be the behavior the first time I click the list as well. How do I do this? Also I would like the ListView to have a item selected by default, and I want the selected item to show as selected when scrolling the ListView. Can this be done? I've tried setSelection(0) and almost everything else I can think of but I can't get this to work. :-/ Oh one more thing that I can't figure out. When scrolling the ListView the background gets darker, how do I change this or turn it off? Any help is appreciated. /Micke -- 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
Re: [android-developers] Problem with ListView, getting selection to stick first time and when scrolling
Mikael Bertlin wrote: I have a ListView that I can't get to behave as I like. When I click it the first time the item I click won't get selected? It fires the onItemClick event but it is not selected on the screen. If you are using the touchscreen, it is not supposed to stay selected on the screen. Also I would like the ListView to have a item selected by default, and I want the selected item to show as selected when scrolling the ListView. Can this be done? Not on a device with a touchscreen, if the user entered the activity via the touchscreen. http://developer.android.com/resources/articles/touch-mode.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- 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
Re: [android-developers] Re: Creation of Activities from Tabhost
Patrick wrote: I want each tab activity to register for events on creation. Otherwise it could happen that a tab is not up2date because it missed the event simply because the instance didn't register itself. And the second point is that the selection of each tab the first time works smoother. Therefore I thought, if there is a way to deactivate lacy creation, it would help me with this problem. And since I know that the user must use each tab, it doesn't matter if it is created on startup... First, if the user must use each tab, tabs are the wrong UI metaphor. Create yourself a wizard. Second, if you want everything loaded up front, then do not use activities as the contents of tabs. Use Views as the contents of tabs. See: http://github.com/commonsguy/cw-android/tree/master/Fancy/Tab/ -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- 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
Re: [android-developers] Registering OnClick listener on AppWidget button
Isaac Wagner wrote: Thanks. I bought a subscription to your books and have actually been going through this code trying to figure it out. If I understand correctly this is the snippet of code that handles the refresh button: public void onReceive(Context ctxt, Intent intent) { if (intent.getAction()==null) { ctxt.startService(new Intent(ctxt, UpdateService.class)); } else { super.onReceive(ctxt, intent); } } What I'd like to do is expand this code to be able to handle three different buttons. However, I'm not sure how to do that. In my case, I cheated and used the null action string as my indicator that it was my broadcast Intent. If you want several, you will need to use your own action strings for each. If you put both the component: Intent i=new Intent(this, Foo.class); and the action: i.setAction(Foo.THIS_IS_MY_BOOMSTICK_ACTION); then the Intent will still get routed based on the component, but the action will be available to help discriminate the incoming Intents (plus, it keeps them unique from a PendingIntent standpoint). Incidentally, that would be a great addition to this widget in your book -- adding another button. I'm not entirely sure what it would do, but it would be nice to see an example of handling more than one button press (that isn't a configuration app launcher). I'll add that to my to-do list. Note: it is a really long list. :-) Thanks for the books BTW. They've been helpful. You are very welcome! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- 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
Re: [android-developers] Layout Problem
Anthoni wrote: Hello, I am trying to design a layout where the top half of the screen contains a ListView and then aligned at the bottom is an EditText and a Button at the side. Now I've got that currently laid out as I want, however when the ListView contains more items it displays itself over the EditText. I am trying to get it so the ListView scrolls it's items but the EditText and Button remain stationary. Could someone please have a look at my Layout XML and tell me where I am going wrong? PS: I am coding for 1.5 version and above. Regards Anthoni ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:layout_height=wrap_content android:layout_width=fill_parent ListView android:id=@+id/lvReplies android:layout_width=fill_parent android:layout_height=wrap_content android:layout_alignParentTop=true/ TableLayout android:layout_width=fill_parent android:layout_height=wrap_content android:layout_alignParentBottom=true android:stretchColumns=0 TableRow android:layout_width=fill_parent android:layout_height=fill_parent EditText android:id=@+id/txtSay android:layout_height=wrap_content android:layout_width=fill_parent android:layout_span=3 android:singleLine=true android:hint=What do want to say to me ? / Button android:id=@+id/btnSend android:layout_height=wrap_content android:layout_width=wrap_content android:layout_span=1 android:text=Send / /TableRow /TableLayout /RelativeLayout You do not have any layout rules to force the two widgets not to overlap. Move your ListView after the TableLayout the RelativeLayout definition in the XML, and add to it: android:layout_above=... where ... is @id/whatever_you_decide_to_call_your_table_layout, because you're going to need to give your TableLayout an android:id value. That will force it to stay above the TableLayout. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Beginning Android 2_ from Apress Now Available! -- 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: Drawable resource XML alias
On May 15, 4:38 pm, String sterling.ud...@googlemail.com wrote: On May 15, 7:07 am, skink psk...@gmail.com wrote: BitmapDrawable bd = (BitmapDrawable) res.getDrawable(R.drawable.name2) and then: bd.getBitmap() IIRC Ha, that did the trick. Apparently Resources.getDrawable() works with an XML drawable proxy, but BitmapFactory.decodeResource() does not. Unless someone has a good explanation why this would be so, I'm inclined to call that a bug and write it up at b.android.com. Anyone? no, it's not a bug everything in res/drawable/*.xml is a Drawable (BitmapDrawable, GradientDrawable, etc), you can decode only ordinary images (.png, .jog, .gif) - however i'm not sure if you can decode .9.pngs (nine patch drawables) pskink -- 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: Sending scores to the internet
On May 15, 12:45 pm, Simone simone.russ...@gmail.com wrote: Is it possible for me to add this feature in my game? I just need a little storage space somewhere on the internet to put the names and scores of the best players. Anyone? Simone You will need little more than storage - some kind of server software storing data and also some communication protocol for user handsets. This could be tricky. I implemented highscore for my game recently ( http://www.yook.de/getlines ) I used: PicoWebRemoting to create REST-Service ( Just simple class with 2 methods - push to push entry and pull top pull entries since some period: http://www.pribluda.de/lines-highscore/Highscore/pull?since=0 ) On the client side you will need to parse JSON (native in android, though I use my library for databinding: http://github.com/ko5tik/jsonserializer ) Then you will have to find an answer to following questions: - how to prevent doulbe insertion of high scrores - how do you deal with lack of connectivity - when do you pull highscore data from server to device - how do you secure your service from pranksters inserting bogus entries (no credentials stored in APK are secure) So you may choose to go for some embeddable highscore service (there are some - grok this list) instead doing everything yourself -- 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: Replacing the default volume toast
Okay... took a deeper look on the android sourcecode, and this is probably impossible via a standard (non-superuser) application. This CAN be done when recompiling the Android sourcecode, especially the core/res/res/layout/volume_adjust.xml, which defines the volume toast layout. But again, not within the permission range of an application that can be downloaded from the marketplace. -- 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 Problem
On May 16, 11:04 am, Mark Murphy mmur...@commonsware.com wrote: You do not have any layout rules to force the two widgets not to overlap. Move your ListView after the TableLayout the RelativeLayout definition in the XML, and add to it: android:layout_above=... where ... is @id/whatever_you_decide_to_call_your_table_layout, because you're going to need to give your TableLayout an android:id value. That will force it to stay above the TableLayout. Superb as always Mark, thanks. Works perfectly. Funny thing is I know about the layout_above tag from reading your books, but it never occurred to me to try and use that LOL. Guess it's just practise and practice really. Once again thanks for the assist, much appreciated. Regards Anthoni -- 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
Re: [android-developers] Re: Layout Problem
Anthoni wrote: Funny thing is I know about the layout_above tag from reading your books, but it never occurred to me to try and use that LOL. I'll add an example of this sort of layout to my to-do list to add to the book. As I mentioned to somebody else earlier today, it's a long to-do list... Once again thanks for the assist, much appreciated. No problem, happy to help! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.5 Available! -- 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: I can't find my own application in the market
Turn off copy protection. On May 15, 8:37 pm, Simone simone.russ...@gmail.com wrote: I just bought an Acer Liquid today, and of course the first application I looked for in the market was my own. I couldn't find it. What gives? Thanks, Simone -- 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 athttp://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] Restricting Softkeyboard Kyes for EditText
Hello, I have an EditText that only accepts digits. I want the softkeyboard to show only digits for this input filed. How do I do this? Using the attributes below have not worked for me. I am testing on a Droid phone. android:digits=1234567890 android:inputType=number Thanks, Prasanna -- 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 HttpURLConnection for bluetooth application
Hi everyone I'm trying to figure out how HttpURLConnection class is used for developing bluetooth applications over android environment. from some application logs (logcat) i can see messages like: org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.connec t(HttpURLConnection.java:807) org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.sendRe quest(HttpURLConnection.java:1224) org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.doRequ estInternal(HttpURLConnection.java:1558) org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.doRequ est(HttpURLConnection.java:1551) org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getOut putStream(HttpURLConnection.java:1145 looking for some getting started for this? I'll appreciate your help Moish -- 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 retrieve outgoing number
hi Galbayar, What exactly did u mean by use _id, i don't know the id what i know is the mobile number. that method delete all the log's for that number expect for the current call. that's the issue i'm using this method in here class StateListener extends PhoneStateListener { @Override public void onCallStateChanged(int state, String incomingNumber) { // TODO Auto-generated method stub // super.onCallStateChanged(state, incomingNumber); switch (state) { case TelephonyManager.CALL_STATE_RINGING: phonenbr = incomingNumber; break; case TelephonyManager.CALL_STATE_IDLE: clearCallLog(phonenbr); break; case TelephonyManager.CALL_STATE_OFFHOOK: phonenbr = incomingNumber; break; } } } public void clearCallLog(String mobileNumber) { Cursor c = context.getContentResolver().query( CallLog.Calls.CONTENT_URI, null, Calls.NUMBER + =' + mobileNumber + ', null, Calls.DATE + DESC); context.getContentResolver().cancelSync(Calls.CONTENT_URI); // startManagingCursor(c); String number = null; String date; int dateColumn = c.getColumnIndex(Calls.DATE); int numberColumn = c.getColumnIndex(Calls.NUMBER); if (c != null) { if (c.moveToFirst()) { // do { // Get the field values date = c.getString(dateColumn); number = c.getString(numberColumn); Log.d(NUmber, number); Log.d(Date, date); // alert(number, number); // } while (c.moveToNext()); } int i = context.getContentResolver().delete(Calls.CONTENT_URI, Calls.NUMBER + =' + number + ', null); Log.d(DELETE ID, Integer.toString(i)); //telManager.listen(new StateListener(), LISTEN_NONE); System.exit(0); // finish(); // alert(Delete, Integer.toString(i)); } } what i think is in TelephonyManager.CALL_STATE_IDLE state the current call entry is not there. can it be the reason, but logically that too can't happen. because the call is already over so the entry should be there so can you help me regards, Randika -- 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 get selected items in a ListView (multi selection check boxes)? - URGENT PLZ
You are not using SparseBooleanArray correctly. selectedContacts.size() returns the number of mapped (key, value) pairs. In for loop you assume that keys are in the range 0, size - 1; and they are not. In SparseBooleanArray keys and indexes are two different things. You will obtain proper key with SparseBooleanArray.keyAt(int index) Viktor. On May 11, 12:34 am, dillipk codersnet2...@gmail.com wrote: Hello, How do I get the selected items in a ListView which contains a multi selelected check boxes.? The following code doesn't work correctly... getContacts() is being called in a Button click(). private String getContacts(){ SparseBooleanArray selectedContacts = listView.getCheckedItemPositions(); StringBuffer sb = new StringBuffer(); int size = selectedContacts .size(); for (int sbaKey = 0; sbaKey size; sbaKey++) { if (selectedContacts .get(sbaKey, false)) { //Log.d(TAG, Selected Categories : + listView.getItemAtPosition(sbaKey).toString()); sb.append(listView.getItemAtPosition(sbaKey).toString()); if(sbaKey = size - 2 ){ sb.append(','); } } } Log.d(TAG, Selected Contacts : + sb.toString()); return sb.toString(); } Creation: �...@override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.setTitle(Preferences); setListAdapter(new ArrayAdapterString(this, android.R.layout.simple_list_item_multiple_choice, CONTACTS)); listView = getListView(); listView.setItemsCanFocus(false); listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); } Thank you for your help in advance.. -DK -- 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 athttp://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
Re: [android-developers] Re: WCF complex types with android
Hi ! Actually, i was casting my response to SoapPrimitive i tried to use SoapObject and it worked.Now I'm trying to send object as parameters but i couldn't do that. Can anyone help me. Thx -- 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 Google working on the Bluetooth bug? Any estimated date of completion?
Dan, what is the build id that you mean? Can you elaborate on what the fix is? Ciaran On 14 Mai, 01:12, danraaka danra...@gmail.com wrote: Newer build sud fix this. -Dan On Mon, May 10, 2010 at 7:29 AM, frankentux cfarrell1...@googlemail.comwrote: The same problem seems to be detailed here: http://forum.samdroid.net/threads/598 Looks like SPP is completely broken on the i5700 - possibly because of the Broadcom BCM4325. On the positive side, that chip has a FM module :-) On May 3, 6:56 pm, frankentux cfarrell1...@googlemail.com wrote: http://stackoverflow.com/questions/2661932http://pastebin.org/199621 could also be interesting On May 2, 2:32 am, DonFrench dcfre...@gmail.com wrote: Nexus One. No experience with spica. On May 1, 6:35 am, frankentux cfarrell1...@googlemail.com wrote: My device is a i5700 Samsung spica. The stackoverflow links and the logcats i pasted to pastebin.com (again, see my last post above) all relate to the issue on the spica. Do you have a similar issue with a spica? On 1 Mai, 00:13, dan raaka danra...@gmail.com wrote: is the device being referred here Spica (i5700)? -Dan On Fri, Apr 30, 2010 at 12:10 PM, DonFrench dcfre...@gmail.com wrote: I am not sure if it is the same issue but it sounds related. My app was eventually able to connect to the device I was having trouble with but only after I manually unpaired it. I never deliberately paired it in the first place and I was never asked for a pin during the time it was failing to connect. The device had apparently been automatically paired by Android when it was first detected, as are other nearby laptops and phones and PDAs. After unpairing it, I did not re-pair through the Android utility but ran my app again and attempted to connect to it, at which time I was prompted to enter the pin and to pair. This request to pair did not come directly from my code but resulted from a call to BluetoothSocket.connect( ). At this point it successfully connected and continues to connect. So it seems like the automatic pairing does something that prevents later connection. I wonder if once it is automatically paired without a pin, future attempts to connect recognize that it has been paired but doesn't recognize that no pin was ever requested and so fails for lack of a valid pin. Just a guess. On Apr 29, 9:21 am, frankentux cfarrell1...@googlemail.com wrote: Is this related to: http://stackoverflow.com/questions/2661932/problem-with-bluetooth-on-... http://pastebin.org/191806http://pastebin.org/191824http://pastebin.o... It sounds like the same issue... On Apr 29, 2:09 am, DonFrench dcfre...@gmail.com wrote: (sorry, premature Send of previous message) As I was saying, the two devices have the same name but different MAC addresses. Whether this was related to the problem I am not sure. But simply unpairing the device that would not connect solved the problem. It re-paired the next time my code tried to connect and from then on I could connect to either device without doing any more unpairing. On Apr 28, 5:03 pm, DonFrench dcfre...@gmail.com wrote: Update to this problem: I discovered that the device that could not be connected to had been paired at some time in the past. Both devices have the same name but different MAC On Apr 24, 4:30 pm, DonFrench dcfre...@gmail.com wrote: There is an apparentbugin theBluetoothservice discovery code, as has been mentioned by several people on several forums. The upshot is that the BluetoothSocket.connect( ) method consistently fails to discover a valid SPP service on some devices that are discoverable with non-Android devices while it consistently succeeds to discover the SPP service on seemingly identical devices. Obviously, the two devices are not identical but the fact is that I manufacture two such devices and there is nothing obviously different about them. I can consistently connect to both devices from a Windows Mobile app. I hope thatGooglewill address thisbugin the very near future. I will be willing to test any trialbug-fixes on my devices. Here is the relevant log output from the failed attempt: 04-24 15:23:33.268: INFO/ActivityManager(82): Starting activity: Intent { cmp=com.thegadgetworks/.DeviceListActivity } 04-24 15:23:33.308: DEBUG/DeviceListActivity(8055): doDiscovery() 04-24 15:23:33.318: ERROR/BluetoothEventLoop.cpp(82): event_filter: Received
[android-developers] Emulator Internet Connectivity Problem
Hi I am working to send request to internet and get data, my emulator show the 3G sign on it, i have also sent the permission to internet connectivity in my app. But when i click on button to send request it return null. I have checked the request link in chrom it send data successfully please help me thanks -- Ali Murtaza BCSF06M021 Research Assistant Data Virtulization Ware House PUCIT, Lahore, Pakistan ali.murt...@pucit.edu.pk -- 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
Re: [android-developers] Emulator Internet Connectivity Problem
Ali Murtaza wrote: But when i click on button to send request it return null. I would recommend more detail next time, explaining what it is you mean by send request and return null. I have checked the request link in chrom it send data successfully please help me First, check the request link in the built-in Browser application on the emulator. Perhaps that is what you meant by in chrom. If this fails, your problem is tied to the emulator's access to the Web site in question, perhaps due to a firewall at your facility. If the built-in browser works, then try some Internet access code that is known to work on Android. If that code works, then you can compare it to what you are doing to try to determine what is in yours that causes the problem. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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 hide the status bar when using WebView?
Hi, I am creating a WebView which is being launched from an activity named StartUpActivity.java. My intention is to hide the status bar at the top when the WebView comes to the front, so that the WebView remains full screen (no status bar). I can hide the status bar when I launch an activity using this code : getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN ); Is there any way to hide the status bar when using WebView? Thanks, Ashok Jeevan -- 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
Re: [android-developers] How to hide the status bar when using WebView?
Ashok Jeevan wrote: Hi, I am creating a WebView which is being launched from an activity named StartUpActivity.java. My intention is to hide the status bar at the top when the WebView comes to the front, so that the WebView remains full screen (no status bar). I can hide the status bar when I launch an activity using this code : getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN ); Is there any way to hide the status bar when using WebView? WebView is not an activity. WebView is a widget. Hence, your existing code will work for an activity that hosts a WebView. A better approach, though, is to use: android:theme=@android:style/Theme.NoTitleBar.Fullscreen in your activity element in your manifest. If, by I am creating a WebView which is being launched..., you really mean that you are launching the built-in Browser application, then you cannot affect the status bar, since that is not your application. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Consulting: http://commonsware.com/consulting -- 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] Internal Files, Email Attachments
I was notified by one of my customers that she was unable to use the feature of my application where she is supposed to be able to send her data as an attached csv file to an email. When I run this on my emulator at home, it works. She reports that she's using the GMail client. I'm not clear on what that is. I'm using the standard way of attaching a file. There are a couple of exceptions. I notice that other examples of attachments on the group use the SD Card to save the file before sending it. Because of the section on files in this article: http://developer.android.com/guide/topics/data/data-storage.html I chose to use the internal file storage. I do not anticipate the files my application produces ever exceeding 200 KB. So, does writing the files to internal storage only work on some phones? Should that be mentioned in the above-referenced article? It seems kind of important, since everyone seems to be using external SD Cards and not the internal memory. And, finally, here's my code, just in case I'm just making a stupid mistake somewhere. Thank you. -- private boolean sendData() { // We previously wrote the csv data to a TextView for the user to examine String msg = mMsgView.getText().toString(); // We're going to send the data as message text and/or as an attachment if (msg == null || !(mSendText.isChecked() || mSendFile.isChecked())) { Toast.makeText(this, R.string.msg_nothing_to_send, Toast.LENGTH_SHORT).show(); return false; } try { Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_TITLE, MSGNAME); sendIntent.putExtra(Intent.EXTRA_SUBJECT, MSGNAME); if (mSendText.isChecked()) sendIntent.putExtra(Intent.EXTRA_TEXT, msg); if (mSendFile.isChecked()) { sendIntent.setType(text/csv); FileOutputStream fos = this.openFileOutput(FILENAME, Context.MODE_WORLD_READABLE); fos.write(msg.getBytes()); fos.close(); sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(getFileStreamPath(FILENAME))); sendIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); } else sendIntent.setType(text/plain); startActivity(Intent.createChooser(sendIntent, getString(R.string.msg_choose_send_method))); return true; } catch (FileNotFoundException e) { Log.e(TAG, getString(R.string.title_error)); Toast.makeText(this, getString(R.string.title_error), Toast.LENGTH_SHORT).show(); e.printStackTrace(); } catch (IOException e) { Log.e(TAG, getString(R.string.title_error)); Toast.makeText(this, getString(R.string.title_error), Toast.LENGTH_SHORT).show(); e.printStackTrace(); } return false; } -- 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: Internal Files, Email Attachments
I don't mean that my code is getting exceptions. I meant exceptions to what I have going on my emulator vs. what the user has and what I see on the group. Sorry for any confusion. On May 16, 12:46 pm, Brion Emde brione2...@gmail.com wrote: I was notified by one of my customers that she was unable to use the feature of my application where she is supposed to be able to send her data as an attached csv file to an email. When I run this on my emulator at home, it works. She reports that she's using the GMail client. I'm not clear on what that is. I'm using the standard way of attaching a file. There are a couple of exceptions. I notice that other examples of attachments on the group use the SD Card to save the file before sending it. Because of the section on files in this article: http://developer.android.com/guide/topics/data/data-storage.html I chose to use the internal file storage. I do not anticipate the files my application produces ever exceeding 200 KB. So, does writing the files to internal storage only work on some phones? Should that be mentioned in the above-referenced article? It seems kind of important, since everyone seems to be using external SD Cards and not the internal memory. And, finally, here's my code, just in case I'm just making a stupid mistake somewhere. Thank you. -- private boolean sendData() { // We previously wrote the csv data to a TextView for the user to examine String msg = mMsgView.getText().toString(); // We're going to send the data as message text and/or as an attachment if (msg == null || !(mSendText.isChecked() || mSendFile.isChecked())) { Toast.makeText(this, R.string.msg_nothing_to_send, Toast.LENGTH_SHORT).show(); return false; } try { Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_TITLE, MSGNAME); sendIntent.putExtra(Intent.EXTRA_SUBJECT, MSGNAME); if (mSendText.isChecked()) sendIntent.putExtra(Intent.EXTRA_TEXT, msg); if (mSendFile.isChecked()) { sendIntent.setType(text/csv); FileOutputStream fos = this.openFileOutput(FILENAME, Context.MODE_WORLD_READABLE); fos.write(msg.getBytes()); fos.close(); sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(getFileStreamPath(FILENAME))); sendIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); } else sendIntent.setType(text/plain); startActivity(Intent.createChooser(sendIntent, getString(R.string.msg_choose_send_method))); return true; } catch (FileNotFoundException e) { Log.e(TAG, getString(R.string.title_error)); Toast.makeText(this, getString(R.string.title_error), Toast.LENGTH_SHORT).show(); e.printStackTrace(); } catch (IOException e) { Log.e(TAG, getString(R.string.title_error)); Toast.makeText(this, getString(R.string.title_error), Toast.LENGTH_SHORT).show(); e.printStackTrace(); } return false; } -- 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 athttp://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: How to load more than one layout file for an activity
I'm also having trouble with this. I can get the View using the Inflator; final View loginpage = factory.inflate(R.layout.loginpage, null); and I can get an object from within it final LinearLayout LoginForm = (LinearLayout)loginpage.findViewById(R.id.MainLoginPage); But I cant seem to use this object in a Tab... spec = tabHost.newTabSpec(LoginTab).setIndicator(Login, res.getDrawable(R.drawable.eye)) .setContent(LoginForm.getId()); tabHost.addTab(spec); Says the ID isn't recognised :-/ any ideas? On Apr 29, 8:43 am, Vo Trung Liem lie...@gmail.com wrote: Hi, You can you LayoutInflater to for setting layout dialog. Here is example code: LayoutInflater factory = LayoutInflater.from(this); final View testview = factory.inflate(R.layou.new_layout, null); // process get all view your new layout your_dialog.setTitle(''); your_dialog.setView(testView); ... On Thu, Apr 29, 2010 at 2:26 PM, karteek22 kartee...@gmail.com wrote: Hi, How can we use more than one layout file. I have implemented a cutom dialog.That means i have created an layout file for dialog. And one layout file for my activity. But whatever the UI items in dialog layout ile if iam using them by findViewById it is giving me null I will explain indetails here @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); applicationContext=getApplicationContext(); Dialog folder=new Dialog(this); folder.setTitle(Creating folder); folder.setContentView(R.layout.create_folder); TextView tv=findViewById(R.id.folder_text); //Here folder_text is in my second layoutfile ie in create_folder.xml //In the above statemet i got the null to tv variable. folder.show(); } Any suggestions please Regards, Karteek -- 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%2Bunsubs cr...@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 athttp://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
Re: [android-developers] Re: How to load more than one layout file for an activity
ThomasWrobel wrote: I'm also having trouble with this. I can get the View using the Inflator; final View loginpage = factory.inflate(R.layout.loginpage, null); and I can get an object from within it final LinearLayout LoginForm = (LinearLayout)loginpage.findViewById(R.id.MainLoginPage); But I cant seem to use this object in a Tab... spec = tabHost.newTabSpec(LoginTab).setIndicator(Login, res.getDrawable(R.drawable.eye)) .setContent(LoginForm.getId()); tabHost.addTab(spec); Says the ID isn't recognised :-/ any ideas? Delete .getId() from your setContent() call. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- 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
Re: [android-developers] Internal Files, Email Attachments
Brion Emde wrote: She reports that she's using the GMail client. I'm not clear on what that is. The Gmail client is, well, the Gmail client. It's a client for Gmail, Google's email service. You'll see an icon for it in your device, most likely, though it is not available in the emulator. sendIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); I don't think FLAG_GRANT_READ_URI_PERMISSION is helping you any, since you don't have a Uri in this Intent. } catch (FileNotFoundException e) { Log.e(TAG, getString(R.string.title_error)); Toast.makeText(this, getString(R.string.title_error), Toast.LENGTH_SHORT).show(); e.printStackTrace(); } catch (IOException e) { Log.e(TAG, getString(R.string.title_error)); Toast.makeText(this, getString(R.string.title_error), Toast.LENGTH_SHORT).show(); e.printStackTrace(); } You may wish to upgrade your error reporting, to use something that is going to give you exception data from the field: http://www.androidguys.com/2009/11/16/diagnosing-sporadic-errors/ Once you have the exception in hand, figuring out what is going wrong may become far simpler. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- 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] widget resources messed up after update
When our app gets updated sometimes the buttons on existing widgets get the wrong icon drawables, and sometimes the layout itself is broken. I believe this is because the update has different values for some of the drawable and other resources, since they're generated alphabetically, but the widget host still retains the old ids. A delete and re-create of the widget fixes the problem, but a number of users get confused by it and of course it just looks bad. Is there something I should be doing to prevent this? If not are there any workarounds, other than making all the resources used by widgets start with 0 or something equally ugly? -- 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
Re: [android-developers] widget resources messed up after update
Peter Jeffe wrote: When our app gets updated sometimes the buttons on existing widgets get the wrong icon drawables, and sometimes the layout itself is broken. I believe this is because the update has different values for some of the drawable and other resources, since they're generated alphabetically, but the widget host still retains the old ids. A delete and re-create of the widget fixes the problem, but a number of users get confused by it and of course it just looks bad. Is there something I should be doing to prevent this? If not are there any workarounds, other than making all the resources used by widgets start with 0 or something equally ugly? WARNING: the following is purely hypothetical and has not been tried by the author. Also, there may be simpler solutions. Tests have shown that following the author's advice causes rats in cancer laboratories. You have been warned! - In theory, you can watch for ACTION_PACKAGE_REPLACED to find when your app has been upgraded. You'd need to watch for your UID in the EXTRA_UID, and you'd get that UID from PackageManager (or perhaps someplace simpler -- not sure if there's a convenience method for that somewhere...). If you can get that working, then you can try one of two approaches to refreshing the app widget. First, it may be that pushing out a regular update to the RemoteViews will suffice, no different than your regular app widget update process. If that is insufficient, you can probably achieve a similar end by pushing out an update with a totally different layout (e.g., an empty one) and, milliseconds later, pushing out a regular update back to your desired layout. You could use AlarmManager to schedule the second update. As the WARNING suggests, your mileage may vary. Unless you are from outside of the US, in which case your kilometerage may vary. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- 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] Motorola Android 2.1: Unexpected resume of ... while already resumed in org.kman.SimpleTest
Hello, I got my Milestone today and began updating my app for 2.1 When I change the device's orientation, I get this in the log: 05-16 23:38:44.619: INFO/ActivityManager(1271): Config changed: { scale=1.0 imsi=250/99 loc=ru_RU touch=3 keys=2/1/1 nav=2/1 orien=2 layout=34} 05-16 23:38:44.674: DEBUG/PhoneApp(1330): updateProximitySensorMode: state = IDLE 05-16 23:38:44.674: DEBUG/PhoneApp(1330): updateProximitySensorMode: lock already released. 05-16 23:38:44.698: INFO/UsageStats(1271): Unexpected resume of my app here while already resumed in org.kman.SimpleTest The unexpected resume, as I understand, should not be there. Sometimes my app crashes inside Android's native code shortly afterwards. Now here is some weird stuff. I made a simple skeleton application to test orientation changes. Just ran the new Android project wizard, added a text view to the default (empty) layout, and set debuggable to true. This skeleton application also generates the unexpected resume warning! The phone's dialer application also does this (it's necessary to slide out the keyboard for it to change). Am I doing something wrong? I think certainly the skeleton application should't get this warning. Is this a bug in Android 2.1? Specific to Motorola Droid / Milestone? This really has me puzzled. Any thoughts on this? -- Kostya Vasilyev -- 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
Re: [android-developers] Motorola Android 2.1: Unexpected resume of ... while already resumed in org.kman.SimpleTest
Kostya Vasilyev wrote: Hello, I got my Milestone today and began updating my app for 2.1 When I change the device's orientation, I get this in the log: 05-16 23:38:44.619: INFO/ActivityManager(1271): Config changed: { scale=1.0 imsi=250/99 loc=ru_RU touch=3 keys=2/1/1 nav=2/1 orien=2 layout=34} 05-16 23:38:44.674: DEBUG/PhoneApp(1330): updateProximitySensorMode: state = IDLE 05-16 23:38:44.674: DEBUG/PhoneApp(1330): updateProximitySensorMode: lock already released. 05-16 23:38:44.698: INFO/UsageStats(1271): Unexpected resume of my app here while already resumed in org.kman.SimpleTest The unexpected resume, as I understand, should not be there. Sometimes my app crashes inside Android's native code shortly afterwards. Now here is some weird stuff. I made a simple skeleton application to test orientation changes. Just ran the new Android project wizard, added a text view to the default (empty) layout, and set debuggable to true. This skeleton application also generates the unexpected resume warning! The unexpected resume message is benign. Please ignore it. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org -- 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: widget resources messed up after update
On May 16, 2:23 pm, Mark Murphy mmur...@commonsware.com wrote: First, it may be that pushing out a regular update to the RemoteViews will suffice, no different than your regular app widget update process. I don't think this will work, since IIRC an update doesn't affect it. Which would make sense if the host is linked to the old version of the package. If that is insufficient, you can probably achieve a similar end by pushing out an update with a totally different layout (e.g., an empty one) and, milliseconds later, pushing out a regular update back to your desired layout. You could use AlarmManager to schedule the second update. Interesting idea, something to try. Thanks for the suggestions Mark. This has to be a general problem though, it seems like it would affect everyone. And clearly it's not all that unusual for resource IDs to shift around. I'll have to try to reproduce it and see if that's really it, but it would help if I knew whether others have run into 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] JetPlayer help
I'm attempting to use JetPlayer in my application. I am able to queue segments up and play them successfully, however if I try to queue a segment while an existing segment is playing, it doesn't play the segment that was just queued when the first one finishes. In the JetBoy example, it alludes to the idea that segments can be added during game play: // JET info: now we're all set to prepare queuing the JET audio segments for the game. // JET info: in this example, the game uses segment 0 for the duration of the game play, // JET info: and plays segment 1 several times as the outro music, so we're going to // JET info: queue everything upfront, but with more complex JET compositions, we could // JET info: also queue the segments during the game play. So, what I am doing is queueing 3 segments up front, which play fine. When one segment finishes, I queue up a couple more segments. The first 3 segments play fine and the queue says that it has the new segments in it, however it doesn't play the ones added later. Anyone have any experience with this? Am I understanding things correctly? Thanks, Justin -- 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: I can't find my own application in the market
Ok I'll try that, thanks. On 16 Mag, 14:49, moneytoo m...@seznam.cz wrote: Turn off copy protection. On May 15, 8:37 pm, Simone simone.russ...@gmail.com wrote: I just bought an Acer Liquid today, and of course the first application I looked for in the market was my own. I couldn't find it. What gives? Thanks, Simone -- 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 athttp://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 athttp://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: I can't find my own application in the market
It worked! How comes turning off that lets me find it? -- 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: Internal Files, Email Attachments
I don't think FLAG_GRANT_READ_URI_PERMISSION is helping you any, since you don't have a Uri in this Intent. It's in there, Mark. It was obscured by clouds of bad format: sendIntent.setType(text/csv); FileOutputStream fos = this.openFileOutput(FILENAME, Context.MODE_WORLD_READABLE); fos.write(msg.getBytes()); fos.close(); sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(getFileStreamPath(FILENAME))); sendIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); I figured out that I did need to make the file MODE_WORLD_READABLE, but I'm not sure if I ever tested whether I needed the URI permission. So, to sum up: the GMail client is something different and is pretty common, and we don't have the same control over it as the built-in client. Is there a phone out there that wouldn't let me write a 100K file to the internal file space? Also, do you know if I can count on the email client having finished with the file when I resume my activity that kicks off the ACTION_SEND? Thanks again, Mark. On May 16, 12:57 pm, Mark Murphy mmur...@commonsware.com wrote: Brion Emde wrote: She reports that she's using the GMail client. I'm not clear on what that is. The Gmail client is, well, the Gmail client. It's a client for Gmail, Google's email service. You'll see an icon for it in your device, most likely, though it is not available in the emulator. sendIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); I don't think FLAG_GRANT_READ_URI_PERMISSION is helping you any, since you don't have a Uri in this Intent. } catch (FileNotFoundException e) { Log.e(TAG, getString(R.string.title_error)); Toast.makeText(this, getString(R.string.title_error), Toast.LENGTH_SHORT).show(); e.printStackTrace(); } catch (IOException e) { Log.e(TAG, getString(R.string.title_error)); Toast.makeText(this, getString(R.string.title_error), Toast.LENGTH_SHORT).show(); e.printStackTrace(); } You may wish to upgrade your error reporting, to use something that is going to give you exception data from the field: http://www.androidguys.com/2009/11/16/diagnosing-sporadic-errors/ Once you have the exception in hand, figuring out what is going wrong may become far simpler. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training...At Your Office:http://commonsware.com/training -- 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 athttp://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
Re: [android-developers] Re: Internal Files, Email Attachments
Brion Emde wrote: I don't think FLAG_GRANT_READ_URI_PERMISSION is helping you any, since you don't have a Uri in this Intent. It's in there, Mark. It was obscured by clouds of bad format: sendIntent.setType(text/csv); FileOutputStream fos = this.openFileOutput(FILENAME, Context.MODE_WORLD_READABLE); fos.write(msg.getBytes()); fos.close(); sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(getFileStreamPath(FILENAME))); sendIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); Ah, sorry. That was a mile long hunk o' code... So, to sum up: the GMail client is something different and is pretty common, and we don't have the same control over it as the built-in client. Well, it's certainly different. More importantly, it is proprietary, limiting our diagnostic capability. And, personally, I haven't experimented with sending email attachments, let alone through the Gmail client. Is there a phone out there that wouldn't let me write a 100K file to the internal file space? Only a phone that's pretty close to full. Also, do you know if I can count on the email client having finished with the file when I resume my activity that kicks off the ACTION_SEND? That I don't know. It is certainly possible that it needs the file for a while during the actual sending operation. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Online Training: 21-25 June 2010: http://onlc.com -- 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: I can't find my own application in the market
On May 16, 2:29 pm, Simone simone.russ...@gmail.com wrote: It worked! How comes turning off that lets me find it? I've never heard of an Acer Liquid before. I'm guessing that neither has the Android Market. Part of the way copy protection works is by only allowing approved devices to access copy-protected applications. If the firmware on your device hasn't been vetted by Google, it won't be allowed to see copy-protected apps. This happened with the HTC Eris a few months ago. A new version of the software was pushed without coordinating with Google first. For a week or so, Eris owners couldn't access copy-protected apps on the market. -- 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: I can't find my own application in the market
oh god.. On 17 Mag, 01:22, Edward Falk ed.f...@gmail.com wrote: On May 16, 2:29 pm, Simone simone.russ...@gmail.com wrote: It worked! How comes turning off that lets me find it? I've never heard of an Acer Liquid before. I'm guessing that neither has the Android Market. Part of the way copy protection works is by only allowing approved devices to access copy-protected applications. If the firmware on your device hasn't been vetted by Google, it won't be allowed to see copy-protected apps. This happened with the HTC Eris a few months ago. A new version of the software was pushed without coordinating with Google first. For a week or so, Eris owners couldn't access copy-protected apps on the market. -- 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 athttp://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
Re: [android-developers] Re: Change Hue on Image
thanks a lot do u have any source code for slideshow with regards Nayana On Sun, May 16, 2010 at 10:41 AM, pkc poisonkimc...@gmail.com wrote: Here you go. BTW, I have to give credit to where it's due. This is a port of ColorMatrix by Grant Skinner. protected float cleanValue(float p_val, float p_limit) { return Math.min(p_limit,Math.max(-p_limit,p_val)); } On May 16, 12:16 am, nayana urs nayana...@gmail.com wrote: hi thanks for your solution can u please tell me what implementation should be there in cleanvalue(float,float)method with regards Nayana On Sat, May 15, 2010 at 2:39 AM, pkc poisonkimc...@gmail.com wrote: Just wanted to share my solution. I got this idea from a flash script. I have a slider that adjust the value, where is ranges from 0 to 360. public void adjustHue(ColorMatrix cm, float value) { value = cleanValue(value,180f)/180f*(float)Math.PI; if (value == 0 ) { return; } float cosVal = (float)Math.cos(value); float sinVal = (float)Math.sin(value); float lumR = 0.213f; float lumG = 0.715f; float lumB = 0.072f; float[] mat = new float[] { lumR+cosVal*(1-lumR)+sinVal*(-lumR),lumG+cosVal*(-lumG)+sinVal*(- lumG),lumB+cosVal*(-lumB)+sinVal*(1-lumB),0,0, lumR+cosVal*(-lumR)+sinVal*(0.143f),lumG+cosVal*(1-lumG) +sinVal*(0.140f),lumB+cosVal*(-lumB)+sinVal*(-0.283f),0,0, lumR+cosVal*(-lumR)+sinVal*(-(1-lumR)),lumG+cosVal*(-lumG) +sinVal*(lumG),lumB+cosVal*(1-lumB)+sinVal*(lumB),0,0, 0f,0f,0f,1f,0f, 0f,0f,0f,0f,1f }; cm.postConcat(new ColorMatrix(mat)); } On May 10, 1:52 am, rsung poisonkimc...@gmail.com wrote: I want to create a slider that changes thehueon an image. I tried using ColorMatrix but it's not working as expected. Any help would much appreciated. 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.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com For more options, visit this group athttp:// 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.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group athttp:// 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.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: Internal Files, Email Attachments
What I ended up recommending to the customer is that she set up the native mail application on her phone with her Gmail account, but don't make it the default client. Then, I believe ACTION_SEND will add an Email choice to the send options, along with Gmail. Then she should just use Email with my app, to have her attachments handled correctly. On May 16, 5:01 pm, Mark Murphy mmur...@commonsware.com wrote: Brion Emde wrote: I don't think FLAG_GRANT_READ_URI_PERMISSION is helping you any, since you don't have a Uri in this Intent. It's in there, Mark. It was obscured by clouds of bad format: sendIntent.setType(text/csv); FileOutputStream fos = this.openFileOutput(FILENAME, Context.MODE_WORLD_READABLE); fos.write(msg.getBytes()); fos.close(); sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(getFileStreamPath(FILENAME))); sendIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); Ah, sorry. That was a mile long hunk o' code... So, to sum up: the GMail client is something different and is pretty common, and we don't have the same control over it as the built-in client. Well, it's certainly different. More importantly, it is proprietary, limiting our diagnostic capability. And, personally, I haven't experimented with sending email attachments, let alone through the Gmail client. Is there a phone out there that wouldn't let me write a 100K file to the internal file space? Only a phone that's pretty close to full. Also, do you know if I can count on the email client having finished with the file when I resume my activity that kicks off the ACTION_SEND? That I don't know. It is certainly possible that it needs the file for a while during the actual sending operation. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Online Training: 21-25 June 2010:http://onlc.com -- 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 athttp://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
Re: [android-developers] RadioGroup over two columns or rows?
On Sat, May 15, 2010 at 12:27 PM, Julian Bunn jjb...@gmail.com wrote: Does anyone have an idea how to better do this? If I understand your question correctly, I don't think there is a better way. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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 phone low memory situation more efficiently?
No one care about android performance or No one ever encounter performance issue? Could Google guys give me some ideas? On 5月14日, 下午12时28分, Wang He iptvph...@gmail.com wrote: By default, android use low memory killer to try to get out of phone low memory situation. But sometimes, the killer killed process that should not killed. That happened as the killer cannot understand what is should not killed from application layer. For example: 1) a persistent process hosting a service (like mp3 background playing, or a phone local search engine with DB hooks) has been killed, and the process itself will startup again. that sometimes drop into the process kill-restart-died cycle. User cannot feel that directly from UI, but that waste CPU and electric. or user will curious about why the mp3 playing in background always lost. 2) a process hosting a provider has been killed, but unfortunately a application is just calling the provider for data. user will see the application exception happened. Do you ever face a similar issue? And besides low memory killer, do you have any practice way to handle phone low memory situation more efficiently? 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 athttp://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
Re: [android-developers] Set android:layout_gravity from code ??
LayoutParams provides that 2010/5/16 TreKing treking...@gmail.com On Sat, May 15, 2010 at 1:22 PM, pawan nimje pawanni...@gmail.com wrote: now i want to set the android:layout_gravity from code ... Step 1: Try searching the documentation for layout gravity. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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 -- 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: Device Seeding Program for Top Android Market Developers
Bera, I sent my problem on May 3,and google responsed on May 7. FYI,here is the reply: , Your phone is being shipped now. We apologize for the slip-up. Thanks, -- Google Developer Programs, Android http://developer.android.com And I got my phone on May 11. Good luck. On May 15, 8:12 pm, bera bera...@gmail.com wrote: Join : Did you receive the response this week? I have sent two mails but no answer. I don't think there still got someone to manage android-market-seed...@google.com anymore. Besides, my friend neither receive any reply nor get his two mobile phones. -- 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: HttpsURLConnection returns -1 code on second request
@Arkaitz Which server are u using?? i also had the same problem with tomcat server...but after playing around with the code i finally got it right... Regards Gino On May 15, 11:21 pm, Arkaitz Jimenez arkai...@gmail.com wrote: Hi all, I think I'm experiencing the same ashttp://groups.google.com/group/android-developers/msg/9d37d64aad0ee357 This is Android 1.5 SDK. I happen to call several times below code(which is in a method) with the same url and it fails intermitently. When it fails, there is no exception, the stream is empty so the readConnection fails, and getResponseCode returns -1. Global caching is disabled, setDefaultUseCaches(false); Any idea on how can I workaround this? HttpURLConnection connection = null; try { URL url = new URL(this.url); connection = (HttpURLConnection) url.openConnection(); connection.setRequestProperty(Authorization, basic + Base64Coder.encodeString(user + : + password)); connection.setRequestProperty(User-Agent, userAgent); connection.connect(); readConnection(connection.getInputStream()); connection.disconnect(); } catch (IOException ex) { reportException(ex, connection.getResponseCode()) } catch (ParserException ex) { reportException(ex, connection.getResponseCode()) } Thanks Arkaitz -- 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 athttp://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: Is there a library for either choosing a photo or taking one with the camera?
You don't really need a library for this, in fact i would recommend against it. What you want to do is use Android's intent based system for these actions. Intents will let you fire off another app to complete a task for you (like taking a picture) and then you can get that picture back as a result. The docs on intents http://developer.android.com/intl/de/guide/topics/intents/intents-filters.html I'm sure you know how to use google to find the right ones for your task. -Chris --- Creator of My College Life http://mycollegelife.org On May 16, 4:38 am, Preston preston.crawf...@gmail.com wrote: Trying to find a library or a good example so I can try to get this to work within my Android app. 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 athttp://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: RadioGroup over two columns or rows?
Thanks ... I worked around my problem by using a ScrollView for the RadioGroup. On May 16, 6:43 pm, TreKing treking...@gmail.com wrote: On Sat, May 15, 2010 at 12:27 PM, Julian Bunn jjb...@gmail.com wrote: Does anyone have an idea how to better do this? If I understand your question correctly, I don't think there is a better way. - TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking -- 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 athttp://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] How to set text size and color in CheckBoxPreference
Hello everyone, I want to reset the text size and color in settings For example , the code is from wifi_settings.xml CheckBoxPreference android:key=wifi_enabled android:title=@string/wifi android:summary=@string/wifi_quick_toggle_summary android:persistent=false android:textSize=15sp android:textColor=#/ I want to increase the text size of android:title=@string/wifi android:summary=@string/wifi_quick_toggle_summary So I add android:textSize=15sp android:textColor=# But it not work, can anyone tell me how to set the property of android:title and android:textColor -- 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: transparent webview refresh issue
I guess who try to combine webview with native activities will finally face this problem when useing web content with translucent effect. Is this question will be send to nobody knows and nobody care category? 2010/5/12 fun nerd changfeng...@gmail.com Hi there, If I setbackgoundcolor(0) to makea webview looks transparent. the refresh seems have a issue. I made a very simple javascipte to update the time. if the webview is not transparent, it works fine. but if setbackground to 0, the dynamic part will not refresh. seem the old graphic hasn't been cleaned and the new one overlay on it . Any one has an idea? thx. -- 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