[android-developers] Re: Any word on a dev phone for motorola droid?

2009-10-24 Thread Marco Nelissen
On Sat, Oct 24, 2009 at 5:24 PM, sherifffruitfly sherifffruit...@gmail.com wrote: Uh... I didn't *assume* anything. I asked. There's a new android phone coming out with a new android os. I thought it therefore made sense to wonder if there was a dev version of it to be made available,

[android-developers] Re: Handler behaving strangely after orientation change

2009-10-25 Thread Marco Nelissen
Your activity and all its views get recreated during the orientation switch. Your handler is still trying to modify the old activity and view. It also sounds like you're creating a new handler without stopping the old one first, hence you end up with two of them running, and therefore you get

[android-developers] Re: [Help] - Play video in Android Media Player from given URL

2009-10-25 Thread Marco Nelissen
On Sat, Oct 24, 2009 at 12:25 PM, skcratch skcra...@gmail.com wrote: Hi there! Can anyone please tell me if Android Media Player is able to play a video that is placed in a remote server, in a supported format? If by Android Media Player you mean the MediaPlayer class, then obviously, yes.

[android-developers] Re: Why a single String.format reduce the FPS from 35 to 25 ?

2009-10-25 Thread Marco Nelissen
You don't want to use String.format() if performance is an issue. String.format() internally creates a new Formatter every time, which in turn pulls in all kinds of localization stuff. Instead, create a Formatter yourself (once), and then reuse it for all your string formatting needs. On Sun,

[android-developers] Re: Mediaplayer error PVMFErrCorrupt

2009-10-26 Thread Marco Nelissen
On Mon, Oct 26, 2009 at 3:15 AM, OnlineRadioSDK aor.leada...@gmail.com wrote: Hi, we have developed android mmsradio channel player. It works on android sdk1.5r2  ( Emulator / device ) well. but when we recompiled the same to Sdk1.6r1. It fails. Does it work if you use the 1.5 binary on a

[android-developers] Re: modifying init.rc file

2009-10-26 Thread Marco Nelissen
Questions about modifying the system are best asked in the android platform group. On Mon, Oct 26, 2009 at 2:51 AM, RohitAil rohit@gmail.com wrote: Hello All, I modified the init.rc file to import a new configuration file by adding the following lines in the init.rc file import

[android-developers] Re: Android 2.0

2009-10-26 Thread Marco Nelissen
On Mon, Oct 26, 2009 at 4:29 PM, Frank arro...@gmail.com wrote: Why is the SDK for all android releases always so late on arrival? Developers usually have barely 1-2 weeks to prepare before the release is dropped into consumer's hands.  With Android 2.0 coming out soon on the Droid, set to

[android-developers] Re: Android 2.0

2009-10-27 Thread Marco Nelissen
On Tue, Oct 27, 2009 at 2:14 AM, MrChaz mrchazmob...@googlemail.com wrote: Yeah it would but given it's their job to support the community and the community is demanding more maybe they should start to look at their practices. It's not my job to support the community, but since I'm obviously

[android-developers] Re: MediaScannerConnectionClient which content provider?

2009-07-29 Thread Marco Nelissen
On Wed, Jul 29, 2009 at 8:26 AM, Sonja_android pubmoonm...@gmail.comwrote: I am using the MediaScannerConnection and corresponding MediaScannerConnectionClient to scan and add an audio file to the MediaStore content provider. How do I know which database the file will be added to? Will it

[android-developers] Re: Multi-touch

2009-07-29 Thread Marco Nelissen
This was discussed a few days ago. Search the archive. On Wed, Jul 29, 2009 at 4:33 AM, Anastasiya anastasiya.drem...@gmail.comwrote: Hi. Does Donut really support multi-touch? If yes, where I can find this support in code? Thanks.

[android-developers] Re: save file to sdcard directory

2009-07-29 Thread Marco Nelissen
Sounds like you don't actually have an sd card. On Tue, Jul 28, 2009 at 7:24 AM, Alan Huang alan.hu...@azukisystems.comwrote: When I saved a file or open a dir under sdcard dir, it always complains: “Parent directory of file is not writable: /sdcard/myfile, java.io.IOException: Parent

[android-developers] Re: Maximum Number of Connections

2009-07-29 Thread Marco Nelissen
What is a segfault type thing? Are you seeing crashes in native code? On Wed, Jul 29, 2009 at 10:10 AM, Rich miser...@gmail.com wrote: Hello! I've written an application which involves a lot of simultaneous connections to different servers. I've noticed some big stability issues with this

[android-developers] Re: password mode

2009-07-30 Thread Marco Nelissen
Please don't hijack threads with unrelated questions. On Wed, Jul 29, 2009 at 11:16 PM, Dato bera ber...@gmail.com wrote: helo, in Java Se its tell me that files.length is 16 but when i run it in the android plathform tell me that there is 0 FTPClient f = new FTPClient();

[android-developers] Re: Is there any UI can connect to SQLite database?

2009-07-31 Thread Marco Nelissen
You could copy the database from the phone to your desktop machine, and then use one of the many windows, mac or linux gui apps to work with sqlite databases. On Fri, Jul 31, 2009 at 9:01 AM, chandlersong chandler...@gmail.com wrote: Is there any UI can connect to SQLite database?

[android-developers] Re: China to have there own Android Market?

2009-07-31 Thread Marco Nelissen
On Fri, Jul 31, 2009 at 1:04 AM, CraigsRace craig...@gmail.com wrote: I have been contacted by a Chinese company (NetDragon Websoft Inc - http://ir.netdragon.us). They tell me that the Chinese will not have access to Googles Android Market, they will only have access to a separate Chinese

[android-developers] Re: China to have there own Android Market?

2009-07-31 Thread Marco Nelissen
I know nothing about Ophone, but having your app work on 1.0 seems like a small price to pay for entry in to such a potentially huge market. On Fri, Jul 31, 2009 at 5:49 AM, Fred Grott(shareme) fred.gr...@gmail.comwrote: Do not fall for that.. OpHone Sdk is Android 1.0 you have to port it

[android-developers] Re: A way to get all apps and their activities?

2009-07-31 Thread Marco Nelissen
The package manager has APIs to do this. On Fri, Jul 31, 2009 at 8:52 AM, EboMike ebom...@gmail.com wrote: Is there a way to get a list of all apps and their activities and intent filters? Basically, I'd like to know what another app is listening to so I can provide an Intent that matches.

[android-developers] Re: Why is it Giving Out Put Twice

2009-08-05 Thread Marco Nelissen
Looks to me like every time you run your app, you insert two more rows in to the database, so the first it will have 2 rows, then 4, 6, 8, etc. On Wed, Aug 5, 2009 at 1:12 PM, saptarshi chatterjee saptarshichatterj...@gmail.com wrote: package com.outp.inp; import android.app.Activity;

[android-developers] Re: how to stop service?

2009-08-06 Thread Marco Nelissen
What do you mean by the service is still running in the background? What is the return value of your call to stopService() ? How are you determining that it is still running afterwards? On Thu, Aug 6, 2009 at 5:30 AM, Archana archana.14n...@gmail.com wrote: Hi , How can we stop Service.I

[android-developers] Re: /dev/mem open from opencore

2009-08-06 Thread Marco Nelissen
Sounds like a permissions problem. Also, android-developers is the wrong group for questions like this. On Thu, Aug 6, 2009 at 1:33 AM, scs scs...@gmail.com wrote: we are able to open the /dev but /dev/mem is failing. /dev/mem is created using mknod... Is there any probable with the

[android-developers] Re: Why is it Giving Out Put Twice

2009-08-06 Thread Marco Nelissen
had been 1 12c/2,Dum Dum Park,Howrah,India,Kolkata 2 227,Bangur,Khidirpur,India,Kolkata 3 12c/2,Dum Dum Park,Howrah,India,Kolkata 4 227,Bangur,Khidirpur,India,Kolkata * * On Thu, Aug 6, 2009 at 2:05 AM, Marco Nelissen marc...@android.comwrote: Looks to me like every time you run your app

[android-developers] Re: mediaPlayer.setDataSource(fd) cause IOException: Prepare failed.: status=0x1

2009-08-06 Thread Marco Nelissen
On Thu, Aug 6, 2009 at 6:31 AM, JAG jag.deco...@gmail.com wrote: What is the preferred way of reusing a MediaPlayer when using resources? My try looks a bit ... too complicated... so maybe I should be happy to see that it didn't work. (I run the Android 1.5 SDK and emulator.) According to

[android-developers] Re: How to use telnet

2009-08-06 Thread Marco Nelissen
You just open a socket connection to the telnet port on the remote host, and then read/write the socket. This is standard network stuff, nothing android specific about it. On Thu, Aug 6, 2009 at 1:15 PM, fhucho fhu...@gmail.com wrote: Hi, I want my app to connect to a server via telnet, send

[android-developers] Re: Capture key pressed

2009-08-06 Thread Marco Nelissen
The end call key is not delivered to applications. On Thu, Aug 6, 2009 at 1:37 PM, Michelle Cristina de Melo Silva m...@cin.ufpe.br wrote: Hi, i want to capture when user press the EndCall key in simulator, but i think i'm doing something wrong cause nothing happens! My

[android-developers] Re: how to stop service?

2009-08-07 Thread Marco Nelissen
. On Aug 6, 8:06 pm, Marco Nelissen marc...@android.com wrote: What do you mean by the service is still running in the background? What is the return value of your call to stopService() ? How are you determining that it is still running afterwards? On Thu, Aug 6, 2009 at 5:30 AM, Archana

[android-developers] Re: Play audio over an active phone call, so other end can hear it

2009-08-07 Thread Marco Nelissen
The hardware doesn't support it. The closest you can get is by playing it over the speaker at full volume, so the microphone will pick it up. On Fri, Aug 7, 2009 at 9:26 AM, jsdfjasons...@gmail.com wrote: Hi everyone, Is it possible to play audio over an active phone call, so the other end

[android-developers] Re: KEYCODE_HOME

2009-08-07 Thread Marco Nelissen
The home key is not delivered to applications. On Fri, Aug 7, 2009 at 7:25 PM, eagseagsala...@gmail.com wrote: I have implemented onKeyDown and can successfully intercept KEYCODE_BACK and many others to prohibit the default behavior.  Is this not possible with KEYCODE_HOME?  I have a test

[android-developers] Re: Close Application

2009-08-10 Thread Marco Nelissen
System.exit() is definitely not the same as Activity.finish() On Mon, Aug 10, 2009 at 3:45 AM, Blackmarketpascal.se...@gmail.com wrote: Doesn't work. It just closes the active Activity and changes to the last Activity. Actually it has the same effect like finish() Regards, Pascal On 10

[android-developers] Re: MediaPlayer bug, pls help!

2009-08-10 Thread Marco Nelissen
On Mon, Aug 10, 2009 at 5:48 AM, Illidaneillid...@gmail.com wrote: Hello! I have such code:        public static MediaPlayer mp_click;        mp_click = MediaPlayer.create(Context, R.raw.click);            ...            mp_click.start(); When my sound played for the first time, it's

[android-developers] Re: Back Navigation to defined Activity

2009-08-10 Thread Marco Nelissen
On Mon, Aug 10, 2009 at 7:50 AM, Aracoskai.hen...@googlemail.com wrote: HI @all, I would like to have a Menu – Button, called Home,  that goes back to my root activity and removes all activities from the stack. Therefore, if I press the back button afterwords, the application would close.

[android-developers] Re: How to realize AudioTrack Class in SDK 1.1?

2009-08-10 Thread Marco Nelissen
On Sun, Aug 9, 2009 at 10:45 PM, xianbing shenacfriend...@gmail.com wrote: There is a AudioTrack Class in SDK 1.5 which can play PCM buffer directly.But it is not exist in SDK 1.1. I want to play PCM buffer in SDK1.1,but i don't know how. You can't. You'll have to write your app for 1.5 or

[android-developers] Re: Publishing Applications on the Android Market: Tax implications

2009-08-10 Thread Marco Nelissen
You should probably consult a tax attorney or accountant with questions like this. On Mon, Aug 10, 2009 at 9:31 AM, Androidmateandroidm...@gmail.com wrote: I'm a developer in the UK who wants to publish (and charge for) some applications to the Android Market. I don't have my own company,

[android-developers] Re: MediaPlayer bug, pls help!

2009-08-11 Thread Marco Nelissen
) before start() nothing changes.. Thanks for the SoundPool, I'll try it. On 10 авг, 17:31, Marco Nelissen marc...@android.com wrote: On Mon, Aug 10, 2009 at 5:48 AM, Illidaneillid...@gmail.com wrote: Hello! I have such code:        public static MediaPlayer mp_click

[android-developers] Re: hide application

2009-08-13 Thread Marco Nelissen
On Wed, Aug 12, 2009 at 11:29 PM, Honesthonestsucc...@gmail.com wrote: I want to start my application  when phone start and after that i do not want that user can know that my application is running. Is there any way i can do it ? In phone when we press home screen for some times it display

[android-developers] Re: Maximum Number of Connections

2009-08-13 Thread Marco Nelissen
It would help if you attached an APK or source code that demonstrates the problem. On Thu, Aug 13, 2009 at 9:48 AM, Richmiser...@gmail.com wrote: Well, I've filed the bug report:

[android-developers] Re: curious

2009-08-13 Thread Marco Nelissen
On Thu, Aug 13, 2009 at 11:00 AM, Andreigml...@gmail.com wrote: web is WebView Interestingly, if i put info = null it causes NullPointerException I don't think this should happen header = header; footer = footer; info = info; web.loadData( header+info+footer, text/html, utf-8 ); info =

[android-developers] Re: Controling a Video in a view

2009-08-13 Thread Marco Nelissen
On Thu, Aug 13, 2009 at 1:41 PM, mjosellimejose...@gmail.com wrote: Hello All, I am trying to create a video player using a custom interface (with a lot of images). I am moving from J2ME to android apps. In J2ME I just create a canvas and set the video to draw to the canvas... but now

[android-developers] Re: Listview with different rows (layouts)

2009-08-13 Thread Marco Nelissen
On Thu, Aug 13, 2009 at 3:00 PM, Wouterwouterg...@gmail.com wrote: Hey, I want to make a listview that has different rows (layouts). I will load the data from a webservice and it can be 2 or more layouts i have to generate then. I am creating a social network app and want to show a stream

[android-developers] Re: launching m3u playlist with intent

2009-08-16 Thread Marco Nelissen
On Sun, Aug 16, 2009 at 6:11 AM, Sebsxercav...@gmail.com wrote: Hi, Is there a way to launch a playlist whith intent? No. I can retrieve the path of the m3u playlist with: Cursor cursor = context.getContentResolver().query (MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, null, null,

[android-developers] Re: launching m3u playlist with intent

2009-08-16 Thread Marco Nelissen
Well, OK, that's not entirely true. While you can't play an arbitrary m3u file, you can play playlists that are in the database (which may have come from m3u files originally, in which case there path is in the _data column). To see how, you can look at what happens when you put a shortcut to a

[android-developers] Re: Click on Status bar notification switch to task in current state?

2009-08-17 Thread Marco Nelissen
On Sun, Aug 16, 2009 at 1:23 PM, Gustav Mauergus...@mauer.co.za wrote: My applications carries on processing when the user presses the home key, and generates status bar notifications if something happens the user requested to be notified about. If a user holds the home key and then selects

[android-developers] Re: Multi-touch

2009-08-17 Thread Marco Nelissen
/android-sdk-multitouch-workaround.html Hope that helps Yahel On 29 juil, 19:35, Marco Nelissen marc...@android.com wrote: This was discussed a few days ago. Search the archive. On Wed, Jul 29, 2009 at 4:33 AM, Anastasiya anastasiya.drem...@gmail.comwrote: Hi. Does Donut really

[android-developers] Re: Multi-touch

2009-08-17 Thread Marco Nelissen
On Mon, Aug 17, 2009 at 12:24 PM, Jason Proctorjason.android.li...@gmail.com wrote: the page works for me. Weird. I get the standard The page cannot be found message from the server's IIS. --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: out of memory error getWallpaper

2009-08-17 Thread Marco Nelissen
On Mon, Aug 17, 2009 at 7:53 AM, Nivekkevin.gau...@gmail.com wrote: When you change the device orientation, you app is closed and then reopened. Android handles bitmaps a special way, you HAVE to explicitly recycle them as soon as you don't need them anymore... or they stay allocated in

[android-developers] Re: Crashes with no usefull stacktrace

2009-08-17 Thread Marco Nelissen
That doesn't work for native crashes. On Fri, Aug 14, 2009 at 8:04 AM, moazzamkmoazz...@gmail.com wrote: You can try capsulating your code in try and catch. And, use log cat to get the errrors. For more info, go here: http://moazzam-khan.com/blog/?p=41 - Moazzam On Aug 13, 10:34 pm,

[android-developers] Re: media player exception

2009-08-18 Thread Marco Nelissen
On Tue, Aug 18, 2009 at 12:07 AM, rizwanrizcs...@gmail.com wrote: Hi, I m trying to run a simple media player activity .. public void onCreate(Bundle icicle) {        super.onCreate(icicle);        try {        /*      * TODO: Set the path variable to a local media file

[android-developers] Re: Accessing the sqlite3 database via shell ?

2009-08-18 Thread Marco Nelissen
On Tue, Aug 18, 2009 at 8:05 AM, Emre A. Yavuzeayl...@hotmail.com wrote: Hi, I've been using the SQLiteOpenHelper class to create/open a database for my application. During the initialization process, I've been adding two tables to it and fill one of them with some data. Everything seems to

[android-developers] Re: Accessing the sqlite3 database via shell ?

2009-08-18 Thread Marco Nelissen
It might help others if you told us what the problem and solution were. On Tue, Aug 18, 2009 at 12:41 PM, Emre A. Yavuzeayl...@hotmail.com wrote: Problem solved, thanks for the comments. Emre From: eayl...@hotmail.com To:

[android-developers] Re: Exception Stacktrace

2009-08-18 Thread Marco Nelissen
Are you dynamically adding/(re)moving views? On Tue, Aug 18, 2009 at 5:05 PM, Dan Shermanimpact...@gmail.com wrote: Getting a bunch of these errors logged on one of our apps... Not sure exactly whats causing it (doesn't show our app anywhere in the stacktrace)

[android-developers] Re: Android Market Functionality - Best way to add a loading... row with Efficient Adapter?

2009-08-19 Thread Marco Nelissen
On Wed, Aug 19, 2009 at 6:53 AM, Streets Of Bostonflyingdutc...@gmail.com wrote: I have seen some posts on this forum that people try to do this inside the 'getView' method (in pseudo code): if position == getCount()-1 then {  The user has stopped scrolling and the list is showing   the

[android-developers] Re: Empty Lists

2009-08-19 Thread Marco Nelissen
You can just call setContentView() with some other view, then replace it with a listview again once you have items to show. On Wed, Aug 19, 2009 at 6:42 AM, Eurig Joneseurigjo...@gmail.com wrote: Thanks Mark. Yeah, I saw that in the docs but I'm using a non-custom List, I have no custom

[android-developers] Re: After Killing Task, Android is not launching correct Activity

2009-08-19 Thread Marco Nelissen
On Wed, Aug 19, 2009 at 9:40 AM, bkbonnerbrian.bon...@paraware.com wrote: Our application is defined to launch a SplashScreenActivity from Intent { action=android.intent.action.MAIN categories= {android.intent.category.LAUNCHER} .  After the SplashScreenActivity does its work, it launches

[android-developers] Re: HVGA T-Mobile G1/G2 vs. iPhone

2009-08-20 Thread Marco Nelissen
Where did you get your information about the iphone displays? Apple doesn't publish color depth specs for those, while other sites that have analyzed the hardware show it has an 18-bit display (so 256K colors). On Wed, Aug 19, 2009 at 10:31 PM, philphil.pellouch...@gmail.com wrote: From what

[android-developers] Re: escaping string in SQLite

2009-08-29 Thread Marco Nelissen
On Sat, Aug 29, 2009 at 12:25 PM, Natenathan.sw...@gmail.com wrote: How should I be escaping strings for SQLite? I found I was inserting a string with single quote and this broke. I am now replacing single quote with two single quotes, but I am wondering what else I should be escaping, if

[android-developers] Re: Default Sound Resources

2009-08-30 Thread Marco Nelissen
You can use the media provider to get the list of available ringtones, notification and alarm sounds for the phone your app is running on. On Sat, Aug 29, 2009 at 10:01 PM, RalphLeonrgoo...@gmail.com wrote: Hello! I have a timer application and I was hoping to add the default sound

[android-developers] Re: Reuse Hero rounded list item look?

2009-08-30 Thread Marco Nelissen
If you want your app to work and look like that on any device other than a Hero, you will have to do it yourself. Should be as simple as picking the right layout and graphics for your list items. On Sun, Aug 30, 2009 at 12:09 PM, Jonas Peterssonjonas.peters...@xms.se wrote: Dear experts,

[android-developers] Re: Threads and Screen Orientation Change

2009-08-30 Thread Marco Nelissen
Why not just tell your thread about the new activity? Having the old activity keep a reference to the new activity for the sole purpose of being able to pretend that the old activity is still valid, even after its onDestroy has already been called, goes completely against the Android activity

[android-developers] Re: How to call another class method.

2009-08-30 Thread Marco Nelissen
A more general Java beginners group seems more appropriate for this question. On Sun, Aug 30, 2009 at 8:56 PM, Sasi Kumarsasikumar.it1...@gmail.com wrote: I used intent to call class. But i want to call the function. Give some other idea to call function. On Aug 28, 8:24 pm, Roman (

[android-developers] Re: Getting failed to copy 'content' to '/sdcard/content': Read only file system on donut compilation.

2009-08-31 Thread Marco Nelissen
What does 'adb shell df' say? On Mon, Aug 31, 2009 at 7:26 AM, Anandanandss2...@gmail.com wrote: Hi There I followed below sequence, and facing below issues while pushing the content. 1. repo init -u git://android.git.kernel.org/platform/manifest.git -b donut. By this I got today donut

[android-developers] Re: Threads and Screen Orientation Change

2009-08-31 Thread Marco Nelissen
On Mon, Aug 31, 2009 at 6:06 AM, ReubenHreuben.har...@gmail.com wrote: Having used Android for 4 months, and now having a game doing well in the market, I am still wondering why a rotation change results in Activity creation / destruction in the first place? It has never made sense... why

[android-developers] Re: Recorded sound file not getting listed in Music menu

2009-08-31 Thread Marco Nelissen
with correct name and correct path in sdcard. The only problem is emulator is not able to scan the file and thus that file is not getting listed in music menu until emulator is closed and relaunched. On Aug 20, 12:15 am, Marco Nelissen marc...@android.com wrote: If you create a media file

[android-developers] Re: Reloading our Activities State after firing Intent to camera

2009-08-31 Thread Marco Nelissen
On Mon, Aug 31, 2009 at 12:51 PM, bkbonnerbrian.bon...@paraware.com wrote: We have an Activity which has a form on it and we launch an Intent to take a picture. We've overridden onSaveInstanceState and onRestoreInstanceState to push the data from the view fields But, on the return from

[android-developers] Re: Getting failed to copy 'content' to '/sdcard/content': Read only file system on donut compilation.

2009-09-01 Thread Marco Nelissen
on a saphire... suspect some startup script is not doing it's thing? On Aug 31, 11:47 am, Marco Nelissen marc...@android.com wrote: What does 'adb shell df' say? On Mon, Aug 31, 2009 at 7:26 AM, Anandanandss2...@gmail.com wrote: While the emulator is launched successfully, the sdcard is shown

[android-developers] Re: Changing a Back button press to Home button press

2009-09-01 Thread Marco Nelissen
Couldn't you just 'eat' the back key, and use startActivity() to launch home when you receive it? That should pretty much give you the effect the effect you're looking for. Of course, then your app is behaving in a nonstandard way, which might confuse users, so you should ask yourself whether

[android-developers] Re: Problem in simple Code SQLite

2009-09-01 Thread Marco Nelissen
Look at the system log ('adb logcat' , or the logcat tab in the DDMS perspective in Eclipse), and it will tell you exactly where and why your app crashed. On Mon, Aug 31, 2009 at 11:56 PM, Bharath B.G.bharath.ml...@gmail.com wrote: Hi, I am very new to SQLite, i referred some books regarding

[android-developers] Re: Command

2009-09-02 Thread Marco Nelissen
What do you mean by access in this context? On Wed, Sep 2, 2009 at 7:46 AM, Michelle Cristina de Melo Silvam...@cin.ufpe.br wrote: Hi,     Is there a command that i can access directly a key into an application? I don't wanna capture when user press the key, i wanna access it without press.

[android-developers] Re: Inserting large volumes of data into SQLite - speed issues

2009-09-02 Thread Marco Nelissen
Are you using bulkInsert? On Wed, Sep 2, 2009 at 8:47 AM, mjc147westmead...@yahoo.co.uk wrote: I need to insert approximately one million rows of data (spread over 4 tables) - each row has one or two numeric fields, and two or three text fields (normally quite short). Single-column indexes

[android-developers] Re: Inserting large volumes of data into SQLite - speed issues

2009-09-02 Thread Marco Nelissen
On Wed, Sep 2, 2009 at 10:18 AM, mjc147westmead...@yahoo.co.uk wrote: On Sep 3, 12:43 am, Marco Nelissen marc...@android.com wrote: Are you using bulkInsert? Actually, I don't. I looked at it but it seemed to be related to ContentProvider and ContentResolver neither of which I'm using. Am I

[android-developers] Re: Returning files through a Cursor

2009-09-03 Thread Marco Nelissen
On Thu, Sep 3, 2009 at 7:13 AM, David Givend...@cowlark.com wrote: I would like my app to start an email app such as GMail with an attached file. For various technical reasons we can't use a file: URL for this --- we have to pull the file out of our ContentProvider. So, I need some way to

[android-developers] Re: Changing a Back button press to Home button press

2009-09-03 Thread Marco Nelissen
See http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle) for an explanation of why onSaveInstanceState is not called in your use case. You should save your state somewhere else, like in onPause() On Thu, Sep 3, 2009 at 1:09 AM,

[android-developers] Re: MediaPlayer playback is interrupted by user interface interaction

2009-09-08 Thread Marco Nelissen
On Sun, Sep 6, 2009 at 2:59 AM, Ludvig Svenoniusludvig.svenon...@gmail.com wrote: I have a rather mysterious problem with the simple test application below... package com.example.helloandroid; import android.app.Activity; import android.media.MediaPlayer; import android.os.Bundle;

[android-developers] Re: How many times a song has played?

2009-09-08 Thread Marco Nelissen
That information is not available in the system. On Tue, Sep 8, 2009 at 6:59 AM, Nathan Ekstromnat...@whiteboxdev.com wrote: I've searched the list and the documentation but have not found anything that tells you how to tell how many times a song has played.  Is there something in the OS

[android-developers] Re: Anyone else notice that the Top apps in android.market.com seem inaccurate?

2009-09-08 Thread Marco Nelissen
On Tue, Sep 8, 2009 at 9:31 AM, niko20nikolatesl...@yahoo.com wrote: If you look at the apps that are in the Top paid category, and then go to Cryket.com and look them up, I find it hard to believe that these apps are really the top paid. For example, Buka is 1000-5000 downloads at about

[android-developers] Re: Ongoing...

2009-09-08 Thread Marco Nelissen
On Tue, Sep 8, 2009 at 8:09 AM, sdphilphil.pellouch...@gmail.com wrote: how does the media player put itself in the Ongoing group when playing? http://developer.android.com/reference/android/app/Notification.html Specifically: Notification.FLAG_ONGOING_EVENT

[android-developers] Re: Problem with MediaScannerConnection scanFile

2009-09-08 Thread Marco Nelissen
On Mon, Sep 7, 2009 at 9:30 AM, karthikrkarthik.scintill...@gmail.com wrote: Hi Guys, Im trying to open an image edit it and save it back. And im using the below code, mScanner = new MediaScannerConnection(this, new MediaScannerConnection.MediaScannerConnectionClient() { public void

[android-developers] Re: Hiding media files from Music Player

2009-04-27 Thread Marco Nelissen
On Mon, Apr 27, 2009 at 4:36 PM, clark clarkd...@gmail.com wrote: I'm torn between which group to post this too, but since it is for an application I am working on, I guess I'll stick it here. So here we go. I have an application which downloads data onto the sdcard to be used by the

[android-developers] Re: Why corsor need to call setNotificationUri when query from content provider?

2009-04-27 Thread Marco Nelissen
On Mon, Apr 27, 2009 at 6:35 PM, 黃冠宇 orz0...@gmail.com wrote: Hi,I don't got what you mean. @Override public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sort) { SQLiteQueryBuilder qb = new SQLiteQueryBuilder();

[android-developers] Re: Playing sound from memory

2009-04-28 Thread Marco Nelissen
On Mon, Apr 27, 2009 at 5:50 PM, rookie1_1998 eric.yongjun.c...@gmail.comwrote: I need a way to play a short sound clip repeatedly very fast, with precise timing for musical purpose. I looked around, and it seems like MediaPlayer and SoundPool don't guarantee lag-free playing. Is there

[android-developers] Re: Hiding media files from Music Player

2009-04-28 Thread Marco Nelissen
On Mon, Apr 27, 2009 at 11:32 PM, nEx.Software justin.shapc...@gmail.comwrote: A quick look shows at the source indicates the MediaScanner omits files that begin like ._ or are like Folder.jpg, AlbumArtSmall.jpg, AlbumArt_{...}_Large.jpg or AlbumArt_{...} _Small.jpg. But it all seems to be

[android-developers] Re: Hiding media files from Music Player

2009-04-28 Thread Marco Nelissen
, and hopefully MediaPlayer and SoundPool don't choke. I just have quite a few files and would hate to have to check them and rename them from within the app or have the users re-download the new data. Suggestions welcomed. ~clark On Apr 27, 4:51 pm, Marco Nelissen marc...@android.com wrote

[android-developers] Re: MediaPlayer State

2009-04-28 Thread Marco Nelissen
What do you mean by that? If you want to know if it's playing, call MediaPlayer.isPlaying(). If you want to know how far along it is, call MediaPlayer.getCurrentPosition(). Are those kinds of things you're looking for, or something else? On Tue, Apr 28, 2009 at 11:06 AM, westmeadboy

[android-developers] Re: Observer for Adaper

2009-04-28 Thread Marco Nelissen
That's not what a datasetobserver does, and I suspect that trying to figure out when there's a pause between invocations of getView() is not going to work quite right either. What are you trying to achieve? 2009/4/28 yarik...@gmail.com yarik...@gmail.com Anybody? On 28 апр, 00:26,

[android-developers] Re: MediaPlayer State

2009-04-28 Thread Marco Nelissen
whether I can call prepare without getting an exception. prepare() can only be called in certain Valid states. On Apr 29, 12:00 am, Marco Nelissen marc...@android.com wrote: What do you mean by that? If you want to know if it's playing, call MediaPlayer.isPlaying(). If you want to know how

[android-developers] Re: MediaPlayer State

2009-04-29 Thread Marco Nelissen
with the real internal state. Is there any reason not to expose the underlying state? On Apr 29, 8:29 am, Marco Nelissen marc...@android.com wrote: You can't get that state directly, but you can infer what state the MediaPlayer is in by whether or not you have successfully called the methods you

[android-developers] Re: has leaked service connection in activity that was originally bound here

2009-04-29 Thread Marco Nelissen
You should unbind() when you're done. On Wed, Apr 29, 2009 at 1:25 AM, mawei1981 mawei...@gmail.com wrote: when I bind service when activity on create: 04-29 16:20:27.797: ERROR/ActivityThread(11629): Activity com.maweis.ToggleSilentActivity has leaked ServiceConnection

[android-developers] Re: MediaPlayer State

2009-04-29 Thread Marco Nelissen
On Wed, Apr 29, 2009 at 8:22 AM, westmeadboy mjc1...@googlemail.com wrote: The documentation lists 10 different states and while I could probably reduce the number relevant to me to about 4 or 5, that doesn't help enough. One example of where this is important is knowing whether the player

[android-developers] Re: MediaPlayer State

2009-04-30 Thread Marco Nelissen
On Wed, Apr 29, 2009 at 11:18 PM, westmeadboy mjc1...@googlemail.comwrote: Do you know why the State is not exposed? If there is no good reason, then what are the steps to request that it is exposed in some future SDK release? One reason not to rely on these, and not to expose them

[android-developers] Re: MediaPlayer State

2009-04-30 Thread Marco Nelissen
On Thu, Apr 30, 2009 at 8:55 AM, westmeadboy mjc1...@googlemail.com wrote: OK, so you said one reason the State is not exposed is because you don't want client code relying on these States because they are inherently transient. However, the alternative is for the client code to keep track

[android-developers] Re: MediaPlayer State

2009-04-30 Thread Marco Nelissen
On Thu, Apr 30, 2009 at 9:33 AM, Tom Gibara m...@tomgibara.com wrote: I have to agree with this. The MediaPlayer API is extremely hard work for precisely the reason that it expects client-code to maintain state that it can't reasonably be expected to know. At the crux of the problem is the

[android-developers] Re: MediaPlayer State

2009-04-30 Thread Marco Nelissen
On Thu, Apr 30, 2009 at 9:46 AM, westmeadboy mjc1...@googlemail.com wrote: On Apr 30, 9:29 pm, Marco Nelissen marc...@android.com wrote: No, the fact that a getState() method would be unreliable is reason enough not to have one. Its no less reliable then any other call to any non

[android-developers] Re: MediaPlayer State

2009-04-30 Thread Marco Nelissen
On Thu, Apr 30, 2009 at 10:06 AM, westmeadboy mjc1...@googlemail.comwrote: On Apr 30, 9:48 pm, Marco Nelissen marc...@android.com wrote: The problem with that is that the media engine doesn't run in your main thread. It runs in multiple other threads, in a different process. Synchronizing

[android-developers] Re: MediaPlayer State

2009-04-30 Thread Marco Nelissen
On Thu, Apr 30, 2009 at 10:50 AM, Tom Gibara m...@tomgibara.com wrote: That's only a cosmetic change though. Instead of calling, say, prepare() and it throwing an exception, you now have it return some token that tells you whether or not it succeeded. That's only a cosmetic change if you

[android-developers] Re: Quality of paid applications on the Market...

2009-04-30 Thread Marco Nelissen
On Thu, Apr 30, 2009 at 3:42 PM, Rob Franz rob.fr...@gmail.com wrote: I was going to let this thread die but I saw this and had to add on to it because I think it reinforces the need for better filtering options in the Market. I posted this originally because I came across one particular

[android-developers] Re: undocumented for recording audio

2009-05-01 Thread Marco Nelissen
On Fri, May 1, 2009 at 6:20 AM, jj jagtap...@gmail.com wrote: some where I read it. the undocumented intent for recording audio Intent intent = new Intent(MediaStoreAudio.Media.RECORD_SOUND_SCTION); is this true, I tested but it is not working. Well, what you typed above won't compile.

[android-developers] Re: Regarding APN settings for 3G network.

2009-05-02 Thread Marco Nelissen
For what carrier/network is your 3G sim, and is there a data plan associated with the sim? On Sat, May 2, 2009 at 12:22 PM, sush susama.choudh...@gmail.com wrote: Hi, I was trying audio/video streaming in android G1 from from rtsp server through a 3G n/w. In order to do that I tried using a

[android-developers] Re: Regarding APN settings for 3G network.

2009-05-03 Thread Marco Nelissen
G1 because it does an end to end call in that sim only browsing is a problem. Thanks, Sush On May 3, 1:08 am, Marco Nelissen marc...@android.com wrote: For what carrier/network is your 3G sim, and is there a data plan associated with the sim? On Sat, May 2, 2009 at 12:22 PM, sush

[android-developers] Re: AudioFlinger - many write blocked for log WARN messages

2009-05-03 Thread Marco Nelissen
If this is in the emulator, I would just ignore them. On Thu, Apr 30, 2009 at 9:20 PM, Mark Carter m...@carter.name wrote: I'm using the MediaPlayer to play audio (mp3) files. I don't think I'm doing anything out of the ordinary, but, during playback, I get many (several per second) log

[android-developers] Re: Blocking UIThread till the .mp3 file completed in the b/g

2009-05-04 Thread Marco Nelissen
You should never block the UI thread, otherwise you'll get the application not responding dialog. If you want to know when playback completes, just set an OnCompletionListener. On Mon, May 4, 2009 at 6:17 AM, Asif k asifk1...@gmail.com wrote: Hi all, Is there anyway to block the UI Thread

[android-developers] Re: 1.5 bugs reports

2009-05-04 Thread Marco Nelissen
On Fri, May 1, 2009 at 4:47 PM, heasus hea...@gmail.com wrote: Is this the right place to report bugs? No, the right place to report bugs is at http://b.android.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: How to query the number of rows in a table

2009-05-04 Thread Marco Nelissen
select count(*) from table See also http://sqlite.org/lang.html On Mon, May 4, 2009 at 9:51 AM, Lucius Fox lucius.fo...@gmail.com wrote: Hi, Can you please tell me how to query the number of rows in a table in Android? Assume I have the name of the table in string. Thank you.

<    1   2   3   4   5   6   7   >