[android-developers] Re: implementation of onDestroy for a service containing a worker or backround thread

2009-05-28 Thread Marco Nelissen
On Thu, May 28, 2009 at 7:12 AM, Mike Hearn mh.in.engl...@gmail.com wrote: Your understanding is wrong - your service can be killed at any time without onDestroy being run. I'm not actually sure why onDestroy even exists in this case, I found it was much more common for the kernel to OOM

[android-developers] Re: video capture doesn't seem to work in 1.5

2009-05-28 Thread Marco Nelissen
What do you mean by no luck? Does something crash? Do you get an exception? Does it create the recording file? Is there any data in it? On Thu, May 28, 2009 at 9:25 AM, zeeshan genx...@gmail.com wrote: Hi dear, i am trying to capture video since a week but still no luck. can anybody help

[android-developers] Re: how to have onItemClickListener for setListAdapter(new EfficientAdapter(this));?

2009-05-28 Thread Marco Nelissen
You don't set a separate OnItemClickListener for each position, you set one for the entire list, and in your click listener you will be told which position was selected. On Thu, May 28, 2009 at 9:05 AM, zeeshan genx...@gmail.com wrote: Hi, i need image and text on list view and i am using

[android-developers] Re: Netbook with Android

2009-05-28 Thread Marco Nelissen
On Thu, May 28, 2009 at 10:37 AM, cookdav david.hubert.c...@gmail.comwrote: Bump! [What's up with this? Base question got posted back in April, and there's still no answer?] This group is for asking question about development using the Android SDK. Asking which netbooks might run Android

[android-developers] Re: G1 ManageApplications - the size of the application data does not change when ...

2009-05-28 Thread Marco Nelissen
IIRC sqlite databases aren't automatically compacted when things are deleted from them. You need to use the 'vacuum' command to do that. On Thu, May 28, 2009 at 2:44 PM, jade j...@edufone.com wrote: When we delete items from our sqlite database in our Android app, the size of the data under

[android-developers] Re: Android like Sponsor

2009-05-28 Thread Marco Nelissen
Android is an open source platform, not an organization. Are you thinking of the Open Handset Alliance? See http://www.openhandsetalliance.com/contact.html On Thu, May 28, 2009 at 2:41 PM, Chihau Chau chi...@gmail.com wrote: I would to know if Android can be a sponsor of a national open

[android-developers] Re: Can't keep AlertDialog on screen when KeyEvent.KEYCODE_BACK is handled with 1.5 (??)

2009-05-28 Thread Marco Nelissen
It's not a bug. I'm guessing you were expecting AlertDialog.show() to block until the user makes the choice, but that's not how it works. It's easy to make this work though: simply don't call super.onKeyDown() when the user pressed the back button. That will keep the system from ending your

[android-developers] Re: Telephony Manager functions don't work

2009-05-29 Thread Marco Nelissen
On Fri, May 29, 2009 at 1:04 PM, alexdonnini alexdonn...@ieee.org wrote: Hello, I have low expectations that this message will get any response as it seems that Google developers do not like to address issues too close to the Android core and to strategic mobility applications. However, as

[android-developers] Re: Seekbar - Snap to value

2009-05-30 Thread Marco Nelissen
On Sat, May 30, 2009 at 8:19 AM, mscwd01 mscw...@gmail.com wrote: Hey, Quick question... Is there a way to define set values (i.e. 0%, 25%, 50%, 75%, 100%) for the seekbar widget that enables the slider to snap to the nearest set value? For example instead of allowing the user to position

[android-developers] Re: Open-Source Opertunity

2009-05-31 Thread Marco Nelissen
On Sat, May 30, 2009 at 7:46 PM, Alex Jurgensen asquare...@gmail.comwrote: Hi, All, I was wondering if some developers would like to work on Android Accessibility. It is Open-Source and hosted on Google code. The URL is: http://slimvoice.googlecode.com/ . I don't see any source code

[android-developers] Re: Copyright question.

2009-06-01 Thread Marco Nelissen
On Mon, Jun 1, 2009 at 8:58 AM, alucard20004 alucard20...@gmail.com wrote: Hello. Is it ok if: 1. I took the source code of the built-in applications that come with the phone(like Alarm Clock, Dialler, etc.), extend it and publish as paid application. Well some of them will remain almost

[android-developers] Re: error: 'mSharedFd' was not declared in this scope

2009-06-01 Thread Marco Nelissen
On Sun, May 31, 2009 at 2:23 PM, Alan Cramer a...@cramer.id.au wrote: I am trying to build Android and keep hitting the same roadblock. I assume nobody else is getting this problem, otherwise this would appear to have been discussed. I am trying to build Android for my eeePC 900, and when

[android-developers] Re: How to know whether a table already exist in database?

2009-06-01 Thread Marco Nelissen
If you're just trying to avoid the error you'd get when creating a table that already exists, simply use create table if not exists See http://sqlite.org/lang_createtable.html On Sun, May 31, 2009 at 8:07 AM, Fion Z fion200...@gmail.com wrote: Hello, everyone Before I create a table,

[android-developers] Re: Finish all previous Activities?

2009-06-01 Thread Marco Nelissen
You could launch the main activity again with the 'clear top' flag, which has the effect of clearing all activities on top of it. On Sat, May 30, 2009 at 11:31 AM, guruk ilovesi...@gmail.com wrote: Hi, is it possible with one call to finish all previous Activities. (like: this.finish(all)

[android-developers] Re: Finish all previous Activities?

2009-06-01 Thread Marco Nelissen
On Mon, Jun 1, 2009 at 11:59 AM, guruk ilovesi...@gmail.com wrote: Hi Marco, that sounds interesting. how to set the clear top flag? right i call the main acticity again with: Intent mainIntent = new Intent(listdatabases.this, datepicker.class); add:

[android-developers] Re: Adapting the Music app's TouchInterceptor

2009-06-01 Thread Marco Nelissen
On Sat, May 30, 2009 at 12:48 PM, Ben Roberts divestocl...@gmail.comwrote: I'm trying to write an app which will present a list of items to the user that can be reordered, so I want to use the same code that's used in the Music app to reorder items in a playlist. This is controlled via

[android-developers] Re: Adapting the Music app's TouchInterceptor

2009-06-01 Thread Marco Nelissen
Also note the special list item layout you need (see edit_track_list_item in the music app). On Mon, Jun 1, 2009 at 5:53 PM, Ben Roberts divestocl...@gmail.com wrote: Never mind I figured it out. I had to override the builtin layout with my own layout which assigned a TouchInterceptor as the

[android-developers] Re: Problem with getChildCount method???

2009-06-01 Thread Marco Nelissen
On Mon, Jun 1, 2009 at 9:27 PM, dark_messiah ricky.dreamwea...@gmail.comwrote: I have problem...i m using a base adapter for binding a data from array to listviewthe listview has a checkbox with it...i wanted to create a menu to select all or deselect all view inside that list...but the

[android-developers] Re: Using a service already started

2009-06-02 Thread Marco Nelissen
I'm pretty sure you don't need anything that complicated. Just start your service and/or bind to it. There will only ever be one instance of your service. On Tue, Jun 2, 2009 at 9:39 AM, matinte miguel.ti...@gmail.com wrote: Sujay, that was exactly what I was looking for!!! Thanks ;-) On

[android-developers] Re: wait till layout is shown

2009-06-03 Thread Marco Nelissen
On Wed, Jun 3, 2009 at 5:00 AM, guruk ilovesi...@gmail.com wrote: Hi, i have a main activity that needs quit a lot to load so i thought about a trick: i call a intropage that shows a pic and from directly it calls by intent the long loading page. Finaly I thought I would see the pic and

[android-developers] Re: Not able to receive Android's Broadcast message .. !

2009-06-04 Thread Marco Nelissen
On Thu, Jun 4, 2009 at 3:44 AM, CodePupil murliv...@gmail.com wrote: Hi, I'm trying to receive Android's Broadcast message say MEDIA_SCANNER_FINISHED, but not able to do so. Here is my code snippet: public class MyBroadcastRec extends BroadcastReceiver { MyActivityClass receiver;

[android-developers] Re: How to send an intent from command line?

2009-06-04 Thread Marco Nelissen
I think you can just omit the '-D' option. On Thu, Jun 4, 2009 at 10:18 AM, Joe droidvi...@gmail.com wrote: Hi I am trying to test how my activity responds to an intent. I can write a test activity and send my intent. I am wondering if there is a command line tool to just send an intent.

[android-developers] Re: BlurMaskFilter not blurring entire bitmap

2009-06-04 Thread Marco Nelissen
On Thu, Jun 4, 2009 at 11:41 AM, Todd tdonahue...@gmail.com wrote: I've tried all the different blur styles to no avail. I guess the basic problem is the blur only blurs edges of a bitmap, and not the entire bitmap. Which would happen if you specified the SOLID blur style (you want NORMAL).

[android-developers] Re: Crash on Samsung HERO????

2009-06-04 Thread Marco Nelissen
On Thu, Jun 4, 2009 at 12:14 PM, guruk ilovesi...@gmail.com wrote: Hi, i got a strange message from a user: : he is talking about my application: I have been using v.7 on my new Samsung Hero device. When I updated to v.8 I get a force close every time I try and start it up. It is using

[android-developers] Re: Crash on Samsung HERO????

2009-06-04 Thread Marco Nelissen
On Thu, Jun 4, 2009 at 12:41 PM, guruk ilovesi...@gmail.com wrote: I wrote the user right now, he said it happens also with another app. So whats different in this ** hero No idea. I'm curious which phone this user actually has, since AFAIK the 'Samsung Hero' is a low-end non-android phone.

[android-developers] Re: Publishing Paid Apps on Android Market Can Cost You Money

2009-06-05 Thread Marco Nelissen
I have no knowledge of this specific case, but I think 'Streets of Boston' said it right: it's part of the cost of doing business. This is no different from having a physical store where you sell goods. You will eventually run in to disputed credit card charges, bounced checks, counterfeit money,

[android-developers] Re: Publishing Paid Apps on Android Market Can Cost You Money

2009-06-05 Thread Marco Nelissen
On Fri, Jun 5, 2009 at 8:04 AM, Disconnect dc.disconn...@gmail.com wrote: Generally you have a method of fighting back (or at least investigating). And a contact somewhere. If I go to a broker and say Good luck getting anyone to investigate the shoplifting of 50 cents worth of bubblegum. I

[android-developers] Re: Publishing Paid Apps on Android Market Can Cost You Money

2009-06-05 Thread Marco Nelissen
On Fri, Jun 5, 2009 at 11:43 AM, intbt in...@tacberry.com wrote: I don't entirely agree with Google needs to make a profit to handle these situations. They take 30% to handle e-commerce, advertise, Only part of that 30% is used to cover Google's cost, and the rest goes to the carrier. As I

[android-developers] Re: Publishing Paid Apps on Android Market Can Cost You Money

2009-06-05 Thread Marco Nelissen
On Fri, Jun 5, 2009 at 3:03 PM, Disconnect dc.disconn...@gmail.com wrote: If google does ANYTHING with zero expectation of profit, they are quite literally behaving illegally. They are a publicly traded company and as such every action needs to either break even or make a profit SOMEWHERE,

[android-developers] Re: Upgrading to 1.5

2009-06-06 Thread Marco Nelissen
On Sat, Jun 6, 2009 at 6:56 AM, radiolistener radioliste...@optonline.netwrote: Hi All, My phone was updated to 1.5 this week. I have been waiting to update my development environment, until the phone was upgraded. The ide started out smoothly, I even updated my new Colorthon program

[android-developers] Re: Upgrading to 1.5

2009-06-06 Thread Marco Nelissen
- REBC] Launch canceled! And it's more than the phone I updated to 1.5, this morning I updated my development environment. On Jun 6, 11:12 am, Marco Nelissen marc...@android.com wrote: On Sat, Jun 6, 2009 at 6:56 AM, radiolistener radioliste...@optonline.netwrote: Hi All, My phone

[android-developers] Re: How to deal with ExpandableList when all the data are coming from datebase?

2009-06-06 Thread Marco Nelissen
On Sat, Jun 6, 2009 at 8:45 AM, stonestrange stonestra...@gmail.com wrote: I want to the effective like ExpandableList1 Activity in apidemo.But my data is from the database.And th groups's data from the database and the children's data from the database too.All both are comg from different

[android-developers] Re: Using Intents

2009-06-07 Thread Marco Nelissen
On Sun, Jun 7, 2009 at 8:28 AM, Georgy georgearna...@gmail.com wrote: How can use intents in the following: I want to use the RADAR function in the package: com.google.android.radar.SHOW_RADAR I got that I need to input the following: Intent i = new

[android-developers] Re: Volume Button Broadcast?

2009-06-08 Thread Marco Nelissen
Don't you have some kind of UI to go along with that sound? It seems kind of strange to play a sound but not show the user why you're playing that sound. I would suggest bringing up a UI, and once you have a UI, you can look for key events. On Mon, Jun 8, 2009 at 9:41 AM, G ghack...@gmail.com

[android-developers] Re: How to play youtube urls in android?

2009-06-09 Thread Marco Nelissen
Videos sent to mobile devices use a different format than what's used for the desktop, so chances are you ran in to a video that hasn't been transcoded for the phone yet. On Tue, Jun 9, 2009 at 7:24 AM, Dilli dilliraomca...@gmail.com wrote: hi, I have written a small example which plays

[android-developers] Re: Cant catch onItemClick when use checkBox in ListView

2009-06-09 Thread Marco Nelissen
Search this group, this was discussed here very recently. On Tue, Jun 9, 2009 at 8:50 AM, Mike Lanin mike.la...@gmail.com wrote: Hi, guys! I want to use ListView each Item of wich has checkBox. I want checkBox check and uncheck when I click it and some processes runing when I click on item,

[android-developers] Re: How to draw a circle ?

2009-06-09 Thread Marco Nelissen
You're creating a new Ball and a new Canvas, but they're not attached to your UI in any way. On Tue, Jun 9, 2009 at 8:24 AM, patpat patrickzheng1...@hotmail.com wrote: I am new and here is my code.. when i ran it ...there was nothing...i expected there should be a circle appear.. can anyone

[android-developers] Re: Custom Title Not Filling Whole Title Bar (help please)

2009-06-09 Thread Marco Nelissen
Specify that your application has no title bar, and then make your custom title bar part of your content view. On Tue, Jun 9, 2009 at 9:20 AM, Rick rmanc...@mit.edu wrote: I'm setting up an app to use a custom title so I can get the proper logo into the title instead of just text, and to make

[android-developers] Re: Unhelpful SQLite3 error msg (SQL error: not an error). Can't modify database

2009-06-10 Thread Marco Nelissen
Directly modifying a system database on a rooted phone is kinda beyond the scope of this group. On Wed, Jun 10, 2009 at 10:29 AM, George bipi...@gmail.com wrote: I frequently encounter this message when I try to update a table (to enter a proxy) in the database using adb shell. $ adb shell

[android-developers] Re: npapi plugin failed to load in android webview

2009-06-10 Thread Marco Nelissen
This is the 4th or 5th time today that you've asked about this... On Wed, Jun 10, 2009 at 9:30 PM, MIND GAME lovekhanna04...@gmail.comwrote: i am trying to load a npapi plugin using android api - webview. code is webview.getSettings().setJavaScriptEnabled(true); webview

[android-developers] Re: LooperThread

2009-06-11 Thread Marco Nelissen
Send a message to it and have it call Looper.quit() in response. On Thu, Jun 11, 2009 at 6:02 PM, Brad Gies rbg...@gmail.com wrote: Can anyone tell me the proper way to terminate a LooperThread? Below is the code from the Developer site, but it seems all the methods for stopping it have

[android-developers] Re: Why did Google Groups not post my comments?

2009-06-12 Thread Marco Nelissen
On Thu, Jun 11, 2009 at 9:14 PM, Dennis specklesan...@gmail.com wrote: I posted a detailed comment about typos in Android documentation several hours ago.  My post is nowhere to be seen.  Why did Google Groups hose my post?  Maybe Google doesn't care that their Android documentation contains

[android-developers] Re: In need of a developer...

2009-06-12 Thread Marco Nelissen
On Fri, Jun 12, 2009 at 6:45 PM, Breezymbre...@gmail.com wrote: I'm looking to hire a developer for a small project. It involves searching and sending a request to my server which will return results in XML format.  The app will have to display the results.  Then based on that, the user

[android-developers] Re: How to get intent results?

2009-06-14 Thread Marco Nelissen
On Sun, Jun 14, 2009 at 10:08 AM, fabbxfab.creatix...@gmail.com wrote: i'm trying to allow user to select an picture to upload to my website but i don't understand how i can get the choice of the user i'm here :        public void uploadPhoto() {                

[android-developers] Re: A2DP bluetooth e riproduzione a scatti (music cut)

2009-06-14 Thread Marco Nelissen
On Sat, Jun 13, 2009 at 6:35 AM, azanuttaazanu...@gmail.com wrote:  an A2DP bug of managing the bluetooth by android! i've got the jabra bluetooth headset to listen  the music wirelessly but i've got the same problem, a mute jump of the song that in worste cases are one every 2 seconds!! it

[android-developers] Re: how to receive call and play media file

2009-06-15 Thread Marco Nelissen
The current platform and hardware do not support playing audio in to the phone conversation. The best you could do is play it through the speaker really loud, and hope the other side can hear it. On Sun, Jun 14, 2009 at 10:16 PM, Honest honestsucc...@gmail.com wrote: Hi, I want to develop

[android-developers] Re: Video Play error

2009-06-15 Thread Marco Nelissen
On Mon, Jun 15, 2009 at 4:55 AM, N V nithi...@gmail.com wrote: Hi to all I am trying to play videos with a format of H.264... But android emulator is not supported... Is there is any way to play the H.264 videos...? Like can we add a H.264 decoder to emulator? Does playback

[android-developers] Re: Video Streaming

2009-06-15 Thread Marco Nelissen
On Mon, Jun 15, 2009 at 5:01 AM, N V nithi...@gmail.com wrote: Hi to all... Can anyone tell me that which videos supported for streaming? I tried .mp4,.3gp videos. But none of the videos supported.? mp4 and 3gp are supported, with some constraints. What does your code look

[android-developers] Re: RelativeLayout breaks the paradigm of ViewGroup with onMeasure and onLayout

2009-06-15 Thread Marco Nelissen
On Mon, Jun 15, 2009 at 9:34 AM, Mattmatthew.quig...@gmail.com wrote: RelativeLayout does exactly what the documentation says it should be doing. The size and position is are assigned in onLayout(). No, they're not.  They are assigned in onMeasure(). Well, if you want to get technical, they

[android-developers] Re: BroadcastReceiver not able to receive events

2009-06-15 Thread Marco Nelissen
You need to add: filter.addDataScheme(file); On Mon, Jun 15, 2009 at 10:01 AM, jonathan topcod...@gmail.com wrote: I tried doing this dynamically in onCreate of my activity class. SDCardBroadcastReceiver myReceiver = new SDCardBroadcastReceiver(); IntentFilter filter = new

[android-developers] Re: Content Provider notifications?

2009-06-15 Thread Marco Nelissen
The notifications is for a specific URI, so you can choose to be notified when *any* contact changes (by using a URI like content://contacts/people), or specifically when the contact info for Starbuck is changed (by using a URI like content://contacts/people/1) On Mon, Jun 15, 2009 at 10:53 AM,

[android-developers] Re: RelativeLayout breaks the paradigm of ViewGroup with onMeasure and onLayout

2009-06-15 Thread Marco Nelissen
On Mon, Jun 15, 2009 at 1:34 PM, Matt matthew.quig...@gmail.com wrote: Apparently we're all reading different parts of the documentation. And if it actually doesn't go against the paradigm of layouts in Android, then all I'm saying is the documentation is not clear about it. No, they're

[android-developers] Re: Content Provider notifications?

2009-06-15 Thread Marco Nelissen
On Mon, Jun 15, 2009 at 3:00 PM, MannyNS mr.greenfi...@yahoo.com wrote: Only if you had Kara Trace in your address book already. But if you add it after you start monitoring, you need to query the whole database to see if Kara has been added or not to your address book. I had assumed the

[android-developers] Re: Video Streaming

2009-06-16 Thread Marco Nelissen
A little more code and a little more of the log would be helpful. You said you're having trouble streaming. Do they play back OK when played locally from sd card? Do they play OK on the phone instead of the emulator? On Mon, Jun 15, 2009 at 8:51 PM, Nithin Varamballi nithi...@gmail.comwrote:

[android-developers] Re: FakeDev

2009-06-16 Thread Marco Nelissen
The simulator (not to be confused with the emulator) is a way to run the android platform natively on x86 in a single process. Specifically, the wrapper stuff you're looking at intercepts calls from the android platform code and translates them, where possible, to calls to the underlying linux

[android-developers] Re: Unable to get members of playlist

2009-06-16 Thread Marco Nelissen
You're specifying a null projection, which doesn't work for playlist members. On Mon, Jun 15, 2009 at 9:07 PM, Ondra Zahradnik ondra.zahrad...@gmail.comwrote: Hello, I am trying to get members of music playlist by following query to content resolver on Android 1.5. Uri s =

[android-developers] Re: FakeDev

2009-06-16 Thread Marco Nelissen
On Tue, Jun 16, 2009 at 8:57 AM, Junior Oyebadejo joyebad...@gmail.comwrote: That makes sense, I should have noticed that. In that case I guess I should backtrack and ask a different question as I'm still at a dead end. So looking back at the 'writeline' function in

[android-developers] Re: How to query multiple number of a contact

2009-06-16 Thread Marco Nelissen
The code you posted doesn't query anything. It's retrieving a value from a specific row and column in a cursor. To make the other numbers be part of your cursor, specify that you want those numbers by including them in the projection you pass to the query() call. To retrieve them from the cursor,

[android-developers] Re: Native MediaPlayer plays audio but not video (3gp format)

2009-06-16 Thread Marco Nelissen
This group is about developing using the Android SDK, which is Java only. On Tue, Jun 16, 2009 at 9:01 AM, dglushko dglus...@gmail.com wrote: Hi, I have the following native source code that is supposed to display video. It plays 3gp file ok and I can hear the audio, but the video is not

[android-developers] Re: how get the possition of View in ListView, that called onCreateContextMenu?

2009-06-17 Thread Marco Nelissen
Did you look at the ContextMenuInfo parameter? On Wed, Jun 17, 2009 at 10:47 AM, Mike Lanin mike.la...@gmail.com wrote: I have a ListView and to create context menu I need to know what view created the menu. The View parameter of onCreateContextMenu is always the same and equals the first

[android-developers] Re: How can I give my paid app away for free to some users?

2009-06-17 Thread Marco Nelissen
Just email them an APK ? On Wed, Jun 17, 2009 at 3:17 AM, Anna PS annapowellsm...@googlemail.comwrote: Hi all So I'm about to put a paid app on the Market, but I'd like to give it free to a few users who helped to test it. Is there any way that I can give them a token or something else so

[android-developers] Re: How do I test an exported .apk file before shipping?

2009-06-17 Thread Marco Nelissen
On Wed, Jun 17, 2009 at 2:20 PM, pawpaw17 georgefraz...@yahoo.com wrote: Guys, I'm developing in eclipse. I use the Android tools export facility to export a signed .apk file for distribution. You can use 'adb install' to install that APK on your phone. I want to run this either on my G1

[android-developers] Re: Cover phone's screen not quit

2009-06-17 Thread Marco Nelissen
Wouldn't sending a message to the thief just prompt the thief to remove the battery and throw the phone in the garbage so that it can't be traced anymore? On Wed, Jun 17, 2009 at 2:36 PM, dapaintballer331 dapaintballer...@gmail.com wrote: Is there any way known to create an about style dialog

[android-developers] Re: MediaPlayer Prepare errors sometimes...

2009-06-18 Thread Marco Nelissen
Does this happen with a specific stream or server? On Wed, Jun 17, 2009 at 5:04 PM, Motomedicalsou...@gmail.com wrote: The following is the error seen sometimes when playing an mp3 from the internet... Could someone let me know if this is a known issue? Thanks! 06-17 20:02:42.776:

[android-developers] Re: Howto detect media actions

2009-06-18 Thread Marco Nelissen
You need to add the file:// scheme to your receiver's intent filter. On Thu, Jun 18, 2009 at 10:01 AM, JayBird jayje...@gmail.com wrote: Hi Folks, I'm trying to detect media events. As a test I created a simple broadcast receiver so that I can understand the media events. However, for

[android-developers] Re: ContentProviders and concurrency

2009-06-18 Thread Marco Nelissen
On Thu, Jun 18, 2009 at 1:24 PM, Daniel daniel.himmel...@googlemail.comwrote: I am currently writing an app that asynchronously populates a ListActivity. Therefore the query on my ContentProvider is done by a separate thread, not the UI thread. Furthermore the ContentProvider is synchronized

[android-developers] Re: Register to listen for outgoing calls

2009-06-18 Thread Marco Nelissen
http://developer.android.com/reference/android/content/Intent.html#ACTION_NEW_OUTGOING_CALL On Thu, Jun 18, 2009 at 4:45 PM, n179911n179...@gmail.com wrote: Hi, On android, is it possible to listen for all outgoing call events? i.e. my code get invoked when users make an out-going phone

[android-developers] Re: mediaplayer error -4

2009-06-19 Thread Marco Nelissen
Use setDataSource(FileDescriptor) instead of setDataSource(String path) On Fri, Jun 19, 2009 at 4:46 AM, l hx lihongxia8...@gmail.com wrote: a mp3 file which can be played well in sdcard. but when i copy it to another subarea in linux linked as /data/test. but i can not be played in that

[android-developers] Re: How delete Media record on db

2009-06-19 Thread Marco Nelissen
You can't delete all images at once, you'll have to delete them one by one. On Fri, Jun 19, 2009 at 5:43 AM, Francesco Pace paxa...@gmail.com wrote: Hi guys, I have a question. Sorry for my english. I have this code : Uri uri = Uri.parse(content://media/external/images/media);

[android-developers] Re: Difference between invalidate() and postInvalidate()

2009-06-19 Thread Marco Nelissen
On Fri, Jun 19, 2009 at 7:43 AM, Streets Of Boston flyingdutc...@gmail.comwrote: Really? *immediately*? I thought that invalidate() must be called on the UI thread. But invalidate() does not draw your view *immediately*, does it? I thought it will schedule a draw 'action' as soon as the

[android-developers] Re: Can an Activity find out where it started from?

2009-06-19 Thread Marco Nelissen
On Fri, Jun 19, 2009 at 8:50 AM, Mike Wolfson mwolf...@gmail.com wrote: This was a good question (as it is something I was looking for myself). One super basic question: How do I get a handle to the calling Intent in the called activity? getIntent()

[android-developers] Re: tried to throw some lights on the Media player

2009-06-20 Thread Marco Nelissen
Your analysis appears correct, however the article is really hard to read, because all of the indentation of the code is gone and you copy/pasted a lot of uninteresting/irrelevant stuff like LOG statements and the Binder/transact stuff. On Sat, Jun 20, 2009 at 3:13 AM, som

[android-developers] Re: Help: canvas.drawLine(p1.x, p1.y, p2.x, p2.y, paint);

2009-06-20 Thread Marco Nelissen
The problem is those last two lines:canvas = new Canvas(); canvas.drawLine(p1.x, p1.y, p2.x, p2.y, paint); That creates a new Canvas, then draws in to it. The problem with that is that the Canvas isn't attached to anything, so you're essentially drawing in to something that is not

[android-developers] Re: Number of threads in Render Process on MacOSX

2009-06-20 Thread Marco Nelissen
This has nothing to do with Android. On Sat, Jun 20, 2009 at 4:37 PM, n179911 n179...@gmail.com wrote: From this post http://blog.marcchung.com/2008/09/05/chromes-process-model-explained.html, it said Each Renderer process has two threads: one Render thread–which renders web pages, and one

[android-developers] Re: Help: canvas.drawLine(p1.x, p1.y, p2.x, p2.y, paint);

2009-06-21 Thread Marco Nelissen
dont understand it. I need to use the MapView and draw lines on it. How can i do this. Could you please show me in a simple way how i can do this? thank you On Jun 21, 4:55 am, Marco Nelissen marc...@android.com wrote: The problem is those last two lines:canvas = new Canvas

[android-developers] Re: sqlite: no such column name SQLITEexception

2009-06-21 Thread Marco Nelissen
As the error message says: you are trying to get a column called 'name', but there is no such column in your database. On Sun, Jun 21, 2009 at 6:07 PM, Logik yaros...@gmail.com wrote: I went through the notepad tutorial to help understand sqlite a bit better So now I am trying to utilize

[android-developers] Re: HTC Magic DPAD_CENTER is not working

2009-06-21 Thread Marco Nelissen
You didn't say what actually goes wrong. Are you not getting the DPAD_CENTER event at all, is it not repeating the same as on a G1, or something else? One thing that looks a little suspicious is that in onKeyDown when it receives DPAD_CENTER, you set 'inited' to false, which would then prevent you

[android-developers] Re: MediaController is not working properly with MediaPlayer

2009-06-22 Thread Marco Nelissen
Looks like a bug in MediaController when you're using it the way you are instead of using the show/hide mechanism. Can you use show/hide in your app instead? BTW, you really should remove those // TODO Auto-generated method stub once you've filled in the stub :) On Sun, Jun 21, 2009 at 11:37 PM,

[android-developers] Re: Reading a large url

2009-06-22 Thread Marco Nelissen
On Mon, Jun 22, 2009 at 5:09 AM, bsbi...@googlemail.com bsbi...@googlemail.com wrote: Hello, I am reading the following URL to test a RSS parser. http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/uk/rss.xm When using the same code on a Android HTC phone the whole resource cannot be

[android-developers] Re: how to receive call and play media file

2009-06-22 Thread Marco Nelissen
then how can i play audio file when call is running on ? hope some quick reply. On Jun 15, 8:08 pm, Marco Nelissen marc...@android.com wrote: The current platform and hardware do not support playing audio in to the phone conversation. The best you could do is play it through

[android-developers] Re: Who can help me porting tslib to Android?

2009-06-22 Thread Marco Nelissen
Sounds like you want the android-porting list, not this one. On Sun, Jun 21, 2009 at 10:04 PM, nion2002 guoruih...@gmail.com wrote: As the title said, I'm porting the tslib to Android, but there are many problems on it. First, the build/make system of android is different from tslib and

[android-developers] Re: android locked me out

2009-06-22 Thread Marco Nelissen
This is not really an appropriate question for this group, but I'm guessing you entered 'gmail.com' instead of 'googlemail.com' or vice versa. On Mon, Jun 22, 2009 at 7:50 AM, navarin navari...@googlemail.com wrote: i just got locked out by my g1. i shall enter my google login username and

[android-developers] Re: Where are files created in the simulator stored?

2009-06-22 Thread Marco Nelissen
On Mon, Jun 22, 2009 at 2:32 PM, junker37 junke...@gmail.com wrote: I'm wondering where files that are created while running in a simulator are stored. I'm running the 1.5 simulator on Windows Vista. Nitpick: you're running the emulator, not the simulator. The real reason I want to find

[android-developers] Re: SoundPool doesn't play sounds 100K in SDK 1.5

2009-06-23 Thread Marco Nelissen
On Tue, Jun 23, 2009 at 3:11 AM, Katsiaryna katsiaryna.nali...@ndrc.iewrote: Hello, I am trying to use SoundPool class from the new SDK. However, I discovered that if I load sounds that are 100K (120K and 350K) from resources I have problems playing them. The error messages that I get are

[android-developers] Re: how to close activity?

2009-06-23 Thread Marco Nelissen
To close 2 when going from 3 to 1, use the CLEAR_TOP flag in startActivity(). To kill the variables, just set them to null in the activity's onDestroy. 2009/6/23 tstanly tsai.sta...@gmail.com by the way, not only close the 2, but i want to kill the variables in the 2, thanks! On 6月23日,

[android-developers] Re: Eficient way to call an Activity

2009-06-23 Thread Marco Nelissen
On Tue, Jun 23, 2009 at 7:00 AM, RS.Giridaran rsgirida...@gmail.com wrote: Hi All, I am developing a android application with more than four activities. i am starting a activity using startActrivity() method wherever i need to go for other activity. i feel this degrade my application

[android-developers] Re: SensorListener and MediaPlayer (Audio)

2009-06-23 Thread Marco Nelissen
On Tue, Jun 23, 2009 at 6:56 AM, Donn Felkerdonnfel...@gmail.com wrote: I'm developing an application that responds to certain accelerometer events such as movements to the left or right when a certain delta is reached. When these deltas are fired I want to play a sound with the MediaPlayer.

[android-developers] Re: help me

2009-06-23 Thread Marco Nelissen
You can only get key events in a UI, and a service does not have a UI. On Tue, Jun 23, 2009 at 2:33 AM, Dorjoo B dorjnamjir...@gmail.com wrote: how to detect key event in android service ? please help --~--~-~--~~~---~--~~ You received this message because

[android-developers] Re: MemoryFile between processes

2009-06-23 Thread Marco Nelissen
On Mon, Jun 22, 2009 at 1:29 PM, Alec gorje...@gmail.com wrote: Hi, I've been able to send data via shared memory between threads within a process using MemoryFile. I then tried to send data between a service and an activity in different processes, but the data did not get passed. The

[android-developers] Re: SensorListener and MediaPlayer (Audio)

2009-06-23 Thread Marco Nelissen
on some headphones and heard the _start_ of the sound and then it got cut off. Would you advise firing this playback off in a service? Is there a recommended way of doing this? Thanks, Donn On Tue, Jun 23, 2009 at 2:01 PM, Marco Nelissen marc...@android.comwrote: On Tue, Jun 23, 2009

[android-developers] Re: Better Looper documentation, please ....

2009-06-23 Thread Marco Nelissen
On Tue, Jun 23, 2009 at 2:43 PM, Richard Schilling richard.rootwirel...@gmail.com wrote: Trying to get my head around the specific ins/outs of the Looper object and how it interacts with Threads. Documentation is rather scant on this topic. This is one of those topics that is obvious to

[android-developers] Re: how to avoid the showing of prev,next buttons of MediaController

2009-06-24 Thread Marco Nelissen
According to http://developer.android.com/reference/android/widget/MediaController.html, they will not be shown unless you call setPrevNextListener(). Have you tried not calling it? On Wed, Jun 24, 2009 at 6:16 AM, manoj manojkumar.m...@gmail.com wrote: Hi, I have implemented media player

[android-developers] Re: findviewbyid in service?

2009-06-24 Thread Marco Nelissen
Why do you need this? A service does not have a UI, so there should be no need to get a View. On Wed, Jun 24, 2009 at 1:19 AM, brilliant winger stw...@gmail.com wrote: HI! I develop an application. This don't use activity class. only use service class.. I need method(findviewbyid). but

[android-developers] Re: how to avoid the showing of prev,next buttons of MediaController

2009-06-24 Thread Marco Nelissen
...@gmail.com wrote: HI Macro, Thanks for your reply. I haven't called the setPrevNextListener(). I am sure. can you please try once and let me know whether it was shown or not. Thanks, Manoj. On Jun 24, 7:29 pm, Marco Nelissen marc...@android.com wrote: According tohttp

[android-developers] Re: Inserting Data into a Cursor?

2009-06-24 Thread Marco Nelissen
You can have your own CursorAdapter, and in its bindView do whatever calculations and data mapping you need. On Tue, Jun 23, 2009 at 7:19 PM, nbadal ladabk...@gmail.com wrote: Hello, I'm looking for a way to insert data into a cursor that is separate from the SQL database it retrieves the

[android-developers] Re: Is a five-way navigation key a mandatory requirement?

2009-06-24 Thread Marco Nelissen
On Tue, Jun 23, 2009 at 8:57 PM, JCjameschen...@gmail.com wrote: Dear sir, I learnt that there is a recommended minimum device requirements for Android device, however if I want to develop a device without five-way navigation key, is this allowed? Sure, why wouldn't it be? You don't need

[android-developers] Re: Example code of listview/arrayadapter with rows containing multiple text views?

2009-06-24 Thread Marco Nelissen
Just map that textview to a different column in your result set. On Wed, Jun 24, 2009 at 12:52 PM, Rick rmanc...@mit.edu wrote: I am also looking to do something with an image on the left and two textviews arranged as below: + | +---+ TextView1

[android-developers] Re: Better Looper documentation, please ....

2009-06-24 Thread Marco Nelissen
On Wed, Jun 24, 2009 at 1:44 PM, Richard Schilling richard.rootwirel...@gmail.com wrote: (...) How does Looper know what handler class to send messages to? And, where does it get its messages from in the first place? When I have a The message usually comes from Handler.obtainMessage(), and

[android-developers] Re: Example code of listview/arrayadapter with rows containing multiple text views?

2009-06-24 Thread Marco Nelissen
If you use a Cursor instead of an ArrayList (you could copy ArrayListCursor in to your application to wrap your current ArrayList), then you could use SimpleCursorAdapter, which allows you map each column to its own view. On Wed, Jun 24, 2009 at 1:58 PM, Rick rmanc...@mit.edu wrote: Thanks

[android-developers] Re: Scaling an image

2009-06-24 Thread Marco Nelissen
On Wed, Jun 24, 2009 at 2:37 PM, Gavin Aiken gavin.ai...@imperial.ac.ukwrote: Hey all! This has been frustrating me for a while, all I want is to scale an image to dimensions that I define whilst keeping an aspect ratio. So for example, image comes in at 500 * 500, I want to scale to 320 *

<    1   2   3   4   5   6   7   >