[android-developers] Window is not always shown with Transparency Theme
Unless I am doing something wrong, transparency is very flaky in 1.5. A number of people have mentioned having to modify their colors to an off-number, such as #cc01. I have also noticed, on an emulator and an actual device, where transparency no longer works (maybe out of/low memory) and you need to reset. This particular bug occurs when an activity is set to use the Transparency theme, after onResume(), occasionally the window takes focus (onWindowFocusChanged is called), but is not displayed. If you pull down the notification bar, it forces your window to be displayed. This same code works as expected in 1.1. To duplicate, run your program (maybe 10 times) by starting, clicking HOME, then starting again. I am hoping that someone may have found a workaround, or know of a way to force the window to be shown (as it already has focus). Here is the code: AndroidTest.java package com.test.androidtest; import android.app.Activity; import android.database.Cursor; import android.os.Bundle; import android.provider.Contacts.People; import android.util.Log; import android.widget.ListView; import android.widget.SimpleCursorAdapter; public class AndroidTest extends Activity { protected static final String TAG = "Test"; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Log.w(TAG, "onCreate"); setContentView(R.layout.main); Cursor peeps = getContentResolver().query(People.CONTENT_URI, new String[] {People._ID, People.NAME, People.NOTES}, null, null, null); startManagingCursor(peeps); ListView list = (ListView) findViewById(R.id.ListView01); SimpleCursorAdapter adapter = new SimpleCursorAdapter(this, android.R.layout.simple_list_item_1, peeps, new String[] { People.NAME, People.NOTES }, new int[] { android.R.id.text1, android.R.id.text2 }); list.setAdapter(adapter); } } main.xml http://schemas.android.com/apk/res/android"; android:layout_width="fill_parent" android:layout_height="200dip" android:background="#cc00"> AndroidManifest.xml http://schemas.android.com/apk/res/android"; android:versionCode="1" android:versionName="1.0.0" package="com.test.androidtest"> Using colors.xml and styles.xml from samples --~--~-~--~~~---~--~~ 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 add bookmarks in Android Browser
Hi, I have an requirement to add couple of bookmarks in Android browser. Can Any one pls help me out in it. Regards, Arun --~--~-~--~~~---~--~~ 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 load application to G1 phone
After my phone has been upgraded to 1.5, I upgraded my application to 1.5. It could run correctly in simulator. When I launched application in 1.0, it asked me to run in real device or simulator. But in 1.5, my g1 phone is not listed at running android device.What should I do? --~--~-~--~~~---~--~~ 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 HTTP/1.1 416 Requested Range Not Satisfiable
*-- On Mon, 6/7/09, numan <> wrote: hello my friend how are u latest sexy summer fashion & hot fashion videos visit my websitehttp://www.fashioninfokit.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: Get latitude & longitude of center of MapView
*-- On Mon, 6/7/09, numan <> wrote: hello my friend how are u latest sexy summer fashion & hot fashion videos visit my websitehttp://www.fashioninfokit.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: Communication between two android emulators located on two PCs connected via LAN
*-- On Mon, 6/7/09, numan <> wrote: hello my friend how are u latest sexy summer fashion & hot fashion videos visit my websitehttp://www.fashioninfokit.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: How to use android's built in zoom controls for View or ImageView
*-- On Mon, 6/7/09, numan <> wrote: hello my friend how are u latest sexy summer fashion & hot fashion videos visit my websitehttp://www.fashioninfokit.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: Map Not Working On Device Working on Emulator
*-- On Mon, 6/7/09, numan <> wrote: hello my friend how are u latest sexy summer fashion & hot fashion videos visit my websitehttp://www.fashioninfokit.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: Is there any way to lauhc Google Maps application with direction
*-- On Mon, 6/7/09, numan <> wrote: hello my friend how are u latest sexy summer fashion & hot fashion videos visit my websitehttp://www.fashioninfokit.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: My good god, bugs in Android brick phone, and it's not difficult to reproduce...
*-- On Mon, 6/7/09, numan <> wrote: hello my friend how are u latest sexy summer fashion & hot fashion videos visit my websitehttp://www.fashioninfokit.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: How can I listen for WebView page load completed event
*-- On Mon, 6/7/09, numan <> wrote: hello my friend how are u latest sexy summer fashion & hot fashion videos visit my websitehttp://www.fashioninfokit.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: Outgoing call screen
*-- On Mon, 6/7/09, numan <> wrote: hello my friend how are u latest sexy summer fashion & hot fashion videos visit my websitehttp://www.fashioninfokit.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] Singles mate online !!!!
Singles mate online http://singlesmate.blogspot.com/ find your soul mate online for listed countries usa,Canada,uk,Ireland,Australia,newzeland get girls and more teens with online fun with this blogs offer of the account is now free click and join now get more singles online http://singlesmate.blogspot.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: Can't get the softinput to show up programmatically
*-- On Mon, 6/7/09, numan <> wrote: hello my friend how are u latest sexy summer fashion & hot fashion videos visit my websitehttp://www.fashioninfokit.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: .
*-- On Mon, 6/7/09, numan <> wrote: hello my friend how are u latest sexy summer fashion & hot fashion videos visit my websitehttp://www.fashioninfokit.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: Bluetooth and ADB
*-- On Mon, 6/7/09, numan <> wrote: hello my friend how are u latest sexy summer fashion & hot fashion videos visit my websitehttp://www.fashioninfokit.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: SubMenu, Dialogs and ActivityGroup
*-- On Mon, 6/7/09, numan <> wrote: hello my friend how are u latest sexy summer fashion & hot fashion videos visit my websitehttp://www.fashioninfokit.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: sdcard on emulator mounted read only !!
*-- On Mon, 6/7/09, numan <> wrote: hello my friend how are u latest sexy summer fashion & hot fashion videos visit my websitehttp://www.fashioninfokit.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: CustomButton
*-- On Mon, 6/7/09, numan <> wrote: hello my friend how are u latest sexy summer fashion & hot fashion videos visit my websitehttp://www.fashioninfokit.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: How to deal with ExpandableList when all the data are coming from datebase?
hehe,thank you,Marco. i have solved this problem already. 2009/6/7 Marco Nelissen > On Sat, Jun 6, 2009 at 8:45 AM, stonestrange wrote: > >> >> I want to the effective like ExpandableList1 Activity in apidemo.But >> my data is from the database.And th groups's data from the database >> and the children's data from the database too.All both are comg from >> different tables. > > > Not a problem. The data can come from wherever you want, you just need to > have Cursors for it (one Cursor for the top level list, and one Cursor for > each expanded child) > > First,i want to konw how to get data from the cursor to String[]; >> Second,i want to konw how to confirm the data of children[][]. > > > I don't understand your question(s). Can you be more specific? > > > > > --~--~-~--~~~---~--~~ 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: Control of background images
*--- On Mon, 6/7/09, numan <> wrote: hello my friend how are u latest sexy summer fashion & hot fashion videos visit my websitehttp://www.fashioninfokit.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: Publishing Paid Apps on Android Market Can Cost You Money
--- On *Sun, 6/7/09 numan * wrote: hello my friends have a nice day sexy summer fashion & more fashion show videos visit us http://www.fashioninfokit.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: EditText not rendering correctly when added as a header of ListView
--- On *Sun, 6/7/09 numan * wrote: hello my friends have a nice day sexy summer fashion & more fashion show videos visit us http://www.fashioninfokit.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: HTC Magic Dev phone
--- On *Sun, 6/7/09 numan * wrote: hello my friends have a nice day sexy summer fashion & more fashion show videos visit us http://www.fashioninfokit.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] API to get signal strength of Wifi networks
Is there API to get signal strengths of all visible Wifi networks? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How can i build an URI for each person in the contact
Hi, How can i build a URI for each person of the contact so that i can use the following method in Contact.People public static Bitmap loadContactPhoto(Context context, Uri person, int placeholderImageResource, BitmapFactory.Options options) Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] RE: Help: 1.5 AutoCompleteTextView Problem
The original post disappeared! (could not find in the forum!) Why?BTW, I solved part of the problem. Now it runs ok in 1.5 Emulator. Details please refer to the source changes.The NullPointException problem in eclipse visual layout still there! Original Message Subject: Help: 1.5 AutoCompleteTextView Problem From: efan Date: Thu, June 04, 2009 10:01 pm To: Android Developers This layout xml file contains an AutoCompleteTextView: http://code.google.com/p/zz-doctor/source/browse/trunk/ZZ/res/layout/welcome.xml does not show in 1.5 AVD. No error in either screen or console log. It worked fine in 1.1, in both AVD and eclipse visual layout. When try to open it in eclipse visual layout under android 1.5, shows NullPointException, and following stack trace in console log: java.lang.NullPointerException at android.content.res.TypedArray.getLayoutDimension(TypedArray.java: 458) at android.widget.AutoCompleteTextView. (AutoCompleteTextView.java:165) at android.widget.AutoCompleteTextView. (AutoCompleteTextView.java:131) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at android.view.LayoutInflater.createView(LayoutInflater.java:499) at android.view.BridgeInflater.onCreateView(BridgeInflater.java:77) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java: 562) at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java: 122) at android.view.LayoutInflater.rInflate(LayoutInflater.java:617) at android.view.LayoutInflater.inflate(LayoutInflater.java:407) at android.view.LayoutInflater.inflate(LayoutInflater.java:296) at com.android.layoutlib.bridge.Bridge.computeLayout(Bridge.java:371) at com.android.ide.eclipse.editors.layout.GraphicalLayoutEditor.computeLayout (Unknown Source) at com.android.ide.eclipse.editors.layout.GraphicalLayoutEditor.recomputeLayout (Unknown Source) at com.android.ide.eclipse.editors.layout.GraphicalLayoutEditor.activated (Unknown Source) at com.android.ide.eclipse.editors.layout.LayoutEditor.pageChange (Unknown Source) at org.eclipse.ui.part.MultiPageEditorPart.setActivePage (MultiPageEditorPart.java:973) at org.eclipse.ui.forms.editor.FormEditor.setActivePage (FormEditor.java:627) at com.android.ide.eclipse.editors.AndroidEditor.selectDefaultPage (Unknown Source) at com.android.ide.eclipse.editors.AndroidEditor.addPages(Unknown Source) at org.eclipse.ui.forms.editor.FormEditor.createPages(FormEditor.java: 146) at org.eclipse.ui.part.MultiPageEditorPart.createPartControl (MultiPageEditorPart.java:310) at org.eclipse.ui.internal.EditorReference.createPartHelper (EditorReference.java:661) at org.eclipse.ui.internal.EditorReference.createPart (EditorReference.java:428) at org.eclipse.ui.internal.WorkbenchPartReference.getPart (WorkbenchPartReference.java:594) at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:306) at org.eclipse.ui.internal.presentations.PresentablePart.setVisible (PresentablePart.java:180) at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select (PresentablePartFolder.java:270) at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select (LeftToRightTabOrder.java:65) at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart (TabbedStackPresentation.java:473) at org.eclipse.ui.internal.PartStack.refreshPresentationSelection (PartStack.java:1256) at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java: 1209) at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1608) at org.eclipse.ui.internal.PartStack.add(PartStack.java:499) at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103) at org.eclipse.ui.internal.PartStack.add(PartStack.java:485) at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112) at org.eclipse.ui.internal.EditorSashContainer.addEditor (EditorSashContainer.java:63) at org.eclipse.ui.internal.EditorAreaHelper.addToLayout (EditorAreaHelper.java:217) at org.eclipse.ui.internal.EditorAreaHelper.addEditor (EditorAreaHelper.java:207) at org.eclipse.ui.internal.EditorManager.createEditorTab (EditorManager.java:779) at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor (EditorManager.java:678) at org.eclipse.ui.internal.EditorManager.openEditor (EditorManager.java:639) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched (WorkbenchPage.java:2817) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor (WorkbenchPage.java:2729) at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java: 2721) at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java: 2673) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java: 70) at org.eclipse.ui.
[android-developers] Could NOT Upgrade App in Market!
No error message after uploaded new version. But it still shows the old version (and old size). Tried several times, same problem. I managed to recover back my old key and signed the new version. (a little frustrated but I did make it recovered :)) My app is Chinese Doctor Assistant (ZZ) [杏林書童(ZZ)] under Free --> Applications --> Productivity. Thanks! P.S.-a. I have read this post but my case is different from it because I signed with old key. http://groups.google.com/group/android-developers/browse_thread/thread/d433b2ee4cb78c9c/54dbf2b526ecb411?lnk=gst&q=market+upgrade+problem#54dbf2b526ecb411 P.S.-b. Could Android / Google provide another better support way for registered developers beyond this forum? We were charged! 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: OutOfMemoryError, but there's lots of memory?!
Keith Wiley wrote: > My app is building a relatively large structure ("large" being a term > that is meaningless without context), and I am getting an > OutOfMemoryError. Problem is, I'm watching the memory using every > metric I can think of, and I don't see how the error was triggered. > It's obviously trying to allocate a 65kB HashSet in a rehash > operation: > > 06-06 17:59:11.234: ERROR/dalvikvm-heap(1884): Out of memory on a > 65552-byte allocation. > > Which makes sense; I traced it to the HashSet operation it is > performing. But this is what the memory looks at: > > ActivityManager.Memory Info: availMem: 26300416B, 26300KB, 26MB > ActivityManager.Memory Info: threshold/lowMemory: 16777216 false > Runtime.freeMemory: 1828856B, 1829KB, 2MB > Runtime.totalMemory: 15605728B, 15606KB, 16MB > Debug memory allocated/native/default: 4452208 1032336 5484544 > > I don't get it. Why won't it make a measly 65kB heap? How can I > detect memory problems given these utilities if they always return > extremely large values right before and after an OutOfMemoryError? > Are there yet additional memory utilities I should be using? It may be a fragmentation issue. If I understand correctly, if you do lots and lots of reallocations, while you may have tons of memory free, there may not be a 65552-byte buffer free. Can you pre-allocate your HashSet to a nice large capacity up front, to avoid the reallocations? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ 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: reg playing youtube videos in android
Actually I meant the VideoViewDemo. It should read like this: mVideoView.setVideoPath(path); mVideoView.setMediaController(new MediaController(this)); mVideoView.requestFocus(); mVideoView.start(); // add this line to play BTW, anyone know why I'm not seeing my posts via email? They show up on the web site but not all the time via email. I'm using Thunderbird on Ubuntu 8.04. Brian Conrad JyotishTools.com On Jun 6, 2:49 pm, Brian Conrad wrote: > From my experiments the MediaPlayer only seems to handle 3GPP format > well though somewhat. Now I'm only running the emulator on a 2.4 ghz > machine on Ubuntu which may not be fast enough to process video. I had > similar results on an 3.4 ghz XP Pro machine. I may install the SDK on > a Vista laptop with a dual core to see if it does better. Note that > none of my test videos including MP4 AVC that should play had no > problems playing on even the 2.4 ghz machine with MPlayer or VLC. As > for flash videos that is probably another wrapper that the MediaPlayer > needs to deal with. > > Note there is a bug in the VideoPlayerDemo too. A start() call needs to > be added after the initialization or nothing happens. ;-) > > Brian Conrad > JyotishTools.com > > manoj wrote: > > Hi, > > > I want to go with the code specified in the following link > > >http://groups.google.com/group/android-developers/browse_thread/threa... > > > But I want always the youtube url should be played in default yutube > > player provided by android. I want to avoid showing the two options: > > browser and youtube. > > > How can I achieve this? > > > can any one please help me. > > > Thanks, > > Manoj. > > > On Jun 6, 11:50 am, manoj wrote: > > >> Hi, > > >> I want to play youtube videos in my app. > > >> by searching in the forum, I found the below link: > > >>http://groups.google.com/group/android-developers/browse_thread/threa... > > >> It was nice. But I want to my app (MediaPlayer/VideoView) to play the > >> youtube videos. > > >> Can any one please suggest me? > > >> Thanks, > >> Manoj. > > --~--~-~--~~~---~--~~ 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: HTC Magic Dev phone
HTC Magic is already been rooted at XDA. Eric On Jun 7, 5:40 am, JP wrote: > It's a device given to developers, but out of the box it's not a > development device, so if you need it rooted for development you'll > have to yourself. > > On Jun 5, 3:54 pm, NTDYLF > wrote: > > > Hello all. I received an HTC Magic at the Google IO conference, and > > had heard that it is a dev phone, but when I adb shell into it and > > type "su", I get "su: permission denied". If this is not a dev phone, > > is it possible to make it one? --~--~-~--~~~---~--~~ 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: ADC2 Teams
Are you looking towards building your own team to submit ADC2 based on your idea (Android realtime mapping tracking application?). Or looking to help an existing team to develop their idea/application? Eric On Jun 6, 10:47 pm, wescorp wrote: > For the ADC2, I would like to extend my Android realtime mapping > tracking application work into something new . > > I'm looking to assemble a team or become a member of a team to submit > an application or applications to the ADC2. > > If you have a clear vision of how we can help each other win, please > let me know privately. > > Cheers, > > Wes > > On Jun 6, 6:46 am, wescorp wrote: > > > Hi All, > > > Time for another go with the Android Developer Challenge 2. A couple > > of months will go quick. > > > If your looking to join a team or become a member to a team, please > > reply here or privately to the poster. > > > Cheers, > > > Wes --~--~-~--~~~---~--~~ 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] OutOfMemoryError, but there's lots of memory?!
My app is building a relatively large structure ("large" being a term that is meaningless without context), and I am getting an OutOfMemoryError. Problem is, I'm watching the memory using every metric I can think of, and I don't see how the error was triggered. It's obviously trying to allocate a 65kB HashSet in a rehash operation: 06-06 17:59:11.234: ERROR/dalvikvm-heap(1884): Out of memory on a 65552-byte allocation. Which makes sense; I traced it to the HashSet operation it is performing. But this is what the memory looks at: ActivityManager.Memory Info: availMem: 26300416B, 26300KB, 26MB ActivityManager.Memory Info: threshold/lowMemory: 16777216 false Runtime.freeMemory: 1828856B, 1829KB, 2MB Runtime.totalMemory: 15605728B, 15606KB, 16MB Debug memory allocated/native/default: 4452208 1032336 5484544 I don't get it. Why won't it make a measly 65kB heap? How can I detect memory problems given these utilities if they always return extremely large values right before and after an OutOfMemoryError? Are there yet additional memory utilities I should be using? Thank you for any help. --~--~-~--~~~---~--~~ 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: Upgrading to 1.5
I found my default debug keystore C:\Users\'TheUser'\.android \debug.keystore It is brand new as of today. I also found where the last debug.key was located c:\users\'TheUser'\local\android. Did a little switcheroo. Then adjusted the manifest, and voila, lift-off. Many Thanks for your help, you had the answer all along, I just didn't understand it at First. I'll be putting in today's exercises into the program, if all works well, I'll try and release the Android 1.5 version tonight. Would have thought this was a problem others have encountered. They changed the placement of this file in Vista. It's probably mentioned somewhere. Thanks Again, John aka Radiolistener On Jun 6, 6:24 pm, radiolistener wrote: > Maybe I'm just not getting it, but I haven't signed this one yet. For > Colorthon I used the automatic signing option and uses the export > signed option, to utilize the automatic signing and everything worked > well. > > For REE, I am just running it in the ide, any signing is just the > default debug, is it somehow using the key from Colorthon? I doubt > it, because it didn't ask for a password or anything. Can the default > debug key be changed? And if so, how do I change it back? > > Thanks, > John. > > On Jun 6, 4:45 pm, Marco Nelissen wrote: > > > > > The error message confirms what I said earlier: you signed your application > > with a different key, and this is why updating the app fails. > > > On Sat, Jun 6, 2009 at 12:19 PM, radiolistener > > wrote: > > > > This is the exact error: > > > > [2009-06-06 15:13:29 - REBC] Automatic Target Mode: using device > > > 'HT849GZ81548' > > > [2009-06-06 15:13:29 - REBC] Uploading REBC.apk onto device > > > 'HT849GZ81548' > > > [2009-06-06 15:13:30 - REBC] Installing REBC.apk... > > > [2009-06-06 15:13:31 - REBC] Application already exists. Attempting to > > > re-install instead... > > > [2009-06-06 15:13:33 - REBC] Re-installation failed due to different > > > application signatures. > > > [2009-06-06 15:13:33 - REBC] You must perform a full uninstall of the > > > application. WARNING: This will remove the application data! > > > [2009-06-06 15:13:33 - REBC] Please execute 'adb uninstall > > > REBC.exercise' in a shell. > > > [2009-06-06 15:13:33 - REBC] Launch canceled! > > > > And it's more than the phone I updated to 1.5, this morning I updated > > > my development environment. > > > > On Jun 6, 11:12 am, Marco Nelissen wrote: > > > > On Sat, Jun 6, 2009 at 6:56 AM, radiolistener > > > > wrote: > > > > > > Hi All, > > > > > > My phone was updated to 1.5 this week. I have been waiting to update > > > > > my development environment, until the phone was upgraded. > > > > > > The ide started out smoothly, I even updated my new Colorthon program > > > > > library and posted the compiled version on the marketplace. > > > > > > Next I decided to upgrade Radio's Exercise Buddy. Got a signature > > > > > error. I worked around it by giving it a new namespace, but this is > > > > > A signature error normally means that you signed your update with a > > > > different key than the previous version. It doesn't have anything to do > > > with > > > > your phone being updated to 1.5. You should sign your updates with the > > > same > > > > key. --~--~-~--~~~---~--~~ 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: Dynamic Widget Size
Hi Jeff, I am interested in this approach you mentioned here, but I'm having some difficulty implementing it. I currently have 2 widgets with different sizes (large and small). Both widgets will be sharing 1 service in charge of updating the widgets contents accordingly. Each widget's onUpdate will call to start my service. My question would be, how can I get the appWidgetId of the widget that is calling the service to start? This is the only problem I'm having right now. Once I get the appWidgetId, I can easily determine which widget should the service updating based on the appWidgetInfo of the calling widget. Please help me out with this, I published my widget to the market and some people have complained of ANRs which is why it's important for me to move my update logic to the service. Thanks in advance, Alex On May 18, 1:51 pm, Jeff Sharkey wrote: > You can use the same configuration activity for multiple widgets. In > the onCreate(), you have the appWidgetId that you're about to > configure, and you can use AppWidgetManager.getAppWidgetInfo() to get > the provider's ComponentName, which will tell you which type ofwidget > you're configuring. > > j > > > > > > On Mon, May 18, 2009 at 10:15 AM, guruk wrote: > > > but its a pitty that I have to create TWO different configure > > activities also > > > http://schemas.android.com/apk/res/ > > android" > > android:minWidth="74dip" > > android:minHeight="72dip" > > android:updatePeriodMillis="2160" > > android:initialLayout="@layout/widget_word" > > android:configure="com.chris.app.setwidgetuser" > > /> > > > /xml/widget_word2.xml > > http://schemas.android.com/apk/res/ > > android" > > android:minWidth="74dip" > > android:minHeight="72dip" > > android:updatePeriodMillis="2160" > > android:initialLayout="@layout/widget_word" > > android:configure="com.chris.app.setwidgetuser2" > > /> > > > or is there a way to check what broadcast starts my configuration, so > > i can > > change some code in it? If possible, just let me know how to get what > > broadcast > > calls my configuration > > > thanks > > -- > Jeff Sharkey > jshar...@android.com- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Runtime.getRuntime().exec() does not return
I got a rare case on android 1.5 where a call to Runtime.getRuntime ().exec does not return. The call is made from a background thread and it does not throw any exception. It just stays in there forever. The command sent to exec (standard unix command) is always exactly the same and works fine in more than 19 of 20 calls. Any ideas about the cause? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: can i find the location of NOKIA GPS enabled mobile
thank you very much for the info. i am thinking now of doing such thing by sending some kind of sms that contain data location , and then extract those data to give the final results. On Sun, Jun 7, 2009 at 12:12 AM, Mark Murphy wrote: > > abdalrahman eweiwi wrote: > > guys any one could just guide me for this problem... > > > > > > can i get lastknownlocation of a friend using android development > > toolkit ??? > > This has nothing to do with Android. > > Your friend, most likely, is not publicizing his or her location > anywhere. After all, many people consider that a bit of a privacy issue. > > If your friend starts using Fire Eagle or a similar service, you can > then write a program to obtain that location information: > > http://fireeagle.yahoo.net/ > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://twitter.com/commonsguy > > Need Android talent? Ask on HADO! http://wiki.andmob.org/hado > > > > -- Regards Abdalrahman Eweiwi Msc in Media Informatics RWTH-AACHEN B-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: Upgrading to 1.5
Maybe I'm just not getting it, but I haven't signed this one yet. For Colorthon I used the automatic signing option and uses the export signed option, to utilize the automatic signing and everything worked well. For REE, I am just running it in the ide, any signing is just the default debug, is it somehow using the key from Colorthon? I doubt it, because it didn't ask for a password or anything. Can the default debug key be changed? And if so, how do I change it back? Thanks, John. On Jun 6, 4:45 pm, Marco Nelissen wrote: > The error message confirms what I said earlier: you signed your application > with a different key, and this is why updating the app fails. > > On Sat, Jun 6, 2009 at 12:19 PM, radiolistener > wrote: > > > > > > > This is the exact error: > > > [2009-06-06 15:13:29 - REBC] Automatic Target Mode: using device > > 'HT849GZ81548' > > [2009-06-06 15:13:29 - REBC] Uploading REBC.apk onto device > > 'HT849GZ81548' > > [2009-06-06 15:13:30 - REBC] Installing REBC.apk... > > [2009-06-06 15:13:31 - REBC] Application already exists. Attempting to > > re-install instead... > > [2009-06-06 15:13:33 - REBC] Re-installation failed due to different > > application signatures. > > [2009-06-06 15:13:33 - REBC] You must perform a full uninstall of the > > application. WARNING: This will remove the application data! > > [2009-06-06 15:13:33 - REBC] Please execute 'adb uninstall > > REBC.exercise' in a shell. > > [2009-06-06 15:13:33 - REBC] Launch canceled! > > > And it's more than the phone I updated to 1.5, this morning I updated > > my development environment. > > > On Jun 6, 11:12 am, Marco Nelissen wrote: > > > On Sat, Jun 6, 2009 at 6:56 AM, radiolistener > > > wrote: > > > > > Hi All, > > > > > My phone was updated to 1.5 this week. I have been waiting to update > > > > my development environment, until the phone was upgraded. > > > > > The ide started out smoothly, I even updated my new Colorthon program > > > > library and posted the compiled version on the marketplace. > > > > > Next I decided to upgrade Radio's Exercise Buddy. Got a signature > > > > error. I worked around it by giving it a new namespace, but this is > > > > A signature error normally means that you signed your update with a > > > different key than the previous version. It doesn't have anything to do > > with > > > your phone being updated to 1.5. You should sign your updates with the > > same > > > key. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android .apks running in a Browser
hi deepdroid check: http://androidstats.com/ranking/applications its cool chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: can i find the location of NOKIA GPS enabled mobile
abdalrahman eweiwi wrote: > guys any one could just guide me for this problem... > > > can i get lastknownlocation of a friend using android development > toolkit ??? This has nothing to do with Android. Your friend, most likely, is not publicizing his or her location anywhere. After all, many people consider that a bit of a privacy issue. If your friend starts using Fire Eagle or a similar service, you can then write a program to obtain that location information: http://fireeagle.yahoo.net/ -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ 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] EditText not rendering correctly when added as a header of ListView
Hi Guys I have come across a problem where EditText is not rendering correctly when it's added as a header in a ListView. Basically, I have a search box and a list of results from a DB. The Activity extends ListActivity and I add the search box as a header using ListView.addHeaderView(View v). On first load, the EditText view acts as normal. Every time I type a character, it renders in the EditText. On any subsequent load of the ListView, the EditText view "appears" unresponsive. If, for example, I type another character, it does not render in the EditText view. However, when the ListView is updated, the EditText view updates with the relevant changes. I get the same behaviour if I change the orientation of the screen. When I type in EditText, the characters are not rendered to the view. If I change orientation however, the EditText view is updated. Any help in this regard would be very much appreciated. Below is a code example to illustrate the problem. == public class ResultList extends ListActivity { DBAdapter mDb; EditText mQuery; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mDb = new DBAdapter(this); mDb.open(); setContentView(R.layout.search_list); renderUI(); populateResults("all"); } protected void renderUI(){ TableLayout headerTable = new TableLayout(this); headerTable.setBackgroundColor(Color.WHITE); headerTable.setStretchAllColumns(true); TableRow row = new TableRow(this); row.setMinimumHeight(8); headerTable.addView(row); row = new TableRow(this); row.setGravity(Gravity.CENTER_VERTICAL); mQuery = new EditText(this); mQuery.setWidth(180); mQuery.setHint("Search "); row.addView(mQuery); ImageButton search = new ImageButton(this); Bitmap bitmap = BitmapFactory.decodeResource(getResources(),R.drawable.search); search.setImageBitmap(bitmap); search.setBackgroundColor(0); search.setPadding(10, 0, 0, 0); search.setOnClickListener(new Button.OnClickListener() { public void onClick(View v) { populateResults(mQuery.getText().toString()); } }); row.addView(search); headerTable.addView(row); ListView list = (ListView)findViewById(android.R.id.list); list.addHeaderView(headerTable); } private void populateResults(String search){ if(!mDb.getDatabase().isOpen()) mDb.open(); Cursor expCur = mDb.getResults(search); startManagingCursor(expCur); String[] from = new String[] { mDb.KEY_DATE_STRING_VALUE}; int[] to = new int[] { R.id.result_row_date}; // Now create an array adapter and set it to display using our row SimpleCursorAdapter adapter = new SimpleCursorAdapter(this, R.layout.result_rows, expCur, from, to); setListAdapter(adapter); } } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: can i find the location of NOKIA GPS enabled mobile
guys any one could just guide me for this problem... can i get lastknownlocation of a friend using android development toolkit ??? On Sat, Jun 6, 2009 at 9:34 PM, abdalrahman eweiwi < abdalrahman.ewe...@googlemail.com> wrote: > > hello guys > > i am trying to develop a program that will tell me how much time that is > needed for my friend to reach me , however still i fall in a problem , that > when i extract the address information of my friend (in my contact list in > android) i have always that static location that i have explicitly set when > i added him to my contacts > > how can i have his lastKnownLocation > is that possible with android ??? > if yes how to work this out ?? > -- > Regards > > Abdalrahman Eweiwi > Msc in Media Informatics > RWTH-AACHEN > B-it > > -- Regards Abdalrahman Eweiwi Msc in Media Informatics RWTH-AACHEN B-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: reg playing youtube videos in android
From my experiments the MediaPlayer only seems to handle 3GPP format well though somewhat. Now I'm only running the emulator on a 2.4 ghz machine on Ubuntu which may not be fast enough to process video. I had similar results on an 3.4 ghz XP Pro machine. I may install the SDK on a Vista laptop with a dual core to see if it does better. Note that none of my test videos including MP4 AVC that should play had no problems playing on even the 2.4 ghz machine with MPlayer or VLC. As for flash videos that is probably another wrapper that the MediaPlayer needs to deal with. Note there is a bug in the VideoPlayerDemo too. A start() call needs to be added after the initialization or nothing happens. ;-) Brian Conrad JyotishTools.com manoj wrote: > Hi, > > I want to go with the code specified in the following link > > http://groups.google.com/group/android-developers/browse_thread/thread/8b316e5a3b4805b4/afacc50dc61c0bbf?lnk=gst&q=play+youtube+%2B+android#afacc50dc61c0bbf > > But I want always the youtube url should be played in default yutube > player provided by android. I want to avoid showing the two options: > browser and youtube. > > How can I achieve this? > > can any one please help me. > > Thanks, > Manoj. > > On Jun 6, 11:50 am, manoj wrote: > >> Hi, >> >> I want to play youtube videos in my app. >> >> by searching in the forum, I found the below link: >> >> http://groups.google.com/group/android-developers/browse_thread/threa... >> >> It was nice. But I want to my app (MediaPlayer/VideoView) to play the >> youtube videos. >> >> Can any one please suggest me? >> >> Thanks, >> Manoj. >> > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android .apks running in a Browser
How do you find out about which apps are in the top 100 ? -- http://www.deepdroid.com On Jun 6, 7:25 pm, guruk wrote: > Hi, > first I like to thank you the whole Android Team and all Users who > helped me over time with me Questions. > Amazing Work. My simple App "My Days" is now in the Top 100 from > Android Apps. > > What I like to suggest now for the Android Project is the Option to > run ".apk's" in a Browser. > That may sound a bit crazy, but also imagine how cool it would be to > see your App running in a Browser > > http://code.google.com/p/drine/ > > is the first Project I saw working on that Idea and I like it a lot. > > In my View it would need a Plugin from Google Android for a Browser > like Chrome, FF, IE ... > that would allow to run .apks > > Is something like that planned or just what do you think about? > > Greets > Chris --~--~-~--~~~---~--~~ 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] Trying to record exception causing null pointer exception
Ok. I am confused. I catch an exception and I am trying to log it. So here is some code try { elevation = myElevation.toString(); } catch (Exception ex) { recordError(ex.GetMessage()); } The ex.GetMessage has a null value, should it? recordError is expecting a string. ex.GetMessage returns a String, but since there is no value it is null. I don't think there is a valueOf -> string to string? Any help would be great, i am just trying to pass 'null' or the value of the message. 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: VerifyError with Maps Add-ons
I answer to myself: the licence agreement of the maps api doesn't allow to include the jar in an application... So, I have no answer... Please release a 1.5 r3 with this bug corrected :-)) On 6 juin, 21:21, broc wrote: > The only solution that works for me, but is a shame, is to include > themaps.jar library in the libs directory of the project... But the size > of the application grows... > > But is it allowed to extractmaps.jar from the google api add-on and > include it into our .apk ? --~--~-~--~~~---~--~~ 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 deal with ExpandableList when all the data are coming from datebase?
On Sat, Jun 6, 2009 at 8:45 AM, stonestrange wrote: > > I want to the effective like ExpandableList1 Activity in apidemo.But > my data is from the database.And th groups's data from the database > and the children's data from the database too.All both are comg from > different tables. Not a problem. The data can come from wherever you want, you just need to have Cursors for it (one Cursor for the top level list, and one Cursor for each expanded child) First,i want to konw how to get data from the cursor to String[]; > Second,i want to konw how to confirm the data of children[][]. I don't understand your question(s). Can you be more specific? --~--~-~--~~~---~--~~ 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: Publishing Paid Apps on Android Market Can Cost You Money
Depends on who you're selling the app to - are you talking about the average person who wouldn't go outside of the Market to buy an app, or are you talking about those who go to other sites such as Andappstore.com or Slideme.org? I would think that your average user is still in the Market. This whole chargeback thing is a lousy deal, but I get why it exists. I don't know why the customer would dispute a $.99 charge (that's kind of a cheapskate move) but I guess the only way to avoid this kind of thing is to factor it into the price... Now I guess I understand why that one guy who charges $4.99 for his "Top Sexy Ladies" apps sets that price - at least he'd be covered in the event of a chargeback :-) On Sat, Jun 6, 2009 at 2:10 PM, guruk wrote: > > if you dont like it, just sell it through paypal. > > > > > --~--~-~--~~~---~--~~ 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: Upgrading to 1.5
The error message confirms what I said earlier: you signed your application with a different key, and this is why updating the app fails. On Sat, Jun 6, 2009 at 12:19 PM, radiolistener wrote: > > This is the exact error: > > [2009-06-06 15:13:29 - REBC] Automatic Target Mode: using device > 'HT849GZ81548' > [2009-06-06 15:13:29 - REBC] Uploading REBC.apk onto device > 'HT849GZ81548' > [2009-06-06 15:13:30 - REBC] Installing REBC.apk... > [2009-06-06 15:13:31 - REBC] Application already exists. Attempting to > re-install instead... > [2009-06-06 15:13:33 - REBC] Re-installation failed due to different > application signatures. > [2009-06-06 15:13:33 - REBC] You must perform a full uninstall of the > application. WARNING: This will remove the application data! > [2009-06-06 15:13:33 - REBC] Please execute 'adb uninstall > REBC.exercise' in a shell. > [2009-06-06 15:13:33 - REBC] Launch canceled! > > And it's more than the phone I updated to 1.5, this morning I updated > my development environment. > > On Jun 6, 11:12 am, Marco Nelissen wrote: > > On Sat, Jun 6, 2009 at 6:56 AM, radiolistener > > wrote: > > > > > > > > > Hi All, > > > > > My phone was updated to 1.5 this week. I have been waiting to update > > > my development environment, until the phone was upgraded. > > > > > The ide started out smoothly, I even updated my new Colorthon program > > > library and posted the compiled version on the marketplace. > > > > > Next I decided to upgrade Radio's Exercise Buddy. Got a signature > > > error. I worked around it by giving it a new namespace, but this is > > > > A signature error normally means that you signed your update with a > > different key than the previous version. It doesn't have anything to do > with > > your phone being updated to 1.5. You should sign your updates with the > same > > key. > > > --~--~-~--~~~---~--~~ 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] Soft Keyboard And Back Key Event
In my app, I need to catch back key events. With the soft keyboard open, the back button removes the keyboard. Unfortunately, there is no API to reliably detect that the soft keyboard is open, so my app tries to handle the back key. When I try to catch the back button in "dispatchKeyEvent" of my app, I get a key event, although the soft keyboard has already consumed the event, which seems strange. When I override a View object, I can hook my application into the "dispatchKeyEventPreIme" and consume the event before it gets to the soft keyboard, but overriding all my top level views seems not a viable approach. It also seems strange or inconsistent to have an event show up in the view before it shows up in the Activity class, although the documentation claims that it handles the event before it gets to the window. It would be nice to have the Activity class be able to do the same thing, catch the event before the IME, or have the soft keyboard consume the event, so it doesn't even get to the application, after all, it already did its job. Out of curiosity, is there a reason for why an application can't determine the visibility of the soft keyboard reliably? Thanks, Michael --~--~-~--~~~---~--~~ 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 can Android know that socket is disconnected by server?
That would be the expected behavior, give or take. Certainly you can expect an IOException to be thrown. Wrap your calls in a try/catch block, and present a message or other response that's appropriate if you lose connection. On Jun 6, 5:29 am, pubu he wrote: > Hi, Experts, > > I wrote one application using socket, which connectes to one server. for > some reasone, the server may disconnect the connection, I noticed that once > the connection is disconnected, android GC starts to work, and the emulator > is freeze, after a while, my application got IOException, then GC stop to > work, who know why? > > Thanks > Pubu --~--~-~--~~~---~--~~ 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: HTC Magic Dev phone
It's a device given to developers, but out of the box it's not a development device, so if you need it rooted for development you'll have to yourself. On Jun 5, 3:54 pm, NTDYLF wrote: > Hello all. I received an HTC Magic at the Google IO conference, and > had heard that it is a dev phone, but when I adb shell into it and > type "su", I get "su: permission denied". If this is not a dev phone, > is it possible to make it one? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] can i find the location of NOKIA GPS enabled mobile
hello guys i am trying to develop a program that will tell me how much time that is needed for my friend to reach me , however still i fall in a problem , that when i extract the address information of my friend (in my contact list in android) i have always that static location that i have explicitly set when i added him to my contacts how can i have his lastKnownLocation is that possible with android ??? if yes how to work this out ?? -- Regards Abdalrahman Eweiwi Msc in Media Informatics RWTH-AACHEN B-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: Detecting when a MapView is changed (panned or zoomed)
What do you need to do? The normal case is that user elements need to be redrawn, and you cover that by overriding Overlay.draw(). On Jun 5, 4:16 pm, mscwd01 wrote: > Im still struggling with this... > > I create an overlay and add it to the MapView, then i override the > onTouchEvent to capture all the panning movements made. However, while > this reads all panning movements the map no longer pans. Its as if, I > have replaced the defualt MapView onTouchEvent with my own. How can i > fix this? > > On Jun 5, 3:21 pm, mscwd01 wrote: > > > Hi, > > > I thought this would have an easy answer but I cant seem to find one. > > > Does MapView have a mechanism such as an onChange listener which is > > fired when the MapView is either panned or zoomed? > > > I have expermiented with onClick, motion events etc, all are not > > really what i'm after. > > > I just need to know when the state of the MapView is changed by the > > user zooming or moving it. > > > 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: Check phone sleep status
I had a similar question a couple of weeks ago. What it boiled down to actually was the determination whether the screen is on (i.e. user can see app output), or not. Here's: the thread: http://groups.google.com/group/android-developers/browse_thread/thread/75cf7337ea716538# Hope this helps. On Jun 6, 9:03 am, Mark Murphy wrote: > coolbho3k wrote: > > I'm trying to check if the phone is currently asleep in a service. > > If your code is running, the phone is not asleep. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > _The Busy Coder's Guide to Android Development_ Version 2.0 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: VerifyError with Maps Add-ons
The only solution that works for me, but is a shame, is to include the maps.jar library in the libs directory of the project... But the size of the application grows... But is it allowed to extract maps.jar from the google api add-on and include it into our .apk ? On 4 juin, 22:40, Alex wrote: > This happens on the device too and is kind of a show stopper. So > there is really no workaround for this? > > I guess we are to assume that having both a widget and a MapActivity > is not fully supported under 1.5, which is a shame. > > -Alex --~--~-~--~~~---~--~~ 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: Upgrading to 1.5
This is the exact error: [2009-06-06 15:13:29 - REBC] Automatic Target Mode: using device 'HT849GZ81548' [2009-06-06 15:13:29 - REBC] Uploading REBC.apk onto device 'HT849GZ81548' [2009-06-06 15:13:30 - REBC] Installing REBC.apk... [2009-06-06 15:13:31 - REBC] Application already exists. Attempting to re-install instead... [2009-06-06 15:13:33 - REBC] Re-installation failed due to different application signatures. [2009-06-06 15:13:33 - REBC] You must perform a full uninstall of the application. WARNING: This will remove the application data! [2009-06-06 15:13:33 - REBC] Please execute 'adb uninstall REBC.exercise' in a shell. [2009-06-06 15:13:33 - REBC] Launch canceled! And it's more than the phone I updated to 1.5, this morning I updated my development environment. On Jun 6, 11:12 am, Marco Nelissen wrote: > On Sat, Jun 6, 2009 at 6:56 AM, radiolistener > wrote: > > > > > Hi All, > > > My phone was updated to 1.5 this week. I have been waiting to update > > my development environment, until the phone was upgraded. > > > The ide started out smoothly, I even updated my new Colorthon program > > library and posted the compiled version on the marketplace. > > > Next I decided to upgrade Radio's Exercise Buddy. Got a signature > > error. I worked around it by giving it a new namespace, but this is > > A signature error normally means that you signed your update with a > different key than the previous version. It doesn't have anything to do with > your phone being updated to 1.5. You should sign your updates with the same > key. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android .apks running in a Browser
+1. It would be nice to put one's APK online much like a Java applet, as a kind of interactive appetizer before deciding about installation on the phone. On Jun 6, 7:25 pm, guruk wrote: > Hi, > first I like to thank you the whole Android Team and all Users who > helped me over time with me Questions. > Amazing Work. My simple App "My Days" is now in the Top 100 from > Android Apps. > > What I like to suggest now for the Android Project is the Option to > run ".apk's" in a Browser. > That may sound a bit crazy, but also imagine how cool it would be to > see your App running in a Browser > > http://code.google.com/p/drine/ > > is the first Project I saw working on that Idea and I like it a lot. > > In my View it would need a Plugin from Google Android for a Browser > like Chrome, FF, IE ... > that would allow to run .apks > > Is something like that planned or just what do you think about? > > Greets > Chris --~--~-~--~~~---~--~~ 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: Detecting Outgoing SMSs
Hello, I could think of that you modify the native layer (RIL) which handles SMS messaging. I could think of to extend this layer with a persistent entry for send SMS messages which you easily can read out at the application layer. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jun 6, 8:03 am, "Uri.Kanonov" wrote: > Hello, > > I am writing a Security-oriented application for Android that is > supposed to detect abuse of SMS sending. > > In my work I encountered the problem of not being able to detect > outgoing SMSs sent not through the use of conventional applications, > i.e. merely by using SMS Manager's sendTextSMS method. > > The conventional SMS applications add the contents of the sent SMS to > the SMS Provider after they send it but I can assume that malicious > applications will not do that... and neither will they provide the > pending intents to the sendTextSMS method to be broadcast upon sending/ > delivery. > > My question is, is there any way I can detect the sending of the SMS > without relying on the SMS provider? > > Thanks in advance, > Uri Kanonov --~--~-~--~~~---~--~~ 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: Socket timeout not working?
I am not familiar with the implementation of the stack, but what you could try is to wrap a layer around your calls that first detects whether the device is connected to a network. Context.getSystemService (CONNECTIVITY_SERVICE) returns an instance of ConnectivtyManager that you can query for a NetworkInfo instance. A bit convoluted, but in essence if you find that the device is not connected to a network, you don't even try to connect and return form the call straight. That helped me speed things up. You need an extra permission which you declare in the AndroidManifest (I don't have the code with me right now but it's easy to find out which). On Jun 5, 3:46 am, Monkiki wrote: > In the sample code, a SocketTimeoutException should be thrown if the > connection can't be stablished in a second, isn't it? > > try { > s = new Socket(host, port); > s.setSoTimeout(1000); > if (s.isConnected()) s.close(); > } catch (SocketTimeoutException e) { > e.printStackTrace(); > } catch (UnknownHostException e) { > e.printStackTrace(); > } catch (ConnectException e) { > e.printStackTrace(); > } catch (IOException e) { > e.printStackTrace(); > } > > But the timeout take a looong time to be detected. --~--~-~--~~~---~--~~ 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: Publishing Paid Apps on Android Market Can Cost You Money
if you dont like it, just sell it through paypal. --~--~-~--~~~---~--~~ 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: Publishing Paid Apps on Android Market Can Cost You Money
Then don't sell on the Android Market. Put your app on Handango or other such sites. Note that Handango, for example, takes 50% instead of 30%, though... It sucks, but it is just the cost of doing business. Life does not always seem fair. The thing that i would like, though, is to know for sure that my app will no longer be on the phone of the person who disputes the charge. On Jun 5, 6:08 pm, Keith Wiley wrote: > Happened to me too. I was pissed off as hell and sent numerous emails > to Google, but in the end I was screwed with no recourse...and of > course the looming threat that it will happen again. Yay. Seems to > me it's the CC co's fault, or the original purchaser who bears some > varying responsibility for putting their card at risk of theft, or > whatever. The one person cannot possibly be considered culpable is > the software developer making ten cents an hour amortized income, but > we're the ones who end up paying for it because we're weak and > powerless. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Android .apks running in a Browser
Hi, first I like to thank you the whole Android Team and all Users who helped me over time with me Questions. Amazing Work. My simple App "My Days" is now in the Top 100 from Android Apps. What I like to suggest now for the Android Project is the Option to run ".apk's" in a Browser. That may sound a bit crazy, but also imagine how cool it would be to see your App running in a Browser http://code.google.com/p/drine/ is the first Project I saw working on that Idea and I like it a lot. In my View it would need a Plugin from Google Android for a Browser like Chrome, FF, IE ... that would allow to run .apks Is something like that planned or just what do you think about? Greets Chris --~--~-~--~~~---~--~~ 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: Check phone sleep status
coolbho3k wrote: > I'm trying to check if the phone is currently asleep in a service. If your code is running, the phone is not asleep. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 2.0 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: A SurfaceView and 2 Buttons on a Layout cannot be displayed?
Jusung and Mark, Thank you very much for your valuable comments. The problem is now solved. --~--~-~--~~~---~--~~ 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 deal with ExpandableList when all the data are coming from datebase?
I want to the effective like ExpandableList1 Activity in apidemo.But my data is from the database.And th groups's data from the database and the children's data from the database too.All both are comg from different tables. First,i want to konw how to get data from the cursor to String[]; Second,i want to konw how to confirm the data of children[][]. Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Check phone sleep status
I'm trying to check if the phone is currently asleep in a service. It's currently a very messy implementation (I'm reading a file in the filesystem that says if the phone is asleep or awake every 10 seconds) so I'm wondering if this is possible with PowerManager or something. Thanks in advance! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Rendering of Android User Interface on different devices.
You can try to use the different emulator skins shipped with the SDK to test different resolutions. Take good care when designing your user interface to utilize the automatic scaling instead of hardcoding width and height values. LinearLayout, RelativeLayout, etc. are your friends. My own game Puzzle Blox scales itself automatically depending upon the resolution: the larger the screen, the larger the graphics are being scaled. It's a different mechanism than in Robo Defense as mentioned by Mark. -- André http://android.rabold.org On 6 Jun., 17:07, Mark Murphy wrote: > aayush wrote: > > Hello. > > > I had a question. > > > As the android OS will be available on a variety of devices with > > different screen resolutions, widths and properties, will there be any > > porting issues/ specific points that will need to be taken care of by > > the application developer to ensure that his UI renders equally well > > on all devices ? > > > Or will the framework take care of it itself and the developer will be > > insulated from such issues ? > > That depends on the type of UI being developed and how it was > implemented, along with how the manufacturer adopted Android to the > screen size. > > Form-style UIs, using things like Button and EditText, have the > potential to be resolution-independent, if the author used things like > RelativeLayout. > > 2D games can be resolution-independent if the author planned ahead with > the game. Take Robo Defense for example. That game is built around the > screen actually being a viewport into a larger map. So long as the map > is bigger than any Android screen size, and the author dynamically > detects the viewport size, it should work on larger screens without much > effort. > > And so on. > > Testing is always key, using hardware where available, using the > emulator to simulate other screen sizes where hardware is unavailable. > > I suspect there will be a fair number of people, myself included, whose > UIs will need a bit of work to look decent on other resolutions, because > we did not adequately test other resolutions, since up front, Android > only used 480x320. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|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: Upgrading to 1.5
On Sat, Jun 6, 2009 at 6:56 AM, radiolistener wrote: > > Hi All, > > My phone was updated to 1.5 this week. I have been waiting to update > my development environment, until the phone was upgraded. > > The ide started out smoothly, I even updated my new Colorthon program > library and posted the compiled version on the marketplace. > > Next I decided to upgrade Radio's Exercise Buddy. Got a signature > error. I worked around it by giving it a new namespace, but this is A signature error normally means that you signed your update with a different key than the previous version. It doesn't have anything to do with your phone being updated to 1.5. You should sign your updates with the same key. --~--~-~--~~~---~--~~ 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: Rendering of Android User Interface on different devices.
aayush wrote: > Hello. > > I had a question. > > As the android OS will be available on a variety of devices with > different screen resolutions, widths and properties, will there be any > porting issues/ specific points that will need to be taken care of by > the application developer to ensure that his UI renders equally well > on all devices ? > > Or will the framework take care of it itself and the developer will be > insulated from such issues ? That depends on the type of UI being developed and how it was implemented, along with how the manufacturer adopted Android to the screen size. Form-style UIs, using things like Button and EditText, have the potential to be resolution-independent, if the author used things like RelativeLayout. 2D games can be resolution-independent if the author planned ahead with the game. Take Robo Defense for example. That game is built around the screen actually being a viewport into a larger map. So long as the map is bigger than any Android screen size, and the author dynamically detects the viewport size, it should work on larger screens without much effort. And so on. Testing is always key, using hardware where available, using the emulator to simulate other screen sizes where hardware is unavailable. I suspect there will be a fair number of people, myself included, whose UIs will need a bit of work to look decent on other resolutions, because we did not adequately test other resolutions, since up front, Android only used 480x320. -- Mark Murphy (a Commons Guy) http://commonsware.com | 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] Detecting Outgoing SMSs
Hello, I am writing a Security-oriented application for Android that is supposed to detect abuse of SMS sending. In my work I encountered the problem of not being able to detect outgoing SMSs sent not through the use of conventional applications, i.e. merely by using SMS Manager's sendTextSMS method. The conventional SMS applications add the contents of the sent SMS to the SMS Provider after they send it but I can assume that malicious applications will not do that... and neither will they provide the pending intents to the sendTextSMS method to be broadcast upon sending/ delivery. My question is, is there any way I can detect the sending of the SMS without relying on the SMS provider? Thanks in advance, Uri Kanonov --~--~-~--~~~---~--~~ 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: A SurfaceView and 2 Buttons on a Layout cannot be displayed?
you didn't use layout_weight. you shoud use LayoutParams LinearLayout.LayoutParams (layout_width, layout_height, layout_weight) If you didn't use a LayoutParams, GLSurfaceView is only displayed on full screen. sample code is below. LinearLayout mLayout = new LinearLayout (this); mLayout.setOrientation (LinearLayout.VERTICAL); GLSurfaceView mPreview = new GLSurfaceView(this); mLayout.addView (mPreview, new LinearLayout.LayoutParams ( LinearLayout.LayoutParams.FILL_PARENT, LinearLayout.LayoutParams.FILL_PARENT, 1.0f)); Button mButton = new Button (this); mLayout.addView (mButton, new LinearLayout.LayoutParams ( LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT, 1.0f)); On 6월6일, 오후11시49분, Mark Murphy wrote: > fortold wrote: > > Hi experts, > > > I have a simple problem which makes me feel like a stupid. I really > > need help on this. > > > I have a SurfaceView which I created with Java code not XML. I created > > a MediaPlayer which shows its content on that SurfaceView. > > > When I use, > > > setContentView(mPreview); // where mPreview is a SurfaceView > > > The video is played on the screen. > > > I need to add two buttons on the screen. So I tried something like > > this: > > > LinearLayout layout = new LinearLayout(this); > > layout.setOrientation(LinearLayout.VERTICAL); > > layout.addView(mPreview); > > > Button btn = new Button(this); > > btn.setText("test"); > > > layout.addView(btn); > > > setContentView(layout); > > > This did not change anything. Still the video is displayed on full > > screen and no buttons appear. I am a java programmer both SE and ME. > > Things are done in this way on Java. > > > Does Android have a different approach? > > You have not specified the sizes of either the SurfaceView or the Button. > > Consider using some LinearLayout.LayoutParams to specify sizes. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|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] Rendering of Android User Interface on different devices.
Hello. I had a question. As the android OS will be available on a variety of devices with different screen resolutions, widths and properties, will there be any porting issues/ specific points that will need to be taken care of by the application developer to ensure that his UI renders equally well on all devices ? Or will the framework take care of it itself and the developer will be insulated from such issues ? Thanks in advance aayush --~--~-~--~~~---~--~~ 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: A SurfaceView and 2 Buttons on a Layout cannot be displayed?
fortold wrote: > Hi experts, > > I have a simple problem which makes me feel like a stupid. I really > need help on this. > > I have a SurfaceView which I created with Java code not XML. I created > a MediaPlayer which shows its content on that SurfaceView. > > When I use, > > setContentView(mPreview); // where mPreview is a SurfaceView > > The video is played on the screen. > > I need to add two buttons on the screen. So I tried something like > this: > > LinearLayout layout = new LinearLayout(this); > layout.setOrientation(LinearLayout.VERTICAL); > layout.addView(mPreview); > > Button btn = new Button(this); > btn.setText("test"); > > layout.addView(btn); > > setContentView(layout); > > > This did not change anything. Still the video is displayed on full > screen and no buttons appear. I am a java programmer both SE and ME. > Things are done in this way on Java. > > Does Android have a different approach? You have not specified the sizes of either the SurfaceView or the Button. Consider using some LinearLayout.LayoutParams to specify sizes. -- Mark Murphy (a Commons Guy) http://commonsware.com | 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] Upgrading to 1.5
Hi All, My phone was updated to 1.5 this week. I have been waiting to update my development environment, until the phone was upgraded. The ide started out smoothly, I even updated my new Colorthon program library and posted the compiled version on the marketplace. Next I decided to upgrade Radio's Exercise Buddy. Got a signature error. I worked around it by giving it a new namespace, but this is far from ideal, because now my users will have to use a migration tool, to bring their data over. Is there a better way to do this? Also, If I change the namespace, can I still have my paid users get a free upgrade? Any insights would be appreciated. Also, I know that many developer's have upgraded earlier, but I wanted to wait until I had the updated phone. If this is a common problem, please refer me to the thread to read. Thanks, John aka Radiolistener RadiolistenersElectricEasel.com, Inc. --~--~-~--~~~---~--~~ 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 way for us to show ProgressBarIndeterminate in Theme.Dialog activity?
Yes, I do think of writing my own ProgressBar, but I do hope this one can run in a good way, and I don't want to add more complex code in my app, for it's just a tiny app and keep it small will be better. On 6月3日, 上午10时02分, Mark Murphy wrote: > Billy Cui wrote: > > Anybody here? > > No, we're not here. ;-) > > > On 6月2日, 下午5时21分, Billy Cui wrote: > >> I make android:theme="@android:style/Theme.Dialog" for an Activity. > > >> And then add these 2 lines in onCreate: > >> requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); > >> setProgressBarIndeterminateVisibility(true); > > >> But find them not function. > > >> Is there a way to make them function? > > If I had to guess, and this is just a guess, the window feature you want > is incompatible with the theme you want. > > Do you have any examples of an application using a dialog theme window > that is using an indeterminate progress bar in the dialog title? > > Have you considered putting your own ProgressBar in the body of your > activity, rather than in the title? > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ 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 way for us to show ProgressBarIndeterminate in Theme.Dialog activity?
Thanks guy. The code is simple, in AndroidManifest.xml: In CheckPreferences.java, who extends Activity: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); setProgressBarIndeterminateVisibility(true); And then I just did not call setProgressBarIndeterminateVisibility (false) in all my codes. Is it clearly? On 6月3日, 上午10时02分, Mark Murphy wrote: > Billy Cui wrote: > > Anybody here? > > No, we're not here. ;-) > > > On 6月2日, 下午5时21分, Billy Cui wrote: > >> I make android:theme="@android:style/Theme.Dialog" for an Activity. > > >> And then add these 2 lines in onCreate: > >> requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); > >> setProgressBarIndeterminateVisibility(true); > > >> But find them not function. > > >> Is there a way to make them function? > > If I had to guess, and this is just a guess, the window feature you want > is incompatible with the theme you want. > > Do you have any examples of an application using a dialog theme window > that is using an indeterminate progress bar in the dialog title? > > Have you considered putting your own ProgressBar in the body of your > activity, rather than in the title? > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ 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] TDD on Android (or should I say Dalvik)
Afternoon dear androids Through out of my Java projects I've got used to TDD with the help of this basic tools JUnit (http://www.junit.org/) as Unit testing Framework Mockito (http://mockito.org/) as tool for Stubs and Mock objects EclEmma (http://www.eclemma.org/) as Java Code Coverage for Eclips As far as I understand none of them I can use fully when I do coding for Dalvik: JUnit -- android.jar has its own junit.jar and my assumption is you're supposed to use it, not the latest version from junit.org Mockito -- read this one http://code.google.com/p/mockito/issues/detail?id=57 EclEmma -- doesn't support Android JUnit tests Thus, there is a question: what am I supposed to use instead and what do you guys use? thank you! cheers den --~--~-~--~~~---~--~~ 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: Radio's Colorthon Tutorial Now Available on YouTube
Hi All, The source code is now up on my web site. Tutorials->Colorthon Also, the compiled version is on the MarketPlace, Applications- >SoftwareLibraries ( Compiled under Android 1.5) On Jun 2, 8:49 pm, radiolistener wrote: > Hi All, > > I just finished my fourth video, of the Colorthon Video Tutorial. > It's a basic tutorial that explains how you can set shared preferences > and layout manipulation. This will enable you to allow the users of > your application to customize the look and feel of the application. > In this instance it's the colors. It allows users to pick from 64 > different collors on six different settings. > > There are 4, 10 minute video in the series. The source code I will be > putting on my web site, radiolistenersElectricEasel.com, as soon as I > get a chance to. This is my way of giving back to the community. > > Feedback is always appreciated, > radioliste...@radiolistenerselectriceasel.com > > The YouTube link is:http://www.youtube.com/view_play_list?p=A4FF04A11E7C4FE5 > And they will also be embedded into my web site where I'll put the > source code, under Apache License. > > Thanks, > > John Leone > AKA Radiolistener --~--~-~--~~~---~--~~ 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: ADC2 Teams
For the ADC2, I would like to extend my Android realtime mapping tracking application work into something new . I'm looking to assemble a team or become a member of a team to submit an application or applications to the ADC2. If you have a clear vision of how we can help each other win, please let me know privately. Cheers, Wes On Jun 6, 6:46 am, wescorp wrote: > Hi All, > > Time for another go with the Android Developer Challenge 2. A couple > of months will go quick. > > If your looking to join a team or become a member to a team, please > reply here or privately to the poster. > > Cheers, > > Wes --~--~-~--~~~---~--~~ 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] ADC2 Teams
Hi All, Time for another go with the Android Developer Challenge 2. A couple of months will go quick. If your looking to join a team or become a member to a team, please reply here or privately to the poster. Cheers, Wes --~--~-~--~~~---~--~~ 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: reg playing youtube videos in android
Hi, I want to go with the code specified in the following link http://groups.google.com/group/android-developers/browse_thread/thread/8b316e5a3b4805b4/afacc50dc61c0bbf?lnk=gst&q=play+youtube+%2B+android#afacc50dc61c0bbf But I want always the youtube url should be played in default yutube player provided by android. I want to avoid showing the two options: browser and youtube. How can I achieve this? can any one please help me. Thanks, Manoj. On Jun 6, 11:50 am, manoj wrote: > Hi, > > I want to play youtube videos in my app. > > by searching in the forum, I found the below link: > > http://groups.google.com/group/android-developers/browse_thread/threa... > > It was nice. But I want to my app (MediaPlayer/VideoView) to play the > youtube videos. > > Can any one please suggest me? > > Thanks, > Manoj. --~--~-~--~~~---~--~~ 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 change default google.com page in android browser
When you're in the browser press the Menu Button -> more -> Settings. Then got to "set Homepage" and enter the default page you want. -- Urs On Sat, Jun 6, 2009 at 1:19 PM, Arun wrote: > > Hi, > > I have an specific requirement to change default home page of Android > Browser which is by deafult "google.com" > Can any give an idea how to change it > like when I click on browser it should come like "yahoo.com" > > > Arun > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How can Android know that socket is disconnected by server?
Hi, Experts, I wrote one application using socket, which connectes to one server. for some reasone, the server may disconnect the connection, I noticed that once the connection is disconnected, android GC starts to work, and the emulator is freeze, after a while, my application got IOException, then GC stop to work, who know why? Thanks Pubu --~--~-~--~~~---~--~~ 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 change default google.com page in android browser
Hi, I have an specific requirement to change default home page of Android Browser which is by deafult "google.com" Can any give an idea how to change it like when I click on browser it should come like "yahoo.com" Arun --~--~-~--~~~---~--~~ 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 remove a directory on file system?
(1) Maybe you do not have the Linux system user rights to delete that directory. On Android I'd assume you only have that permission if it's a directory of the same program that tries to delete it. Expressed in a different way: You can't delete directories from other applications. (2) As the Java docs state: "If this pathname denotes a directory, then the directory must be empty in order to be deleted." So, no, you need to remove all files und subdirectories first before removing the directory. -- http://www.deepdroid.com On Jun 2, 12:30 pm, Gavin wrote: > Hello, > I have some questions. > (1) > I want to remove a directory on filesystem, it is successful but > some logs info was printed: unable to unlink "/data/data/packageName/ > dir1/dir2". there are no any file in dir2. > > my codes: > > File dir = getFileStreamPath("dir1"); > File subdir=new File(dir, "dir2"); > if(subdir.exists()) > { > subdir.delete(); > } > > (2) > If there are some files in dir2, can I remove the whole directory? > > 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] Unable to instantiate activity - transferred from Vista to Mac now my projects won't build
I transferred my development from Windows to Mac. I have the latest version of Eclipse, and the 1.5 r2 SDK. I have successfully ran a sample Hello world app to make sure it all fits together properly. I then imported my library projects (called MyLib) that holds many reusable classes of mine. I also imported some projects that depend on the MyLib package. When I open my projects, Eclipse asks me if I want to open dependent projects as well, and I select yes. The MyLib project folder opens up as it should. When I look in my project properties -> project references, the MyLib folder is checked. When I run my project, it outputs in the debugger (LogCat): (in yellow) dalvikvm failed resolving 'Lcom/mycompany/myapp/Splash; interface 22 'Lcom/mycompany/MyLib/MyClass$MyClassCallback;' dalvikvm Link of class 'Lcom/mycompany/myapp/Splash;' failed (where MyClass.MyClassCallback is a required interface to one of my library classes) (some other stuff...) (in red) java.lang.RunTimeException:unable to instantiate activity ComponentInfo (com.mycompany.myapp/ com.mycompany.myapp.Splash):java.lang.ClassNotFoundException:com.mycompany.myapp.Splash in loader dalvik... Any ideas as to what I'm doing wrong? Did I fail to link my library somewhere else? --~--~-~--~~~---~--~~ 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: Does Android support API to find out whether the SIM Card inserted is SIM or USIM ?
I also had posted a similar query...got an answer too..and the solution. Ref this thread: http://groups.google.com/group/android-developers/browse_thread/thread/26e53fe952b612ab/846a1cb383cf59cd#846a1cb383cf59cd On Jun 5, 10:40 pm, Android Techies wrote: > Hello, > Is there a way in Android FW (API, field etc) which will tell whether > the SIM card inserted is a 2G or 3G (USIM). I need to read certain > records from SIM and 2G spec and 3G spec has different file structure > for the same file. --~--~-~--~~~---~--~~ 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] A SurfaceView and 2 Buttons on a Layout cannot be displayed?
Hi experts, I have a simple problem which makes me feel like a stupid. I really need help on this. I have a SurfaceView which I created with Java code not XML. I created a MediaPlayer which shows its content on that SurfaceView. When I use, setContentView(mPreview); // where mPreview is a SurfaceView The video is played on the screen. I need to add two buttons on the screen. So I tried something like this: LinearLayout layout = new LinearLayout(this); layout.setOrientation(LinearLayout.VERTICAL); layout.addView(mPreview); Button btn = new Button(this); btn.setText("test"); layout.addView(btn); setContentView(layout); This did not change anything. Still the video is displayed on full screen and no buttons appear. I am a java programmer both SE and ME. Things are done in this way on Java. Does Android have a different approach? I will be gratefull if you can help me. Thanks in advance, fortold --~--~-~--~~~---~--~~ 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: 1244113800000l results in 2 different dates?
Hi Twan, Nobody is doing anything wrong. Just change your date format string from "HH:mm" to "HH:mm z". That will print the timezone as well. Regards, Narasimha On Jun 5, 1:05 pm, twan wrote: > Hi Jeff, > > I think your python also does something wrong ;) > From a normal plain old java application: > > public class TestApp { > > public static void main(String[] args) { > System.out.println(new SimpleDateFormat("HH:mm").format(new > Date > (124411380l))); > } > > } > > Results in: > 13:10 > > Am i doing something wrong here? > > Thanks, > Twan > > On Jun 4, 7:41 pm, Jeff Sharkey wrote: > > > > > > The tomcat result is the right one. > > > No, the Android time is correct: > > > sh-3.1$ python>>> import time > > >>> print time.strftime("%H:%M", time.gmtime(1244113800)) > > > 11:10 > > > -- > > Jeff Sharkey > > jshar...@android.com- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Bug? Geo fix and sdk 1.5
Hi Lex: Sorry for the delayed response. You'll need to programmatically inject location updates to your test provider. Here's a code snippet: /** * Asynchronously update the mock location provider with given latitude and * longitude * * @param latitude - update location * @param longitude - update location */ private void sendLocation(final double latitude, final double longitude, final Object observer) { Thread locationUpdater = new Thread() { @Override public void run() { Location loc = new Location(PROVIDER_NAME); loc.setLatitude(latitude); loc.setLongitude(longitude); loc.setTime(java.lang.System.currentTimeMillis()); Log.d(LOG_TAG, "Sending update for " + PROVIDER_NAME); mLocationManager.setTestProviderLocation(PROVIDER_NAME, loc); } }; locationUpdater.start(); } On Wed, Jun 3, 2009 at 9:40 AM, Lex wrote: > > Brett, > > how does one use the test provider you mentioned in the bug report? > I have > > locationManager.addTestProvider("mockgps", false, true, false, false, > false, false, false, 0, 100); > locationManager.setTestProviderEnabled("mockgps", true); > locationManager.requestLocationUpdates("mockgps", 0, 0, > locationListener); > > DDMS is showing that "mockgps" is enabled. But how does it work? Is it > supposed to send any locations or what? > > Thanks, > Lex > > On Apr 29, 6:56 am, Brett Chabot wrote: >> Sorry, I just tried another machine and can reproduce the issue now. >> I'll file a bug, thanks for the report. >> >> Brett. >> >> On Apr 28, 8:58 pm, Brett Chabot wrote: >> >> > Hello: >> >> > Hmm, the 'geo fix' command seems to work fine for me. Are you sending >> > a different value for latitude and longitude on your subsequent geo >> > fix commands? I noticed that if I send the same latitude/longitude >> > value twice a location listener only receives a single update. >> >> > Brett. >> >> > On Apr 28, 6:51 am,AndreasFrey wrote: >> >> > > Hello, >> >> > > I have a really simple Android Application using a MyLocationOverlay >> > > and a LocationManager to determine and show the current position via a >> > > Toast. >> >> > > But the geo fix command i submit via telnet does only work the first >> > > time i submit it. ALl later tries to update the position do not work. >> >> > > Anybody knows this problem? >> > > Any solutiions >> >> > > This is the relevant source code: >> > > - >> > > .. >> > > private void initLocationManager() { >> > > locManager = (LocationManager) getSystemService >> > > (Context.LOCATION_SERVICE); >> >> > > locationListener = new LocationListener() { >> >> > > public void onLocationChanged(Location location) >> > > { >> > > updatePosition(location); >> > > } >> > > public void onProviderDisabled(String arg0) { >> > > } >> > > public void onProviderEnabled(String arg0) { >> > > } >> > > public void onStatusChanged(String arg0, int >> > > arg1, Bundle arg2) { >> > > } >> > > }; >> >> > > >> > > locManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, >> > > 0, >> > > locationListener); >> > > } >> >> > > private void updatePosition(Location location) { >> > > Toast t = Toast.makeText( >> > > this, >> > > getString(R.string.msgPosition, >> > > location.getLatitude(), >> > > location.getLongitude()), >> > > Toast.LENGTH_SHORT); >> > > t.show(); >> >> > > theMap.getController().animateTo( >> > > new GeoPoint( >> > > >> > > (int)(location.getLatitude()*1E6), >> > > >> > > (int)(location.getLongitude()*1E6))); >> > > theMap.postInvalidate(); >> >> > > } >> > > -- > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: android instrumentation framework query
Hi Dev: You might be able to use or build upon the ddmlib library that is part of the Android toolset. To take a look, download the Android source code from source.android.com, and peruse the development/tools/ddms/libs/ddmlib/src/com/android/ddmlib/testrunner package. The Android Eclipse plugins use the ddmlib library to run tests on the Android platform and report back the results into the Eclipse JUnit UI. Here's a direct web link to that package: http://android.git.kernel.org/?p=platform/development.git;a=tree;f=tools/ddms/libs/ddmlib/src/com/android/ddmlib/testrunner;h=554db95a5e9d59d01ad6baaa232b526d47cca406;hb=HEAD Regards, Brett. On Wed, Jun 3, 2009 at 2:23 AM, dev wrote: > > Hi all, > > I am trying to write a simple test framework. > This is what I want to do: > > My actual test is an apk file on android device, and I write a > TestCase or some instrumentation for that which runs on host side. I > trigger the test using adb commands or some IDE. > > I am able to refer to some examples which does above.Now what I want > to know is any way of getting results back using any api available in > TestCase or such class.This result can be any string value or an > object too. > > 1. can I use TestResult for this purpose ? I expect it ot be similar > to function calland return value from function.i.e. on completion of > test I should get back the result in a structured way probably defined > by me.Is this possible at all. > > 2. or return value is always going to be put to stdout? or logcat? > > 3.how do I parse and collect stdout or logcat prints into a file? > > any input would be of great help. > > Regards, > Dev > > > --~--~-~--~~~---~--~~ 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: Excluding test files from the compiled Android app
Hi Gustav: I'd recommend creating a second Android app project that contains your tests, and add the original app project to the test project's build path. As an example, lets say your existing app is called "Foo". Do the following steps: 1. Create a new Android Project called "FooTest". - Uncheck the "Create Activity" checkbox as it won't be needed - Make sure you choose a unique package name for "FooTest", that is different than "Foo"'s package 2. Add the "Foo" project to the "FooTest" project's build path. This can be done via the following steps: a. Select the "FooTest" project from the Eclipse Package Explorer b. Select *File > Properties* c. Select *Java Build Path* d. Select *Projects* * *e. Select *Add* f. Select "Foo" project Now move your tests into "FooTest". You should be able to run the tests that do not reference any Android classes as a "JUnit test". Make sure you select the "Android JUnit Test Launcher" when prompted. If you decide later on you want to add tests that do refer to Android specific classes, Steve's suggestion is a good one - take a look at ApiDemos and the ApiDemos tests. You'll want to ensure the following items are added to the test's AndroidManifest.xml: ** ** * * ** * android:label="Tests for Foo"/> * You can run tests on an Android target by running the tests as a "Android JUnit Test". But note JUnit4 tests are currently not supported on the Android platform. I hope that helps. Please let me know if you need any clarification. Regards, Brett. On Fri, Jun 5, 2009 at 9:22 AM, Steve wrote: > > I've only dabbled in the JUnit with Android 1.5 so far, but I think > that if you take a look at the API Demos app you will see that they > have done exactly what you suggested (move the test classes into a > folder called "tests"). > > I'm not on my dev machine right now so I can't confirm but I think you > also need to tweak the Android manifest. Again, the API Demos app has > a 2nd manifest so you can see how it's different from a production > manifest. (It's the instrumentation stuff, not sure if you need that > for JUnit but that's how they did it in the API Demos.) > > One thing I've seen is that when you run the Eclipse project as an > Android JUnit app, it goes through its tests and reports in the JUnit > panel, and that's it (the app does not run in the emulator or on the > device). But if you run the apps as a regular Android app (not > JUnit), it skips the JUnit panel and you get the normal behavior > (loads to the device or emulator). What I'm not sure is -- and > hopefully someone else knows this -- when you build to the device, > does that mean it left all of your test classes out of the package? > > On Jun 4, 4:00 pm, Parakoos wrote: > > Hello, > > > > I am looking to add some JUnit4 tests to my android application. I am > > going to test some classes that are totally decoupled from the Android > > framework, so I don't want to involve the instrumentation bit. I will > > be running these tests only from eclipse. > > > > The question I have is how I can ensure that the test classes I write > > will be excluded from the finished compiled program. After all, I > > won't need them at that point. I'd like to keep all the 'real' java > > packages in the default named source folder 'src' while I'd like all > > my tests to be in a source folder named 'tst'. > > > > Sorry if this is a stupid or simple question but after spending a > > great deal of time searching for the answer I gave up! > > > > Thanks, > > > > Gustav > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---