[android-developers] Setting Use by default for this action option crashes android

2008-11-21 Thread Thao
Hi All, I try to replace the standard contact application by my custom application. Now that I click on the android contact icon, it prompts me with launching the standard contact app AND my custom app...That's cool... If I launched my custom app from this, it work very well. But when I select

[android-developers] Re: FTP Client

2008-11-21 Thread friedger
I think I saw a package like com.android.ftp or similar but I can't find it on the device anymore after an update. Maybe the package might be of some use. Friedger On 20 Nov., 18:41, Sahil R Cooner [EMAIL PROTECTED] wrote: nothing that I know of, but if you're working on one that you'd like

[android-developers] What are the capabilities of a Web View?

2008-11-21 Thread Brad Gies
I'm in the design process of a new app, and I'm mulling over the possibilities for the user interface. My app will need to communicate with my web server (or a web service) for almost every interaction it has. The app will need to occasionally send GPS information to the server, and on rare

[android-developers] A bit of a moral boost....

2008-11-21 Thread Al Sutton
I thought I'd post this as I know it's always nice to see your work is doing well; AndAppStore.com is uses Struts 2.1.2 core, codebehind, rest, and sitemesh plugins (as well as the SSL one from googlecode), we're regularly seeing 250,000+ hits a day (yes, quarter of a million) on a single

[android-developers] [Fwd: A bit of a moral boost....]

2008-11-21 Thread Al Sutton
Sorry guys, this should have gone to struts-dev.. damn that auto-completion!!! Al. -- == 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

[android-developers] Re: Notification details Activity never receives Intent used to fire it

2008-11-21 Thread Matthias
Well, when /do/ PendingIntents match? All I can say is that calling PendingActivity.getActivity() created a new PendingIntent each time I called it (I checked the OID in the debugger), and in this new object, I always store a new Intent object. As Guillaume suggested, I solved the problem by

[android-developers] Re: Setting Use by default for this action option crashes when attempting to replace a standard application

2008-11-21 Thread Thao
He Dianne, Sorry but I don't understand your comment. Could you please detail your thought, maybe it could help me to understand how it works. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Notification details Activity never receives Intent used to fire it

2008-11-21 Thread Guillaume Perrot
I retested my application, I can post two notifications with two pending intents with the same action (but different extra args) and this works only if put different request codes each time... I tested to click them in different orders to check it this really works: it works, the correct extra

[android-developers] Re: How to rotate the emulator screen on a mac

2008-11-21 Thread Dan B.
should be Ctrl+F12 On Nov 20, 8:35 pm, Eelke Folmer [EMAIL PROTECTED] wrote: Hi, According to the emulator faq the screen can be rotated using F11 and F12 but this doesn't work on  my new macbook as apple put the volume adjustments there. Is there a workaround? Cheers Eelke

[android-developers] Re: Notification details Activity never receives Intent used to fire it

2008-11-21 Thread Matthias
And to further clear up my intentions: I have a model class called Event. It represents user activity in my system (such as rating items or writing messages). These events are delivered to the user through NotificationManager. For every such event, the NM calls Event.toNotification() and

[android-developers] Re: How to rotate the emulator screen on a mac

2008-11-21 Thread Grigory Fishilevich
According to the emulator faq the screen can be rotated using F11 and F12 but this doesn't work on my new macbook as apple put the volume adjustments there. Is there a workaround? FN + Ctrl+F12 --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: error in opening file in fileexplorer application

2008-11-21 Thread Charlie Collins
I believe you will need to go back to the code you got from anddev.org and check that manifest. As far as I know file://STRING is NOT a scheme/uri that any built in system intent can handle, that's a custom Uri, so you are going to have to write the Activity that handles that on your own (which

[android-developers] Re: What are the capabilities of a Web View?

2008-11-21 Thread Charlie Collins
Android has a pretty capable web browser from what I have seen (sans Flash). It can run several of my GWT apps, for example, and JavaScript/XHR are usually what many other mobile browsers cannot handle. Also, I believe that yes, the WebView does allow you to bind from the running application

[android-developers] Using Amazons Content Delivery Network for APK distribution

2008-11-21 Thread Al Sutton
I've added the ability to upload and publish via Amazons Content Delivery Network (CloudFront) into AndAppStore.com, so if you'd like to distribute your apps using CloudFront you can do so by following the instructions at; http://andappstore.com/AndroidPhoneApplications/awshosting.jsp Al.

[android-developers] Re: ViewFlipper onFlipListener

2008-11-21 Thread Ngewi
Yes, ViewFlipper can flip on its own. When you call setFlipInterval (int timeInMs) and then call startFlipping() the flipper will switch the views every timeInMs millisecs. I can handle the flips that I trigger manually, but I want to also handle them when they are automatic. There is the

[android-developers] Re: PackageManager??

2008-11-21 Thread teo2706
Will PackageManager.installPackage() be available for applications in future versions? Ot will it be possible to install applications only through Package Installer application, as you suggested below in this thread? On 26 Авг, 09:36, hackbod [EMAIL PROTECTED] wrote: This is not available to

[android-developers] Re: Notification details Activity never receives Intent used to fire it

2008-11-21 Thread Matthias
that's exactly the behavior I am noticing, too. On 21 Nov., 11:38, Guillaume Perrot [EMAIL PROTECTED] wrote: I retested my application, I can post two notifications with two pending intents with the same action (but different extra args) and this works only if put different request codes each

[android-developers] Re: Text-To-Speech

2008-11-21 Thread blindfold
Hi Pulkit, I have not implemented any TTS. As an intermediate solution I just use a partially self-voicing approach with built-in speech samples. I can afford to wait a bit longer until the TTS dust settles. Right now there are several Android TTS projects based on FreeTTS, in various stages of

[android-developers] Re: Base Adapter View and OnClick Lister

2008-11-21 Thread alexdonnini
Hello, You need to post all of the code in question. Alex Donnini On Nov 21, 2:24 am, for android [EMAIL PROTECTED] wrote: I have extended a BaseAdapter for a listView. The List View is on the lines of ListAdapter Collapsed ,but instead of the dialogue box i have a seek bar(which gets

[android-developers] Re: Is there a hook to run code on device shutdown (power off)?

2008-11-21 Thread Eric Mill
Dianne, do you think this will be added to the API in the future? Saving state on phone shutdown could be important for some apps. -- Eric On Nov 20, 9:12 pm, Jon Colverson [EMAIL PROTECTED] wrote: Eek. That makes things a bit more difficult. Thank you for the quick response, though! On Nov

[android-developers] Re: Is there a hook to run code on device shutdown (power off)?

2008-11-21 Thread Dorn Hetzel
And at least with respect to the current hardware instance (G1) is any inability a hardware, firmware, or software limitation? On Fri, Nov 21, 2008 at 9:39 AM, Eric Mill [EMAIL PROTECTED] wrote: Dianne, do you think this will be added to the API in the future? Saving state on phone shutdown

[android-developers] Re: ViewFlipper onFlipListener

2008-11-21 Thread loty
Ok, I guess I misunderstood. Well you can use Timer object to initiate your flips instead of doing setFlipInterval and startFlipping. This way you can do whatever you want before and after each flip. On Nov 21, 7:40 am, Ngewi [EMAIL PROTECTED] wrote: Yes, ViewFlipper can flip on its own. When

[android-developers] Getting images off the network, via a cache

2008-11-21 Thread David Given
I have an app that's going to want to display quite a lot of thumbnail images, downloaded off the network. These are eventually going to be used as Drawables. As I'm going to be referring to them quite often, from one run of the app to the next, I want to cache them. What I've currently got is

[android-developers] Re: Text-To-Speech

2008-11-21 Thread Pulkit Arora
Heya,Ya i had already seen that long back.. thanks.. I myself had been hunting (and perhaps waiting) for a robust TTS app for Android, i hope it comes out soon, coz i believe google employees are also working on it and we can expect it from them soon.. Lets hope for the best. On Fri, Nov 21, 2008

[android-developers] Re: Possibility of changing the graphic used for a radio button?

2008-11-21 Thread [EMAIL PROTECTED]
I solved this one myself: There's a property that radiobuttons have called button, this can contain a reference to a drawable. On Nov 20, 10:09 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I'm wondering if it is possible to replace the image used for the option buttons to something

[android-developers] Using WiFi Manager

2008-11-21 Thread Anirudha Shinde
hello, I am trying to use following: WifiManager wm = (WifiManager) getSystemService (Context.WIFI_SERVICE); but whenever i use following it throws an error wm.setWifiEnabled(true); at the same time wm.isWiFiEnabled() returns false. I have added uses-permission for accessing wifi state into

[android-developers] How to insure the singed file is correct?

2008-11-21 Thread [EMAIL PROTECTED]
I upgraded my android app version, but user report me Error: Package file was not signed correctly. keytool -genkey-keystore keys/androidrss.keystore -alias androidrss.keystore -keyalg RSA -validity 1 keytool -genkey -v -keystore keys/androidrss.keystore -alias androidrss.keystore

[android-developers] Re: question about build android

2008-11-21 Thread [EMAIL PROTECTED]
Hi, I've also run into this issue. Did you find the solution? Br. Roman --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: Unable to Run sample App

2008-11-21 Thread Ken
Wait for a while until the emulator settle-down? It takes a while for Android emulator to load. If this doesn't work, try to set a breakpoint in your debugger to see what happened. On Nov 19, 3:29 am, Neel [EMAIL PROTECTED] wrote: Hi, I tried running the sample, Hello Android, app given on

[android-developers] Re: Receiving SMS Messages in 1.0?

2008-11-21 Thread Mihai
Thanks for the code example, I tried and it worked just fine. However, I would like to know if in version 1.0 there are other ways of reacting to an SMS and parsing its data, it seems to me a little bit weird that there is no high level way to do this. Have fun, Mihai On Sep 24, 12:21 pm,

[android-developers] Re: Need help using hat to track down memory usage

2008-11-21 Thread Riaz Rahaman
I am facing a similar problem. As per the instruction on monkey usage I generate the profiling data using --hprof option passed to monkey. There are a few files generated in the /data/misc folder. As per the instructions on http://code.google.com/android/reference/monkey.html I tried opening

[android-developers] REPOST: ListView selection highlight size

2008-11-21 Thread Andriy Zakharchuk
Hello all, I'm trying to create a list view with small list item views (smth similar to ListView we had in m3_rc37 version of SDK). Yes, I know they are not usable for finger touch mode, however I still want to have it. SDK 1.0_r1 samples contain Views/Lists/6. ListAdapter Collapsed screen. I

[android-developers] Re: use dependencies

2008-11-21 Thread Tom
Same question for me. What is the suggested mechanism to get to the MultipartEntity class? On Oct 24, 10:12 am, jphdsn [EMAIL PROTECTED] wrote: Anyone knows how to use dependencies in Android. I need to import org.apache.http.entity.mime.MultipartEntity; import

[android-developers] PLUGIN Eclipse

2008-11-21 Thread [EMAIL PROTECTED]
L'URL per scaricare i plugin di eclipse non funziona come posso settare Eclipse??? GRAZIE The URL of Eclipse plugin's is not aviable. how can I set the Eclipse IDE's??? THANKS --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] PLUGIN Eclipse

2008-11-21 Thread [EMAIL PROTECTED]
The URL of Eclipse plugin's is not aviable. how can I set the Eclipse IDE's??? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: map view problem

2008-11-21 Thread Boris Malenšek
I have the same problem but can not solve it. My background should be Map but it is some kind of white-gray stupid picture. In left-bottom corner is Google sign, so it means that shomhow it works but not well. I have double-checked my apiKey for registering my application and it is correct.

[android-developers] ListView selection highlight size

2008-11-21 Thread Andriy Zakharchuk
Hello all, I'd like to create a list with small list items (like it was in m3_rc37). Yes, I know this is not compatible with touch mode, but I'd like to have this anyway :) In the 1.0_r1 samples I see ListAdapter Collapsed example. I don't need collapsed items, but I refer to it since it

[android-developers] Android and bluetooth

2008-11-21 Thread developer
Hi I have just started developing a new android app which needs to access bluetooth. But I came to know that android 1.0 doesnt support bluetooth, and has no API. is it? is there any other way to use bluetooth? Its really surprising me that android has no support for bluetooth,and developers

[android-developers] P2P Conference invitation

2008-11-21 Thread Bogomil Bogo Shopov
Hi guys, If anyone form you are interested in a talk about Android for a conference in Bulgaria, please let me know or learn more here: http://wtconferences.com/?page_id=85 Bogo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: PLUGIN Eclipse

2008-11-21 Thread Jun'ichi Hirayama
really ? I tested to download ADT(Eclipse plugin) from URL just now.not problems. what type of message is displayed ? On Sat, Nov 22, 2008 at 12:10 AM, [EMAIL PROTECTED] [EMAIL PROTECTED]wrote: The URL of Eclipse plugin's is not aviable. how can I set the Eclipse IDE's???

[android-developers] Re: map view problem

2008-11-21 Thread Mark Murphy
Boris Malenšek wrote: I have the same problem but can not solve it. My background should be Map but it is some kind of white-gray stupid picture. In left-bottom corner is Google sign, so it means that shomhow it works but not well. I have double-checked my apiKey for registering my

[android-developers] Re: ListView selection highlight size

2008-11-21 Thread Mark Murphy
Andriy Zakharchuk wrote: Is there any way to make highlight box smaller, the same size as list view item is (like it was in m3_rc37)? There may be a theme or style that handles this, but you can always create your own layout for the adapter to use, and you can control the height that way.

[android-developers] Re: Android and bluetooth

2008-11-21 Thread Mark Murphy
developer wrote: Its really surprising me that android has no support for bluetooth Android has support for Bluetooth. Android does not have APIs for developers to use Bluetooth at this time. http://android-developers.blogspot.com/2008/08/some-information-on-apis-removed-in.html -- Mark

[android-developers] What are the possible way to work on database?

2008-11-21 Thread dilu
Hi, I have a question in my mind that what are the possible way to work on databse? My means, can we create the database in our main file only through code? OR first create the database using Sqlite manager and then integrate it to the code.If second option, we can use then it will be little bit

[android-developers] Re: Netbeans

2008-11-21 Thread Peter Stevenson
Peter wrote Work well I using Netbeans 6,5 Thustle wrote: I've not tried it yet... http://kenai.com/projects/nbandroid/pages/Install On 20 Nov, 14:08, moa [EMAIL PROTECTED] wrote: Does anyone know what the current state is for development with the netbeans ide?

[android-developers] Re: ListView selection highlight size

2008-11-21 Thread Andriy Zakharchuk
Thank you for answering. The problem is not with list item view itself. I do everything you are talking about: I created my custom adapter, which returns my custom list item views, which extend LinearLayout and contain a number of widgets inside. However with Adapter.new/getView() I can control

[android-developers] Re: ListView selection highlight size

2008-11-21 Thread Mark Murphy
Andriy Zakharchuk wrote: So my question was about selected item highlight, not the list item view. Ah, terribly sorry. Have you tried setting your own list selector via android:listSelector or setSelector(int)? -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the

[android-developers] Issues: Webview.loadData() trying to load a string created from a read file(asset) and a string

2008-11-21 Thread polo777
Hi Everyone, I want to display into a WebView the concatenation of a string and the content of a file located in my asset. With the code below, when I display the string in my log it looks perfect but when I launch the activity I just get the following message: Web page not available the web

[android-developers] Re: missing javax audio?

2008-11-21 Thread Sriramv
What about the SoniVox audio APIs? SoniVox (http://www.sonivoxrocks.com/google.html) is already in the source tree under external libraries. Can they be used to access sample-level audio streams at the moment? On Nov 20, 8:29 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: We are committed to

[android-developers] Re: Issues: Webview.loadData() trying to load a string created from a read file(asset) and a string

2008-11-21 Thread Mark Murphy
polo777 wrote: Does someone have a solution? That would be great. Use loadDataWithBaseURL(), even if you have to pass in a fake URL. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml

[android-developers] Re: How do I make sure one row ListView is always in focus

2008-11-21 Thread Romain Guy
You can't. That's the purpose of the choice mode. On Fri, Nov 21, 2008 at 11:35 AM, j [EMAIL PROTECTED] wrote: myListView.setChoiceMode(ListView.CHOICE_MODE_SINGLE); works fine in non-touch mode. However, I notice that when in touch mode, myListView does not show a focused row (the

[android-developers] Re: How do I make sure one row ListView is always in focus

2008-11-21 Thread Romain Guy
I mean, the purpose of the choice mode is to let the user have a persistent selection. He needs to touch the item or click it with the trackball. You cannot keep the highlight. On Fri, Nov 21, 2008 at 11:43 AM, Romain Guy [EMAIL PROTECTED] wrote: You can't. That's the purpose of the choice

[android-developers] Re: What are the possible way to work on database?

2008-11-21 Thread atrus123
Hello Dilu, Have you gone through the Android Notepad tutorial yet? There is a lot of database stuff in there with examples that fit what you're asking. J. On Nov 21, 1:21 pm, dilu [EMAIL PROTECTED] wrote: Hi, I have a question in my mind that what are the possible way to work on databse?

[android-developers] Re: How to insure the singed file is correct?

2008-11-21 Thread atrus123
Hello, If you try and install a signed package on top of a pre-existing unsigned package, you will get this error. To resolve, uninstall the currently existing package from the G1. Sometimes if an install has previously failed, you may have to reinstall the unsigned package and then uninstall

[android-developers] Service processing restrictions on main thread

2008-11-21 Thread sandy8531
I have a service which I start off in a separate process from the application using process:myname tag. Do I need to be careful to take longish running method calls out of the main thread, even when the service is in its own process ? I do some initialization during onCreate/onStart that could

[android-developers] Re: Service processing restrictions on main thread

2008-11-21 Thread Dianne Hackborn
Yes, whatever process you are in, the main thread needs to be kept responsive. Also, for what it's worth, I would recommend against running things in separate processes unless there is a really strong direct reason to do so. Our current baseline overhead for a process is unfortunately about 2mb,

[android-developers] How to set the 'singleActivityMode' flag for an activity group's constructor?

2008-11-21 Thread Cheryl Sedota
How can I set the 'singleActivityMode' flag for an activity group's constructor? http://code.google.com/android/reference/android/app/ActivityGroup.html#ActivityGroup(boolean) The problem I am encountering is that although my activity group's onResume/onPause methods are getting called, the

[android-developers] Re: missing javax audio?

2008-11-21 Thread Dianne Hackborn
On Thu, Nov 20, 2008 at 12:16 PM, blindfold [EMAIL PROTECTED]wrote: When Dianne said... Contributing patches would be a much more effective approach than a petition. ...the specific patches she presumably meant would be patches to make this as-yet incomplete code into a stable, usable,

[android-developers] Re: How to set the 'singleActivityMode' flag for an activity group's constructor?

2008-11-21 Thread Dianne Hackborn
This can't be changed dynamically after the ActivityGroup/LocalActivityManager is created. On Fri, Nov 21, 2008 at 2:17 PM, Cheryl Sedota [EMAIL PROTECTED]wrote: How can I set the 'singleActivityMode' flag for an activity group's constructor?

[android-developers] Re: san disk

2008-11-21 Thread Michael
San disk? If you're referring to the SD card... there are already APIs to access files on the SD card, these are standard Java file IO libraries. What is it that you're trying to do? --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Re: How to set the 'singleActivityMode' flag for an activity group's constructor?

2008-11-21 Thread Cheryl Sedota
Is there any XML attribute I can set in the android manifest when declaring the activity group by any chance? :) On Nov 21, 4:22 pm, Dianne Hackborn [EMAIL PROTECTED] wrote: This can't be changed dynamically after the ActivityGroup/LocalActivityManager is created. On Fri, Nov 21, 2008 at

[android-developers] Re: Is there a hook to run code on device shutdown (power off)?

2008-11-21 Thread Dianne Hackborn
It's something not implemented in the software. Users seem to have a disturbing habit of just pulling the battery out as a way to turn off their phone, so I'm not sure how much I would want to rely on a clean shutdown. :} On Fri, Nov 21, 2008 at 7:52 AM, Dorn Hetzel [EMAIL PROTECTED] wrote:

[android-developers] Re: Notification details Activity never receives Intent used to fire it

2008-11-21 Thread Dianne Hackborn
On Thu, Nov 20, 2008 at 11:31 PM, Guillaume Perrot [EMAIL PROTECTED] wrote: Will the SDK be improved to allow several matching pending intents ? This isn't a limitation, it is a feature. It allows you to retrieve a PendingIntent you had previously created, so you can cancel it or do other

[android-developers] Re: Notification details Activity never receives Intent used to fire it

2008-11-21 Thread Dianne Hackborn
On Fri, Nov 21, 2008 at 2:14 AM, Matthias [EMAIL PROTECTED] wrote: Well, when /do/ PendingIntents match? All I can say is that calling PendingActivity.getActivity() created a new PendingIntent each time I called it (I checked the OID in the debugger), and in this new object, I always store a

[android-developers] Detect which Home screen the user is on?

2008-11-21 Thread songs
Hi, So there are three screens that the user can flip between on the Home screen. Is there a way to detect which screen they're on or some way to catch when they've flipped between screens? Thanks, Steve --~--~-~--~~~---~--~~ You received this message because

[android-developers] Re: Detect which Home screen the user is on?

2008-11-21 Thread Romain Guy
No there is no way to do this. On Fri, Nov 21, 2008 at 2:29 PM, songs [EMAIL PROTECTED] wrote: Hi, So there are three screens that the user can flip between on the Home screen. Is there a way to detect which screen they're on or some way to catch when they've flipped between screens?

[android-developers] Re: another new return of findViewById???

2008-11-21 Thread Michael
This isn't a bug - see what Mark said about your activity being destroyed and recreated when the orientation changes. If you want to work around this (and know that it's the right thing to do), set up your app to handle the orientation configuration change (set android:configChanges in

[android-developers] Re: Notification details Activity never receives Intent used to fire it

2008-11-21 Thread Guillaume Perrot
Ok, so there is a bug and we are exploiting it. 2008/11/21 Dianne Hackborn [EMAIL PROTECTED] On Fri, Nov 21, 2008 at 2:14 AM, Matthias [EMAIL PROTECTED]wrote: Well, when /do/ PendingIntents match? All I can say is that calling PendingActivity.getActivity() created a new PendingIntent each

[android-developers] Re: Notification details Activity never receives Intent used to fire it

2008-11-21 Thread Dianne Hackborn
Ah you are right, the request code is also part of its identity. For the nitty gritty details, this file defines a PendingIntent maintained by the system and the full key used to match them:

[android-developers] Re: san disk

2008-11-21 Thread Ernest Tam
I plan to store a mini-database in SD card. When I bring up my app in G1 phone, I can access the data from the little database in SD card. The data in SD card is preloaded by us. Ernie On Fri, Nov 21, 2008 at 2:23 PM, Michael [EMAIL PROTECTED] wrote: San disk? If you're referring to the SD

[android-developers] Re: PackageManager??

2008-11-21 Thread Dianne Hackborn
Current this API is not planned to be available to third party apps, they will need to go through the system installer UI. 2008/11/21 teo2706 [EMAIL PROTECTED] Will PackageManager.installPackage() be available for applications in future versions? Ot will it be possible to install applications

[android-developers] Re: Notification details Activity never receives Intent used to fire it

2008-11-21 Thread Guillaume Perrot
Thanks for your answer, it eventually solves the mystery \o/ I quoted it in the Issue 863. http://code.google.com/p/android/issues/detail?id=863 On 21 nov, 23:38, Dianne Hackborn [EMAIL PROTECTED] wrote: Ah you are right, the request code is also part of its identity. For the nitty gritty

[android-developers] Possible bug in originating from libgl.so when drawing bitmap

2008-11-21 Thread [EMAIL PROTECTED]
Hello, I've identified a possible bug, when rendering a bitmap with the following code, the application occasionally, but unpredictably crashes. More likely to crash the more times in a row this code has been executed. Code snippet: c=getHolder().lockCanvas(); c.drawBitmap(bm, 0, 0,

[android-developers] Reuse of AndroidManifest.xml

2008-11-21 Thread magicpig
Hi, I am building android apps using ant. I have two AndroidManifest.xml files which contain a slightly difference: The second one adds a meta-data element to the first one under application element. Any simple way to do this? Thanks a lot.

[android-developers] ActivityInstrumentationTestCase issue - can't send key

2008-11-21 Thread dreamerBoy
The goal of this little test program is to launch initiate a call and then generate a press to the ENDCALL button. 1. It appears that I am incapable of unlocking the keyguard: 11-21 14:40:58.445: INFO/InstTest(209): after inKeyguardRestrictedInputMode() ? true 2. Then, Android tells me I

[android-developers] Import Typeface from another apk?

2008-11-21 Thread Peli
Is it possible to import a Typeface from another apk? Or from the SD card? I only found: Typeface.createFromAsset(AssetManager mgr, String path) http://code.google.com/android/reference/android/graphics/Typeface.html I would like to ship fonts as an add-on to the main application, since font

[android-developers] Re: how to inject a KeyEvent

2008-11-21 Thread dreamerBoy
Hi Hackbod - I tried this using Instrumentation - The goal of this little program is to make an outgoing call and then generate a keypress on the ENDCALL button. 1. It appears that I am incapable of unlocking the keyguard: 11-21 14:40:58.445: INFO/InstTest(209): after

[android-developers] Re: Quality of audio recording from MediaRecorder

2008-11-21 Thread Michael
I'd love a way to be able to analyze the sound as it's coming in, rather than having to record to a file first. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: PackageManager??

2008-11-21 Thread Dorn Hetzel
If PackageManager has to do the installation, can PackageManager be launch from another application and passed information to help it locate the desired application? 2008/11/21 Dianne Hackborn [EMAIL PROTECTED]: Current this API is not planned to be available to third party apps, they will need

[android-developers] Re: Issues: Webview.loadData() trying to load a string created from a read file(asset) and a string

2008-11-21 Thread polo777
Re, Actually, I still have a problem. When I use this trick, the javascript containing in my page doesn't work whereas the same page(html/javascript) works when I load it from the network or from a file:///android_asset/myfile.html. Anything? Polo On Nov 21, 1:06 pm, polo777 [EMAIL PROTECTED]

[android-developers] Re: PackageManager??

2008-11-21 Thread Dianne Hackborn
You can put any .apk on the phone, and start a VIEW intent on it to bring up the installer UI. 2008/11/21 Dorn Hetzel [EMAIL PROTECTED] If PackageManager has to do the installation, can PackageManager be launch from another application and passed information to help it locate the desired

[android-developers] Re: PackageManager??

2008-11-21 Thread Dianne Hackborn
(Btw, this is exactly what happens when you download an .apk from the browser, the browser just downloads it and then starts whatever activity can view it, letting the system find the package installer activity.) 2008/11/21 Dianne Hackborn [EMAIL PROTECTED] You can put any .apk on the phone,

[android-developers] Re: how to inject a KeyEvent

2008-11-21 Thread Dianne Hackborn
Correct, one application can not inject key events into another application. There should be no way around this. For instrumentation test cases that cross application boundaries, I strongly recommend you set up an ActivityMonitor to block the launching of that other application's activity,

[android-developers] Re: Import Typeface from another apk?

2008-11-21 Thread Dianne Hackborn
You can just create a context for the other application, and get its resources and then asset manager and use that. On Fri, Nov 21, 2008 at 3:07 PM, Peli [EMAIL PROTECTED] wrote: Is it possible to import a Typeface from another apk? Or from the SD card? I only found:

[android-developers] Re: Reuse of AndroidManifest.xml

2008-11-21 Thread Dianne Hackborn
Nothing automatic, sorry. I am sure you could use some XML tools to automatically generate the two form some common template. On Fri, Nov 21, 2008 at 2:55 PM, magicpig [EMAIL PROTECTED] wrote: Hi, I am building android apps using ant. I have two AndroidManifest.xml files which contain

[android-developers] Re: Issues: Webview.loadData() trying to load a string created from a read file(asset) and a string

2008-11-21 Thread Mark Murphy
polo777 wrote: Re, Actually, I still have a problem. When I use this trick, the javascript containing in my page doesn't work whereas the same page(html/javascript) works when I load it from the network or from a file:///android_asset/myfile.html. Anything? Your simple options are: 1.

[android-developers] Re: Issues: Webview.loadData() trying to load a string created from a read file(asset) and a string

2008-11-21 Thread polo777
Hi Mark, First thanks a lot for your answers... After having tried to use addJavascriptInterface, I start working on the ContentProvider-based solution that you described. With this solution can I just create/open/read/delete a file in which I would store my string (javascript + html) so that I

[android-developers] Re: Issues: Webview.loadData() trying to load a string created from a read file(asset) and a string

2008-11-21 Thread Mark Murphy
polo777 wrote: After having tried to use addJavascriptInterface, I start working on the ContentProvider-based solution that you described. With this solution can I just create/open/read/delete a file in which I would store my string (javascript + html) so that I could use loadUrl or

[android-developers] Re: Issues: Webview.loadData() trying to load a string created from a read file(asset) and a string

2008-11-21 Thread polo777
I am gonna give a try and let you know. Thanks Mark! On Nov 21, 4:45 pm, Mark Murphy [EMAIL PROTECTED] wrote: polo777 wrote: After having tried to use addJavascriptInterface, I start working on the ContentProvider-based solution that you described. With this solution can I just

[android-developers] how to write a file on SD card in android?

2008-11-21 Thread Dr. Tingrong Lu
I want to write a file on SD card, how to refer SD card in android? I know Java file I/O, I mean what path to refer SD card in android? Can anyone please give a sample code? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: how to write a file on SD card in android?

2008-11-21 Thread Mark Murphy
Dr. Tingrong Lu wrote: I want to write a file on SD card, how to refer SD card in android? I know Java file I/O, I mean what path to refer SD card in android? Can anyone please give a sample code? The simple answer: /sdcard There might be an API to look that up, but I forget. -- Mark

[android-developers] Re: How to insure the singed file is correct?

2008-11-21 Thread [EMAIL PROTECTED]
can we test this process on emulator ? if can do, how do it, thanks On Nov 22, 5:03 am, atrus123 [EMAIL PROTECTED] wrote: Hello, If you try and install a signed package on top of a pre-existing unsigned package, you will get this error.  To resolve, uninstall the currently existing package

[android-developers] Re: missing javax audio?

2008-11-21 Thread [EMAIL PROTECTED]
There is no approved method for getting at sample audio input or output in SDK 1.0. We are aware that is a significant limitation and efforts are underway to address it. On Nov 21, 11:06 am, Sriramv [EMAIL PROTECTED] wrote: What about the SoniVox audio APIs? SoniVox

[android-developers] Re: Regarding video file playback in android emulator

2008-11-21 Thread [EMAIL PROTECTED]
If you look at the music player application, there are some lines in the AndroidManifest.xml file that you can uncomment to add it to Launcher as a video player and have it respond to video view intents. It's not the best experience, but it should get you started. Alternatively, there is sample

[android-developers] terminate the incoming call?

2008-11-21 Thread AndroidAppDev
There's a way to trap the incoming call with LISTEN_CALL_STATE, but how do we terminate the incoming call? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] MyLocationOverlay monopolizing location updates?

2008-11-21 Thread JP
Can anyone confirm the following observation: An enabled MyLocationOverlay seems to monopolize location updates (on the device (G1), emulator seems not affected). This means that location listeners registered with the location manager do not fire any longer as soon as a MyLocationOverlay is

[android-developers] Java IO is super-slow in Android -- why?

2008-11-21 Thread ______
I measure the speed of copying files to/from the SD card at about 5MB/ sec on my G1, however the following speed test tops out at about 250kB/ sec read and 125kB/sec write. (The example shown writes to the internal SD card, but writing to the removable card is about the same speed.) Why is it so

[android-developers] Custom background for selected Listview Items

2008-11-21 Thread AusSeattle
Hi, I am having a problem I just could not figure out how to solve. I am showing a list of items - some of them active and some of them inactive. I would like to change the background color for the listview items which are not active. Does anybody know how to do that? Thank you for your