[android-developers] SD Card image
Can Any Body Please tell me How to Create A SD Card image in Emulator to Paly the Files Present in Sd card On Media Player --~--~-~--~~~---~--~~ 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 Android browser load from local server via 802.11 ad hoc?
Randall Parker wrote: > Can one use an Android phone to access basically local (think intranet > for example) web servers to view pages? Yes. > I ask this question because some cell phones with some phone network > appear to use a special server to funnel cell phone requests thru and > that the server offloads from the browser part of what a browser > normally does. I get the impression that the Opera mobile browser > works this way. There is no special server in Android. > I want to talk to local devices that serve web pages and connect > directly to them from phones. Does the Chrome browser in Android have > the full functionality that Chrome has on a PC? Can it parse HTML, do > XMLHttpRequest, and otherwise act like a modern browser? Yes to all, but it's not exactly Chrome as far as I know, just a WebKit engine with a skin around it. The Android browser (in 1.1 at least) doesn't have the V8 JavaScript engine, or one process per tab (or window). --~--~-~--~~~---~--~~ 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 order the items of GridView?
This is not supported by the default Home screen application. On Mon, Apr 6, 2009 at 11:43 PM, HelloWorld wrote: > > Dear all, > In emulator, the items of GridView(e.g. Launcher) are in > alphabetical order. Would you please point me how to implement a user- > defined order in Launcher? For example, I'd like 'Browser' to be the > first item in Launcher... Thank you in advance. > > > -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to order the items of GridView?
Dear all, In emulator, the items of GridView(e.g. Launcher) are in alphabetical order. Would you please point me how to implement a user- defined order in Launcher? For example, I'd like 'Browser' to be the first item in Launcher... Thank you in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: SD Card image
http://developer.android.com/guide/developing/tools/othertools.html#mksdcard On Tue, Apr 7, 2009 at 12:09 PM, vinny.s...@gmail.com wrote: > > Can Any Body Please tell me How to Create A SD Card image in Emulator > to Paly the Files Present in Sd card On Media Player > > > --~--~-~--~~~---~--~~ 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: MediaPlayer API
Thanks for Information it helpful to me to think more... On Tue, Apr 7, 2009 at 10:37 AM, Marco Nelissen wrote: > > If you want to play a file in the emulator, you will have to create an > sd card image, copy the file to it, and then run the emulator with > that sd card image. You cannot play a file directly off your D: drive > > On Mon, Apr 6, 2009 at 9:36 PM, vinny.s...@gmail.com > wrote: > > > > can any body tell that how to play the file which is present in MY > > computer For Eg : Path="D:/Vinod/Songs" > > can any body give the way to play the audiao file from files in > > system . > > > > > > > > > -- Regards --- Desu Vinod Kumar vinny.s...@gmail.com 09916009493 --~--~-~--~~~---~--~~ 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: Button in Custom View
Ok, that mostly makes sense. So my next question is how do I make the button a child of my custom view so that I can use View.findViewById ()? On Apr 6, 10:14 am, Greg Krimer wrote: > Activity.findViewById() is different from View.findViewById(). > > The former uses the View set via setContentView() as the root and the > later uses this View as the root. In other words, in order for ... > > findViewById(R.id.checkbox); > > ... to return a non-null View the button must be a child of your view. > > On Apr 5, 4:24 pm, xspotlivin wrote: > > > I'm trying to create a button in a custom view that I've created. I'm > > looping through an XML document and drawing certain things. I want to > > be able to also create buttons to go in certain locations depending on > > the xml data. I'd like to do it in the view because I want to be able > > to call invalidate() on my view to redraw things and replace the > > buttons when new xml data is available. > > > The problem is that I put my code in the view class, the activity > > crashes because the button is "null". Here is a subset of my code: > > > Java: > > �...@override > > protected void onDraw(Canvas canvas) { > > > // Clock-size rectangle to draw compliance windows > > RectF clockRect = new RectF(86, 6, 394, 314); > > > // Create a node list containing each reminder > > NodeList reminderNodes = this.clockXML.getElementsByTagName > > ("AdherenceInterval"); > > int reminderLength = reminderNodes.getLength(); > > > Button checkbox = (Button) findViewById(R.id.checkbox); > > checkbox.setLayoutParams(new AbsoluteLayout.LayoutParams > > (LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, 0, 0)); > > checkbox.setOnClickListener(new Button.OnClickListener() { > > public void onClick(View v) { > > Context context = v.getContext(); > > Intent i = new Intent(context, > > ReportMedications.class); > > context.startActivity(i); > > } > > }); > > > I know this code works for creating buttons because I can put it in my > > activity class and it works just fine. Any suggestions? I thought > > about relocating the button in the activity, but I can't figure out > > how to do this when new data is 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: Why adb push to sdcard report "Read-only file system" for the emulator of the latest android source code
Thanks David, but I was more expecting something without compiling a new version of the SDK. Anyway, I tested my SD card stuff on the actual device for months now, so I should be able to wait a little bit longer. On Mon, Apr 6, 2009 at 10:57 PM, David Turner wrote: > the change has been submitted to the depot, so you can do the following to > get a working system: > > repo sync > touch system/core/init/init.c > make > > the second line is needed because the build system is not smart enough to > rebuild the system image if > the Makefile was changed in certain ways. It is likely to be un-needed if > other changes were synced in though > > > On Mon, Apr 6, 2009 at 2:33 PM, Mariano Kamp wrote: > >> Sounds great. Just wondering if there is any workaround for today's >> problems? >> >> >> On Mon, Apr 6, 2009 at 12:23 PM, David Turner wrote: >> >>> See https://review.source.android.com/Gerrit#change,9452 >>> >>> there is a packaging bug that prevents the mount daemon from properly >>> mounting the SD Card at startup. >>> The proposed changed fixes it. >>> >>> >>> On Mon, Apr 6, 2009 at 4:10 AM, max wrote: >>> Hi Guys, This is a question that raised before, but I can't find answer for my case. I get the latest android source code, compile, and then set $PATH including the "android_src/out/host/linux-x86/bin/" mksdcard 100M card.img emulator -sdcard card.img Then in another xterm window, I use adb push song.mp3 /sdcard but it reports "failed to copy 'song.mp3' to '/sdcard/song.mp3': Read- only file system" I do the same operations many times before, always successfully, but why it fails for the latest source code, I do some debugging into the source code, but no answer for this moment yet. Can anyone give me some light on this? Max >>> >>> >>> >> >> >> > > > > --~--~-~--~~~---~--~~ 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] Changing System date - Android Emulator
Hi Team, For testing my android application, I need to change the date on the Android Emulator to a future date. But every time I change the date ... the emulator resets it back to the current date. I go to menu -> settings -> day and time to make the Date change. I know there is a "adb shell date", which you can use to change the date. But I had no luck with that too. Any help from the team is really appreciated. Thanks, Vikram --~--~-~--~~~---~--~~ 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] Passing ArrayList across actvities
Hi all, I have an ArrayList aList in an activity. I would like to send this data to another activty. Such that, ArrayList aList; Intent intent = new Intent(); intent.setClass(mainactivity.this, newActivity.class); intent.putExtra("MyList", aList ); startActivity(intent); Will this work out..?? On the receiving activity, Intent i = getIntent(); newList = (ArrayList) i.getSerializableExtra("MyList"); But this gets me no where ERROR..!!! Please help me..how to approach this problem... My intention is to share this List between activities... --~--~-~--~~~---~--~~ 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: MediaPlayer API
If you want to play a file in the emulator, you will have to create an sd card image, copy the file to it, and then run the emulator with that sd card image. You cannot play a file directly off your D: drive On Mon, Apr 6, 2009 at 9:36 PM, vinny.s...@gmail.com wrote: > > can any body tell that how to play the file which is present in MY > computer For Eg : Path="D:/Vinod/Songs" > can any body give the way to play the audiao file from files in > system . > > > --~--~-~--~~~---~--~~ 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] aapt ERROR
Hello, I made a new android project with Eclipse and while I was trying to use AAPT on that project, I got the following errors. res/layout/main.xml:2: ERROR No resource identifier found for attribute 'orientation' in package 'android' res/layout/main.xml:2: ERROR No resource identifier found for attribute 'layout_width' in package 'android' res/layout/main.xml:2: ERROR No resource identifier found for attribute 'layout_height' in package 'android' res/layout/main.xml:7: ERROR No resource identifier found for attribute 'layout_width' in package 'android' res/layout/main.xml:7: ERROR No resource identifier found for attribute 'layout_height' in package 'android' res/layout/main.xml:7: ERROR No resource identifier found for attribute 'text' in package 'android' res/layout/main.xml:7: ERROR Error: Resource is not public. (at 'text' with value '@string/hello'). AndroidManifest.xml:2: ERROR No resource identifier found for attribute 'versionCode' in package 'android' AndroidManifest.xml:2: ERROR No resource identifier found for attribute 'versionName' in package 'android' ... I found some similar article in this community, but there was no answer. My working environment is Ubuntu 8.04 with Android SDK 1.5. The version of aapt is 0.2, and the command line method I used when I got those errors is: aapt p -M AndroidManifest.xml -S res -F Test.apk Did I do something wrong? or I miss some argument? Please help to how I can fix this problem. =( 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] Problem In Game Demo
Can Any Body Say What This Problem Is: java.lang.NullPointerException at com.android.ide.eclipse.editors.layout.descriptors.CustomViewDescriptorService.getDescriptor (Unknown Source) at com.android.ide.eclipse.editors.layout.descriptors.CustomViewDescriptorService.getDescriptor (Unknown Source) at com.android.ide.eclipse.editors.uimodel.UiElementNode.updateElementList (Unknown Source) at com.android.ide.eclipse.editors.uimodel.UiElementNode.loadFromXmlNode (Unknown Source) at com.android.ide.eclipse.editors.uimodel.UiElementNode.updateElementList (Unknown Source) at com.android.ide.eclipse.editors.uimodel.UiElementNode.loadFromXmlNode (Unknown Source) at com.android.ide.eclipse.editors.uimodel.UiDocumentNode.loadFromXmlNode (Unknown Source) at com.android.ide.eclipse.editors.layout.LayoutEditor.xmlModelChanged (Unknown Source) at com.android.ide.eclipse.editors.AndroidEditor $XmlModelStateListener.modelChanged(Unknown Source) at com.android.ide.eclipse.editors.AndroidEditor.createTextEditor (Unknown Source) at com.android.ide.eclipse.editors.AndroidEditor.createAndroidPages (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.EditorReference.getEditor (EditorReference.java:266) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched (WorkbenchPage.java:2820) 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.internal.WorkbenchPage.openEditor (WorkbenchPage.java:2668) at org.eclipse.ui.internal.WorkbenchPage.openEditor (WorkbenchPage.java:2652) at org.eclipse.ui.internal.WorkbenchPage.openEditor (WorkbenchPage.java:2643) at org.eclipse.ui.ide.IDE.openEditor(IDE.java:646) at org.eclipse.ui.ide.IDE.openEditor(IDE.java:605) at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor (EditorUtility.java:318) at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor (EditorUtility.java:160) at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228) at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:207) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun (SelectionDispatchAction.java:274) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run (SelectionDispatchAction.java:250) at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen (PackageExplorerActionGroup.java:363) at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$5.open (PackageExplorerPart.java:603) at org.eclipse.jface.viewers.StructuredViewer$2.run (StructuredViewer.java:820) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:880) at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) at org.eclipse.jface.viewers.StructuredViewer.fireOpen (StructuredViewer.java:818) at org.eclipse.jface.viewers.StructuredViewer.handleOpen (StructuredViewer.java:1079) at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen (StructuredViewer.java:1183) at org.eclipse.jface.util.OpenStrategy.fireOpenEvent (OpenStrategy.java:263) at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java: 257) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java: 3823) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java: 2382) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493) at org.eclipse.core.databinding.observa
[android-developers] MediaPlayer API
can any body tell that how to play the file which is present in MY computer For Eg : Path="D:/Vinod/Songs" can any body give the way to play the audiao file from files in system . --~--~-~--~~~---~--~~ 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 add a custom qualifier to resource directory?
Hi, just like the title says, I have a question about resource directory. To use different resources based on current configuration, Android supports a list of qualifier that can be added to directory name, so the system automatically finds the right one for the current configuration. However, it seems like the android system only supports few qualifiers, so I'm wondering if I can just add some more qualifier and make the Android system recognize them. Please let me know if there is any way to do this. Thank you! =D --~--~-~--~~~---~--~~ 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 onCreate/OnDestory method
Thank you. When I open a 'adb shell' to talk to emulator and then execute a native application, is that application process also? Or that is system process which automatically has root permission? On Mon, Apr 6, 2009 at 7:01 PM, Dianne Hackborn wrote: > It's all in the app's process. > > On Mon, Apr 6, 2009 at 5:53 PM, Lucius Fox wrote: >> >> Hi, >> >> Each activity has a onCreate/OnDestory method. And I think they are >> being invoked by frameworks/base/core/java/Instrumentation.java. >> >> My question is what it is process calling >> Instrumentation.callActivityOnDestory() and >> Instrumentation.callActivityOnStart()? >> Does that process has root permission? >> >> Thank you. >> >> > > > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support, and so won't reply to such e-mails. All such > questions should be posted on public forums, where I and others can see and > answer them. > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: WebView with theme doesn't show focused text field values
Did you try this with the sample I code I supplied? It had no effect whatsoever (and not sure why it would address the focus problem anyway). In fact, I couldn't get the page to load at all. Anyone else have a suggestion? On Apr 6, 12:14 am, for android wrote: > Use this > > webView.loadDataWithBaseURL("http://m.myspace.com";, null, > "text/html", "utf-8", null); > > On Sun, Apr 5, 2009 at 12:12 AM, Rmac wrote: > > > I have encountered a problem with focused text fields in a WebView not > > showing entered text values. As long as a WebView text field has > > focus it will not show text or even the blinking cursor. You can > > select and highlight the text or unfocus the field to see it, but when > > it gains focus it will not show the text... as if the foreground color > > of the text is white. > > > The simplest code to demonstrate this is below. With the setTheme > > using a Light background, try typing values into the Email text field > > to notice that the text is not visible when the field is focused. > > > import android.app.Activity; > > import android.os.Bundle; > > import android.webkit.WebView; > > > public class AndTest extends Activity { > > �...@override > > public void onCreate(Bundle savedInstanceState) { > > super.onCreate(savedInstanceState); > > > setTheme(android.R.style.Theme_Light_NoTitleBar); // <-- > > causes focused text fields not to show entered text > > > WebView webContent = new WebView(this); > > webContent.loadUrl("http://m.myspace.com";); > > > setContentView(webContent); > > } > > } > > > If the setTheme is set for a Light theme, the text in focused fields > > cannot be seen. I also have this happening in my program without the > > theme if there are multiple Views within Views that have background > > colors, but the above code replicates the problem. > > > Any suggestions or help is greatly appreciated. > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Send Email Automatically
> What text box? Scratch that out. Let's just say that I have the user's email address in a String named "userEmail". > What application? Running where? It is actually a dialog box that when he presses send, it will send an email to his mailbox. > What mailbox? The user's personal email address. For example noam.ha...@gmail.com > What mail client? Every time I try to send an email with my code, 1) The "To: " field does not get populated. 2) The mail client pops up with the "To: , Subject, and Body" fields and a "send" button. However, I want the email to be sent automatically, without having to go through the mail UI. My code: // Setup the recipient in a String array String[] mailto = {"noam.ha...@gmail.com"}; // Create a new Intent to send messages Intent sendIntent = new Intent(Intent.ACTION_SEND); //Write the body of the Email String emailBody = "You're password is: "; // Add attributes to the intent sendIntent.setType("text/plain"); //use this line for testing in the emulator //sendIntent.setType("message/rfc822"); //use this line for testing on the real phone sendIntent.putExtra(Intent.EXTRA_EMAIL, mailto); sendIntent.putExtra(Intent.EXTRA_SUBJECT, "Your Password"); sendIntent.putExtra(Intent.EXTRA_TEXT, emailBody); startActivity(Intent.createChooser(sendIntent, "Please pick your preferred email application.")); The address which will send this email is pre-defined. Thanks, Noam. --~--~-~--~~~---~--~~ 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 compile android app with static library?could somebody give me a example?thanks
Thanks you! On 4月3日, 下午4时44分, "davidandroid2...@yahoo.com" wrote: > You can include the the library jar file in your Android Eclipe > project's library. > > On 4月1日, 下午11时52分,打工者 wrote: > > > > > How to compile android app with static library?could somebody give me > > a example?thanks- 隐藏被引用文字 - > > - 显示引用的文字 - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How onCreate/OnDestory method
It's all in the app's process. On Mon, Apr 6, 2009 at 5:53 PM, Lucius Fox wrote: > > Hi, > > Each activity has a onCreate/OnDestory method. And I think they are > being invoked by frameworks/base/core/java/Instrumentation.java. > > My question is what it is process calling > Instrumentation.callActivityOnDestory() and > Instrumentation.callActivityOnStart()? > Does that process has root permission? > > Thank you. > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to print errno in native code in android
Don't use native code because it's not supported :) On Mon, Apr 6, 2009 at 5:15 PM, Meryl Silverburgh wrote: > > Hi, > > I am trying to use LOGE function to display the value of errno. > LOGE("errno: %d\n", errno); > > But what I get > errno: 1 > > But '1' is not a valid errno (I look at errno.h). > > Can you please tell me what am I doing wrong? > > Thank you. > > > > -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to Zoom out a picture
guishenl...@gmail.com wrote: > Nobody knows? > > On Mar 31, 12:44 pm, "guishenl...@gmail.com" > wrote: >> Hi all, >> If I have a picture file stored in the phone memery (.jpg .bmp >> etc.),can I use Android API to zoom it out.For example, convert a >> picture of size 800*800 to 80*80. If anyone knows, please give me some >> sample code. Thank you in advance! You can try Bitmap.createScaledBitmap(). -- 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: How to Zoom out a picture
You can start from here: Bitmap bm = BitmapFactory.decodeFile("pathtofile.jpg"); Ivan Soto Fernandez Web Developer http://ivansotof.com On Mon, Apr 6, 2009 at 7:05 PM, guishenl...@gmail.com wrote: > > Nobody knows? > > On Mar 31, 12:44 pm, "guishenl...@gmail.com" > wrote: > > Hi all, > > If I have a picture file stored in the phone memery (.jpg .bmp > > etc.),can I use Android API to zoom it out.For example, convert a > > picture of size 800*800 to 80*80. If anyone knows, please give me some > > sample code. Thank you in advance! > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem on ImageSwitcher.setImageURI
guishenl...@gmail.com wrote: > Nobody knows? I suspect your photo is not located at /data/data/com.Android.Hust.PoliceMap/app_c/2.jpg. App-local files should be in /data/data/your.package.here/files or subdirectories under there. BTW, your application should not be using the com.android namespace. -- 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: How to Zoom out a picture
Nobody knows? On Mar 31, 12:44 pm, "guishenl...@gmail.com" wrote: > Hi all, > If I have a picture file stored in the phone memery (.jpg .bmp > etc.),can I use Android API to zoom it out.For example, convert a > picture of size 800*800 to 80*80. If anyone knows, please give me some > sample code. Thank you in advance! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem on ImageSwitcher.setImageURI
Nobody knows? On Apr 1, 12:51 pm, "guishenl...@gmail.com" wrote: > Hi all, > I tried to show a picture in local file system in a imageswitcher. > But I could see nothing but a black screen in fact. > Here is my code: > > public void onItemSelected(AdapterView parent, View v, int > position, long id) { > > Uri imageUri = Uri.fromFile(imageFileDir.listFiles()[position]); > /* > imageUri has the value of "file:///data/data/ > com.Android.Hust.PoliceMap/app_c/2.jpg", and the file 2.jpg exists > indeed. > */ > mSwitcher.setImageURI(imageUri); > } > When I debugged it, it showed me the message "resolveUri failed on bad > bitmap uri: file:///data/data/com.Android.Hust.PoliceMap/app_c/2.jpg". > Is anyone can tell me how to solve this problem and show my picture > in the Emulator? > Thank you in advance! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Send Email Automatically
Noam wrote: > I am looking for a way to send an email from a DEFINED email to the > user's email. I will also have a defined subject and a defined email - > body. > > My situation is that when the user forgets his password, he needs to > enter in his email into the text box What text box? > and then the application What application? Running where? > will automatically send an email to his mailbox. What mailbox? > Is there any way to do this without the user getting his mail client > popping up? What mail client? -- 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: Question about zoom a picture
Nobody knows? On Apr 2, 1:07 pm, "guishenl...@gmail.com" wrote: > Hi all, > I'm learning how to show pictures now, and following the example > "ApiDemos" given by sdk.I want to add the zoom function to the > ImageSwitcher, but I didn't find useful code in sdk. Can anyone give > me some code to help me about zooming the picture in ImageSwitcher? > Here is the code of "ApiDemos" which I followed: > /* > * Copyright (C) 2007 The Android Open Source Project > * > * Licensed under the Apache License, Version 2.0 (the "License"); > * you may not use this file except in compliance with the License. > * You may obtain a copy of the License at > * > * http://www.apache.org/licenses/LICENSE-2.0 > * > * Unless required by applicable law or agreed to in writing, software > * distributed under the License is distributed on an "AS IS" BASIS, > * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or > implied. > * See the License for the specific language governing permissions and > * limitations under the License. > */ > > package com.example.android.apis.view; > > import com.example.android.apis.R; > > import android.app.Activity; > import android.content.Context; > import android.os.Bundle; > import android.view.View; > import android.view.ViewGroup; > import android.view.Window; > import android.view.animation.AnimationUtils; > import android.widget.AdapterView; > import android.widget.BaseAdapter; > import android.widget.Gallery; > import android.widget.Gallery.LayoutParams; > import android.widget.ImageSwitcher; > import android.widget.ImageView; > import android.widget.ViewSwitcher; > > public class ImageSwitcher1 extends Activity implements > AdapterView.OnItemSelectedListener, ViewSwitcher.ViewFactory { > > @Override > public void onCreate(Bundle savedInstanceState) { > super.onCreate(savedInstanceState); > requestWindowFeature(Window.FEATURE_NO_TITLE); > > setContentView(R.layout.image_switcher_1); > > mSwitcher = (ImageSwitcher) findViewById(R.id.switcher); > mSwitcher.setFactory(this); > mSwitcher.setInAnimation(AnimationUtils.loadAnimation(this, > android.R.anim.fade_in)); > mSwitcher.setOutAnimation(AnimationUtils.loadAnimation(this, > android.R.anim.fade_out)); > > Gallery g = (Gallery) findViewById(R.id.gallery); > g.setAdapter(new ImageAdapter(this)); > g.setOnItemSelectedListener(this); > } > > public void onItemSelected(AdapterView parent, View v, int > position, long id) { > mSwitcher.setImageResource(mImageIds[position]); > } > > public void onNothingSelected(AdapterView parent) { > } > > public View makeView() { > ImageView i = new ImageView(this); > i.setBackgroundColor(0xFF00); > i.setScaleType(ImageView.ScaleType.FIT_CENTER); > i.setLayoutParams(new ImageSwitcher.LayoutParams > (LayoutParams.FILL_PARENT, > LayoutParams.FILL_PARENT)); > return i; > } > > private ImageSwitcher mSwitcher; > > public class ImageAdapter extends BaseAdapter { > public ImageAdapter(Context c) { > mContext = c; > } > > public int getCount() { > return mThumbIds.length; > } > > public Object getItem(int position) { > return position; > } > > public long getItemId(int position) { > return position; > } > > public View getView(int position, View convertView, ViewGroup > parent) { > ImageView i = new ImageView(mContext); > > i.setImageResource(mThumbIds[position]); > i.setAdjustViewBounds(true); > i.setLayoutParams(new Gallery.LayoutParams( > LayoutParams.WRAP_CONTENT, > LayoutParams.WRAP_CONTENT)); > i.setBackgroundResource(R.drawable.picture_frame); > return i; > } > > private Context mContext; > > } > > private Integer[] mThumbIds = { > R.drawable.sample_thumb_0, R.drawable.sample_thumb_1, > R.drawable.sample_thumb_2, R.drawable.sample_thumb_3, > R.drawable.sample_thumb_4, R.drawable.sample_thumb_5, > R.drawable.sample_thumb_6, R.drawable.sample_thumb_7}; > > private Integer[] mImageIds = { > R.drawable.sample_0, R.drawable.sample_1, > R.drawable.sample_2, > R.drawable.sample_3, R.drawable.sample_4, > R.drawable.sample_5, > R.drawable.sample_6, R.drawable.sample_7}; > > > > }- 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 mo
[android-developers] How onCreate/OnDestory method
Hi, Each activity has a onCreate/OnDestory method. And I think they are being invoked by frameworks/base/core/java/Instrumentation.java. My question is what it is process calling Instrumentation.callActivityOnDestory() and Instrumentation.callActivityOnStart()? Does that process has root permission? 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: Installation error: INSTALL_PARSE_FAILED_NO_CERTIFICATES
Unfortunately, it's code I'm writing for a client and can't be posted as is. I will do some work to see if I can whittle it down to a much simpler example that still repros the problem. On Apr 5, 4:23 pm, Mark Murphy wrote: > geoff.stromberg wrote: > > Well, this APK installation error > > (INSTALL_PARSE_FAILED_NO_CERTIFICATES) is caused by a change to my > > source (I didn't verify well enough that I had restored to a known > > good working source tree). > > > The error is apparently triggered by changing the name of one of my > > layout XML files. With one name it works fine, with another everything > > compiles and builds an APK fine, but that APK fails to install (with > > an error message indicating a color resource that has nothing to do > > with the layout file whose name changed). > > This is somewhat reminiscent of what Mr. Damov referred to colorfully as > a "TERRIBLE BUG" a few weeks ago. In his case, it would not compile > (aapt crashed), but it too was due to a subtle difference in his > resources (in his case, whitespace in a layout, IIRC). > > If there is any way you can post an issue tohttp://b.android.comwith a > ZIPped-up project that can reproduce this problem, it would really help > in terms of getting it fixed. If you can't (e.g., the project you are > working on isn't intended to be open source), c'est la vie... > > -- > 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: Exception locking surface - lockCanvas() returns a null?
i, now, combined the two threads into one, and I still get the same error at lockCanvas(). any ideas would be much appreciated. thank you. On Apr 6, 11:47 am, mcmc wrote: > actually, I am drawing onto the surface from a different thread... > that's not allowed?? how would I go around doing this? > > I'm not drawing before the surfaceCreated() callback... > > On Apr 5, 11:15 am, "ellipsoidmob...@googlemail.com" > > wrote: > > Might also be worth checking that you aren't drawing into the surface > > from a different thread, and that you aren't drawing before the > > surfaceCreated() callback --~--~-~--~~~---~--~~ 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 print errno in native code in android
Hi, I am trying to use LOGE function to display the value of errno. LOGE("errno: %d\n", errno); But what I get errno: 1 But '1' is not a valid errno (I look at errno.h). Can you please tell me what am I doing wrong? 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] How to find the Browser Home Page (URL)....
I need to get the browsers default Home Page URL in a string so I can direct Browser activities that I'm launching. Couldn't find that in the documentation (or perhaps I missed it). Is there a getter for this? Is it under System Settings somewhere? Any help appreciated. Thx. jh --~--~-~--~~~---~--~~ 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 the daemon can be started?
davidc...@gmail.com wrote: > I need to create a daemon to monitor traffic, and I am using similar > method as uuidd.rc to create a daemon. However, I can't the way(code) > that the Uuidd.rc can be started? neithor from init.rc or system > ("Uuidd.rc"). > > can someone let me know how the daemon or (.rc) can be executed? Questions regarding Android firmware development are best asked on a discussion list pertaining to Android firmware development: http://source.android.com/discuss This list is for Android SDK-level development. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ 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 the daemon can be started?
Hi , I need to create a daemon to monitor traffic, and I am using similar method as uuidd.rc to create a daemon. However, I can't the way(code) that the Uuidd.rc can be started? neithor from init.rc or system ("Uuidd.rc"). can someone let me know how the daemon or (.rc) can be executed? Thanks, david === Uuidd.rc === set -e PATH=/bin:/usr/bin:/sbin:/usr/sbin DAEMON=/usr/sbin/uuidd PIDFILE=/var/run/uuidd/uuidd.pid test -x $DAEMON || exit 0 . /lib/lsb/init-functions case "$1" in start) log_daemon_msg "Starting uuid generator" "uuidd" start_daemon -p $PIDFILE $DAEMON log_end_msg $? ;; stop) log_daemon_msg "Stopping uuidd generator" "uuidd" killproc -p $PIDFILE $DAEMON log_end_msg $? ;; status) if pidofproc -p $PIDFILE $DAEMON >& /dev/null ; then echo "$DAEMON is running"; exit 0; else echo "$DAEMON is NOT running"; if test -f /var/run/uuidd.pid; then exit 2; fi exit 3; fi ;; force-reload|restart) $0 stop $0 start ;; *) echo "Usage: /etc/init.d/uuidd {start|stop|restart|force-reload}" exit 1 ;; esac exit 0 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Send Email Automatically
Hello everyone, I am looking for a way to send an email from a DEFINED email to the user's email. I will also have a defined subject and a defined email - body. My situation is that when the user forgets his password, he needs to enter in his email into the text box and then the application will automatically send an email to his mailbox. Is there any way to do this without the user getting his mail client popping up? Thanks, Noam. --~--~-~--~~~---~--~~ 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 become root in emulator?
Hi, Can you please tell me how can I become root in android emulator? I have googled and find this link: http://www.androidhere.com/ANDROID-NEWS/Technology/200811/19-Hack--Howto-get-root-on-your-G1_41.html so i tried # adb shell and the follow the steps #mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system #cd /system/bin #cat sh > su #chmod 4755 su and run 'su' but I still can't access files which only allow to be accessed by root. Thank you for any suggestion. --~--~-~--~~~---~--~~ 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 Telephony
This is the way you get the signal strength. The status bar uses the exact same information to show its bars. On Mon, Apr 6, 2009 at 1:18 PM, Matthew wrote: > > Hello, > > I am new to this Group. > > Thank you for your recommendation to avoid using unsupported > techniques. > > I am trying to obtain the signal strength seen by the G1 phone. > > As you had referred to, I have implemented a PhoneStateListener and > onSignalStrengthChanged (int asu). > > It looks like I am seeing only a few returned asu values (e.g., 2, 6, > 12 and 25). > > I believe that the mapping of asu to dBm is as follows: -113dBm + > 2*asu. Therefore, it looks like the G1 phone is reporting dBm values > of -109, -101, -89 and -63. > > Also, I see that the signal strength icon used by the G1 has four bars > (I am assuming that each bar corresponds to one of the 2, 6, 12 and 25 > asu values). > > Question: do you know if there is a supported way to obtain signal > strength (either as an asu measure or a direct dBm measure) with a > higher level > of granularity (that is, for example, in single asu steps or single > dBm steps)? > > Thank you in advance for any help or comments. > > > On Mar 31, 3:40 am, Dianne Hackborn wrote: > > DO NOT DO THIS!!! > > > > Especially since there is a public API for this: > > > > http://developer.android.com/reference/android/telephony/PhoneStateLi... > > > > We've been through the whole "don't use private APIs" stuff enough times, > so > > I'll just note: > > > > 1. This is not "a bit of an advanced topic," this is outright hacking a > > fragile kludge. > > 2. Please do not recommend that people do this kind of stuff at least > > without the relevant caveats that it is not a supported thing to do and > they > > can expect their app to break. > > 3. Just because you get something to run on the current G1 today does not > > mean it is the right thing to do. > > > > > > > > > > > > On Thu, Mar 12, 2009 at 3:28 PM, wrote: > > > > > This can be done, but it is a bit of an advanced topic. You'll need > > > to use an internal class which is > > > com.android.internal.telephony.PhoneStateIntentReceiver > > > > > Grab this package, the .class files from the cupcake source tree > > > repository , (doesn't ship with the SDK) and add the classes to you're > > > class path, and include in the /libs directory, or package them into > > > your existent android.jar file. > > > > > Code to get the signal strength is as follows: > > > > > import com.android.internal.telephony.PhoneStateIntentReceiver; > > > private static final int EVENT_SIGNAL_STRENGTH_CHANGED = 200; > > > .. > > > /// first initialize the PhoneStateIntentReceiver (assumes you're > > > inside a class that extends Context) > > > > > void initPhoneStateReciever() > > >{ > > > phoneStateReciever = new PhoneStateIntentReceiver(this, new > > > Handler( getMainLooper())); > > > phoneStateReciever.notifySignalStrength > > > (EVENT_SIGNAL_STRENGTH_CHANGED); > > > phoneStateReciever.registerIntent(); > > >} > > > > > //to get the signal strength, use this method, or something similar > > > > > void updateSignalStrength() > > > { > > > int signalDbm = phoneStateReciever.getSignalStrengthDbm(); > > > int signalAsu = phoneStateReciever.getSignalStrength(); > > > System.out.println("Time: "+System.currentTimeMillis()+" > > > Signal Strength DB: "+signalDbm+" strength Asu: "+signalAsu); > > > } > > > > > The use of internal classes is not officially supported, and you'll > > > need to grab the .class files from the source repo, but I do actually > > > have code that implements and is tested on the G1. Refer to other > > > threads on options for getting the code and setting up your > > > development environment to use internal classes. Good luck! > > > > > Mark > > > > > On Mar 11, 7:49 am, Shrikant Agrawal wrote: > > > > Hi > > > > > > I want to find the network signal strength for my app. > > > > But I cant find the api for it. > > > > > > Do anybody know how to find the signal strength of the phone? > > > > > > Thanks > > > > -- > > Dianne Hackborn > > Android framework engineer > > hack...@android.com > > > > Note: please don't send private questions to me, as I don't have time to > > provide private support. All such questions should be posted on public > > forums, where I and others can see and answer them.- Hide quoted text - > > > > - Show quoted text - > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-devel
[android-developers] Change MAIN LAUNCHER activity doesn't "take"
>Dianne Hackborn wrote: > > One thing that can happen is that when you make a shortcut on the home >> screen, this does of course reference the explicit component the >> shortcut is for. So if the application is changed such that the >> component no longer exists, you will need to delete the current shortcut > > and make a new one. Ah, good info. I wasn't booting either, well, I did power off and on and the crash persisted. BUT, I _was_ launching from a home shortcut. And even though the old entry activity still existed, if the shortcut reaches all the way to the component, the fact that it no longer had intent filters for MAIN/LAUNCHER could cause the permission error/crash. This is still kind of an upgrade problem though. Let me play around with this. -- Ward --~--~-~--~~~---~--~~ 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: Change MAIN LAUNCHER activity doesn't "take"
Dianne Hackborn wrote: > The system doesn't cache anything about the contents of manifests across > boots, so there is no way this can just not work. My scenario does not involve boots, FWIW. http://code.google.com/p/android/issues/detail?id=2376 > One thing that can happen is that when you make a shortcut on the home > screen, this does of course reference the explicit component the > shortcut is for. So if the application is changed such that the > component no longer exists, you will need to delete the current shortcut > and make a new one. No shortcuts, beyond the launcher icon. -- 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 an application to know whether it has been downloaded from Market?
Currently the platform knows absolutely nothing about where an installed app came from. There may be an API you can use with the market to find out if it had installed your app at some point, but I doubt such a thing exists right now. On Mon, Apr 6, 2009 at 1:51 PM, Peli wrote: > > Is there a way for an application to know whether it has been > downloaded from Market? > > I'm thinking of distributing an application through Android Market as > well as through a private web site, that contains both a free basic > version and a paid Pro version. For simplicity of maintenance, I would > like to distribute the exactly same apk both through Market and on my > web site. > > After the user has downloaded the free basic application, and they > want to upgrade to the Pro version, they should be presented one of > the following: > A) Present a link to Market to pay for and download a license apk to > unlock Pro features. > - or - > B) Present a link to our homepage to purchase a license key to unlock > Pro features. > > If the free basic application had been downloaded from Market, the > user should be presented option A, otherwise they should be presented > option B. > > Does anyone see a way how to achieve this? > > Peli > > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Change MAIN LAUNCHER activity doesn't "take"
The system doesn't cache anything about the contents of manifests across boots, so there is no way this can just not work. One thing that can happen is that when you make a shortcut on the home screen, this does of course reference the explicit component the shortcut is for. So if the application is changed such that the component no longer exists, you will need to delete the current shortcut and make a new one. On Mon, Apr 6, 2009 at 2:46 PM, Mark Murphy wrote: > > Ward Willats wrote: > > Well, that's a relief -- at least it is not a global phenomenon. > > > > Can't post the manifest, boss would get mad (not like it is any kind > > of secret, what with package interrogation being so easy...but...) > > > > I'll have to build up a test and keep adding things until I hit it. > > I have entered an issue on this: > > http://code.google.com/p/android/issues/detail?id=2376 > > Try removing your theme and/or your android:screenOrientation and see if > that allows yours to work. Given your snippet of manifest, those are the > two things I see in common between your crash scenario and mine. If you > use that same theme and/or orientation in both your activities, it might > also explain why mine recovers better -- I use them only in one. > > If you find any more clues, if you would, add 'em to the issue. > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://twitter.com/commonsguy > > _The Busy Coder's Guide to Android Development_ Version 2.0 Available! > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Analyzed and fixed "...acore has stopped unexpectedly" issue
Hi fadden, fadden wrote: > On Apr 4, 2:19 am, "Jonas Petersson" wrote: >> In my opinion it would make sense for the acore sync process to handle >> incorrect values by replacing them with HOME/OTHER instead of crashing. >> I have not dug into the source, but I would think it would be a trivial >> fix. I suspect there might be several similar cases where a default >> fallback would make more sense than to crash the sync. > > Have you filed a bug on http://b.android.com/ ? I don't see one there > for this. I have now! ;-) Issue 2377. Let me know if it isn't clear enough. I didn't attach code and crash log since I considered it fairly trivial to reproduce - maybe I'm wrong? Best / Jonas --~--~-~--~~~---~--~~ 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: Change MAIN LAUNCHER activity doesn't "take"
Ward Willats wrote: > Well, that's a relief -- at least it is not a global phenomenon. > > Can't post the manifest, boss would get mad (not like it is any kind > of secret, what with package interrogation being so easy...but...) > > I'll have to build up a test and keep adding things until I hit it. I have entered an issue on this: http://code.google.com/p/android/issues/detail?id=2376 Try removing your theme and/or your android:screenOrientation and see if that allows yours to work. Given your snippet of manifest, those are the two things I see in common between your crash scenario and mine. If you use that same theme and/or orientation in both your activities, it might also explain why mine recovers better -- I use them only in one. If you find any more clues, if you would, add 'em to the issue. -- 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] Change MAIN LAUNCHER activity doesn't "take"
Well, that's a relief -- at least it is not a global phenomenon. Can't post the manifest, boss would get mad (not like it is any kind of secret, what with package interrogation being so easy...but...) I'll have to build up a test and keep adding things until I hit it. Thanks very much, Mark. -- Ward >Ward Willats wrote: >> SoI HOPE NO ONE EVER CHANGES THE ENTRY ACTIVITY OF THEIR PROGRAM >> WHEN THEY ISSUE AN UPDATE OR THEIR USERS ARE GOING TO HAVE TO ERASE >> THEIR PHONES. > >I don't think it's quite that simple. > >I am able to somewhat reproduce this problem. I say "somewhat" because: > >1. It only happens when I switch the LAUNCHER intent filter from >Activity B back to Activity A (where A was the original activity with >the intent filter) > >2. It only fails once. I get the acore force-close dialog, and the >desktop restarts, and then my app works fine, starting up Activity A > >Could you post your whole manifest, and point out the two activities you >were switching between? > >-- >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: Analyzed and fixed "...acore has stopped unexpectedly" issue
On Apr 4, 2:19 am, "Jonas Petersson" wrote: > In my opinion it would make sense for the acore sync process to handle > incorrect values by replacing them with HOME/OTHER instead of crashing. > I have not dug into the source, but I would think it would be a trivial > fix. I suspect there might be several similar cases where a default > fallback would make more sense than to crash the sync. Have you filed a bug on http://b.android.com/ ? I don't see one there for this. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Change MAIN LAUNCHER activity doesn't "take"
Ward Willats wrote: > SoI HOPE NO ONE EVER CHANGES THE ENTRY ACTIVITY OF THEIR PROGRAM > WHEN THEY ISSUE AN UPDATE OR THEIR USERS ARE GOING TO HAVE TO ERASE > THEIR PHONES. I don't think it's quite that simple. I am able to somewhat reproduce this problem. I say "somewhat" because: 1. It only happens when I switch the LAUNCHER intent filter from Activity B back to Activity A (where A was the original activity with the intent filter) 2. It only fails once. I get the acore force-close dialog, and the desktop restarts, and then my app works fine, starting up Activity A Could you post your whole manifest, and point out the two activities you were switching between? -- 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: How to troubleshoot a Stackoverflow error in android ViewRoot?
On Apr 4, 7:58 pm, Dianne Hackborn wrote: > Whatever source code you are looking at does not match the build you are > running on. deliverKeyEventToViewHierarchy() is a recursive traversal down > the view hierarchy to deliver a key event. Most likely you view hierarchy > is too deep. Try using hierarchyviewer to look at it, and simplify it > (which will help the performance of your app as well). This may also be running up against a StackOverflowError handling bug, described here: http://groups.google.com/group/android-platform/browse_thread/thread/62f921e168dc166/9658dcd8dddb30c9?q=fadden+stackoverflowerror#9658dcd8dddb30c9 I mention this as a possibility because the code fragment in the original posting is apparently stopped in a "finally" block. The bug (fixed for cupcake) generally makes it hard to figure out what's actually going on when the stack overflows. OTOH, this bug should not appear if you have a debugger attached at the time of the failure (it only existed in the ARM asm version), so this is a little strange. In any event, the view hierarchy depth is a good place to start. --~--~-~--~~~---~--~~ 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: Change MAIN LAUNCHER activity doesn't "take"
Well crap. I changed the entry activity (MAIN, LAUNCHER) to my app in the manifest (swapped it with another activity, actually). Install. Android tries to launch the old entry activity. Uninstall, reinstall -- no change. Factory reset the phone -- install -- NEW ENTRY ACTIVITY RECOGNIZED! Swap back to the old entry activity (just to see), and *it* now fails. SoI HOPE NO ONE EVER CHANGES THE ENTRY ACTIVITY OF THEIR PROGRAM WHEN THEY ISSUE AN UPDATE OR THEIR USERS ARE GOING TO HAVE TO ERASE THEIR PHONES. Guess I'll put in a do-nothing "entry stub activity" that does nothing but launches the real entry point and then finish(), so at least I am protected should I want to make a change in the future. Please someone tell me I have made a stupid error here. -- Ward This is 1.1 on a G1. Manifest: >After a long time with one Activity being my app's entry point, I >just changed the manifest to point to a different activtiy to be the >entry point. But the G1 is doggedly trying to load the old activity >-- even after uninstall, install, reboot, etc. and acore throws a >security exception. > >04-06 11:18:20.117 E/AndroidRuntime( 469): Uncaught handler: thread >main exiting due to uncaught exception >04-06 11:18:20.127 E/AndroidRuntime( 469): >java.lang.SecurityException: Permission Denial: starting Intent { >action=android.intent.action.MAIN >categories={android.intent.category.LAUNCHER} flags=0x1020 >comp={com.foo.myapp/com.foo.ActivityThatUsedToBeTheEntryPoint} } from >ProcessRecord{431ff238 469:android.process.acore/10008} (pid=469, >uid=10008) requires null > > have not changed. > >Thoughts? > >-- Ward > > --~--~-~--~~~---~--~~ 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: Sleep mode in emulator
no, it can't really do that right now. On Mon, Apr 6, 2009 at 6:15 PM, samurai00...@gmail.com < samurai00...@gmail.com> wrote: > > Is the actual version of the emulator able to reproduce the sleep > mode? (Android 1.1 SDK r_1) > > > --~--~-~--~~~---~--~~ 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: Why adb push to sdcard report "Read-only file system" for the emulator of the latest android source code
the change has been submitted to the depot, so you can do the following to get a working system: repo sync touch system/core/init/init.c make the second line is needed because the build system is not smart enough to rebuild the system image if the Makefile was changed in certain ways. It is likely to be un-needed if other changes were synced in though On Mon, Apr 6, 2009 at 2:33 PM, Mariano Kamp wrote: > Sounds great. Just wondering if there is any workaround for today's > problems? > > > On Mon, Apr 6, 2009 at 12:23 PM, David Turner wrote: > >> See https://review.source.android.com/Gerrit#change,9452 >> >> there is a packaging bug that prevents the mount daemon from properly >> mounting the SD Card at startup. >> The proposed changed fixes it. >> >> >> On Mon, Apr 6, 2009 at 4:10 AM, max wrote: >> >>> >>> Hi Guys, >>> >>> This is a question that raised before, but I can't find answer for my >>> case. >>> >>> I get the latest android source code, compile, and then set $PATH >>> including the "android_src/out/host/linux-x86/bin/" >>> >>> mksdcard 100M card.img >>> emulator -sdcard card.img >>> >>> Then in another xterm window, I use >>> >>> adb push song.mp3 /sdcard >>> >>> but it reports "failed to copy 'song.mp3' to '/sdcard/song.mp3': Read- >>> only file system" >>> >>> I do the same operations many times before, always successfully, but >>> why it fails for the latest source code, >>> >>> I do some debugging into the source code, but no answer for this >>> moment yet. >>> >>> Can anyone give me some light on this? >>> >>> Max >>> >>> >> >> >> > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Is there a way for an application to know whether it has been downloaded from Market?
Is there a way for an application to know whether it has been downloaded from Market? I'm thinking of distributing an application through Android Market as well as through a private web site, that contains both a free basic version and a paid Pro version. For simplicity of maintenance, I would like to distribute the exactly same apk both through Market and on my web site. After the user has downloaded the free basic application, and they want to upgrade to the Pro version, they should be presented one of the following: A) Present a link to Market to pay for and download a license apk to unlock Pro features. - or - B) Present a link to our homepage to purchase a license key to unlock Pro features. If the free basic application had been downloaded from Market, the user should be presented option A, otherwise they should be presented option B. Does anyone see a way how to achieve this? Peli --~--~-~--~~~---~--~~ 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 see LOGV content in 'adb logcat'
On Apr 6, 12:57 pm, Meryl Silverburgh wrote: > I put calls to LOGV() in my cpp file in WebKit code in andorid, but I > don't see any log statements when I run 'adb logcat' in another shell. > But as soon as I change it to LOGE(), i see them. > Can you please tell me how can I see the log content of LOGV? LOGV is compiled out of native code in "release" builds; see LOG_NDEBUG in system/core/include/cutils/log.h. You probably don't want to do a "debug" build on a device, so you can either mess with log.h, or just use LOGD instead of LOGV in your code. --~--~-~--~~~---~--~~ 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: Webview question: Is it possible to execute Javascript from Java synchronously?
This doesn't make any sense, though. If you're inside in.read(), you should be sleeping, waiting for the network transfer to complete. So the WebKit thread *should* have some time to process your loadUrl() requests . On Mon, Apr 6, 2009 at 1:21 PM, j wrote: > > Mark, > > I have a nastier solution: > Put inside the while loop: >try { >Thread.sleep(100); >} catch (Exception e) {} > > It works. > > On Apr 6, 12:41 pm, Mark Murphy wrote: > > j wrote: > > > Mark, your suggestion makes sense. I tried it. I created a separate > > > thread for downloading and uses a Handler to loadUrl instead of > > > calling loadUrl directly. > > > > > But the result is the same. The loadUrl executions get queued up. It > > > appears the downloading thread seems to have priority over the Handler/ > > > UI thread. > > > > H...you could try calling setPriority() on the background Thread to > > try to ensure the UI thread gets more love. > > > > -- > > 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: Webview question: Is it possible to execute Javascript from Java synchronously?
Mark, I have a nastier solution: Put inside the while loop: try { Thread.sleep(100); } catch (Exception e) {} It works. On Apr 6, 12:41 pm, Mark Murphy wrote: > j wrote: > > Mark, your suggestion makes sense. I tried it. I created a separate > > thread for downloading and uses a Handler to loadUrl instead of > > calling loadUrl directly. > > > But the result is the same. The loadUrl executions get queued up. It > > appears the downloading thread seems to have priority over the Handler/ > > UI thread. > > H...you could try calling setPriority() on the background Thread to > try to ensure the UI thread gets more love. > > -- > 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: Android Telephony
Hello, I am new to this Group. Thank you for your recommendation to avoid using unsupported techniques. I am trying to obtain the signal strength seen by the G1 phone. As you had referred to, I have implemented a PhoneStateListener and onSignalStrengthChanged (int asu). It looks like I am seeing only a few returned asu values (e.g., 2, 6, 12 and 25). I believe that the mapping of asu to dBm is as follows: -113dBm + 2*asu. Therefore, it looks like the G1 phone is reporting dBm values of -109, -101, -89 and -63. Also, I see that the signal strength icon used by the G1 has four bars (I am assuming that each bar corresponds to one of the 2, 6, 12 and 25 asu values). Question: do you know if there is a supported way to obtain signal strength (either as an asu measure or a direct dBm measure) with a higher level of granularity (that is, for example, in single asu steps or single dBm steps)? Thank you in advance for any help or comments. On Mar 31, 3:40 am, Dianne Hackborn wrote: > DO NOT DO THIS!!! > > Especially since there is a public API for this: > > http://developer.android.com/reference/android/telephony/PhoneStateLi... > > We've been through the whole "don't use private APIs" stuff enough times, so > I'll just note: > > 1. This is not "a bit of an advanced topic," this is outright hacking a > fragile kludge. > 2. Please do not recommend that people do this kind of stuff at least > without the relevant caveats that it is not a supported thing to do and they > can expect their app to break. > 3. Just because you get something to run on the current G1 today does not > mean it is the right thing to do. > > > > > > On Thu, Mar 12, 2009 at 3:28 PM, wrote: > > > This can be done, but it is a bit of an advanced topic. You'll need > > to use an internal class which is > > com.android.internal.telephony.PhoneStateIntentReceiver > > > Grab this package, the .class files from the cupcake source tree > > repository , (doesn't ship with the SDK) and add the classes to you're > > class path, and include in the /libs directory, or package them into > > your existent android.jar file. > > > Code to get the signal strength is as follows: > > > import com.android.internal.telephony.PhoneStateIntentReceiver; > > private static final int EVENT_SIGNAL_STRENGTH_CHANGED = 200; > > .. > > /// first initialize the PhoneStateIntentReceiver (assumes you're > > inside a class that extends Context) > > > void initPhoneStateReciever() > > { > > phoneStateReciever = new PhoneStateIntentReceiver(this, new > > Handler( getMainLooper())); > > phoneStateReciever.notifySignalStrength > > (EVENT_SIGNAL_STRENGTH_CHANGED); > > phoneStateReciever.registerIntent(); > > } > > > //to get the signal strength, use this method, or something similar > > > void updateSignalStrength() > > { > > int signalDbm = phoneStateReciever.getSignalStrengthDbm(); > > int signalAsu = phoneStateReciever.getSignalStrength(); > > System.out.println("Time: "+System.currentTimeMillis()+" > > Signal Strength DB: "+signalDbm+" strength Asu: "+signalAsu); > > } > > > The use of internal classes is not officially supported, and you'll > > need to grab the .class files from the source repo, but I do actually > > have code that implements and is tested on the G1. Refer to other > > threads on options for getting the code and setting up your > > development environment to use internal classes. Good luck! > > > Mark > > > On Mar 11, 7:49 am, Shrikant Agrawal wrote: > > > Hi > > > > I want to find the network signal strength for my app. > > > But I cant find the api for it. > > > > Do anybody know how to find the signal strength of the phone? > > > > Thanks > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support. All such questions should be posted on public > forums, where I and others can see and answer them.- 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] Animation Issue
Hey Gang, Is there a way to pre-load frame by frame animations? It seems to me that when using frame by frame animations the first run through of the app cause some stuttering for the end users as the frame by frame images are fetched from the application instead of running through normally. The 2nd run through everything runs smooth, but the 1st run through causes some stuttering as the images are being retrieved. --~--~-~--~~~---~--~~ 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: Cupcake SDKs available for download
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > But what again is the state of networking? I read somewhere that there > is a problem, but I can't seem to google it. Maybe I just dreamed that I > read it? > I also downloaded the archive and I also have no network :( I tried to define an APN like in the 1.1 emulator but no success so far :( Can anyone access the network? Thanks. Cyril -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAknaXvoACgkQlYy8cEwUMaSHNwCeM8wwG2GxteUgAtdjaF9YAttG GRIAmgJ5O6DXFM9UhYbHzDG71vCSiRzw =V2LB -END PGP SIGNATURE- --~--~-~--~~~---~--~~ 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 see LOGV content in 'adb logcat'
Hi, I put calls to LOGV() in my cpp file in WebKit code in andorid, but I don't see any log statements when I run 'adb logcat' in another shell. But as soon as I change it to LOGE(), i see them. Can you please tell me how can I see the log content of LOGV? 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: Books on Android development?
Todd Sjolander wrote: > I'm really not affiliated with him - just a happy customer. Thanks for the feedback! -- 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: Webview question: Is it possible to execute Javascript from Java synchronously?
j wrote: > Mark, your suggestion makes sense. I tried it. I created a separate > thread for downloading and uses a Handler to loadUrl instead of > calling loadUrl directly. > > But the result is the same. The loadUrl executions get queued up. It > appears the downloading thread seems to have priority over the Handler/ > UI thread. H...you could try calling setPriority() on the background Thread to try to ensure the UI thread gets more love. -- 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: Books on Android development?
I haven't read them all, but I like Mark Murphy's book. Also, it's like a three-for-one deal, because he's got two other Android books (although not yet finished) that come with it when you buy a site subscription...Geez, that sounds like a sales pitch. I'm really not affiliated with him - just a happy customer. On Apr 6, 1:40 pm, jkk251 wrote: > The documentation on Google's websites is great, but it would also be > great to have a text to carry around. > > Are there any *good* books on progrmming in Android yet? > > Thanks, > Jim --~--~-~--~~~---~--~~ 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: Webview question: Is it possible to execute Javascript from Java synchronously?
Mark, your suggestion makes sense. I tried it. I created a separate thread for downloading and uses a Handler to loadUrl instead of calling loadUrl directly. But the result is the same. The loadUrl executions get queued up. It appears the downloading thread seems to have priority over the Handler/ UI thread. Thanks. On Apr 6, 11:40 am, Mark Murphy wrote: > j wrote: > > I am writing a hybrid web/native app and ran into issue. My app > > downloads a music file via Java code, and needs to update a Javascript > > download progress bar in theWebViewin real time. > > > My understanding is the only way to call Javascript from Java is via > > theWebView'sloadUrl method. > > > while ((byteCount = in.read(byteBuffer, 0, BUFFER_SIZE)) != -1) { > > out.write(byteBuffer, 0, byteCount); > > > cumByteCount += byteCount; > > int percentDowloaded = (cumByteCount * 100) / contentLength; > > Log.i(LOG_TAG, "percent: " + percentDowloaded); > > webview.loadUrl("javascript:updateDownloadProgress('" + > > percentDowloaded + "')"); > > } > > out.flush(); > > > If so, then while calling Java from Javascript is synchronous, calling > > Javascript from Java is always asynchronous since loadUrl is > > asynchronous. > > > I notice that all of mywebview.loadUrl calls get queued up and don't > > get executed until the whole file has been downloaded. Is there any > > trick to make thewebviewexecute my javascript immediately instead of > > queuing everything up? > > Sure! Use a thread. > > From the looks of your code, my guess is you are doing the download on > the UI thread. Instead, do the download in a background thread, then use > Handler or runOnUiThread() or something to get the loadUrl() calls to > run on the UI thread. > > Now, I haven't tried this specifically withWebViewand loadUrl(), but > you get the results you are seeing from any regular widgets, so I am > guessing it is the same problem. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > Android App Developer Training:http://commonsware.com/training.html --~--~-~--~~~---~--~~ 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: Drop entire database?
Thank you, Sirius, but my question was how to drop the entire database, not just one table. --~--~-~--~~~---~--~~ 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: JUnit on the emulator without instrumentation
Thanks for the response. I am aware of the instrumentation mechanism to run tests, however I have been unable to determine how to use it in conjunction with the debugger in eclipse, thus it is essentially useless to me. On Apr 5, 11:10 pm, Andrew Stadler wrote: > It's actually quite useful and doable to write "pure" unit tests > within the InstrumentationTestRunner framework. > > For a working example, please take a look at ApiDemos, in the tests/ > directory, and look for classes that extend the "TestCase" class. > > Benefits of doing it this way: > > 1. Although you can restrict yourself to pure JUnit style tests if > you want, you can also write a mix of tests, ranging from purely unit > (extending TestCase and AndroidTestCase) to almost totally functional > (e.g. extending ActivityInstrumentationTestCase) and group them > together as a test suite. > > 2. Although it doesn't work in the published SDK, quite soon you will > in fact be able to run these tests directly from Eclipse. In other > words, because this is the supported mechanism, you'll benefit from > upcoming improvements & tools. > > Hope this helps. > > --Andy > > On Fri, Mar 27, 2009 at 10:15 PM, gudujarlson wrote: > > > I discovered that at least some of JUnit exists on the emulator. In > > particular TestCase and Assert exist. However, TestRunner does not > > appear to exist. I find it odd that only parts of JUnit are present. --~--~-~--~~~---~--~~ 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 send mail with pre-populated content?
Mattaku Betsujin wrote: > I know I can specify an e-mail address using the Intent to invoke gmail. > But how do I give it the initial content (and allow the user to edit the > content if desired)? Use the Intent.EXTRA_TEXT and Intent.EXTRA_SUBJECT constants in something similar to: String body = ... String subject = ... String[] mailto = { ... }; Intent emailIntent = new Intent(Intent.ACTION_SEND); emailIntent.setType("plain/text"); emailIntent.putExtra(Intent.EXTRA_EMAIL, mailto); emailIntent.putExtra(Intent.EXTRA_TEXT, body); emailIntent.putExtra(Intent.EXTRA_SUBJECT, subject); context.startActivity(emailIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK)); If you want to send a file attachment, also add: emailIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(logFile)); Best Regards, Xavier Le Vourch -- XLV Labs Publisher of "Who Called?", Caller Id application for Android phones: http://www.xlv-labs.com/whocalled --~--~-~--~~~---~--~~ 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: Books on Android development?
Android is locked :O??? I'm just wondering how many queries you're going to get about where the chapter on unlocking it from the carrier network is :). Al. --- * Written an Android App? - List it at http://andappstore.com/ * == Funky Android Limited is registered in England & Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Frank Ableson Sent: 06 April 2009 19:26 To: android-developers@googlegroups.com Subject: [android-developers] Re: Books on Android development? Unlocking Android from Manning will be out in a few days. Disclosure - I am one of the authors. http://manning.com/ableson Frank On Mon, Apr 6, 2009 at 1:40 PM, jkk251 wrote: > > The documentation on Google's websites is great, but it would also be > great to have a text to carry around. > > Are there any *good* books on progrmming in Android yet? > > Thanks, > Jim > > > > > > --~--~-~--~~~---~--~~ 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 import any widgets under com.android.internal.widget into my app?
You should have no problem. I've included the latest HTTP from Apache, and redeployed the TabHost in my application. Hasn't caused any problems. On Apr 5, 11:44 pm, shaddu wrote: > Hi Dianne, > > As we are copying the code and resources from platform into our > application, those will get compiled into our application apk. When we > install this apk, will it not create any problems related to duplicate > definition of packages/classes? > > For exaple : If I copy apache http stack into my app and build apk out > of it. Then when I try to install it on emulator or phone will it > succeed as there are duplicate occurences of http stack in my apk and > on platform. > > BR, > Shaddu > > On Mar 18, 7:43 am, Dianne Hackborn wrote: > > > You need to copy the code (and resources you want) out of the platform and > > in to your app, and make any changes necessary to get it to build against > > the SDK. Sorry there isn't an easier answer. > > > On Tue, Mar 17, 2009 at 7:36 PM, mongd wrote: > > > > Hi, I'm trying to use some widgets under com.android.internal.widget > > > from my app. > > > I found some basic apps like Settings use those widgets, so I think > > > there is a way to import those widget into my app, but I can't find. > > > > I'm using Eclipse under Windows XP, meaning that I have sdk only. > > > To do the import thing, do I need a linux environment? I mean whole > > > source code? > > > > If I have the source code, how can I do that? > > > > One more question: > > > There are several activities in basic apps, such as ConfirmLockPatterm > > > in settings. I want to use that activity from my app. I mean start > > > that activity from my app. Can I do that? > > > Since that activity doesn't have any intent filter, I guess I have to > > > explicitly specify the name in Intent, but since I can't import any of > > > those activities, it just doesn't work. > > > > help me~~!! > > > -- > > Dianne Hackborn > > Android framework engineer > > hack...@android.com > > > Note: please don't send private questions to me, as I don't have time to > > provide private support. All such questions should be posted on public > > forums, where I and others can see and answer them. > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Webview question: Is it possible to execute Javascript from Java synchronously?
j wrote: > I am writing a hybrid web/native app and ran into issue. My app > downloads a music file via Java code, and needs to update a Javascript > download progress bar in the WebView in real time. > > My understanding is the only way to call Javascript from Java is via > the WebView's loadUrl method. > > while ((byteCount = in.read(byteBuffer, 0, BUFFER_SIZE)) != -1) { > out.write(byteBuffer, 0, byteCount); > > cumByteCount += byteCount; > int percentDowloaded = (cumByteCount * 100) / contentLength; > Log.i(LOG_TAG, "percent: " + percentDowloaded); > webview.loadUrl("javascript:updateDownloadProgress('" + > percentDowloaded + "')"); > } > out.flush(); > > If so, then while calling Java from Javascript is synchronous, calling > Javascript from Java is always asynchronous since loadUrl is > asynchronous. > > I notice that all of my webview.loadUrl calls get queued up and don't > get executed until the whole file has been downloaded. Is there any > trick to make the webview execute my javascript immediately instead of > queuing everything up? Sure! Use a thread. >From the looks of your code, my guess is you are doing the download on the UI thread. Instead, do the download in a background thread, then use Handler or runOnUiThread() or something to get the loadUrl() calls to run on the UI thread. Now, I haven't tried this specifically with WebView and loadUrl(), but you get the results you are seeing from any regular widgets, so I am guessing it is the same problem. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.html --~--~-~--~~~---~--~~ 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: Exception locking surface - lockCanvas() returns a null?
actually, I am drawing onto the surface from a different thread... that's not allowed?? how would I go around doing this? I'm not drawing before the surfaceCreated() callback... On Apr 5, 11:15 am, "ellipsoidmob...@googlemail.com" wrote: > Might also be worth checking that you aren't drawing into the surface > from a different thread, and that you aren't drawing before the > surfaceCreated() callback --~--~-~--~~~---~--~~ 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: Books on Android development?
Unlocking Android from Manning will be out in a few days. Disclosure - I am one of the authors. http://manning.com/ableson Frank On Mon, Apr 6, 2009 at 1:40 PM, jkk251 wrote: > > The documentation on Google's websites is great, but it would also be > great to have a text to carry around. > > Are there any *good* books on progrmming in Android yet? > > Thanks, > Jim > > > > > > --~--~-~--~~~---~--~~ 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 send mail with pre-populated content?
I know I can specify an e-mail address using the Intent to invoke gmail. But how do I give it the initial content (and allow the user to edit the content if desired)? 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] Change MAIN LAUNCHER activity doesn't "take"
After a long time with one Activity being my app's entry point, I just changed the manifest to point to a different activtiy to be the entry point. But the G1 is doggedly trying to load the old activity -- even after uninstall, install, reboot, etc. and acore throws a security exception. 04-06 11:18:20.117 E/AndroidRuntime( 469): Uncaught handler: thread main exiting due to uncaught exception 04-06 11:18:20.127 E/AndroidRuntime( 469): java.lang.SecurityException: Permission Denial: starting Intent { action=android.intent.action.MAIN categories={android.intent.category.LAUNCHER} flags=0x1020 comp={com.foo.myapp/com.foo.ActivityThatUsedToBeTheEntryPoint} } from ProcessRecord{431ff238 469:android.process.acore/10008} (pid=469, uid=10008) requires null have not changed. Thoughts? -- Ward --~--~-~--~~~---~--~~ 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] Webview question: Is it possible to execute Javascript from Java synchronously?
I am writing a hybrid web/native app and ran into issue. My app downloads a music file via Java code, and needs to update a Javascript download progress bar in the WebView in real time. My understanding is the only way to call Javascript from Java is via the WebView's loadUrl method. while ((byteCount = in.read(byteBuffer, 0, BUFFER_SIZE)) != -1) { out.write(byteBuffer, 0, byteCount); cumByteCount += byteCount; int percentDowloaded = (cumByteCount * 100) / contentLength; Log.i(LOG_TAG, "percent: " + percentDowloaded); webview.loadUrl("javascript:updateDownloadProgress('" + percentDowloaded + "')"); } out.flush(); If so, then while calling Java from Javascript is synchronous, calling Javascript from Java is always asynchronous since loadUrl is asynchronous. I notice that all of my webview.loadUrl calls get queued up and don't get executed until the whole file has been downloaded. Is there any trick to make the webview execute my javascript immediately instead of queuing everything up? --~--~-~--~~~---~--~~ 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: c development + virtual machine = allowed?
Android is an open-platform so there is no "legal way" restricting what you can do. Android market does not have such a restriction on apps you put there (you should read the terms of service to know aht you can and can't do). However at this point we don't support native code in third party applications, so we are not maintaining binary compatibility with such code. On Sat, Apr 4, 2009 at 6:35 PM, guiha...@gmail.com wrote: > > Hi, > > I'm the lead developer of TotalCross, a virtual machine that's just > like the one used in Android, and targetted for small devices. > Currently, using TotalCross, you write programs completely cross- > platform among Palm OS 5, BlackBerry, iPhone, Windows 32, Windows CE > (2,3,4,5,6) and Java-enabled platforms. > > We plan to port TotalCross to Android, but i'm concerned about the > legal way. I'm aware that there may be hack C APIs for Android, but > will these APIs allow the users to sell their applications in a legal > fashion? > > Btw, what is legal and what's not legal in Android? I could easily > port our VM to Android if there were a standard C api on it. However, > all i see is Java APIs. I could also port TotalCross to run over the > Java API, but i'm concerned about speed. I believe our VM is faster > than the one in Android (actually, it is a couple times faster than > the BlackBerry VM). > > Any comment is appreciated. > > Best Regards, > > Guilherme Campos Hazan (guich) > TotalCross Lead Developer > www.superwaba.com.br > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Windows Cupcake SDKs compilation
After some digging around this turns out to be a problem with Cygwin 1.7 (http://www.mail-archive.com/cyg...@cygwin.com/msg94477.html) I now have a repo sync running, so, we may, just possibly, have an windows SDK build from the open repository sometime early tomorrow :). Al. On Apr 6, 1:19 pm, "Al Sutton" wrote: > I've dug out an spare laptop and I'm still getting no joy. > > Things I've found so far; > > - The cygwin 1.7 beta seems to play more nicely with Vista and auto mounts / > to the install directory > - Having a space in the windows username will cause problems on repo init (I > have to use Al instead of Al Sutton) > > So I'm now as far as repo sync, but I'm getting an error that's got me > stumped; > > Initializing project platform/bionic ... > remote: Counting objects: 2381, done. > remote: Compressing objects: 100% (1061/1061), done. > fatal: read error on input: Bad address19.99Kib | 392KiB/s > fatal: index-pack failed > error: Cannot fetch platform/bionic > fatal: write error (Broken pipe) > > and that's where it ends. > > Any ideas? > > Al. > > --- > > * Written an Android App? - List it athttp://andappstore.com/* > > == > Funky Android Limited is registered in England & Wales with the > company number 6741909. The registered head office is Kemp House, > 152-160 City Road, London, EC1V 2NX, UK. > > The views expressed in this email are those of the author and not > necessarily those of Funky Android Limited, it's associates, or it's > subsidiaries. > > _ > > From: android-developers@googlegroups.com > [mailto:android-develop...@googlegroups.com] On Behalf Of Al Sutton > Sent: 06 April 2009 07:20 > To: android-developers@googlegroups.com > Subject: [android-developers] Re: Windows Cupcake SDKs compilation > > Dave, > > Thanks for the tips, the only thing I can't do is uninstall everything else > that relies on cygwin (I need some apps for the projects which pay my > mortgage, etc..), and it would appear from searching the web that's > something that cygwin doesn't handle well :(. > > Al. > > --- > > * Written an Android App? - List it athttp://andappstore.com/* > > == > Funky Android Limited is registered in England & Wales with the > company number 6741909. The registered head office is Kemp House, > 152-160 City Road, London, EC1V 2NX, UK. > > The views expressed in this email are those of the author and not > necessarily those of Funky Android Limited, it's associates, or it's > subsidiaries. > > _ > > From: android-developers@googlegroups.com > [mailto:android-develop...@googlegroups.com] On Behalf Of David Turner > Sent: 05 April 2009 19:42 > To: android-developers@googlegroups.com > Subject: [android-developers] Re: Windows Cupcake SDKs compilation > > On Sun, Apr 5, 2009 at 6:36 PM, Al Sutton wrote: > > I tried the instructions from the git repo for building windows and they > don't work. > > To start with cygwin bases everything off /cygwin rather than / so even > trying to run repo gets; > > /bin/sh: bad interpreter: No such file or directory > > Normally, cygwin also mounts / as a short-cut to your cygwin installation so > you > should be able to run /bin/sh directly. Note that I said "normally", because > there are > unfortunately quite a few ways to get a Cygwin install on a Windows PC, each > one > of them which its own can of worms. > > I suggest starting from scratch with the "usual" way, i.e.: > > - uninstall *anything* vaguely related to Cygwin on your machine > - go tohttp://www.cygwin.comand download the "setup.exe" program > - run setup.exe and ensure that: > > = You install on a NTFS partition > = All directories in the installation path fit the 8.3 DOS convention > (right) > = Choose "Unix line ending" when asked by the installation dialog > = Don't try to much with the default mount paths (i.e. it's possible to > get rid of the /cygdrive/ stuff with some tweaking, but this makes > some tools miserable). > > In addition, I really recommend the following: > > install python and wget by default, then later install "cyg-apt" > fromhttp://www.lilypond.org/~janneke/software/cyg-apt > this tool will allow you to download and install additionnal packages from > the command-line without using the brain-dead setup.exe GUI > (NOTE: you may need to update the script to use a better mirror than the > default. Look at the lines that read "mirror = ") > > use puttycyg as the terminal (http://code.google.com/p/puttycyg/), or even > Terminator (http://software.jessies.org/terminator/) as they are far better > than the default Windows console or rxvt. > > If you need MSys, do not install it in the same location that Cygwin if > possible, this really messes things sometimes. > > Hope this helps > > And if you hack around that by altering repo to point to /cygwin/bin/sh you > get; > > Getting repo ... > from git://android.git.kernel.org/tools/repo.git > warning: templates not found /usr/share/git-core/templates/ > remote: Counting objec
[android-developers] Re: c development + virtual machine = allowed?
guiha...@gmail.com wrote: > I'm the lead developer of TotalCross, a virtual machine that's just > like the one used in Android, and targetted for small devices. > Currently, using TotalCross, you write programs completely cross- > platform among Palm OS 5, BlackBerry, iPhone, Windows 32, Windows CE > (2,3,4,5,6) and Java-enabled platforms. SuperWaba! I remember you guys! I played around a bit with it way back when, for Palm OS. > We plan to port TotalCross to Android, but i'm concerned about the > legal way. I'm aware that there may be hack C APIs for Android, but > will these APIs allow the users to sell their applications in a legal > fashion? There is no good way today for you to deploy a C-based TotalCross to existing Android devices, though it could get included in firmware builds by device manufacturers. The eventual Android NDK will hopefully change that: http://groups.google.com/group/android-ndk > I could easily > port our VM to Android if there were a standard C api on it. However, > all i see is Java APIs. At the SDK level, that is correct. At the firmware level (http://source.android.com), you get C. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem while launching android emulator
Gaurav Jain wrote: > I have done x86_64 android build on ubuntu. The build went successful. Questions regarding the Android source code are best asked on a discussion list pertaining to the Android source code: http://source.android.com/discuss -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: send a image file on sdcard with email not messaging or other options
Can someone please suggest a solution for this one. To be able to email a file without getting an option to message or use some other sharing mechanism looks like a pretty valid use case to me. On Mon, Apr 6, 2009 at 3:42 AM, Gaurav Agarwal wrote: > I will like to restrict the user to Email only, user can choose which one. > > > On Mon, Apr 6, 2009 at 3:00 AM, Andrew Stadler wrote: > >> >> We can work out ways to deal with this question, but I would ask >> first: How restrictive are you trying to be? >> >> For example the user might have a Gmail account set up, and both >> platform Email and K9 installed & configured. >> >> Are you sure you want to restrict them to Email only? >> >> The user experience design for the intent resolver is to allow the >> user to control behaviors like this, so it's worth thinking through >> the desired use cases before adding restrictions. >> >> --Andy >> >> >> On Sun, Apr 5, 2009 at 10:10 AM, Gaurav wrote: >> > >> > I need to send an image file on my sdcard using email in my >> > application. Note that I don't want user to get option to use >> > messaging or other ways to send the file. My current code, as shown >> > below, gives option of both email and messaging whereas I want the >> > user to get only emailing option. How do I do this? >> > >> > Intent intent = new Intent(Intent.ACTION_SEND); >> > intent.addCategory(Intent.CATEGORY_DEFAULT); >> > intent.setType("image/*"); >> > intent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file:/sdcard/mydir/ >> > myimage.jpg")); >> > startActivity(intent); >> > >> > Gaurav >> > Software Developer >> > http://SilkenMermaid.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 get the Uri of the contact photos?
You can get the uri of the contact photo as following: //Get the uri of the person whose photo you want Uri person = . ; //Make the uri of the photo by appending photo's directory name. Uri.withAppendedPath(person, Contacts.Photos.CONTENT_DIRECTORY); On 2월11일, 오전1시03분, code_android_festival_way wrote: > Well at the moment I'm trying to set the contact photo in a custom > view to the RemoteView of my custom expaneded statur bar. > > For setting an image to the RemoteView I have two possibilities: > > contentView.setImageViewUri(...) > contentView.setImageViewResource(...) > > Well now I got the problem that I don't have a static > ImageViewResource and the method "loadContactPhoto(...)" just delivers > a Bitmap which I can't set to the RemoteView. > > Now my question. Is there a possibility to get the Uri to the contact > photo of a specific contact? Or how could I reach the above mentioned > behaviour? > > I'm looking forward reading your answers. > > Thanks for your help. > > Regards. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] No permission required for accessing Browser search History
Hi, Why is there no permission required for accessing the browser search history? Is that data not sensitive enough like the call logs? Birjodh --~--~-~--~~~---~--~~ 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] database backup
Hi Is there a way to backup the database in case of hard reset? Does the user have access to the folder /data/data/appname/database ? Thanks Daniel --~--~-~--~~~---~--~~ 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: calling servlet from application
Opal wrote: > I need to call a servlet from my android app and send/receive some > data (using post method). I don't know how to do it and reading the > API doesn't help me very much. Do u know any solution or have any idea > how to do it? If you use HttpURLConnection, it works the same as in "regular Java": http://www.exampledepot.com/egs/java.net/pkg.html If you use org.apache.http.*, there is documentation and examples at: http://hc.apache.org -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Problem with debug.keystore
Hello everybody, I have a big problem and I didn't find any answer for this. When I want to create the MD5 Fingerprint of the SDK Debug Certificate i do the command keytool -list -alias androiddebugkey -keystore C:\Users\Nicolas\AppData \Local\Android\debug.keystore -storepass android -keypass android Like it's written on http://developer.android.com/guide/topics/location/geo/mapkey.html But I have this answer : erreur keytool : java.io.IOException: Invalid keystore format Had anybody the same problem ? I have put my jdk on my path and C:\Users\Nicolas\AppData\Local\Android \debug.keystore is the path from my Eclipse settings I really don't know what to do ... Can somebody help me ? Thanks Nicolas --~--~-~--~~~---~--~~ 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] Paid apps from Developers from countries apart from US and UK
Hi Guys, I'm am from Inndia and I have developed a few applications. I want to release them as a paid app, currently only US and UK developers can release these apps. When is it going to be expanded, whom should I contact for knowing about these details? Its very frustrating having develped an app and waiting for such a feature. I had hoped for google to have done this long back. I was planning to release it in my cousins name who is in US, but since he is in a student visa I was not able to do that also. Can someone please take this to google? Why are they taking such a long time for this? Regards, R.Karthik --~--~-~--~~~---~--~~ 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] groups
hi friends kem che saru chene --~--~-~--~~~---~--~~ 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 call the drupal services?
Hi, all! I had many experiences. I am calling the WS on JBoss SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.setOutputSoapObject(request); HttpTransportSE androidHttpTransport = new HttpTransportSE (urlS); try { androidHttpTransport.call(SOAP_ACTION, envelope); Object result = envelope.getResponse(); it was successful!!! Next step. I call the Drupal service from soapUI. it was successful!!! Next step. the Drupal service called from application (the cod see above ) In the netbeans debugger i see error for envelope.getResponse(): >Exception occurred in target VM: java.lang.NullPointerException: at org.ksoap2.serialization.SoapSerializationEnvelope.getResponse (SoapSerializationEnvelope.java:384) at ru.drupal.DrupalActivity.onCreate(DrupalActivity.java:72) at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1122) at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2104) at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:2157) at android.app.ActivityThread.access$1800(ActivityThread.java:112) at android.app.ActivityThread$H.handleMessage(ActivityThread.java: 1581) at android.os.Handler.dispatchMessage(Handler.java:88) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:3739) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:739) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) at dalvik.system.NativeStart.main(Native Method) Next step.In the wireshark i did compare the requests from the soapUI and the application. Differences: The request from soapUI have in the body of request: POST /mt/services/soap/index.php/ HTTP/1.1\r\n with eXtensible Markup Language with encapsulate xml. In the request from application i cannot see it. How i can solved this problem? 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] c development + virtual machine = allowed?
Hi, I'm the lead developer of TotalCross, a virtual machine that's just like the one used in Android, and targetted for small devices. Currently, using TotalCross, you write programs completely cross- platform among Palm OS 5, BlackBerry, iPhone, Windows 32, Windows CE (2,3,4,5,6) and Java-enabled platforms. We plan to port TotalCross to Android, but i'm concerned about the legal way. I'm aware that there may be hack C APIs for Android, but will these APIs allow the users to sell their applications in a legal fashion? Btw, what is legal and what's not legal in Android? I could easily port our VM to Android if there were a standard C api on it. However, all i see is Java APIs. I could also port TotalCross to run over the Java API, but i'm concerned about speed. I believe our VM is faster than the one in Android (actually, it is a couple times faster than the BlackBerry VM). Any comment is appreciated. Best Regards, Guilherme Campos Hazan (guich) TotalCross Lead Developer www.superwaba.com.br --~--~-~--~~~---~--~~ 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: Syncml Support
angelo wrote: > Will Android have syncml support??? > > Specifically some of us want to use our Android devices to talk to our > company exchange/syncml servers.. Syncing with google calendar using > the various programs isnt allowed.. > > Syncml works, just like symbian has it. Check out http://funambol.com/ for some preliminary work in this area. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Problem while launching android emulator
Hi, I have done x86_64 android build on ubuntu. The build went successful. Initially i was getting the home screen while launching emulator, but now I am facing a problem. A blank screen with a text "ANDROID" is coming up. Can anybody suggest me what i should do to reslove the same. Regards, Gaurav --~--~-~--~~~---~--~~ 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] When can developers aprt from US and UK release paid apps?
Hi, Im am from India and I have developed an app and I want to release it as a paid app. When is google going to provide support for developers apart from US and UK. I am from India and I want to know when this support is going to come. Whom should i contact for the same. Its really very frustrating to having wait for such an option. Regards, R.Karthik --~--~-~--~~~---~--~~ 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: Paid apps from Developers from countries apart from US and UK
Hi, Offer it on Handango, MobiHand, SlideMe, AndAppStore, etc. instead. Then when the Android Market opens up for India, add your app to Android Market as well. Good luck! :) -- Anton. On Apr 6, 2:45 am, karthikr wrote: > Hi Guys, > > I'm am from Inndia and I have developed a few applications. > > I want to release them as a paid app, currently only US and UK > developers can release these apps. > > When is it going to be expanded, whom should I contact for knowing > about these details? > > Its very frustrating having develped an app and waiting for such a > feature. > > I had hoped for google to have done this long back. > > I was planning to release it in my cousins name who is in US, but > since he is in a student visa I was not able to do that also. > > Can someone please take this to google? Why are they taking such a > long time for this? > > Regards, > R.Karthik --~--~-~--~~~---~--~~ 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] 2D and 3D plotting application
Guys, any previous work on apps that does math plots/graphs? This might be a 2D or 3D plot/graph. What apis available to help in this? Also, similar apps to build charts and bars graphs. regards, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem with HTTP connection
sri wrote: > Hi I am trying to establish the connection between mobile and PC.I am > running server program on PC, when I run the below code server not > displaying any response message.When I send the request from mobile > browser server displaying response message. I am working on > SDK_1.1.Please suggest me on program > code > HttpPost httppost = new HttpPost("http://157.182.195.189:/";); That almost assuredly will not work. If that IP address is your development PC itself, try replacing it with 10.0.2.2. Otherwise, read up on your options here: http://developer.android.com/guide/developing/tools/emulator.html#emulatornetworking -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.html --~--~-~--~~~---~--~~ 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] calling servlet from application
Hi all, I need to call a servlet from my android app and send/receive some data (using post method). I don't know how to do it and reading the API doesn't help me very much. Do u know any solution or have any idea how to do it? I've searched this group before writing and there are some solutions but with the older version of API. Any ideas, samples or suggestions? --~--~-~--~~~---~--~~ 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: Books on Android development?
check out at amazon.com. On Mon, Apr 6, 2009 at 11:10 PM, jkk251 wrote: > > The documentation on Google's websites is great, but it would also be > great to have a text to carry around. > > Are there any *good* books on progrmming in Android yet? > > Thanks, > Jim > > > > > > -- Regards, Saroj K Pradhan "My formula for living is quite simple. I get up in the morning and I go to bed at night. In between, I occupy myself as best I can. " --~--~-~--~~~---~--~~ 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: Are you localizing an app? Do you want to be?
good On Mar 23, 8:23 pm, clark wrote: > Anyone know if it is possible to localize the application description > which shows up in the market? It's great that all my strings can be > localized, but how are the users in other regions going to know what > an application does if the description is not in their native > language? > > Regards, > ~clark > > On Mar 3, 4:06 am, Nanard wrote: > > > There are online translation services. > > They are not really good, but for text button/GUI having in english 1 > > to 3 words, it should be well translated. > > > And also : I (we all) need that for advertisement :-) --~--~-~--~~~---~--~~ 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: Are you localizing an app? Do you want to be?
good On Mar 23, 8:23 pm, clark wrote: > Anyone know if it is possible to localize the application description > which shows up in the market? It's great that all my strings can be > localized, but how are the users in other regions going to know what > an application does if the description is not in their native > language? > > Regards, > ~clark > > On Mar 3, 4:06 am, Nanard wrote: > > > There are online translation services. > > They are not really good, but for text button/GUI having in english 1 > > to 3 words, it should be well translated. > > > And also : I (we all) need that for advertisement :-) --~--~-~--~~~---~--~~ 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] No permission required for accessing Browser search History
Hi, Why is there no permission required to access android's browser search history ? Is that data not sensitive enough like the call logs? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Problem while launching android emulator
Hi, I have done x86_64 android build on ubuntu. The build went successful. Initially i was getting the home screen while launching emulator, but now I am facing a problem. A blank screen with a text "ANDROID" is coming up. Can anybody suggest me what i should do to reslove the same. Regards, Gaurav --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---