[android-developers] Workaround for Package Installer bug

2010-09-28 Thread David Given
Hello, I'm trying to find a workaround for the following bug: http://code.google.com/p/android/issues/detail?id=5277 Short summary: installing an application from a .apk file and then running it with the 'Run' button in the Package Installer will cause the application to run subtly wrong, which

[android-developers] glReadPixels() crashes on the HTC Desire

2010-09-07 Thread David Given
I appear to have found a bug in the Adreno 200 OpenGL driver which is used on the HTC Desire (among others). Specifically, if you're using a 32-bit config, and you call glReadPixels(), it crashes. I've got a bug containing a test case here: http://code.google.com/p/android/issues/detail?id=10825

[android-developers] Create new process

2010-07-29 Thread David Given
In order to keep some native code happy, I need to launch an activity in a new process. Does anyone know how to do this? I can set the activity's process attribute in the manifest, but this will cause *all* instances of the activity to appear in the *same* process, which I can't have. I'm

Re: [android-developers] Create new process

2010-07-29 Thread David Given
On 29/07/10 12:37, Mark Murphy wrote: [...] You're saying you want to use *several processes* for one app? Not one, not two, but many? That is correct. It's an environment for running alien applications; each application goes in a process, but they're all instances of the same activity. Believe

[android-developers] Instantiating activities into a new task and process

2010-07-28 Thread David Given
I have an application with a multi-instance activity. I would like each instance of the activity to appear in a *new* task and process. Does anyone know how to do this? By manipulating the manifest I can cause *all* instances of the activity to appear in a specific task and process, but I haven't

Re: [android-developers] Re: INTENT_SEND and attached files

2010-07-27 Thread David Given
On 27/07/10 07:34, FrankG wrote: [...] When I read your email it sounds for me that you are able to adapt the email app on your platform. No. I'm looking at the email app source code to try and figure out how this whole area works, as it's largely undocumented. I don't have the ability to

[android-developers] Send/receiving files via Bluetooth

2010-07-26 Thread David Given
I would like my application to be able to send and receive files via OBEX on Eclair. We have our own IANA MIME type. My investigations of the (undocumented) Bluetooth APIs seem to suggest that Eclair is hard-coded to only allow transfers of images, audio and video. From the Bluetooth package

[android-developers] INTENT_SEND and attached files

2010-07-26 Thread David Given
My app wants to send a data file by email. However, the data only exists inside the database. There is no physical file containing it. In order to make it possible to send this using INTENT_SEND, I need to return a file descriptor in ContentProvider.openFile(). This means I need to write my data

Re: [android-developers] TelephonyManager.getLine1Number() returning null?

2010-05-05 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 28/04/10 14:27, David Given wrote: [...] I'm trying to fetch the telephone number of the device. I'm calling TelephonyManager.getLine1Number(), and it's returning null. A trawl of the intertubes shows that there's a potential problem

Re: [android-developers] Re: TelephonyManager.getLine1Number() returning null?

2010-05-05 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/05/10 12:48, Mark Ellul wrote: I was informed that its a SIM issue, and that some SIM cards do not store the telephone number in the appropriate way to retrieve the number That's what I originally thought, but as I said, Settings-About Phone

[android-developers] TelephonyManager.getLine1Number() returning null?

2010-04-28 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm trying to fetch the telephone number of the device. I'm calling TelephonyManager.getLine1Number(), and it's returning null. A trawl of the intertubes shows that there's a potential problem with some SIMs not containing this information; however,

Re: [android-developers] Re: Detect/intercept screen turning off

2009-11-29 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dianne Hackborn wrote: Also you definitely do get paused when the screen is turning off, so you really should be able to fix things by doing whatever you need to there. What I'm trying to do is to work around bug 3755:

[android-developers] Detect/intercept screen turning off

2009-11-27 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Is there any way where I can detect that the screen is about to turn off, so I can do some work *before* it happens? I need this to work around bug 3755: OpenGL apps sometimes crash when the screen gets turned off because they don't get

[android-developers] No surfaceCreated() callback after phone wakes up

2009-11-25 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've got an OpenGL game with a SurfaceHolder being used to manage the screen. If I use the HOME button to temporarily switch away from the game, I see the following sequence of callbacks: Press HOME - onPause() surfaceDestroyed() onStop()

Re: [android-developers] EGL and surface destruction

2009-11-23 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David Given wrote: [...] I have an application that uses EGL. It creates an EGLSurface in the normal manner, draws on it, etc. Then the user presses the HOME button. The EGL spec says this: Following a power management event, calls

Re: [android-developers] Re: Securing a paid app

2009-11-23 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 jax wrote: [...] How would I go about generating the hash code? I am intending on using the ime. If you're in the UK and you want to keep track of customers' IMEIs, you may need to get legal advice --- there's a good chance you'll be liable under

[android-developers] EGL and surface destruction

2009-11-19 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have an application that uses EGL. It creates an EGLSurface in the normal manner, draws on it, etc. Then the user presses the HOME button. The EGL spec says this: Following a power management event, calls to eglSwapBuffers, eglCopy- Buffers,

[android-developers] Layout with all cells the same size

2009-10-20 Thread David Given
I'm trying to do something incredibly simple: I want a layout which evenly divides the space up among its children, so each child is the same size. I cannot figure out how to do this. LinearLayout appears to assign space to all of its children and then allocate the *remaining* space --- so a

[android-developers] Re: Layout with all cells the same size

2009-10-20 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tom Gibara wrote: Try setting the width of every child in your LinearLayout to 0, and their weights to 1. Yup, that works. Thanks! (But good grief, it's hardly intuitive. I'd have never have thought of that on my own.) - -- ┌─── dg@cowlark.com

[android-developers] Running big chunks of SQL

2009-09-16 Thread David Given
I want to initialise my database on app startup from a file containing quite a lot of SQL. I can't find any way of executing multiple statements at once. SQLiteDatabase.execSQL() is restricted to running *one* statement at a time. I know the SQLite library is capable of doing this; is there

[android-developers] Re: Intercepting SQLite's file reads / writes, so we can encrypt the storage

2009-09-04 Thread David Given
Chris Stratton wrote: [...] Pretty soon we'll be talking about a custom runtime linker that loads up a patched version of the existing sqlite... there must be a better way? You might be interested in HSQLDB: http://hsqldb.org/ It's a pure-Java SQL engine. Being pure Java, it has the

[android-developers] Returning files through a Cursor

2009-09-03 Thread David Given
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 make a content: URL behave as if it were a file. We've got it

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

2009-09-03 Thread David Given
Chris Stratton wrote: [...] I wonder if its expectations are close enough to those of the sources- provided non-gmail Email application that you could debug it against that and then switch back to gmail? Yes, of course I can... For reference, what GMail (and Email) want is a cursor

[android-developers] Re: FTP on android

2009-04-11 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark Murphy wrote: [...] Bear in mind that the Android emulator runs in a virtual machine (qemu). Just because you can get to the FTP server from your desktop does not necessarily mean you can get to it from the virtual machine. Also, don't

[android-developers] Re: Writing files to SD card failing

2009-02-07 Thread David Given
Tane Piper wrote: [...] File k = new File(j, rowId + .jpg); k.mkdirs(); k.createNewFile(); [...] However, it keeps failing on the line k.createNewFile(); with the error: WARN/System.err(10727):

[android-developers] Re: If your hosting your own .apk

2008-12-17 Thread David Given
; it is the obvious place for hosting this sort of thing... -- David Given d...@cowlark.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers

[android-developers] Re: If your hosting your own .apk

2008-12-16 Thread David Given
Tom wrote: My APK is 1.2M. I've searched for ways to reduce it in size without success. Any pointers? Alas, Google Pages is no more (unless you happen to have signed up for it before they started to shut it down), but sites.google.com is a similar free website hosting thingy that's nothing

[android-developers] Re: How to send email programmatically?

2008-12-10 Thread David Given
that the only thing this needs to work is that email apps declare themselves as supporting the mailto: data scheme? Do any Android email apps do this already? -- David Given [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Re: Download the Android Developers

2008-12-02 Thread David Given
replied to it; the initial message didn't make it through the filters and was eaten.) - -- David Given [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

[android-developers] Re: How to get MediaController positioned at a required location?

2008-12-02 Thread David Given
MediaPlayer.seekTo() to change the position in the stream. But if it *hasn't started playing yet*, you can't change the position. In other words, you need to wait for it the buffer the initial part of the stream and start playing before you can call seekTo(). - -- David Given [EMAIL PROTECTED] -BEGIN PGP

[android-developers] Re: Media Player Error -38,0

2008-12-01 Thread David Given
works. -- David Given [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group

[android-developers] Re: Android on iPhone

2008-12-01 Thread David Given
. (Incidentally, if anyone can point me at a real datasheet for the MSM7201A, I'd be interested to see it. All I can find are marketing puff pieces.) -- David Given [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: MediaPlayer seek on startup

2008-11-28 Thread David Given
David Given wrote: I'm trying to play streaming music. The user has previously requested that the stream start a certain way into the stream. How do I do this? [...] Does anyone have any suggestions on how do this? If I can't make this work, my app is basically stuffed, and nothing I've tried

[android-developers] Re: MediaPlayer seek on startup

2008-11-27 Thread David Given
seconds while the buffer gets filled from the correct location. Is there any way of streamlining this? Can I tell MediaPlayer to *just* read the metadata and not to try and fill the buffer, for example? -- David Given [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You

[android-developers] MediaPlayer seek on startup

2008-11-26 Thread David Given
I'm trying to play streaming music. The user has previously requested that the stream start a certain way into the stream. How do I do this? What I'm finding is that if I do: mediaplayer.setDataSource(...); mediaplayer.prepare(); mediaplayer.seekTo(...); ...then the seek happens *after* the

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

2008-11-21 Thread David Given
and fiddly. Given that this is the sort of thing that people are likely to want to do, are there any system services that will do it all for me, so I can throw away all my custom code? -- David Given [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: Android J2ME project

2008-11-11 Thread David Given
' pages on the left: http://code.google.com/android/documentation.html -- David Given [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] Re: How shall I need design my application when the device be rotated?

2008-11-08 Thread David Given
then on. I think this is similar to what the OP wanted... - -- David Given [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJFeA2f9E0noFvlzgRArsoAJ9fflTTq4fVF7zRVE/RjdN8PH1xqgCguUcR ntaRjSJFfTxaGI

[android-developers] ImageView automatic sizing

2008-11-08 Thread David Given
I have a layout problem with ImageView. I'm trying to display an image, with a border drawn round it, at the largest possible size that will fit in an area without changing the aspect ratio. I'm doing this with a simple ImageView, with the border drawn using a Drawable attached to

[android-developers] Re: Updating From HTTP

2008-11-07 Thread David Given
objects. -- David Given [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group

[android-developers] Re: Orientation Sensor yaw values. Is your G1 compass bad?

2008-11-04 Thread David Given
swimming in almost literal circles because I was a few metres away from an old magnetised torpedo, that was causing a complete 180° deflection. Even unmagnetised metal has a severe effect. Of course, if you're *not* standing on top of a lump of iron, +/- 46° does seem like a lot.) -- David Given [EMAIL

[android-developers] Re: Problems streaming ogg files

2008-11-03 Thread David Given
, but I'll try that later... are you sure Android doesn't support ogg? Ogg support was announced with some fanfare with the m5 SDK. Has it been removed again? -- David Given [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Activity menu icons

2008-11-02 Thread David Given
My application extensively uses menus constructed from activities declared in the manifest, using Menu.addIntentOptions() to get the system to automatically merge in any appropriate menu items based on the current activities' URL. This is working very well. Unfortunately, I haven't figured out

[android-developers] Re: SSH to the G1 ?

2008-11-02 Thread David Given
Ian Vaughan wrote: There must be a way in, if there is a way into the iPhone, then there must be here!? It's worth remembering that Android, while it uses the Linux *kernel*, does not use the Linux userland, and should not really be considered a normal Linux system. Other than adb, which is

[android-developers] Re: Making a distributed system

2008-11-02 Thread David Given
ThemePark wrote: Point taken. I didn't think it would use up a lot of battery power, but you're right, a lot of little bits certain would. It would be entirely possible to have the app only run when the device is charging; given that most people with smartphones leave them on charge overnight,

[android-developers] Re: Activity menu icons

2008-11-02 Thread David Given
Jason Parekh wrote: [...] As an interim solution, you could, in your onCreateOptionsMenu, go through each menu item and do: Intent intent = item.getIntent(); if (intent != null) item.setIcon(packageManager.getActivityIcon(intent)); Thanks, that ought to do it --- but I can't seem to find

[android-developers] Problems streaming ogg files

2008-11-02 Thread David Given
I'm trying to stream an ogg file over the network, but without success. MediaPlayer.setDataSource() throws an IOException: java.io.IOException: setDataSource failed.: status=0x8000 I know the destination file exists, and the same code works fine with mp3s, so this seems to be something

[android-developers] Re: Android Source Code Now Available

2008-10-21 Thread David Given
hackbod wrote: [...] In other words, if you use private APIs, you can -only- distribute the resulting app by having a carrier bundle it with a phone. Just out of interest, do you have an offline API checker app that could, say, be run against applications before they get uploaded to the App

[android-developers] Re: Android Source Code Now Available

2008-10-21 Thread David Given
Romain Guy wrote: That's what the SDK is for. If your app compiles against the SDK, you're good. Yes, but I'm more interested in making sure that *other people's* applications aren't doing anything they shouldn't be. -- ┌─── dg@cowlark.com ─ http://www.cowlark.com ─ │ │

[android-developers] Re: Algorithm writen in C

2008-10-02 Thread David Given
a system for running C on Java by compiling the C into MIPS machine code and then converting the machine code into Java bytecode (which would then get converted into Dalvik bytecode). The result will be slower than rewriting the app in Java, but that may be sufficient for your purposes. -- David

[android-developers] Re: How to have multiple Android projects in one Eclipse Project?

2008-10-02 Thread David Given
projects refer to. does that do what you want? -- David Given [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers

[android-developers] Re: G1 for developers in Europe

2008-09-24 Thread David Given
, but that would provide an easy way for people to get their hands on an unlocked device and so avoid the 2-year T-Mobile contract, so I doubt it will happen. (I'd love one. Not on that contract.) -- David Given [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message

[android-developers] List background style

2008-09-16 Thread David Given
I'm drawing a ListView. My graphic designer has specified a texture for the selected item; that's fine, I just put it in a drawable and set the ListView's listSelector attribute. However, he's *also* specified a texture for unselected items. I can't figure out how to do this. What I've tried: -

[android-developers] Re: List background style

2008-09-16 Thread David Given
Romain Guy wrote: There's a way to do this. Simply set your background texture on the list items, but use a selector for the background. For the state android:state_selected=true, simply use @android:color/transparent as the background. This way, when an item is selected, its texture won't be

[android-developers] shape documentation?

2008-09-10 Thread David Given
Does anyone know if there's any documentation for the shape XML language used for specifying drawables? I haven't been able to find anything, and http://code.google.com/android/reference/available-resources.html#drawables doesn't mention them. Currently I'm working from the examples in the SDK,

[android-developers] SQL replication?

2008-09-08 Thread David Given
I have an app that wants read-only access to a fairly small MySQL database held on a remote server. For speed, I want to hold a copy of the database locally. (It only gets updated once a week or so.) What I'm currently doing is I've got a PHP script on the remote machine that dumps out the

[android-developers] Re: MediaPlayer in 0.9?

2008-09-02 Thread David Given
, and so can't read application-owned files unless they're o+r (which is what WORLD_READABLE maps to). My files were being created with the default umask. -- David Given [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Re: Audio cache strategies

2008-09-02 Thread David Given
work streaming off the real internet? Is the buffering effective? -- David Given [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android

[android-developers] Re: Audio cache strategies

2008-09-02 Thread David Given
Josh Guilfoyle wrote: [...] Also, in my tests, the MediaPlayer buffers poorly. It seems to take 2 - 5 seconds to even gear up and make a connection for some reason, and then it seems to buffer more than is necessary in certain circumstances. I'd like to load a simple test up on the HTC Vogue

[android-developers] Re: MediaPlayer in 0.9?

2008-09-01 Thread David Given
Steve Oldmeadow wrote: Where are you storing the file? There is a change with the MediaPlayer where it can't open files in the application's data area for security reasons. Yes --- that was the problem. I now have it all working. Wonderful! Thanks! (Oddly enough, though, I'm still seeing an

[android-developers] Audio cache strategies

2008-09-01 Thread David Given
I'm currently working on a custom audio player app for an online music site. It has the following main requirements: a) I need to be able to play music without waiting for it to download. b) I wish to cache the music locally so that the user's favourite tracks don't need to be downloaded again.

[android-developers] MediaPlayer in 0.9?

2008-08-31 Thread David Given
I have an application that's a specialised streaming audio player, designed to play music from a particular online archive. I'm using the time-honoured technique of downloading into a file and telling MediaPlayer to stream from the file. This all worked on m5, but on 0.9 it fails: I call

[android-developers] Re: MediaPlayer in 0.9?

2008-08-31 Thread David Given
Joa wrote: Here's one more link which describes permissions No, there isn't! Did you mean to include something? I've had a look at the permissions, but don't see anything obvious --- the only two audio-related permissions appear to be MODIFY_AUDIO_SETTINGS and RECORD_AUDIO, neither of which

[android-developers] Re: 'Keytool error' when building

2008-08-30 Thread David Given
Megha Joshi wrote: [...] Your ADT error might be due to the keytool issue related to locale...see the link below: http://code.google.com/android/kb/troubleshooting.html#signingcalendar I'm UKian, and as far as we know we use the Gregorian calendar too... Creating and building an empty project

[android-developers] Re: 'Keytool error' when building

2008-08-30 Thread David Given
nazurro wrote: Hello, I have the EXACT same problem, want to try developing for Android but I just can't get it to work: Ubuntu 8.04 Eclipse 3.3.2 JVM: java-6-sun I would be very happy for suggestions. Beats me. Sorry. (That is, in fact, almost exactly my setup --- I'm using Eclipse

[android-developers] 'Keytool error' when building

2008-08-29 Thread David Given
I have just upgraded from m5 to 0.9 on Linux using the ADT on Eclipse 3.4, and (after fixing my program) I am finding that it's refusing to build anything. The project I'm using was created on m5 and I'm now using it on 0.9. I get the following in the Problem pane: Type: Generic ADT Problem

[android-developers] Re: how to run an application compiled with gcc

2008-07-03 Thread David Given
is only uses the Linux kernel, it's not a full Linux operating system, and as such is missing lots of things needed to make arbitrary applications work (like X). You will very likely only ever be able to run specially built Android applications on an Android device. -- David Given [EMAIL PROTECTED

[android-developers] Re: how to run an application compiled with gcc

2008-07-02 Thread David Given
Josh Guilfoyle wrote: This isn't entirely true. While Java is the only officially supported language, a quick Google search has revealed that folks have figured out how to use the ARM toolchain to build native C applications and even JNI libraries for use in Java. Yup; however, it is

[android-developers] Re: how to add progress bar with media Player??????

2008-07-01 Thread David Given
I fed it a malformed .ogg file. -- David Given [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com

[android-developers] Re: SDK Update?

2008-06-29 Thread David Given
Mark Armendariz wrote: Josh, I have to agree with Joa. Thanks for the inside info!! The fact that sdk updates are withheld from the earliest of adopters is ridiculous. Yes, I agree that this is clearly unacceptable. Obviously we should immediately demand our money back. -- ┌───

[android-developers] Re: Check within App whether running on Android platform?

2008-06-29 Thread David Given
kobica wrote: [...] It's a bit more complicated than that. I would like to create a common code to run on Android and Sun JVM. Android UI and swing UI Apps would be using that common code. Inside that common code, at time of init, I would like to know what is the VM type in order to

[android-developers] Re: Streaming in android

2008-06-24 Thread David Given
and undocumented errors, which probably all boil down to 'not supported yet'. -- David Given [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] Re: Streaming in android

2008-06-24 Thread David Given
is, and it *still* gets very confused (and crashes) if you use oggs instead of MP3s. But this is strictly a workaround, and a pretty clunky and unreliable one. MediaPlayer is *supposed* to be able to open remote URLs directly, but that doesn't work yet. -- David Given [EMAIL PROTECTED

[android-developers] Re: Secure area inside android

2008-06-11 Thread David Given
the user)' and 'open device' are probably antithetical... -- David Given [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android

[android-developers] Re: Google PLEASE don't let Android to dye

2008-06-11 Thread David Given
know enough about the OS to write apps on it, and they've sourced a reasonable number of private beta testers. -- David Given [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: Google PLEASE don't let Android to dye

2008-06-11 Thread David Given
Wiktor wrote: Gee... I really believe that Google developers are just hiding Android's real progress, and hoping it's doing just fine. But I do admit that even if Google has many innovative applications and ideas they can't do simple stuff like proper documentation. Well, I used to work for a

[android-developers] Re: Logcat loses cat

2008-06-11 Thread David Given
Nickname wrote: [...] With M5 SDK, the current Logcat window always loses log messages every time application is re-launched, so I need to close the current Logcat window and re-open another one to get the log messages for the re- launched application. I don't use the logcat window because I

[android-developers] Re: Spinner - No selection

2008-06-09 Thread David Given
still massage the data any way you like when populating the spinner. -- David Given [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] Re: Spinner - No selection

2008-06-09 Thread David Given
Mark Murphy wrote: David Given wrote: Simplest solution is probably to use a custom ViewBinder on your SimpleCursorAdapter that adds a '(no selection)' row to the spinner. Can a ViewBinder add rows? I don't see how given the API. Yeah, if you're mapping the Spinner's data directly onto

[android-developers] Re: Question About AndroidManifest.xml and resources

2008-06-07 Thread David Given
Wesley wrote: [...] 1. Basically the error mean I did not declare activity in manifest where generate this error when I start activity... What I intent to do is to start activity without declare it at manifest... How can I hard code those manifest info inside my code to start an activity? I'm

[android-developers] Re: Assorted API questions

2008-06-05 Thread David Given
Mark Murphy wrote: [...] For that matter, are there any rules as to how an application should use SD card space? You'll need a Googler to answer strictly about rules. That being said, I recommend you consider the SD card contents to really be the user's prerogative in terms of layout

[android-developers] Smooth image scaling

2008-06-01 Thread David Given
I'm trying to scale quite a large image (500x500 pixels or so) to fit on the screen. The standard Canvas scaler appears to use a simple nearest-neighbour algorithm, which results on really nasty aliasing and horrible jaggies. Does Android contain any interpolating scalers? My next step is to

[android-developers] Re: ListActivity woes

2008-05-31 Thread David Given
Mark Murphy wrote: [...] If you're sure your data set won't be a-changin' underneath you, you could try using an unmanaged cursor. However, if other activities have the capability of modifying the data you're showing in the list (e.g., it's a public content provider), then I suspect you

[android-developers] Audio streaming

2008-05-27 Thread David Given
Has anyone ever gotten MediaPlayer to play audio streams directly off the network without having to download them first? Here is my naive code straight out of the manual: ---snip--- _player = new MediaPlayer(); _player.setOnPreparedListener(this); _player.setOnErrorListener(this);

[android-developers] Re: How to access the native(local) files in emulator

2008-05-03 Thread David Given
Liang Yang wrote: [...] Is it possible to access the file in emulator, such as files in the below directories : If you mean from the host computer, try 'adb pull'. If you mean from an Android application, the standard Java file I/O functions work as you would expect (although Unix file

[android-developers] Hash vs pound

2008-05-02 Thread David Given
A simple but vital question... There seems to be no KEYCODE_HASH symbol. However, there is a KEYCODE_POUND symbol. Is KEYCODE_POUND supposed to represent # or £? If it's supposed to represent #, then what symbol represents £? -- David Given [EMAIL PROTECTED

[android-developers] Re: Edit Text Max Limit charactars

2008-05-02 Thread David Given
Greg wrote: hello u there?? Um, you only posted your message three minutes ago. You may want to wait a little longer before following up, like about 24 hours. -- ┌─── dg@cowlark.com ─ http://www.cowlark.com ─ │ I have always wished for my computer to be as easy to use as my │

[android-developers] Re: About negative byte 0xC0 = -61 != 0xC0

2008-04-27 Thread David Given
Romain Guy wrote: All Java types are unsigned (except char). Yes, that's dumb. No, all Java types are *signed* except char. D'oh! Indeed so. I seem to have missed a ! from the beginning of that statement. It's still dumb, though. -- ┌─── dg@cowlark.com ─ http://www.cowlark.com ─ │

[android-developers] Re: Launching an activity from the web browser

2008-04-22 Thread David Given
; InstallerActivity never gets instantiated. Is there anything else I need to do register a MIME type handler than just put it in my manifest? Do I need to, for example, provide a description? -- David Given [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received

[android-developers] Launching an activity from the web browser

2008-04-21 Thread David Given
have this *working*? If so, how? -- David Given [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com

[android-developers] Re: About load '.so' library file with JNI

2008-04-17 Thread David Given
with. While you can bodge it and make it work, sort of, it's not very reliable. I'd suggest you limit your code to simple calculations and do all your I/O through Java.) -- David Given [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: About load '.so' library file with JNI

2008-04-10 Thread David Given
UnsatisfiedLinkError. If your library loads but doesn't contain an appropriate implementation of a native method, you'll get UnsatisfiedLinkError when you call the native method (which I think is what's happening here). -- David Given [EMAIL PROTECTED

[android-developers] intent actions vs. filter actions

2008-04-10 Thread David Given
the Activity receives the Intent, it hasn't had its Action set to the value in the filter. Any suggestions as to how I can resolve this? Other than subclassing InstallerActivity, of course. -- David Given [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received

[android-developers] Re: Slow Bitmap operations

2008-04-10 Thread David Given
qvark wrote: [...] The set of algorithms executed with a Sun JVM (1.6.0_03) take less than 20 secs but when I execute them within the emulator (in the same machine), they are taking over 7 minutes! That's more than 20x slower! AFAIK, the Dalvik VM is currently an *interpreter*... running on an

[android-developers] Re: About load '.so' library file with JNI

2008-04-09 Thread David Given
for a thread with the title 'Unresolved symbols JNI' for more information. -- David Given [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] Re: bitmap image changed. but why?

2008-04-08 Thread David Given
whenever you call setPixels() it does lossy format conversion. You may want to turn off dithering, as this will introduce noise. -- David Given [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: Registering content types with the web browser?

2008-04-06 Thread David Given
sasperilla wrote: If I try and download a file type with the web browser that's not supported. I get a message saying Unable to download file as content type is not supported. Is there a way I can register my application as a supporter of a particular content type or mime type? AFAIK, you

[android-developers] Re: JAD - Java Application Descriptor like

2008-04-04 Thread David Given
it by looking at ComponentInfo.metaData for the activity. http://code.google.com/android/reference/android/R.styleable.html#AndroidManifestMetaData -- David Given [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: dlopen() behaving weird

2008-04-03 Thread David Given
. -- David Given [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send

[android-developers] Re: Custom listview

2008-04-03 Thread David Given
on there. -- David Given [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group

  1   2   >