[android-developers] setOnKeyListener problem

2008-10-15 Thread pabbot
Hi everyone, this is my first post here so I'll try not to extend so much. I've got a Layout with 3 EditText, called mText1, mText2 and mText3. I want to navigate through them by pressing the ENTER KEY, so I decided to set a onKeyListener for every of them and every time I detect the user

[android-developers] JavaScript and WebView

2008-10-15 Thread Rubicks
My activity has a webview . I will be leading some html pages on that webview which includes some JavaScript functions. I have a need to send some data from webview to my java application based on some user actions using javaScript functions. Is it possible or how can I do it? Thanks for the

[android-developers] Question regarding WebView

2008-10-15 Thread Rubicks
I had the problem with webview, i.e when I click on a link , it used to take me to a new browser window. I wanted the link to be open on the same window. So I used this code posted somewhere on this forum. But now I have new problem. With this code, I am getting a SocketException : Broken Pipe.

[android-developers] about the sdk 1.0 source code

2008-10-15 Thread gzhhong
Hi all, I am reading the sdk 1.0 source code(decompiled by jad). It is very strange that there are so many: throw new RuntimeException(Stub!); in the classes. for example, the MapView are public class MapView extends ViewGroup { ... public MapView(Context context, String apiKey) {

[android-developers] About the IM to show the message received

2008-10-15 Thread zcj0429
Hi, experts: I'm now trying to develop an IM on Android. Now the problem is like this: I manage the connection and chat in a service. And I edit the message in another activity. So when I receive a message, how can I show it in the same interface which I edit the message just as the MSN does.

[android-developers] Re: offline topographic mapping applications?

2008-10-15 Thread Adam Estrada
Dara, Please read the GeoPDF Blog post that can possibly lead you in the right direction... http://geopdf.blogspot.com/2008/10/mobile-for-people.html Cheers, Adam Estrada On Oct 8, 4:17 pm, DaraParsavand [EMAIL PROTECTED] wrote: One of the key things I'd like to do with a GPS phone is to

[android-developers] Re: User Alarm Interaction when Sleeping

2008-10-15 Thread shailesh prakash
Try droidDraw, it is cool way to create GUI for android. Also Elipse has nice layout building capability, you can try eclipse too On 10/15/08, Brian [EMAIL PROTECTED] wrote: I'm playing with building a simple alarm, but it's very hard to see how to get a nice UI interaction when the phone is

[android-developers] Displaying Images

2008-10-15 Thread JavaAndroid
Hi All, Can anyone direct me to some links / tutorials that will help me to start experimenting on displaying images in Android . Is there any way to add Servlet/JSP API in Android Application. Can i refer image that is residing in a web server. Thanks in Advance Thanks JavaAndroid

[android-developers] Re: Displaying Images

2008-10-15 Thread JavaAndroid
Hi Shailesh, Thanks a lot for ur Help. Let me try that...Thanks again. On Oct 15, 11:45 am, shailesh prakash [EMAIL PROTECTED] wrote: Hi, you may like to try this :http://code.google.com/p/apps-for-android/source/browse/trunk/Photost... On 10/15/08, JavaAndroid [EMAIL PROTECTED] wrote:

[android-developers] Re: UI Controls

2008-10-15 Thread JavaAndroid
Thanks ShaileshThat forum is really awesome...it looks to be a best place to start withThanks a million.. :) On Oct 15, 11:51 am, shailesh prakash [EMAIL PROTECTED] wrote:  you can try link:http://www.anddev.org, it is a good site to start with Android. On 10/15/08, JavaAndroid

[android-developers] Re: UI Controls

2008-10-15 Thread shailesh prakash
you can try link: http://www.anddev.org , it is a good site to start with Android. On 10/15/08, JavaAndroid [EMAIL PROTECTED] wrote: Hi All Can i add UI controls like Checkbox, Radio button, Select Box, Drop down menus in my Android application... If yes could you suggest some

[android-developers] Re: setOnKeyListener problem

2008-10-15 Thread pabbot
Ok. It's solved. The solution is not only to detect the KEYCODE_ENTER but also the key down. Previously it detected both the key press and the key release and this fired two KEYCODE_ENTER events... On 14 oct, 23:50, pabbot [EMAIL PROTECTED] wrote: Hi everyone, this is my first post here so

[android-developers] Re: Displaying Images

2008-10-15 Thread shailesh prakash
Hi, you may like to try this : http://code.google.com/p/apps-for-android/source/browse/trunk/Photostream/src/com/google/android/photostream/?r=73 On 10/15/08, JavaAndroid [EMAIL PROTECTED] wrote: Hi All, Can anyone direct me to some links / tutorials that will help me to start experimenting

[android-developers] Re: Call the default mediaplayer program in Android OS

2008-10-15 Thread Baonq86
Thank you, Peli. Yourcode works well ! But when I play the External_Content_URI, the default mediaplayer will play the first song in the sdcard. It's a mp3 song, and the mediaplayer notice that cannot read this format. I use default Music Application, it plays well !! Do you have the same

[android-developers] Re: Does SoundPool work or has anyone successfully used it?

2008-10-15 Thread blindfold
it works on both the emulator and a real G1. So you have access to a real G1. Lucky you!! I'm really surprised that there is no access to the audio buffer. How are we supposed to write dynamic audio generation apps? Unfortunately not supported by Android SDK 1.0 r1. See

[android-developers] Re: Emulator Performance VS Real Phone Performance

2008-10-15 Thread Peli
int x; // pixel position int xscaled = 0; // pixel position scaled by 1000 ... int movement=BULLETSPEED*deltaT; /// v*t = d // don't divide by 1000 here xscaled += movement; // calculate movement more accurately x = xscaled / 1000; // scale down only when you want to plot draw(x); If you

[android-developers] Re: Does SoundPool work or has anyone successfully used it?

2008-10-15 Thread Robert Green
I just read the whole discussion. All I can say is... What were they thinking?? How is a developer supposed to be able to generate or synthesize audio real time? These are important apps. Just look at the guitar or harmonica app for the iPhone. Those are very popular and do exactly that.

[android-developers] Re: M3 SDK: Click events on Map Overlays?

2008-10-15 Thread Matthias
anyone? still found no solution to 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

[android-developers] Re: Android SDK / emulator working fine on Linux 64 bits ?

2008-10-15 Thread zl25drexel
I tried it briefly on a 64bit ubuntu box, it worked but it did not feel very stable. For example, i need to do 'kill -9' to shut down because the 'x' button will just crash the emulator. so i actually switch back to a 32bit windows to do my development. On Oct 15, 6:42 am, Nanard [EMAIL

[android-developers] Re: Question regarding WebView

2008-10-15 Thread Rubicks
Yes, I have a local server running with in the emulator, it is just a simple socket, which can handle HTTP requests locally. On Oct 15, 3:23 pm, Mark Murphy [EMAIL PROTECTED] wrote: Rubicks wrote: Mark, very sorry for my impolite post. I should improve on that. It was a joke! myMMFString

[android-developers] Re: How do i set onClick image

2008-10-15 Thread zl25drexel
anyone? On Oct 14, 5:14 pm, zl25drexel [EMAIL PROTECTED] wrote: Hi, Does anyone know how to set the onClick image on a button with custom image background? For example, with the standard android button, the button will turn orange on click and then return to its normal color. How do I do

[android-developers] Re: Comunication Server-Phone: SMS directed to an application (0.9 SDK)

2008-10-15 Thread Ricardo
Cristina, I have the same problem... I´ve already done this with J2ME (send the SMS to some specific port).. but it seems that android don´t support this yet... On 10 out, 18:49, Jonathan Herriott [EMAIL PROTECTED] wrote: Bump.  This needs to be addressed. On Aug 29, 10:31 am, Cristina

[android-developers] Re: about the sdk 1.0 source code

2008-10-15 Thread Zhihong GUO
Ludwig, Thank you for the answer.I found the implementation of com.google.android.maps was moved to the /system/framework/com.google.android.maps.jar in the emulator. So that in the SDK of 0.9 and 1.0, we have to indicate which library we will use for map application by a line uses-library

[android-developers] Re: Android SDK / emulator working fine on Linux 64 bits ?

2008-10-15 Thread Timbobsteve
It's just my opinion, but I still see no major point in using a 64-bit machine to develop for Android. 64-bit won't give you any large advantage. I can understand that if you're already running 64-bit, then the change to 32-bit would seem crazy, but if you are building a box for development I

[android-developers] DELETE SMS FROM INBOX

2008-10-15 Thread rajesh
Is there any way to delete SMS(s) from the inbox. i am trying out context.getContentResolver().delete(Uri.parse(content://sms/inbox), null, null); [In the above case, the purpose is to delete all the SMSs in the inbox] But I am getting invalid URL. I intend to delete a particualr SMS based on

[android-developers] Re: Delete sms from inbox

2008-10-15 Thread rajesh
Cursor c = context.getContentResolver().query(Uri.parse(content://sms/ inbox), null ,null, null, null); System.out.println(c.getCount() + ); while (c.moveToNext()) { System.out.println();

[android-developers] Re: Question regarding WebView

2008-10-15 Thread Rubicks
I will try that . I wrote my own a very simple server, using sockets. On Oct 15, 4:07 pm, Mark Murphy [EMAIL PROTECTED] wrote: Rubicks wrote: Yes, I have a local server running with in the emulator, it is just a simple socket, which can handle HTTP requests locally. Ah! You can try

[android-developers] Re: Program Finished - Now What?

2008-10-15 Thread legerb
Use keytool and jarsigner, they come with the jdk. http://java.sun.com/j2se/1.3/docs/tooldocs/win32/keytool.html http://java.sun.com/j2se/1.3/docs/tooldocs/win32/jarsigner.html eventually this is what worked for me: keytool -genkey -keystore refArchive/myKeyStore -alias somealias jarsigner

[android-developers] Re: Program Finished - Now What?

2008-10-15 Thread Easan
most useful post of the week. thank you. On Wed, Oct 15, 2008 at 2:06 AM, legerb [EMAIL PROTECTED] wrote: Use keytool and jarsigner, they come with the jdk. http://java.sun.com/j2se/1.3/docs/tooldocs/win32/keytool.html http://java.sun.com/j2se/1.3/docs/tooldocs/win32/jarsigner.html

[android-developers] Re: User Alarm Interaction when Sleeping

2008-10-15 Thread Brian
Shailesh, I've built this using Eclipse, it has nothing to do with the editor. It's core Android interactions. I'll look at droidDraw. Are you sure it actually has a nicer sleep/alarm interaction? Thanks, Brian On Oct 14, 11:34 pm, shailesh prakash [EMAIL PROTECTED] wrote: Try droidDraw, it

[android-developers] Re: Does Android 1.0 support progressive download of music and video files?

2008-10-15 Thread Billsen
Thanks a lot for your response, but I don't know the meaning of hinted here. Could you please provide some info about this? Thanks, Billsen On Oct 15, 7:28 am, Guillaume Perrot [EMAIL PROTECTED] wrote: Yes the MediaPlayer supports progressive download. The files must be hinted and be one of

[android-developers] Re: Emulator Performance VS Real Phone Performance

2008-10-15 Thread TjerkW
On 15 okt, 00:48, hackbod [EMAIL PROTECTED] wrote: The emulator in no way tries to emulate the performance characteristics of real hardware. For this and many other reasons, every developer should run their application on real hardware before considering it to be ready for for release to

[android-developers] Re: Program Finished - Now What?

2008-10-15 Thread Ewan Grantham
Thanks! That's what I was looking for! On Wed, Oct 15, 2008 at 4:06 AM, legerb [EMAIL PROTECTED] wrote: Use keytool and jarsigner, they come with the jdk. http://java.sun.com/j2se/1.3/docs/tooldocs/win32/keytool.html http://java.sun.com/j2se/1.3/docs/tooldocs/win32/jarsigner.html

[android-developers] Re: about the sdk 1.0 source code

2008-10-15 Thread Ludwig
The reason for this is that the SDK does not contain a full implementation of Android any more, the full implementation is in the emulator and (of course) on the phone. The SDK only contains the stubs so that the libraries will link, but since the implementation of vital parts is missing it cannot

[android-developers] Re: Program Finished - Now What?

2008-10-15 Thread Teo
That part of the documentation is a bit shady, maybe it would indeed be good to have a relevant usage example of keytool and jarsigner. I'm still not convinced i covered all of the things i should in my .apk signing :) Thanks, Teo On Oct 15, 1:23 pm, Ewan Grantham [EMAIL PROTECTED] wrote:

[android-developers] Re: Question regarding WebView

2008-10-15 Thread Rubicks
Mark, very sorry for my impolite post. I should improve on that. 1. Does your project request the INTERNET permission in the AndroidManifest.xml file? Yes 2. You have a code comment saying myMMFString has a simple html string with a link, yet myMMFString doesn't appear to be assigned a

[android-developers] Re: Delete sms from inbox

2008-10-15 Thread rajesh
did you get answer to it. I have to delete all the sms which has a particular number. But I keep getting Invalid URI message. On Oct 14, 5:24 pm, e [EMAIL PROTECTED] wrote: Anyone??? what Uri use??? On Oct 14, 1:33 pm, e [EMAIL PROTECTED] wrote: plz help me out.. i use

[android-developers] XML through SAX - for local files in res/ --- NOT for data/data/.../files and no XmlPullParser

2008-10-15 Thread legerb
I'm also having IO exceptions when trying to parse the raw ersources: I have a BroadCastReceiver, where: public void onReceive(Context context, Intent intent) { SAXParserFactory spf = SAXParserFactory.newInstance(); try {

[android-developers] Re: Does Android 1.0 support progressive download of music and video files?

2008-10-15 Thread Guillaume Perrot
Yes the MediaPlayer supports progressive download. The files must be hinted and be one of the following formats: audio: mp3, m4a (and also amr which is 3gp audio) video: mp4 3gp Many mp4 based files (e.g. all foregoing formats except mp3) you'll find on the web won't be hinted, so they won't work

[android-developers] Re: JavaScript and WebView

2008-10-15 Thread Rubicks
Here is what I am trying to do. I have a Javascript (JS) given to me, which I can not change. html head script type=text/javascript language=JavaScript var nFindAPITries = 0; var API = null; function FindAPI(win) { while ((win.API == null) (win.parent != null) (win.parent != win)) {

[android-developers] What happens when network (GPRS) is not enabled, and you try to open connection?

2008-10-15 Thread denismo
Say, I'm opening connection to a website using URLConnection. GPRS is not enabled yet. What will happen? Will GPRS become enabled? Will user be notified and asked whether she wants to enable GPRS? Or will an exception be thrown? On current phones (like Nokia/Symbian), when GPRS is not

[android-developers] Re: How I can add LinearLayout to LinearLayout programicly?

2008-10-15 Thread Ramunas
Thanks for answer. You was right, that, LinearLayout need to add together with LayoutParams. Either to LinearLayout must be added other items. On Oct 3, 7:16 pm, hackbod [EMAIL PROTECTED] wrote: You need to add it with a LinearLayout.LayoutParams as the second argument. On Oct 3, 8:38 am,

[android-developers] Re: JavaScript and WebView

2008-10-15 Thread Peli
Have you looked at apps-for-android webview-demo? http://android-developers.blogspot.com/2008/09/using-webviews.html http://code.google.com/p/apps-for-android/ Peli www.openintents.org On Oct 15, 3:04 pm, Rubicks [EMAIL PROTECTED] wrote: Here is what I am trying to do. I have a Javascript

[android-developers] Re: Emulator Performance VS Real Phone Performance

2008-10-15 Thread Tjerk Wolterink
nice, thanks... didnt see it this way 2008/10/15 Peli [EMAIL PROTECTED] int x; // pixel position int xscaled = 0; // pixel position scaled by 1000 ... int movement=BULLETSPEED*deltaT; /// v*t = d // don't divide by 1000 here xscaled += movement; // calculate movement more

[android-developers] Re: What happens when network (GPRS) is not enabled, and you try to open connection?

2008-10-15 Thread atrus123
I've been wondering this too. I guess I assumed that if an application has permissions in the manifest that the device will automatically connect without prompting. On Oct 15, 6:30 am, denismo [EMAIL PROTECTED] wrote: Say, I'm opening connection to a website using URLConnection.  GPRS is not

[android-developers] Re: JavaScript and WebView

2008-10-15 Thread Mark Murphy
Rubicks wrote: My activity has a webview . I will be leading some html pages on that webview which includes some JavaScript functions. I have a need to send some data from webview to my java application based on some user actions using javaScript functions. Is it possible or how can I do it?

[android-developers] Re: Question regarding WebView

2008-10-15 Thread Mark Murphy
Rubicks wrote: So I used this code posted somewhere on this forum. I write a book, and my samples get reduced to this code posted somewhere on this forum? Am I a has-been *already*?!? pause to regain composure, complete with muted sobs But now I have new problem. With this code, I am

[android-developers] Re: Question regarding WebView

2008-10-15 Thread Mark Murphy
Rubicks wrote: Mark, very sorry for my impolite post. I should improve on that. It was a joke! myMMFString is assigned value some where else because it is a global variable. Like this for example html body p a href=http://localhost:/index.htm;This text/a is a link on this web

[android-developers] Re: Call the default mediaplayer program in Android OS

2008-10-15 Thread Peli
It should play mp3 just fine... Maybe after adding an mp3 file, you first have to invoke the MediaScanner through Dev Tools or Ze Dev Tools / MediaScanner, so that the mp3 file gets into the content provider. Peli On Oct 15, 10:17 am, Baonq86 [EMAIL PROTECTED] wrote: Thank you, Peli. Yourcode

[android-developers] Re: Help: why can't I use com.google.api.translate in my Android application

2008-10-15 Thread ecompositor
Did you give the application INTERNET permission in the manifest? On Oct 14, 8:58 am, redmapleleaf [EMAIL PROTECTED] wrote: Hi all, I wish to use the package com.google.api.translate to write an android translator application. However, I tried all day yesterday and nothing is working.

[android-developers] Android SDK / emulator working fine on Linux 64 bits ?

2008-10-15 Thread Nanard
Hi, I plan to upgrade my PC and move from Mandriva 32bits to Mandriva 64bits. Are Eclispe SDK tools the emulator still working fine ? Any specific remarks on such a platform ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: Network Errors, No Reason?

2008-10-15 Thread Charlie Collins
I take it back, it's not a perms thing. I still see that message once in a while. I also get the same socket error that Jason reports, once in a while - in the same area as the tcp_rmem_min error: http://groups.google.com/group/android-developers/browse_thread/thread/7c408f10d23c7dfc/. It

[android-developers] Req Info abt Development Settings

2008-10-15 Thread Amit
Hello Friends, Can u plz explain me how to use the development settings in android especially the following features: 1. What does Debug App. do and what does Wait for debugger do ? 2. How to interpret the display when Show running processes is selected ? what the does the three values

[android-developers] Re: Program Finished - Now What?

2008-10-15 Thread MojoChris
An Ant task for this would be great. Anybody got one? I'm not that point yet in my development or I'd build one. Thanks C. On Oct 15, 10:37 am, Teo [EMAIL PROTECTED] wrote: That part of the documentation is a bit shady, maybe it would indeed be good to have a relevant usage example of

[android-developers] Re: BroadcastReceiver not receiving PROXIMITY_ALERTs

2008-10-15 Thread churam
Does this work with multiple proximityalerts? As long as I only add one proximityalert, everything is fine. When I try to add more no alerts are received. On Aug 28, 3:54 pm, woodm [EMAIL PROTECTED] wrote: Nevermind...it was a /stupid/ mistake. The PendingIntent I was supplying was fetched

[android-developers] issue with android.permission.CALL_PRIVILEGED

2008-10-15 Thread MojoChris
I've added the following to my manifest: uses-permission android:name=android.permission.CALL_PRIVILEGED/ uses-permission Now I'm trying to use: startActivity(new Intent(android.intent.action.CALL, Uri.parse(tel:911))); And nothing...no error...nothing. I'm

[android-developers] Re: New android apps on Twitter

2008-10-15 Thread Live Crunch
Sweet, I found your website here too at http://www.tmobileg1fans.com On Oct 9, 6:12 am, Al Sutton [EMAIL PROTECTED] wrote: I've hooked AndAppStore.com up totwitter, so if you want to see if anyone is releasing similar apps to yours you can follow AndAppStore athttp://twitter.com/AndAppStore

[android-developers] Re: setOnKeyListener problem

2008-10-15 Thread cH3Lu eu
Maybe the requestFocus method dispatches a key press event, put some breakpoints to see that. 2008/10/15 pabbot [EMAIL PROTECTED] Hi everyone, this is my first post here so I'll try not to extend so much. I've got a Layout with 3 EditText, called mText1, mText2 and mText3. I want to

[android-developers] Android Filesytem loading error on i.mx31 platform

2008-10-15 Thread Eric Michael
Hi all., I m porting android to imx31 hardware, kernel is booting well but Filesystem shows some error which loading the binder information required for the android to load... I ve created the file system by following the steps mentioned in http://elinux.org/Android_on_OMAP while

[android-developers] android.permission.CALL_PRIVILEGED not working

2008-10-15 Thread MojoChris
I'm playing around with the SDK and looking at creating a new dialer application. One of the things I'd like to be able to do is be able to dial 911 as I thought it might be useful ;-) I thought all I'd have to do is add uses-permission android:name=android.permission.CALL_PRIVILEGED/

[android-developers] Req Info abt DDMS tool

2008-10-15 Thread Amit
Hello Friends, Can u plz tell me how to use the DDMS tool, I never get my application in the left pane. How can i use DDMS for getting information about my application. Is there any documentation available for DDMS tool other than the one provided in android documentation. If i dont use the

[android-developers] Computer

2008-10-15 Thread Actress Trisha
Computer parts Take a Tour Inside Intel's First Multicore Processor Graphics Card Acress Trisha Wallpaper Photos Big Size - Open the 3 Website Register *** http://www.freewebs.com/arthistoris/ http://italianfriendfinder.com/go/g1024983-pmem

[android-developers] Re: Question regarding WebView

2008-10-15 Thread Mark Murphy
Rubicks wrote: Yes, I have a local server running with in the emulator, it is just a simple socket, which can handle HTTP requests locally. Ah! You can try changing the base URL you are passing to loadDataWithBaseURL() to match the base URL you want (http://localhost:, presumably). That

[android-developers] CREATE TABLE android_metadata failed

2008-10-15 Thread [EMAIL PROTECTED]
Hi All, I am using SDK1.0 version. I am using database for storing business card type information. Every thing was running fairly well. All of a sudden I started getting following exception . CREATE TABLE android_metadata failed E/Database( 479): Failed to

[android-developers] How communicate between two activities?

2008-10-15 Thread Ramunas
Hello, I have two activities in one application. I want call function in activity from another activity. How I can do it? Please give me any suggestions. Ramunas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: issue with android.permission.CALL_PRIVILEGED

2008-10-15 Thread MojoChris
Sorry didn't mean to double post I didn't think my other one had shown up. On Oct 15, 11:26 am, MojoChris [EMAIL PROTECTED] wrote: I've added the following to my manifest: uses-permission android:name=android.permission.CALL_PRIVILEGED/ uses-permission Now I'm trying to use:        

[android-developers] Re: Orientation changes simulation

2008-10-15 Thread blindfold
Well, apparently not quite heresy, because Eclipse today announced a Java preprocessor as part of the Eclipse Mobile Tools for Java Project (MTJ): http://www.eclipse.org/org/press-release/20081015_mtj.php I installed the MTJ runtime from

[android-developers] Re: How communicate between two activities?

2008-10-15 Thread vallis
Hi Ramunas, This is normally done by calling ActivityName.function(atts) So if your second activity is called foo and the method called bar you would use Foo.bar(attributes) If you have problems you may want to set up bar to take and Activity (like bar(Activity act)) then call it with

[android-developers] Re: How communicate between two activities?

2008-10-15 Thread hackbod
Generally doing direct calls between activities like this is a really bad idea, because the system controls the lifecycle of the activity, not you, so you have no assurance that the activity you are trying to call even exists or is the instance you are using. For direct interactions, the best

[android-developers] Re: android.permission.CALL_PRIVILEGED not working

2008-10-15 Thread hackbod
Sorry, emergency dialing is not something we can expose to third party applications. On Oct 15, 7:15 am, MojoChris [EMAIL PROTECTED] wrote: I'm playing around with the SDK and looking at creating a new dialer application. One of the things I'd like to be able  to do is be able to dial 911 as

[android-developers] Re: JavaScript and WebView

2008-10-15 Thread Rubicks
Thanks Peli, That solved my problem. On Oct 15, 3:22 pm, Peli [EMAIL PROTECTED] wrote: Have you looked at apps-for-android webview-demo?http://android-developers.blogspot.com/2008/09/using-webviews.htmlhttp://code.google.com/p/apps-for-android/ Peliwww.openintents.org On Oct 15, 3:04 pm,

[android-developers] MapView API Key??

2008-10-15 Thread zl25drexel
The phone is supposed to be coming out in a week, so where is the MapView Api key registration service? According to http://code.google.com/android/reference/com/google/android/maps/MapView.html In order to run on actual devices, though, your application will need a real authentication key so

[android-developers] Re: BroadcastReceiver not receiving PROXIMITY_ALERTs

2008-10-15 Thread churam
I found the problem. I had to specify an unique requestcode, although it is stated in the API documentation that this is not currently used. On Oct 15, 6:39 pm, churam [EMAIL PROTECTED] wrote: Does this work with multiple proximityalerts? As long as I only add one proximityalert, everything is

[android-developers] Device unique ID, other than getDeviceId()?

2008-10-15 Thread Mark Murphy
I need a unique ID for each phone, just enough to distinguish it from any other Android phone. In theory, TelephonyManager#getDeviceId() would be fine, except that it requires READ_PHONE_DATA as a permission, and that seems overkill. The catch is that I need this ID to be cross-application;

[android-developers] Re: save file with byte[] argument

2008-10-15 Thread dai
ahh, yes..I should have used fos.write(byte[])and it does work now.. Thank you so much Jason. On 10月15日, 午前7:35, Jason Proctor [EMAIL PROTECTED] wrote: why not use fos.write(buffer) as your standard java platform example does? you don't want to use Writers here, because you're dealing

[android-developers] Re: WebView loadData limitations

2008-10-15 Thread Rubicks
I am trying to get a html file stored in my sdcard image on to webview . I am doing something like this myWebView.loadUrl(/sdcard/index.html); Then I get an error on the webview as The webpage at file:///sdcard/index.html could not be loaded as: The requested file was not found. But I am sure

[android-developers] Re: WebView loadData limitations

2008-10-15 Thread Mike Reed
The Browser app does not have permission to load a page from the SD card. You can write an app with a WebView, and give yourself that permission, but the Browser is built explicitly w/o that right for security reasons. On Oct 15, 2008, at 3:41 PM, Rubicks wrote: I am trying to get a html

[android-developers] Re: WebView loadData limitations

2008-10-15 Thread Rubicks
ok. I have a webview which is used just by my application. Now, how do I give permission? Is it done in Androidmanifest file? If that is the case, I have already done that uses-permission android:name=android.permission.INTERNET / On Oct 16, 12:50 am, Mike Reed [EMAIL PROTECTED] wrote: The

[android-developers] Vertical tabs

2008-10-15 Thread Rohit Mordani
I have the following layout for tabs: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=horizontal TabHost

[android-developers] Emulator bug: Intent action/categories is null

2008-10-15 Thread Anm
When an intention is invoked remotely, such as from the Eclipse plugin, the Intent that invokes the Launcher/Main Activity does have either an action name or a category set. I would expect that the default execution from the emulator would mimic invocation from the Launcher, thus including both

[android-developers] Re: MapView API Key??

2008-10-15 Thread Anm
Is this not it: http://code.google.com/apis/maps/signup.html Same key used by any Google Maps mash-up. Anm --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Contacts.Phones.getDisplayName

2008-10-15 Thread Brian
Hello does anybody know what the following method actually does Contacts.Phones.getDisplayLabel public static final CharSequence getDisplayLabel(Context context, int type, CharSequence label) the documentation does not really say?

[android-developers] Re: Device unique ID, other than getDeviceId()?

2008-10-15 Thread John Spurlock
Re: 2 - Isn't that what MODE_WORLD_READABLE is for? http://code.google.com/android/reference/android/content/Context.html#openFileOutput(java.lang.String,%20int) MODE_WORLD_READABLE = File creation mode: allow all other applications to have read access to the created file. Hope that helps, -

[android-developers] Re: How communicate between two activities?

2008-10-15 Thread pskink
On 15 Paź, 21:07, Ramunas [EMAIL PROTECTED] wrote: Hello, I have two activities in one application. I want call function in activity from another activity. How I can do it? Please give me any suggestions. Ramunas class Application is your friend

[android-developers] Re: Device unique ID, other than getDeviceId()?

2008-10-15 Thread Mark Murphy
John Spurlock wrote: Re: 2 - Isn't that what MODE_WORLD_READABLE is for? http://code.google.com/android/reference/android/content/Context.html#openFileOutput(java.lang.String,%20int) MODE_WORLD_READABLE = File creation mode: allow all other applications to have read access to the created

[android-developers] Re: Device unique ID, other than getDeviceId()?

2008-10-15 Thread John Spurlock
Not sure if you're implying that the context application storage area (obtainable via Context) is stored on the sdcard. At least on the emulator this is not the case - this data is stored on internal storage, with or without an sdcard. On Oct 15, 7:56 pm, Mark Murphy [EMAIL PROTECTED] wrote:

[android-developers] Re: Socket exception-unknown error from HttpClient execute() method

2008-10-15 Thread androidian
Same problem here. Anyone? On Oct 8, 8:25 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have the same problem. So, if someone has clue or solution... that will be nice to share it :) On 1 sep, 16:50, Vp [EMAIL PROTECTED] wrote: Hi, I tired all above mentioned options of

[android-developers] Re: WebView loadData limitations

2008-10-15 Thread Rubicks
May be this is what you meant? myActivityLauncher is an Activity where I have a webview to load html file from sdcard. public void startMyActivityLauncher() { Intent i = new Intent(this, myActivityLauncher.class);

[android-developers] how to select text in a TextView?

2008-10-15 Thread Lazyworm
Hey, i know i can long click a field and click select all in the pop- up menu, but how can i select one word? i also notice that i can only pop the menu on EditText but not TextView, is that the way or i need to change some attributes? Thanks a lot

[android-developers] Re: Device unique ID, other than getDeviceId()?

2008-10-15 Thread Mark Murphy
John Spurlock wrote: Not sure if you're implying that the context application storage area (obtainable via Context) is stored on the sdcard. At least on the emulator this is not the case - this data is stored on internal storage, with or without an sdcard. You are absolutely correct.

[android-developers] Re: Device unique ID, other than getDeviceId()?

2008-10-15 Thread jtaylor
Hello Mark, I'd venture to say that impossible what you're asking. With #1 you would have a problem with privacy/security. With #2, having a storage spot would mean you wouldn't need Content Providers. It's intuitive for there to be a permission placed on this info. So just do the Overkill,

[android-developers] Re: Android Filesytem loading error on i.mx31 platform

2008-10-15 Thread Andrew Stadler
You'll probably find more answers to this question in the android-internals mailing list. http://groups.google.com/group/android-internals On Wed, Oct 15, 2008 at 7:42 AM, Eric Michael [EMAIL PROTECTED] wrote: Hi all., I m porting android to imx31 hardware, kernel is booting well

[android-developers] Re: Device unique ID, other than getDeviceId()?

2008-10-15 Thread Mark Murphy
jtaylor wrote: It's intuitive for there to be a permission placed on this info. It's definitely intuitive for there to be a permission on the IMEI. I am not quibbling that point at all. The problem is I'm porting something originally done on the iPhone, which has a UUID or something for each

[android-developers] Re: AliasActivity: Two Questions

2008-10-15 Thread jtaylor
I noticed the Photostream app has alias activities. (This comment is in androidmanifest.xml) !-- Alias activity used to set the wallpaper on Home. The alias is used simply to have a different label. -- http://code.google.com/p/apps-for-android/source/browse/trunk/#trunk/Photostream

[android-developers] Re: Contacts DataBase

2008-10-15 Thread dailyLife
Query: public Cursor queryAll(String[] returnSequence) { Cursor cusor = null; ContentResolver contentResolver = mContext.getContentResolver(); cusor = contentResolver.query(Contacts.People.CONTENT_URI, returnSequence, null, null, null);// DEFAULT_SORT_ORDER return cusor; } public Cursor

[android-developers] Re: nullPointer/thread error when reading contacts

2008-10-15 Thread dailyLife
use the String selection = People.NUMBER + = ? + telNo;replace ! [EMAIL PROTECTED] 2008年10月16日 - Original Message - From: vallis To: Android Developers Sent: 2008-10-13, 23:37:59 Subject: [android-developers] nullPointer/thread error when reading contacts Hi all, I've been trying

[android-developers] Re: AliasActivity: Two Questions

2008-10-15 Thread Romain Guy
Photostream uses an activity-alias, not an AliasActivity (they are different :) On Wed, Oct 15, 2008 at 7:24 PM, jtaylor [EMAIL PROTECTED] wrote: I noticed the Photostream app has alias activities. (This comment is in androidmanifest.xml) !-- Alias activity used to set the wallpaper on

[android-developers] Re: Device unique ID, other than getDeviceId()?

2008-10-15 Thread jtaylor
It's hard to answer your questions when you know just about everything. - Juan T. On Oct 15, 9:38 pm, Mark Murphy [EMAIL PROTECTED] wrote: jtaylor wrote: It's intuitive for there to be a permission placed on this info. It's definitely intuitive for there to be a permission on the IMEI. I

[android-developers] Re: Contacts.Phones.getDisplayName

2008-10-15 Thread Jeff Hamilton
You pass it the type and label fields from the contacts content provider and it reads the localized labels for the non-custom types and returns the proper value. If the type is custom it will return the label value you pass in. The last parameter allows you to pass in your own array of strings to

[android-developers] Re: Device unique ID, other than getDeviceId()?

2008-10-15 Thread jtaylor
Hopefully in Android Market there'll be a way to, maybe through analytics, to see if the user didn't accept the app because of fear of the permissions. That's the only way to see and know for sure, through some kind of analytics. - Juan T. On Oct 15, 9:38 pm, Mark Murphy [EMAIL PROTECTED]

  1   2   >