[android-developers] Re: error message with MediaPlayer

2009-07-05 Thread Marco Nelissen
mms streaming is not supported, only http and rtsp On Sun, Jul 5, 2009 at 7:38 PM, tstanly wrote: > > hi all, > > > I try to recived rtsp or mms audio stream for a long time, > simply use the code to recive audio stream: > > myPlayer1.setDataSource("mms://"); > myPlayer1.prepare(); > myPlaye

[android-developers] Re: How do i compile platform/packages/apps applications ?

2009-07-03 Thread Marco Nelissen
You could copy ArrayListCursor in to the application. On Thu, Jul 2, 2009 at 1:08 AM, Erik Ellis wrote: > > Hello, > I'm interested in extending some of the basic applications that comes > with Android. In my case platform/packages/apps/music.git. > > I first tried doing it with just the SDK wit

[android-developers] Re: adding support for new containers/protocols to mediaplayer ?

2009-07-03 Thread Marco Nelissen
On Fri, Jul 3, 2009 at 7:54 AM, sbw.android wrote: > > hi, > is it possible, using sdk or ndk, to add support for new multimedia > containers (avi, mpeg, ...) or for new transport protocols to the > mediaplayer? No. --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: SimpleCursorTreeAdapter bug

2009-07-02 Thread Marco Nelissen
On Thu, Jul 2, 2009 at 3:28 AM, LD wrote: > > Hello, > > I have tried to use SimpleCursorTreeAdapter class. > > So, I have created my own that extends SimpleCursorTreeAdapter, like > below: > > public MyListAdapter(MyModel model, Cursor cursor, Context context, > int groupLayout, >            int

[android-developers] Re: How to prevent app to be removed/uninsalled

2009-07-02 Thread Marco Nelissen
On Thu, Jul 2, 2009 at 7:00 AM, Jon wrote: > We plan to build our own firmware and have the app pre-installed. > > Then how to make this app unremovable/uninstallable?  Is that > possible? Just put it in the system partition. --~--~-~--~~~---~--~~ You received thi

[android-developers] Re: play audio from resource during call

2009-07-02 Thread Marco Nelissen
Generally when you don't receive an answer to a question, it means that nobody knows the answer. Posting a followup to complain about not getting an answer is not going to change that. On Thu, Jul 2, 2009 at 3:20 AM, Honest wrote: > > Yet no reply. So ridiculous. I do not know why i am not gett

[android-developers] Re: Supported Media Formats

2009-07-02 Thread Marco Nelissen
On Thu, Jul 2, 2009 at 1:28 AM, stephen.lloyd.h...@googlemail.com wrote: > > Hi, > > I've been using MediaPlayer for playing some sounds and I've found no > way to get hold of a list of supported mime types at runtime. I was > hoping for something along the lines of MIDP's > javax.microedition.med

[android-developers] Re: Internet Access on ANDROID

2009-07-02 Thread Marco Nelissen
You probably want the android-porting group, not this one. On Thu, Jul 2, 2009 at 7:26 AM, Vinay R Rao wrote: > > Hi all, > I am working on SMDK2440 board. Android is up and running on the > target platform. > I am not able to connect to the internet through ANDROID. > i have copied the required

[android-developers] Re: Set Ringtone

2009-07-01 Thread Marco Nelissen
On Mon, Jun 1, 2009 at 11:13 PM, Nirav wrote: > > How to set ringtone by using filename inplace of using its ID number. > I don't want to use. > Uri newUri=Uri.parse("content://media/external/audio/media/"+ > (String.valueOf(position+1))); > Settings.System.putString(this.getContentResolver(),

[android-developers] Re: MASTER RESET INTENT

2009-06-30 Thread Marco Nelissen
On Tue, Jun 30, 2009 at 4:56 AM, Manjunatha M wrote: > Hi, > > Can I know if there is a MASTER RESET INTENT on which i can listen to with a > broadcast receiver, and make my app settings to default?? What do you mean by "master reset"? A 'factory reset' will wipe all data, including your entire a

[android-developers] Re: Getting Cursor Out Of Bounds Exception

2009-06-30 Thread Marco Nelissen
The thing that is out of range is not the column index, but the row within the Cursor. When you receive a Cursor from query(), it is positioned *before* the first row, at position -1 so to speak. You need to call Cursor.moveToFirst or Cursor.moveToNext to position it on the first valid item. Conve

[android-developers] Re: MediaPlayer sluggish to play sounds

2009-06-29 Thread Marco Nelissen
On Sat, Jun 27, 2009 at 1:08 PM, Baratong wrote: > > > I've found the audio subsystem is a little quirky. It's great if you > are playing songs, or video but if you are writing a game that plays > short sounds quickly it poses problems. After much work I found a > pretty cool solution to one of th

[android-developers] Re: Unable to remove the prev,next buttons of MediaController, please help me

2009-06-29 Thread Marco Nelissen
On Mon, Jun 29, 2009 at 1:53 AM, manoj wrote: > > Actually I added        android.widget.MediaController to layout. > > You also can try the above same code, add MediaController to > sdcard_media_view.xml (R.layout.sdcard_media_view). It's not possible for us to try out your code, since you didn'

[android-developers] Re: Strange activity stack issue

2009-06-26 Thread Marco Nelissen
- this is not the right list for asking about flash - don't hijack threads - you've said this several times before. Repeating it over and over won't make it happen any faster On Fri, Jun 26, 2009 at 12:05 PM, joseph lafemina wrote: > We need a flash player for the g1 and the mytouch please > > A

[android-developers] Re: Security Exception

2009-06-26 Thread Marco Nelissen
On Thu, Jun 25, 2009 at 6:36 PM, Rab73 wrote: > > Just wondering if anyone can help > > Just wondering if anyone can help on the security exception I am > getting. It might help if you also included the code that is triggering this. --~--~-~--~~~---~--~~ You recei

[android-developers] Re: How To Keep ListView Header From Scrolling With ListView Content

2009-06-25 Thread Marco Nelissen
On Thu, Jun 25, 2009 at 8:46 AM, Mike wrote: > > Thanks guys. This does work provided the ListView and the header View > are within the same parent ViewGroup. Can you give an example of when they would not be? > I would, however, like to request that the ListView be enhanced with > two new me

[android-developers] Re: Got media player error in sdk 1.5 r2

2009-06-25 Thread Marco Nelissen
On Thu, Jun 25, 2009 at 8:27 AM, manoj wrote: > > String[] videoProjection = new String[] { >                        android.provider.MediaStore.Video.Media._ID, >                        android.provider.MediaStore.Video.Media.TITLE, >                        android.provider.MediaStore.Video.Media

[android-developers] Re: Got media player error in sdk 1.5 r2

2009-06-25 Thread Marco Nelissen
How? On Thu, Jun 25, 2009 at 8:20 AM, manoj wrote: > > Actually, I got those uri's using ContentResolver. > > On Jun 25, 8:10 pm, Marco Nelissen wrote: > > On Thu, Jun 25, 2009 at 4:42 AM, manoj > wrote: > > > > > Hi friends, > > > > > I

[android-developers] Re: android crash when volume up

2009-06-25 Thread Marco Nelissen
Does this happen every time, or only after/while running a certain application? On Thu, Jun 25, 2009 at 6:56 AM, l hx wrote: > who know why? > > D/VolumePanel( 652): onVolumeChanged(streamType: 2, flags: 4) > E/AudioFlinger( 635): no more track names availlable > E/AudioTrack( 652): AudioFli

[android-developers] Re: Got media player error in sdk 1.5 r2

2009-06-25 Thread Marco Nelissen
On Thu, Jun 25, 2009 at 4:42 AM, manoj wrote: > > Hi friends, > > I have written a small media player app which plays media files stored > in sdcard. > > For audio files I got the following exception: > > E/MediaPlayerService( 35): Couldn't open fd for > content://media/KeypressReturn.ogg/audio

[android-developers] Re: How to get the media files stored in sdcard?

2009-06-25 Thread Marco Nelissen
Query the media content provider. On Thu, Jun 25, 2009 at 2:04 AM, manoj wrote: > > Hi, > > I want to show the list of media files (.mp3, .mp4...etc) available in > sdcard. > > How can I do this? > > Thanks, > Manoj. > > > --~--~-~--~~~---~--~~ You received this

[android-developers] Re: how to stop sound notification/let it only play once?

2009-06-24 Thread Marco Nelissen
What Uri are you using for the notification sound? Sounds like the sound it points to is a looping sound. On Wed, Jun 24, 2009 at 6:39 PM, polzifer wrote: > > Since i don't want to have double entries, but would like a fast > spreading, here's my post: > > > > http://groups.google.com/group/andr

[android-developers] Re: How To Keep ListView Header From Scrolling With ListView Content

2009-06-24 Thread Marco Nelissen
The documentation is a bit misleading. A view that you add with addHeaderView moves with the list, it's not fixed in place as the documentation implies. To add a static header, just take the view that you added with addHeaderItem, and place it above the ListView in your layout. On Wed, Jun 24, 20

[android-developers] Re: Scaling an image

2009-06-24 Thread Marco Nelissen
On Wed, Jun 24, 2009 at 2:37 PM, Gavin Aiken wrote: > 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 * 480 so I need 320 * > 3

[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 wrote: > > Thanks for that example

[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(), a

[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 wrote: > > I am also looking to do something with an image on the left and two > textviews arranged as below: > > + > | +---+ TextView1 > | | Image

[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, JC 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 anyone's permiss

[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 wrote: > > Hello, I'm looking for a way to insert data into a cursor that is > separate from the SQL database it retrieves the rest of the > infor

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

2009-06-24 Thread Marco Nelissen
> > > > 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

[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 wrote: > > HI! > > > I develop an application. > This don't use activity class. > only use service class.. > > I need method(findviewbyid). but service

[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 wrote: > > Hi, > > I have implemented media player with MediaController. >

[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

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

2009-06-23 Thread Marco Nelissen
eadphones 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 wrote: > >&

[android-developers] Re: MemoryFile between processes

2009-06-23 Thread Marco Nelissen
On Mon, Jun 22, 2009 at 1:29 PM, Alec 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 name for each

[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 wrote: > > how to detect key event in android service ? please help > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribe

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

2009-06-23 Thread Marco Nelissen
On Tue, Jun 23, 2009 at 6:56 AM, Donn Felker 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. > > I'm using t

[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 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 > performance.. You

[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 > > by the way, > not only close the 2, > but i want to kill the variables in the 2, > > thanks! > > On 6月23日, 下午5時25分, tst

[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 wrote: > > 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 as follows: > > 06-

[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 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 the files is beca

[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 wrote: > > i just got locked out by my g1. i shall enter my google login username > and password, but they are

[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 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 others software su

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

2009-06-22 Thread Marco Nelissen
how can i play audio file when > > call is running on ? > > > > hope some quick reply. > > > > On Jun 15, 8:08 pm, Marco Nelissen wrote: > > > > > The current platform and hardware do not support playing audio in to > the > > > phone co

[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 > can

[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: 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: 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 wrote: > > I went through the notepad tutorial to help understand sqlite a bit > better > So now I am trying to utilize what has allready

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

2009-06-21 Thread Marco Nelissen
the links you > supplied. But I 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 wrote: > > The problem is those last two l

[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 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 IPC thread–

[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 visibl

[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 wrote: > > As i was go

[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 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: Difference between invalidate() and postInvalidate()

2009-06-19 Thread Marco Nelissen
On Fri, Jun 19, 2009 at 7:43 AM, Streets Of Boston wrote: > > 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 UI-message thread get

[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 wrote: > Hi guys, > I have a question. Sorry for my english. > I have this code : > > Uri uri = Uri.parse("content://media/external/images/media"); > ContentResolver resol

[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 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 directory > > > > --~--

[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, n179911 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 call? > One possibl

[android-developers] Re: ContentProviders and concurrency

2009-06-18 Thread Marco Nelissen
On Thu, Jun 18, 2009 at 1:24 PM, Daniel wrote: > > 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 by a service in the backgr

[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 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 some reason I'm

[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, Moto 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: INFO/DEBUG(25079):

[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 d

[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 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 or the emulator w

[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 wrote: > > 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 > that they can get it

[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 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 view in ListView. I

[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 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 > shown. > > Co

[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, j

[android-developers] Re: FakeDev

2009-06-16 Thread Marco Nelissen
On Tue, Jun 16, 2009 at 8:57 AM, Junior Oyebadejo wrote: > > 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 /device/system/reference-ril/atchannel.c

[android-developers] Re: why i cant connect to the internet,i have added the permission.

2009-06-16 Thread Marco Nelissen
what does it say in the log? On Tue, Jun 16, 2009 at 1:57 AM, hencechen...@gmail.com < hencechen...@gmail.com> wrote: > > here is my code: > it always interrupt at conn.connect(); >try { >url+=input.getText().toString(); > myFileUrl = new URL(url); >

[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 wrote: > > Hello, > > I am trying to get members of music playlist by following query to > content resolver on Android 1.5. > > Uri s = Uri.withAppendedPath(ContentUris.w

[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 syst

[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 wrote: > > Thanks for reply

[android-developers] Re: Content Provider notifications?

2009-06-15 Thread Marco Nelissen
On Mon, Jun 15, 2009 at 3:00 PM, MannyNS 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 person you are intere

[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 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 not. They are ass

[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: 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 wrote: > > I tried doing this dynamically in onCreate of my activity class. > SDCardBroadcastReceiver myReceiver = new SDCardBroadcastReceiver(); >IntentFilter filter = new IntentFilter > (Intent.A

[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, Matt 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 are calculated in

[android-developers] Re: Video Streaming

2009-06-15 Thread Marco Nelissen
On Mon, Jun 15, 2009 at 5:01 AM, N V 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 like, and what

[android-developers] Re: Video Play error

2009-06-15 Thread Marco Nelissen
On Mon, Jun 15, 2009 at 4:55 AM, N V 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 work on a ph

[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 wrote: > > Hi, > > I want to develop application in which

[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, azanutta 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 maybe depend

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

2009-06-14 Thread Marco Nelissen
On Sun, Jun 14, 2009 at 10:08 AM, fabbx 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() { >                setContentView(R.layout.index); >          

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

2009-06-12 Thread Marco Nelissen
On Fri, Jun 12, 2009 at 6:45 PM, Breezy 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 will click on o

[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 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 typos. Your post

[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 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 been deprecat

[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 wrote: > > i am trying to load a npapi plugin using android api - webview. > code is >webview.getSettings().setJavaScriptEnabled(true); >webview .getSettings().setPluginsEn

[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 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 > #sqlite3 /

[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 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 it clean (sin

[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 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 tell me why?? > > > pack

[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 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, but not on the c

[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 wrote: > > hi, > > I have written a small example which plays youtube videos. > > the

[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 wrote: > > I've got

[android-developers] Re: Using Intents

2009-06-07 Thread Marco Nelissen
On Sun, Jun 7, 2009 at 8:28 AM, Georgy 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 Intent("com.google.android.radar.SHOW_RADAR"); >

[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 wrote: > > I want to the effective like ExpandableList1 Activity in apidemo.But > my data is from the database.And th groups's data from the database > and the children's data from the database too.All both are comg from > different tables. Not a pro

[android-developers] Re: Upgrading to 1.5

2009-06-06 Thread Marco Nelissen
all > REBC.exercise' in a shell. > [2009-06-06 15:13:33 - REBC] Launch canceled! > > And it's more than the phone I updated to 1.5, this morning I updated > my development environment. > > On Jun 6, 11:12 am, Marco Nelissen wrote: > > On Sat, Jun 6, 2009 at 6:56

[android-developers] Re: Upgrading to 1.5

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

[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 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, directly or otherwise

[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 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 said, Google does

[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 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 couldn't even get anyo

[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, s

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

2009-06-04 Thread Marco Nelissen
On Thu, Jun 4, 2009 at 12:41 PM, guruk 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. anyhow.. i change

<    1   2   3   4   5   6   7   >