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

2009-06-04 Thread Marco Nelissen
On Thu, Jun 4, 2009 at 12:14 PM, guruk 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 1.5 kerna

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

2009-06-04 Thread Marco Nelissen
On Thu, Jun 4, 2009 at 11:41 AM, Todd 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). But since you say

[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 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. > > I looked at "

[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 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: BlurMaskFilter not blurring entire bitmap

2009-06-03 Thread Marco Nelissen
Are you setting the right blur style? On Wed, Jun 3, 2009 at 9:30 AM, Todd wrote: > > +bump > > On Jun 2, 11:11 am, todd wrote: > > I can't seem to get the BlurMaskFilter to work the way I want. When I > > set a BlurMaskFilter as part of my Paint object and then draw a bitmap > > only the edg

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

2009-06-03 Thread Marco Nelissen
On Wed, Jun 3, 2009 at 5:00 AM, guruk 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 in the backg

[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 wrote: > > Sujay, that was exactly what I was looking for!!! > > Thanks ;-) > > On 2 jun, 07:02, Su

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

2009-06-01 Thread Marco Nelissen
On Mon, Jun 1, 2009 at 9:27 PM, dark_messiah wrote: > > 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 getchildCount method is

[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 wrote: > > Never mind I figured it out. I had to override the builtin layout with > my own layout which assigned a TouchInterceptor as the ListView for > the

[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 wrote: > > 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 com.android.music.Touch

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

2009-06-01 Thread Marco Nelissen
On Mon, Jun 1, 2009 at 11:59 AM, guruk 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: mainIntent.setFlags(Intent.FLAG_ACTIVITY_C

[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 wrote: > > Hi, > > is it possible with one call to finish all previous Activities. > (like: this.finish(all) :) > > I have a

[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 wrote: > Hello, everyone > Before I create a table, how can I know wh

[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 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 I build, I am

[android-developers] Re: Copyright question.

2009-06-01 Thread Marco Nelissen
On Mon, Jun 1, 2009 at 8:58 AM, alucard20004 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 the same "loo

[android-developers] Re: Open-Source Opertunity

2009-05-30 Thread Marco Nelissen
On Sat, May 30, 2009 at 7:46 PM, Alex Jurgensen wrote: > > 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 there. Is it

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

2009-05-30 Thread Marco Nelissen
On Sat, May 30, 2009 at 8:19 AM, mscwd01 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 the > s

[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 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 they say, hop

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

[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 wrote: > > I would to know if Android can be a sponsor of a national open source > event. >

[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 wrote: > > When we delete items from our sqlite database in our Android app, the > size of the data under our application

[android-developers] Re: Netbook with Android

2009-05-28 Thread Marco Nelissen
On Thu, May 28, 2009 at 10:37 AM, cookdav wrote: > > 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 is completely unrelated

[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 wrote: > > Hi, > > i need image and text on list view and i am using list 14 example

[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 wrote: > > Hi dear, > > i am trying to capture video since a week but still no luck. > can anybody help me to figure

[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 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 kill my process than i

[android-developers] Re: Movie.decodeStream(is) is returning NULL after updating to 1.5 SDK

2009-05-28 Thread Marco Nelissen
On Thu, May 28, 2009 at 8:17 AM, Streets Of Boston wrote: > > Judging from your resource name (gif_animation), it looks like you try > to open an image (gif image) as a movie... If it's not a movie/video, > i'm not entirely surprised that opening it as a movie fails. > > (an animated gif is not a

[android-developers] Re: Different UI behavoir between Activity and InputMethodService (test code and video provided)

2009-05-28 Thread Marco Nelissen
I suspect this is not a bug. Your button is probably not highlighting because it's not focused, because the text view that you're typing in to retains focus. On Thu, May 28, 2009 at 8:18 AM, www.rzr.online.fr wrote: > > hi, > > If it matters I reported it to : > > http://code.google.com/p/andr

[android-developers] Re: Android default color madness, primary_text_light is color black?

2009-05-28 Thread Marco Nelissen
I think 'light' refers to a theme in this case, and if you're using the light theme, you get a light background with dark text on it. On Thu, May 28, 2009 at 7:04 AM, twan wrote: > > Good morning, > > I got a little textview defined in layout xml: > === > android:layout_width="wrap_content" >

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

2009-05-27 Thread Marco Nelissen
Just make your own. You can specify whatever layout you want for the list items. On Wed, May 27, 2009 at 2:46 PM, pawpaw17 wrote: > > I want to create a listview with rows that have an image and two > textviews. This must be a very > common activity but I can't find a class/or source code that

[android-developers] Re: Can only hear sound when playing video

2009-05-27 Thread Marco Nelissen
On Wed, May 27, 2009 at 11:02 AM, Hamy wrote: > > > > On May 27, 12:39 pm, Marco Nelissen wrote: > > On Wed, May 27, 2009 at 10:23 AM, Hamy wrote: > > > > > Marco, > > > > > Thank you so much! I just spent a day and a half trying every example &g

[android-developers] Re: Can only hear sound when playing video

2009-05-27 Thread Marco Nelissen
On Wed, May 27, 2009 at 10:23 AM, Hamy wrote: > > Marco, > > Thank you so much! I just spent a day and a half trying every example > I could get my hands on, and about 2 minutes before you replied I > found a hint that video could not be a raw resource. I had just been > adapting every example to

[android-developers] Re: Can only hear sound when playing video

2009-05-27 Thread Marco Nelissen
Which "Audio and Video dev guide" are you referring to? If that guide tells you that the code you posted should work, it needs to be fixed :) There are several problems in your code, but the main one is that you can't use any of the MediaPlayer.create() convenience methods to play video from a reso

[android-developers] Re: Android Market rejecting icons

2009-05-27 Thread Marco Nelissen
You say you have tried it with "various dpi". Have you actually tried it with a PNG that has a resolution of 48x48 pixels though? On Wed, May 27, 2009 at 7:48 AM, solid wrote: > > I have finished the first version of my app and I am trying to upload > it to the market. But every time I select

[android-developers] Re: finishing subactivity after some perticular time

2009-05-27 Thread Marco Nelissen
Why don't you just have your subactivity post a delayed message to itself and have it call finish() when it gets it? On Tue, May 26, 2009 at 11:49 PM, Ask wrote: > > Is it possible to call finish() for subactivity from the parent > activity?? I want to show subactivity for only some perticular t

[android-developers] Re: disabling scrolbar in ListView

2009-05-26 Thread Marco Nelissen
http://developer.android.com/reference/android/view/View.html#attr_android:scrollbars On Tue, May 26, 2009 at 4:06 AM, joby wrote: > > Hi all, > > anybody can tell me how to disable or remove the scrollbar > property of a ListView. > > I created a ListView like > > 1

[android-developers] Re: How to realize cascading delete in sqlite?

2009-05-26 Thread Marco Nelissen
I've never used cascading deletes myself, but I have used triggers, and they work. On Tue, May 26, 2009 at 12:07 AM, quill wrote: > > Hi guys, > Can cascading delete be realized in sqlite? If can, how to realize it? > > Thanks! > > > --~--~-~--~~~---~--~~ You re

[android-developers] Re: Can't change MediaPlayer data source

2009-05-26 Thread Marco Nelissen
On Tue, May 26, 2009 at 4:40 AM, Moons wrote: > > So what you say is that's it's impossible to have a FileDescriptor > pointing to my raw sound ... Well, yes and no. Read again what I said. But when you call MediaPlayer.create() it does kinda localize the > sound in the APK. > I'm sure there m

[android-developers] Re: how do i kill an android application

2009-05-26 Thread Marco Nelissen
On Tue, May 26, 2009 at 6:56 AM, Saurav Mukherjee < to.saurav.mukher...@gmail.com> wrote: > how do i kill an android application Why would you want to do that? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Androi

[android-developers] Re: Okay, so we don't put ListView in ScrollView. Now what? (2nd attempt)

2009-05-25 Thread Marco Nelissen
On Sat, May 23, 2009 at 1:27 PM, einnocent wrote: > > My first attempt to post this seems to have failed. This is a second > attempt. > > I am trying to display a screen filled with data fetched from a > server. The data, if it were HTML, would look something like the > following (try to visualiz

[android-developers] Re: Can't change MediaPlayer data source

2009-05-25 Thread Marco Nelissen
If I remember correctly, 128 is the "playback completed" state, which would seem to indicate that you forgot to call reset() in that particular case. On Mon, May 25, 2009 at 5:13 PM, Moons wrote: > > Here is the Error I get : 05-26 02:10:29.680: ERROR/MediaPlayer > (14985): setDataSource called

[android-developers] Re: Can't change MediaPlayer data source

2009-05-25 Thread Marco Nelissen
On Mon, May 25, 2009 at 4:01 PM, Moons wrote: > > Hello Marco. > Altough I understood what you said, I am not very good with > FileDescriptors. > So you mean that I can't have a File descriptor for a raw resource in > my APK? Correct. An APK file is essentially a ZIP file, and your raw resource

[android-developers] Re: Can't change MediaPlayer data source

2009-05-25 Thread Marco Nelissen
The mistake in your code is that you're passing a bare filedescriptor. For an AssetFileDescriptor like you get for a resource, you should pass the filedescriptor, the start offset and the length. This is because you're not actually getting a filedescriptor for just the resource (which would require

[android-developers] Re: Whole lotta garbage collecting going on.... How do I find out what is being collected?

2009-05-25 Thread Marco Nelissen
Have you tried using hprof/jhat ? See http://android.git.kernel.org/?p=platform/dalvik.git;a=blob_plain;f=docs/heap-profiling.html;hb=HEAD On Mon, May 25, 2009 at 1:02 PM, Robert Green wrote: > > For the past 2 months of development, I've followed the android > performance guidelines here - > h

[android-developers] Re: Assistance with large datasets

2009-05-24 Thread Marco Nelissen
On Sun, May 24, 2009 at 8:08 AM, Mark Murphy wrote: > > Marco Nelissen wrote: > > On Sun, May 24, 2009 at 3:28 AM, Mark Murphy > <mailto:mmur...@commonsware.com>> wrote: > > (...) > > > > 2. Reduced API. You can put LIMIT clauses in SQLite calls but

[android-developers] Re: Assistance with large datasets

2009-05-24 Thread Marco Nelissen
On Sun, May 24, 2009 at 7:17 AM, Mark Murphy wrote: (...) > > I'm using a few threads that may attempt concurrent writes on the > > database. There doesn't seem to be any documentation on whether > > SQLDatabase its thread-safe or not, whereas I just assumed a > > ContentProvider would be. > > I w

[android-developers] Re: Assistance with large datasets

2009-05-24 Thread Marco Nelissen
On Sun, May 24, 2009 at 3:28 AM, Mark Murphy wrote: (...) > 2. Reduced API. You can put LIMIT clauses in SQLite calls but not in > ContentProvider calls, for example. But if it's your own content provider, you could expose this functionality through URIs, e.g. something like content://yourdomain

[android-developers] Re: Android Loading listview items from service results in hang

2009-05-23 Thread Marco Nelissen
On Sat, May 23, 2009 at 8:27 PM, Isaac Waller wrote: > > No, what you are supposed to do, is not return from onCreate until you > are ready to show your GUI. I am not ready without these items. If it > took, say, 2 or 3 seconds to load these items, maybe, but it takes a > fraction of a second - t

[android-developers] Re: Android Loading listview items from service results in hang

2009-05-23 Thread Marco Nelissen
"hanging the UI thread" is the hack. I suggest you do it the right way instead. On Sat, May 23, 2009 at 8:09 PM, Isaac Waller wrote: > > Even if I changed that, I would lose the saved list scroll position > and selected item. > I do not want to make some hack around running it in the UI thread -

[android-developers] Re: Android Loading listview items from service results in hang

2009-05-23 Thread Marco Nelissen
On Sat, May 23, 2009 at 5:51 PM, Isaac Waller wrote: > > > Move the "now retrieve from service using binder and set list adapter" > > into onServiceConnected() and get rid of the sleep() infinite loop. > If I do this, then I lose the benefits of running it in the UI thread. > I want to hang my ap

[android-developers] Re: Bug detected VideoView/ImageView

2009-05-23 Thread Marco Nelissen
On Sat, May 23, 2009 at 8:46 AM, arnouf wrote: > > I think that I found a problem with Android SDK > in a relative form, try to add An ImageView and A VideoView > In an activity, retrieve your VideoView and try to retrieve his > SurfaceHolderYour application have to crash with a real big > tr

[android-developers] Re: Find whether any audio is currently playing

2009-05-23 Thread Marco Nelissen
On Fri, May 22, 2009 at 9:57 PM, iDeveloper wrote: > Thanks. > And how do I stop the audio from playing if isMusicActive() returns true? > Do I have to use the MediaPlayer instance? But the instance won't be in > memory any longer as the activity has been exited once and a new instance of > the a

[android-developers] Re: Color Bug?

2009-05-22 Thread Marco Nelissen
On Fri, May 22, 2009 at 1:09 PM, Gavin Aiken wrote: > Hey all, > > Before I submit this I just wanted to check it's not a java nuiance. > > The Color class can be used to extract rgb values from a pixel (32 bit > int). > > I implemented a lookup table filter and used a byte to store each > individ

[android-developers] Re: How to force to update a view?

2009-05-22 Thread Marco Nelissen
This should normally happen automatically: when the database changes, the cursor adapter is notified, which causes the cursor to be requeried and the the listview to be updated. On Fri, May 22, 2009 at 2:31 AM, Gavin wrote: > > Hello, > I have a List activity which use cursor adapter. When an

[android-developers] Re: DRM Issue

2009-05-22 Thread Marco Nelissen
On Fri, May 22, 2009 at 3:40 AM, Prashant M wrote: > > Developed one sample APP to insert the FL (forward Lock content) into > DRM provider. > While insertion throwing security exception. > I added android.permission.ACCESS_DRM in the > androidmanifest.xmlBut still facing the issue. > android.

[android-developers] Re: Find whether any audio is currently playing

2009-05-22 Thread Marco Nelissen
On Thu, May 21, 2009 at 9:41 PM, iDeveloper wrote: > Hi > > I am using a MediaPlayer instance in order to stream audio files from an > Internet location. The audio player is in a separate activity. The user can > select from a list of audio files and come to this activity which plays the > audio.

[android-developers] Re: How to play video file in android.

2009-05-22 Thread Marco Nelissen
On Thu, May 21, 2009 at 8:57 PM, Priya wrote: > > Hi, > > here is my code for playing video through url > > public class sample extends Activity { > > >private String _videoPath; >private MediaPlayer _mp; >private static final String TAG = "Video"; > >@Override >public voi

[android-developers] Re: Load video from assets folder?

2009-05-21 Thread Marco Nelissen
On Thu, May 21, 2009 at 12:56 PM, arnouf wrote: > > Thanks for your help...I did a lot of changes but it was something > like that > vv = (VideoView) findViewById(R.id.videoSpace); > mp = new MediaPlayer(); > > try { >AssetFileDescriptor afd = getAssets().openFd("techno-chicken. > 3gp"); >

[android-developers] Re: remove drop icon in expandablelist

2009-05-21 Thread Marco Nelissen
ExpandableListView.setGroupIndicator() ? On Thu, May 21, 2009 at 12:06 AM, sleith wrote: > > hi, > is there anyway to remove the default drop down icon on > ExpandableList? > > thx > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Re: Cursor.moveToFirst() is taking up a lot of time

2009-05-20 Thread Marco Nelissen
On Wed, May 20, 2009 at 2:50 PM, Sublimity Mobile Software < sublimitysoftw...@gmail.com> wrote: > > My current database layer is used to convert query results into bean > objects. I did a test and the results where: > > Total time loading queries = 15273ms > Queries executed = 561 > Executing All

[android-developers] Re: Cursor.moveToFirst() is taking up a lot of time

2009-05-20 Thread Marco Nelissen
The first call to moveToNext() is still going to cause getCount() and thus fillWindow() to be called internally, so it won't be any faster. On Wed, May 20, 2009 at 10:58 AM, Streets Of Boston wrote: > > In your example, it seems you don't need the getCount() or moveToFirst > () at all. > > The

[android-developers] Re: “The application xxxxxxxx (process xxxxxx) has stopped unexpectedly. Please try again .”

2009-05-20 Thread Marco Nelissen
On Wed, May 20, 2009 at 1:37 AM, abhinav wrote: > > Can some one please tell me , how do u read the log file or logs ... > which the Log.i methods writes to ? You read the log by connecting your phone to a computer and running 'adb logcat' (or adb shell logcat) from the command line. You can als

[android-developers] Re: Cursor.moveToFirst() is taking up a lot of time

2009-05-20 Thread Marco Nelissen
ead. But this actually > takes about 40% more time then simply calling getCount() that > eventually loads the data into the cursor > > I already optimized the database and the queries so there is nothing > to gain here. > > But would you there be another way the get values fr

[android-developers] Re: Listening to services

2009-05-19 Thread Marco Nelissen
If you don't like the idea of having the service call some interface method it was handed, you could have the service broadcast intents for whatever interesting things happen, for which your clients register receivers. On Tue, May 19, 2009 at 6:54 AM, Rob Pridham wrote: > > Hi. > > In my ideal

[android-developers] Re: Database - error code 5

2009-05-19 Thread Marco Nelissen
It would help if you posted your code. On Tue, May 19, 2009 at 1:00 AM, jayabal wrote: > > Getting error code 5 and unable to insert the data in the database, > when more than one thread are trying to populate the data in database. > > I am using the following versions - android sdk1.1 and sqli

[android-developers] Re: I can't get into developer.android.com site.

2009-05-19 Thread Marco Nelissen
On Tue, May 19, 2009 at 1:04 AM, daehoon wrote: > > When we Run as android application with nothing, Eclipse launch an > Emulator. > And we can see Alarm Clock in Home Sample, >  there are several alarms in Alarm Clock. > I want to know source code about that(Alarm Clock), > but I can't get into

[android-developers] Re: How to determine a resource string is existing or not

2009-05-19 Thread Marco Nelissen
getString() will throw NotFoundException if the resource does not exist. On Mon, May 18, 2009 at 4:55 AM, aby wrote: > > Hi, > I want to determine a resource string is existing or not. > Because other programs in my system will build this string, > I need to check the string building is succes

[android-developers] Re: Cursor.moveToFirst() is taking up a lot of time

2009-05-18 Thread Marco Nelissen
On Mon, May 18, 2009 at 7:47 AM, Sublimity Mobile Software wrote: > > Hi, > > Currently i'm working on a database system for some applications. I > need to do a lot of queries to load data from the database into the > application. After being amazed how much time it took to do these > queries on

[android-developers] Re: What is Context for?

2009-05-18 Thread Marco Nelissen
On Mon, May 18, 2009 at 11:45 AM, Dianne Hackborn wrote: > On Mon, May 18, 2009 at 8:18 AM, Marco Nelissen wrote: >> >> ContentProvider is single threaded, so it'll automatically be >> synchronized, but you'd have the same issue with the various threa

[android-developers] Re: The GIMP cannot digest the standard widget frames

2009-05-18 Thread Marco Nelissen
You can file bugs at http://b.android.com, but wouldn't this be something you'd want to report to the GIMP developers instead? On Sun, May 17, 2009 at 10:36 AM, JP wrote: > > To paraphrase Chris Nesladek from his blog post: > http://android-developers.blogspot.com/2009/04/widget-design-guidelin

[android-developers] Re: What is Context for?

2009-05-18 Thread Marco Nelissen
On Mon, May 18, 2009 at 6:39 AM, Matt Williams wrote: > > The application context itself is not available to the DBAdapter > singleton. Why not? Can't you pass it in when you create it? > Am I simply taking the wrong approach in managing my applications > access to the database? > Would I be be

[android-developers] Re: What is Context for?

2009-05-17 Thread Marco Nelissen
Your application/activity will be given a Context by the system. Use that. On Sun, May 17, 2009 at 10:36 AM, Makeable wrote: > > I have just started on a new application that will use SQLite for > persistance and Im a bit confused over the usage of a context when > utilizing the SQLiteOpenHelper

[android-developers] Re: Null reference for ImageView

2009-05-17 Thread Marco Nelissen
t;@drawable/pac02" >     android:layout_width="20px" >     android:layout_height="20px"/> > > > How would I go about getting a reference to the ImageView from > PamManMainView? > > Thanks again > > > > On 18 May, 00:56, Marco Nelis

[android-developers] Re: How to make games faster? Using view and redraw is way to slow it seems.

2009-05-17 Thread Marco Nelissen
If using OpenGL doesn't make sense for your game, check out SurfaceView. On Sun, May 17, 2009 at 4:12 PM, klirr wrote: > > I have done a simple game where I draw on a View and use invalidate() > to force onDraw to be called. > This however doesn't seem to scale at all since even for this little

[android-developers] Re: Null reference for ImageView

2009-05-17 Thread Marco Nelissen
m the custom view code, if this is the case? > > > > On 18 May, 00:19, Marco Nelissen wrote: >> I'm not 100% sure, but I don't think a SurfaceView can have child >> views (since it's not a ViewGroup). >> >> On Sun, May 17, 2009 at 2:53 PM, steve_mac

[android-developers] Re: Null reference for ImageView

2009-05-17 Thread Marco Nelissen
I'm not 100% sure, but I don't think a SurfaceView can have child views (since it's not a ViewGroup). On Sun, May 17, 2009 at 2:53 PM, steve_macleod wrote: > > Hi, > I have the following xml layout: > >      android:id="@+id/pacman_main_view" >      android:layout_width="fill_parent" >      an

[android-developers] Re: video play error

2009-05-17 Thread Marco Nelissen
On Sat, May 16, 2009 at 9:51 PM, Nithin Varamballi wrote: > > Thanks for reply... > >           But i tried another video i e test.mp4 through sdcard... > But it works fine > May emulator support all .mp4 files...? Not really, for two reasons. First of all, "mp4" is a container format, not an en

[android-developers] Re: video play error

2009-05-16 Thread Marco Nelissen
On Sat, May 16, 2009 at 9:35 PM, N V wrote: > > HI to all > >       i am recorded a video with .mp4 format... and try to play on > emulator through > sdcard as well as streaming... But i will give error like cannot play > the video I am > using sdk 1.5... Can anyone help me what is wrong with

[android-developers] Re: How to handle tall dialogs

2009-05-16 Thread Marco Nelissen
You could try using a different layout for landscape mode, where instead of: label textfield label datepicker you make it: label textfield label datepicker Would that work for your particular layout? On Sat, May 16, 2009 at 9:18 AM, Thomas wrote: > > Hi group. > > I have a standard dialog

[android-developers] Re: How to record audio in WAV format?

2009-05-14 Thread Marco Nelissen
? Could you please show me some > snap code to do this? I'm very appreciate your help! > Thanks, > NPAK > > > On Fri, May 15, 2009 at 10:35 AM, Marco Nelissen wrote: > >> >> On Thu, May 14, 2009 at 6:54 PM, npak...@gmail.com >> wrote: >> > >&

[android-developers] Re: How to record audio in WAV format?

2009-05-14 Thread Marco Nelissen
On Thu, May 14, 2009 at 6:54 PM, npak...@gmail.com wrote: > > Hi all, > > Now i want to record audio in WAV format. What should i do now because > android only supports *.3gp or *.AMR type? If you're OK with your app working only on 1.5 and higher, you could use AudioRecord to get the PCM data,

[android-developers] Re: Unable to open files

2009-05-14 Thread Marco Nelissen
How are you actually trying to open the files, and what is the error/exception you're getting? On Wed, May 13, 2009 at 12:00 PM, SlumberMachine wrote: > > No matter what I do I am unable to open a file, either in my app's > data directory or on the sdcard and also in a folder on the sdcard. > T

[android-developers] Re: where to download android 1.5 r1 source code ?

2009-05-13 Thread Marco Nelissen
On Wed, May 13, 2009 at 7:51 PM, rain wrote: > > I know I can find the source code from > http://android.git.kernel.org/?p=platform/frameworks/base.git;a=summary > > but I'm not familiar with git, don't know how to download it from > there. That's why detailed instructions are provided. See htt

[android-developers] Re: SQLLite constraint on delete cascade

2009-05-13 Thread Marco Nelissen
It might help if you posted the final string that you're passing to db.execSQL(), instead of us trying to figure out what the resulting command is by running the code in our heads. My guess is that it doesn't work because you're trying to specify a column-constraint using table-constraint syntax (c

[android-developers] Re: what problem is the log.....

2009-05-13 Thread Marco Nelissen
This group is about developing applications using the SDK. You want the android-porting group. On Tue, May 12, 2009 at 7:45 PM, dduri wrote: > > hi all... > > I testing android-1.5 on virtualbox. > I compiled x86 porting. > > success booting and stop dial app. > > what problem?? > > 05-13 10:00

[android-developers] Re: open socket failed: Permission denied when application to run a native C function.

2009-05-13 Thread Marco Nelissen
Your application needs to request the 'INTERNET' permission in its manifest. On Tue, May 12, 2009 at 8:03 PM, Terence wrote: > > Hi > > I port a tool in native C and builed a executable file or a library, > and the executable can work successfully in console (Alt + F1). > > Then I creat a Simpl

[android-developers] Re: Do Cursor s stay valid across database changes?

2009-05-13 Thread Marco Nelissen
The Cursor holds a copy of the data, so it might be holding data that no longer matches what's in the database. Normally you'd use a ContentObserver or DatasetObserver with your cursor to be notified when the cursor needs to be requeried. On Wed, May 13, 2009 at 6:38 AM, Hamy wrote: > > Hey All

[android-developers] Re: Playing recorded sounds in Android 1.5

2009-05-13 Thread Marco Nelissen
That allows any other application to read or overwrite your file. Is that what you want? On Wed, May 13, 2009 at 8:06 AM, Scott Slaugh wrote: > > Here's what I ended up doing when I get the file, which allows me to > continue using the file like I was, but also sets the permissions > correctly

[android-developers] Re: recorded audio

2009-05-13 Thread Marco Nelissen
It doesn't show up immediately because your app didn't add it to the media provider. It shows up after a reboot because the media scanner runs at boot and scans the entire sd card. On Wed, May 13, 2009 at 6:32 AM, l hx wrote: > now when i recording a file using sound recoder. but i can not find

[android-developers] Re: On Destroy Notification

2009-05-13 Thread Marco Nelissen
On Wed, May 13, 2009 at 2:36 AM, Kamal Hasan wrote: > > Hi All, > > Any one can please tell me, How to get a notification on dead of my > application.Android is killing my app after every 40 mins. When it's in the foreground, or while another app is in the foreground? I'm guessing you want to do

[android-developers] Re: Send combination key events

2009-05-13 Thread Marco Nelissen
using 'search + e' shortcut. > > On May 11, 2:43 pm, Marco Nelissen wrote: > > Use Instrumentation.sendKeySync() to send the key-down and key-up events > > yourself, e.g. search-down, e-down, e-up, search-up. > > This should be interpreted by the application in th

[android-developers] Re: Back button press programmatically

2009-05-12 Thread Marco Nelissen
Just call finish() in your activity? On Tue, May 12, 2009 at 6:35 AM, Raja Nagendra Kumar < nagendra.r...@tejasoft.com> wrote: > > Hi, > > Are there api to support go to back Programmatically .. i.e same > effect as the back button of the phone. > > Regards, > Raja Nagendra Kumar, > C.T.O > www.t

[android-developers] Re: Playing recorded sounds in Android 1.5

2009-05-12 Thread Marco Nelissen
can get from using a File object instead > of a FileDescriptor, such as file size. > > On May 11, 3:16 pm, Marco Nelissen wrote: > > Does anyone else besides you need to be able to play back the recording? > > If not, try opening the file yourself and then passing its FileDesc

[android-developers] Re: Send combination key events

2009-05-11 Thread Marco Nelissen
Use Instrumentation.sendKeySync() to send the key-down and key-up events yourself, e.g. search-down, e-down, e-up, search-up. This should be interpreted by the application in the same way as pressing search+e on the keyboard. On Mon, May 11, 2009 at 2:32 PM, Kai Hu wrote: > > Hi there, > > I am

[android-developers] Re: Playing recorded sounds in Android 1.5

2009-05-11 Thread Marco Nelissen
Does anyone else besides you need to be able to play back the recording? If not, try opening the file yourself and then passing its FileDescriptor to setDataSource(), instead of specifying the path. On Mon, May 11, 2009 at 1:39 PM, Scott Slaugh wrote: > > I'm just using the built in MediaRecord

[android-developers] Re: Corrections in Docs

2009-05-11 Thread Marco Nelissen
See http://source.android.com/submit-patches On Mon, May 11, 2009 at 12:39 PM, jtaylor wrote: > > Hello Marco, > > How do I do that? > > > - juan > > On May 11, 3:17 pm, Marco Nelissen wrote: > > On Mon, May 11, 2009 at 11:24 AM, jtaylor wrote: > > &

[android-developers] Re: SMS Counter

2009-05-11 Thread Marco Nelissen
On Mon, May 11, 2009 at 11:55 AM, stevenroose wrote: > > Hi, > > I suggestion for Android I would like to do is a build-in SMS Counter. > When having plans that allow you to do a specified amount of SMS > messages in a month, an SMS Counter would be very useful, and I can't > imagine writing code

[android-developers] Re: Corrections in Docs

2009-05-11 Thread Marco Nelissen
On Mon, May 11, 2009 at 11:24 AM, jtaylor wrote: > > > Shouldn't there be a place outside of the Issues page, where one can > report spelling errors that are in the docs and articles? File a bug > for a little spelling error?? You could also submit a patch that fixes the error. --~--~-

[android-developers] Re: MediaPlayer: "Prepare failed.: status=0xFFFFFFFC"

2009-05-11 Thread Marco Nelissen
On Sun, May 10, 2009 at 4:45 PM, Jonas Alves wrote: > > Hi all... > I'm having really trouble there. > > When I attempt to play a sound file I have just recorded using > MediaRecorder, it fails when I call myMediaRecorder.prepare(). The > LogCat gives me: > >Prepare failed.: status=0x

[android-developers] Re: Accessing sdcard filesystem through dev machine filesystem - possible?

2009-05-09 Thread Marco Nelissen
I should add: while the sd card is mounted on your computer, it won't be accessible to the phone, so it's probably not really going to be more any more convenient than using adb push/pull. On Sat, May 9, 2009 at 3:57 PM, Marco Nelissen wrote: > When the phone is plugged in to

[android-developers] Re: Accessing sdcard filesystem through dev machine filesystem - possible?

2009-05-09 Thread Marco Nelissen
When the phone is plugged in to your computer, open the USB notification (drag down the status bar, select "USB connected"), then choose "mount". On Fri, May 8, 2009 at 10:30 PM, Mark Carter wrote: > > Is it possible to access the filesystem of an sdcard image through > something like Windows Ex

<    1   2   3   4   5   6   7   >