[android-developers] Re: build JNI C code fail ???

2009-04-27 Thread MrSnowflake
Probably because JNI is not supported. On 27 apr, 03:33, Keroro wrote: > build JNI C code fail ??? > > Why build error? > > build and Error Message: > .../mydroid$ make libmax > target thumb C: libmax <= development/max/max.c > development/max/max.c: In function 'Java_testdll_set': > development

[android-developers] Re: How to mix 2D graphics with layouts

2009-04-27 Thread MrSnowflake
I imagine this working (never used FrameLayout before, so I'm hoping :) ): Use a FrameLayout and have the 2D graphics view behind some other layout, and to the latter you add your EditText and other Views. On 26 apr, 15:20, "Christian S." wrote: > I'd like to build an activity that is mixing lay

[android-developers] Re: c++ on android

2009-04-27 Thread MrSnowflake
Officially JNI is not supported, so you probably can't distribute it through Market. Though I have the impression the text2speech lib in Market does have a lib. But then again, that app is probably powered by Google too. On 26 apr, 16:42, julian qian wrote: > Hi, >     right now, all app develo

[android-developers] Re: Regarding Device level APIs

2009-04-27 Thread MrSnowflake
A device driver should be written in C, but then you need to do it in the source of android and build your own Android. You can't write device drivers(/modules) using the Android application SDK. On 25 apr, 10:37, GKM wrote: > Hi All, > > I am new to Android. Please clear my doubts. > > I could

[android-developers] Re: Optional API - What happen if there is no ...

2009-04-27 Thread MrSnowflake
Then you are coding wrong! You should check whether location hardware is available before using location api calls. So you should never be in the situation where you use the Location api on a device without location hardware. LocationManager (http://developer.android.com/reference/android/ locati

[android-developers] Re: can't play wma file on a server

2009-04-27 Thread MrSnowflake
Because wma is not supported by Android (the G1 has wma support, but that's because htc has to pay licence fees to Microsoft). (http:// dev.android.com/guide/appendix/media-formats.html) On 25 apr, 16:07, Tiger wrote: >         The code following is from ApiDemo. > >         path = "http://f.don

[android-developers] Re: HTTP Unnkown socket error

2009-04-27 Thread Charlie Collins
Post some more info please. What SDK are you using (and if using 1.5 pre, what target?). Is this error seen in the emulator? How are you trying to "do the HTTP connection?" Also, what is the rest of the related stack/log? On Apr 27, 7:11 am, glory wrote: > Hi All, > > Whenever I am tring to d

[android-developers] "R cannot be resolved" after updating to 1.5 SDK Pre, and trying to compile for 1.1

2009-04-27 Thread hc
I updated to 1.5 SDK pre, together with the ADT. I followed the instruction to select Android 1.5 as target by right clicking on the project, Preferences>Android. In this window there are 3 options, Android 1.1 Android 1.5 Google APIs I selected Android 1.5 and Apply, clicked OK. Application comp

[android-developers] Re: Dialog Survival Over Configuration Change

2009-04-27 Thread AusR
I see bug 1639 - is there a workaround to restore a 're-created' dialog using code in an overridden onPrepareDialog? On Mar 6, 6:13 am, Romain Guy wrote: > >> It is a problem. In my, and others', opinion it is a *bug* that the > >> onPrepareDialog is not called when adialogis restored on a > >>c

[android-developers] Re: "R cannot be resolved" after updating to 1.5 SDK Pre, and trying to compile for 1.1

2009-04-27 Thread Satya Komatineni
considering that R.java is a generated file, try deleting it and see if the environment rebuilds according to your preference. On Mon, Apr 27, 2009 at 8:57 AM, hc wrote: > > I updated to 1.5 SDK pre, together with the ADT. I followed the > instruction to select Android 1.5 as target by right cl

[android-developers] Re: How to draw a piece of Bitmap

2009-04-27 Thread Nick
Yes, I managed with this "problem". I use specific drawBitmap method of Canvas class - public void drawBitmap (Bitmap bitmap, Rect src, Rect dst, Paint paint) Example: Rect rect = new Rect(0, mCanvasHeight - mY, mCanvasHeight, mBackgroundHeight - mY); Rect rect2 = new Rect(0, 0, mCanvasWidth, mCan

[android-developers] Re: android 1.5: How do we use the AudioTrack class?

2009-04-27 Thread Moto
Hey Niko thanks for your reply... I'm not sure if I can stream mpeg or aacp streams it seems like it's only PCM format... :( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to t

[android-developers] How to get filter text from a ListView?

2009-04-27 Thread Vince
Hi all, I'm using a ListView with text filter enabled. I wonder if there is any way to get filter text? I'm afraid there is a setFilterText (String) method but not a public String getFilterText(). Or I'm missing something? Thanks. --~--~-~--~~~---~--~~ You receive

[android-developers] Re: How to config G1 to make both browser and MMS work?

2009-04-27 Thread shimsim
OK, browser problem solved with cmnet, you dont need to enter any proxy details as suggested above. So does anyone know why cmwap does not get a data connection with the G1 ? On Apr 24, 11:46 pm, biAji wrote: > if you use cmnet as apn. keep the proxy blank. It's only useful in > cmwap. > > G1'

[android-developers] Re: "R cannot be resolved" after updating to 1.5 SDK Pre, and trying to compile for 1.1

2009-04-27 Thread hc
Hi, I just tried that. But it does not work. After removing the file, I still get the same error when I try to compile for 1.1 SDK. Worse, when I try to compile for 1.5 SDK after that, I get the following error but application compiled successfully Conversion to Dalvik format failed with error 1

[android-developers] Re: What's the proper way to share data between lite and pro versions of the same app?

2009-04-27 Thread Just Checking
I tried that, and it didn't seem to work. In both manifests, I specified: android:sharedUserId="org.mydomain.projectname" But no luck. >From the documentation, I think the only thing it does is make the two processes run under the same user ID, but you still have to do something else to make one

[android-developers] why no Horizontal GridView/ListView ?

2009-04-27 Thread allstars
hi i would like to ask why GridView can only be vertically there is a HorizontalScrollView but there is a ScrollView , which is vertically i know GridView and ListView both extend from AbsListView which is only for vertical but i would like to ask why you didnt design more Horizontal widgets i

[android-developers] How To Load Previous Activity

2009-04-27 Thread Reghu
Hello, Is it possible to call methods of a Activity from service. I am running a thread from a service and i listening to some external event from that thread. I am not able to call methods from that thread. Is there any way to call methods from a thread. Thank you --~--~-~--~~---

[android-developers] Re: Get File Path With URI

2009-04-27 Thread GeorgKitz
Does your code work? I have exactly the same source and i'm setting the cursor to the first element. The only problem is that my latitutde-value is always 0. But the image has EXIF information about the location in it. Can somebody help me? Regards Georg On Apr 1, 8:11 pm, Bobbie wrote: > I a

[android-developers] Re: What is LOCAL_MODULE_TAGS?

2009-04-27 Thread gongshengxi
Hi, This link may help you. http://android.git.kernel.org/?p=platform/build.git;a=blob_plain;f=core/build-system.html;h=43bae03b6b7b9cba678b86d2faf424fa565497bf;hb=HEAD Take care because it says " Status: Draft(as of May 18, 2006) " at the top. On 3月5日, 午後7:03, Daisuke Miyakawa wrote: >

[android-developers] Is it possible to call methods of a Activity from service.

2009-04-27 Thread Reghu
Hello, Is it possible to call methods of a Activity from service. I am running a thread from a service and i listening to some external event from that thread. I am not able to call methods from that thread. Is there any way to call methods from a thread. Thank you --~--~-~--~~---

[android-developers] GridView and BaseAdapter position bug

2009-04-27 Thread Illidane
Hi, I'm using GridView in my app, and myAdapter ( extends BaseAdapter) for it. I have overrited method getView(int position, View convertView, ViewGroup parent) of Adapter and 100 cells in GridView. If I set logger: android.util.Log.w("bla", (new StringBuilder()).append (position).toString()); wh

[android-developers] Why not build an installer for android on WM phones?

2009-04-27 Thread Theuntje
I was wondering.. I've been following the android development for quite a time now.. I am certainly not an developer but why doesn't the android group bring out an application with wich u can simpel install android over your current windows mobile.. I know that there are lot's of things that may

[android-developers] Re: Voice Recognition in API demos crashing

2009-04-27 Thread Katsiaryna
I have the same problem, both when I try to invoke the voice recognition from the ApiDemos or from my own application. The exception I get is "No Activity found to handle Intent { action=android.speech.action.RECOGNIZE_SPEECH (has extras) } ". Probably, something is wrong with the settings of my e

[android-developers] Detecting Physical Keyboard (not Cupcake software keyboard)

2009-04-27 Thread CraigsRace
Hi all, Does anyone know how to detect if the phone has a physical keyboard, and not an on screen software keyboard? The reason I need to do this is because my app needs multiple keys pressed simultaneously, and this isn't possible with an on screen keyboard. Thanks! Craig. --~--~-~--~

[android-developers] Using SDK 1.5 to build 1.1 apps?

2009-04-27 Thread jsdf
Hi all, I've been playing with the 1.5 SDK recently, and understand it contains both 1.1 and 1.5 within. The release notes contain this dire warning: "Note: This is an early look SDK only. The tools and documentation are not complete. The API reference documentation for the early look SDK is prov

[android-developers] Re: How to draw a piece of Bitmap

2009-04-27 Thread Streets Of Boston
My app zooms in and out of pics and lets the user moved the (zoomed) in pic around. The key methods for mapping a sub-picture (the one the size of the screen) is done by using the calls Matrix.setRectToRect and Bitmap.createBitmap(Bitmap source, int x, int y, int width, int height, Matrix m, boole

[android-developers] Re: URGENT!!!!! Can't update apps in android market!!!

2009-04-27 Thread Hw3699
Not matter using or It doesn't work. I use 1.1 ADT. Who successfully upload .apk to android market using 1.1 ADT, please share the solution. Thanks On Apr 25, 3:43 am, ACast wrote: > After adding minSdkVersion as above market complained that there was > already an application with the same

[android-developers] Re: How to display RGB 565 byte array on the screen

2009-04-27 Thread Streets Of Boston
Take a look at this method on developer.android.com: Bimtap BitmapFactory.decodeByteArray(byte[] data, int offset, int length, BitmapFactory.Options opts) and how to draw a Bitmap on the screen (onDraw; dispatchDraw; Canvas; etc.) On Apr 27, 6:20 am, lohith wrote: > Hi, > > Can please anyone l

[android-developers] Re: URGENT!!!!! Can't update apps in android market!!!

2009-04-27 Thread jsdf
aleung, you are correct. It seems the line "" is preventing the AndroidManifest.xml from being parsed correctly. Unfortunately, I have Maps in my application and cannot simply remove this line. Were you (and others) using the 1.5 SDK package with a 1.1 target to build your application? Or were y

[android-developers] Re: Framerate killed by onTouchEvent spam

2009-04-27 Thread Streets Of Boston
One work-around works rather well if you do the onTouchEvent handling in the main GUI-thread and drawing the screen in another (background) thread. In your handling of your onTouchEvent (especially when handling the ACTION_MOVE) add a sleep statement for about 20 milliseconds (or a bit longer) (t

[android-developers] Re: java.lang.OutOfMemoryError: bitmap size exceeds VM budget

2009-04-27 Thread Streets Of Boston
I do this in my app as well, and it works fine using BitmapFactory. But i make sure that this large bitmap (full-size image, 6Mpix) is about the only one loaded in my application. If not, i get the same exception. Opening 2 of these large ones will give me this exception, whatever i do. On Apr 2

[android-developers] port openRecordStore from J2ME to android

2009-04-27 Thread Tony Chan
which class I should be using to do that? Thanks Tony --~--~-~--~~~---~--~~ 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

[android-developers] Get Latitude/Longitude informations of an image

2009-04-27 Thread Georg
Hi, I'm trying to retrieve Latitude/Longitude informations of an image, but I always get 0.0 for lat/lon. But I know the image has this information inside, because I tried it with exiftools. When I use exiftools I can see the lat/lon values. My Source: startActivity: Intent intent = new Inten

[android-developers] Re: Framerate killed by onTouchEvent spam

2009-04-27 Thread MrSnowflake
Is this slowdown 'solved' when using the new GLSurfaceView? On 27 apr, 16:28, Streets Of Boston wrote: > One work-around works rather well if you do the onTouchEvent handling > in the main GUI-thread and drawing the screen in another (background) > thread. > > In your handling of your onTouchEve

[android-developers] Re: What's the proper way to share data between lite and pro versions of the same app?

2009-04-27 Thread MrSnowflake
But with the same user id you should have owner privileges to the lite's directory, so can't you open /data/data/package.to.lite/file? On 27 apr, 15:47, Just Checking wrote: > I tried that, and it didn't seem to work. In both manifests, I > specified: > > android:sharedUserId="org.mydomain.proje

[android-developers] Re: GridView and BaseAdapter position bug

2009-04-27 Thread Romain Guy
It's not a bug. There's no guarantee in the order of the calls wrt to the position value. It also depends on how the GridView is measured/laid out. On Mon, Apr 27, 2009 at 6:38 AM, Illidane wrote: > > Hi, > I'm using GridView in my app, and myAdapter ( extends BaseAdapter) for > it. I have overr

[android-developers] Re: ListView checked state wrongly shared between 2 views when reorienting screen

2009-04-27 Thread Romain Guy
Your two list views probably have the same id. On Sat, Apr 25, 2009 at 11:00 AM, Chris wrote: > > Hi, > > I have TabActivity that uses 2 other ListActivities for the tabs. > Both underlying ListViews are set to CHOICE_MODE_MULTIPLE. > When I run the following sequence of events, I get a strange

[android-developers] Re: Blank screen when switching activities

2009-04-27 Thread MrChaz
anybody? On Apr 25, 7:18 pm, MrChaz wrote: > Hey, > > I've got a basic list activity with a few images that when you select > one starts a new activity with a SurfaceView (based on the Lunar > Lander sample). > Some times the screen is just blank, from some debugging I can see > that the backgro

[android-developers] Re: GridView and BaseAdapter position bug

2009-04-27 Thread Illidane
Why number of getView calls is different?? One time it's 102 ( but need to be 100 ) and the second and greater is 101. On 27 апр, 18:15, Romain Guy wrote: > It's not a bug. There's no guarantee in the order of the calls wrt to > the position value. It also depends on how the GridView is > measur

[android-developers] Re: build JNI C code fail ???

2009-04-27 Thread Michael MacDonald
Keroro wrote: You need to supply variable names for all your function parameters, not just jinit j. > Why build error? > > build and Error Message: > ../mydroid$ make libmax > target thumb C: libmax <= development/max/max.c > development/max/max.c: In function 'Java_testdll_set': > development/

[android-developers] Re: c++ on android

2009-04-27 Thread julian qian
oh, thanks!! will do a research over t2speech.. On Mon, Apr 27, 2009 at 8:06 PM, MrSnowflake wrote: > > Officially JNI is not supported, so you probably can't distribute it > through Market. > > Though I have the impression the text2speech lib in Market does have a > lib. But then again, that a

[android-developers] Re: What's the proper way to share data between lite and pro versions of the same app?

2009-04-27 Thread Michael MacDonald
You have to specify the full path when opening the SQL database, instead of using the helper that derives it from the context. Just Checking wrote: > I tried that, and it didn't seem to work. In both manifests, I > specified: > > android:sharedUserId="org.mydomain.projectname" > But no luck. > >

[android-developers] Re: Voice Recognition in API demos crashing

2009-04-27 Thread zlu
When I run the demo app (by clicking on the speak button) on dev phone with firmware 1.1, I do get to see the screen where you can speak to the phone but it dies after that. On Apr 27, 3:46 am, Katsiaryna wrote: > I have the same problem, both when I try to invoke the voice > recognition from th

[android-developers] Re: GridView and BaseAdapter position bug

2009-04-27 Thread Streets Of Boston
The child/item-views in list-views and grid-views are re-used (convertView input parameter). I suspect that depending on the layout/ measurements/visibility of the child-views and the way you implement getView (re-using convertView or ignoring it and returning a brand-new child-view every time), t

[android-developers] Re: GridView and BaseAdapter position bug

2009-04-27 Thread Illidane
I dont use convertView parametr and return new child-view. Each cell has an animation. In the getView I generate an array of animations, wich I start when the adapter stops his work ( e.g. when my mAnimCounter == 102 ( but need be max 100, lol ) When I run app, all 100 cells are animated. But whe

[android-developers] Re: GridView and BaseAdapter position bug

2009-04-27 Thread Romain Guy
You should ALWAYS reuse the convertView, oherwise you're gonna eat up memory and just slow down your app. And like I said, there is no guarantee on how and when getView() is called so you cannot rely on it with your anim counter. 2009/4/27 Illidane : > > I dont use convertView parametr and return

[android-developers] Re: Is it possible to call methods of a Activity from service.

2009-04-27 Thread Justin (Google Employee)
Look into android.os.Handler. Cheers, Justin Android Team @ Google On Apr 27, 6:24 am, Reghu wrote: > Hello, > > Is it possible to call methods of a Activity from service. > > I am running a thread from a service and i listening to some external > event from that thread. > I am not able to call

[android-developers] Re: GridView and BaseAdapter position bug

2009-04-27 Thread Illidane
Even with convertView problem is still same - last cell is not animating. And... you said WHEN getView()... I think it's no matter, matter HOW MANY times getView() called. It calls more than 100 times, whats very strange. For the first time it's called 102 times and all animations was working. For

[android-developers] Re: GridView and BaseAdapter position bug

2009-04-27 Thread Romain Guy
There is no guarantee it's going to be called N times either. 2009/4/27 Illidane : > > Even with convertView problem is still same - last cell is not > animating. > And... you said WHEN getView()... I think it's no matter, matter HOW > MANY times getView() called. > It calls more than 100 times,

[android-developers] Re: Get File Path With URI

2009-04-27 Thread Sergey Ten
After query returns the cursor, it has to be moved forward. It can be done as follows: ContentResolver cr = getContentResolver(); Cursor cursor = cr.query(photoUri, new String[] { MediaStore.Images. > > ImageColumns.LATITUDE, >MediaStore.Images.ImageColumns.LONGITUDE >

[android-developers] Re: GridView and BaseAdapter position bug

2009-04-27 Thread Illidane
And you think it's not a bug? where is guarantee that it will work in general? Where adapter takes it's magic number N? On 27 апр, 19:56, Romain Guy wrote: > There is no guarantee it's going to be called N times either. > > 2009/4/27 Illidane : > > > > > > > > > Even with convertView problem is

[android-developers] Re: c++ on android

2009-04-27 Thread Dianne Hackborn
Please subscribe to android-ndk and follow what people are doing there. On Mon, Apr 27, 2009 at 8:38 AM, julian qian wrote: > oh, thanks!! > will do a research over t2speech.. > > > On Mon, Apr 27, 2009 at 8:06 PM, MrSnowflake wrote: > >> >> Officially JNI is not supported, so you probably can'

[android-developers] Re: What's the proper way to share data between lite and pro versions of the same app?

2009-04-27 Thread Dianne Hackborn
Don't specify the full path, just use Context.createPackageContext() to create a Context for the other package, and then use the data access APIs from there. Absolute paths: bad bad bad. On Mon, Apr 27, 2009 at 8:43 AM, Michael MacDonald < googlec...@antlersoft.com> wrote: > You have to specify

[android-developers] Re: Detecting Physical Keyboard (not Cupcake software keyboard)

2009-04-27 Thread Dianne Hackborn
getResources().getConfiguration() -- the Configuration object has all of this info. On Mon, Apr 27, 2009 at 4:51 AM, CraigsRace wrote: > > Hi all, > > Does anyone know how to detect if the phone has a physical keyboard, > and not an on screen software keyboard? The reason I need to do this > is

[android-developers] Re: What is LOCAL_MODULE_TAGS?

2009-04-27 Thread Dianne Hackborn
Please post such questions on android-porting; thanks. 2009/3/5 Daisuke Miyakawa > Hi, > > When I'm looking over source code, I often find LOCAL_MODULE_TAGS. But > there's no definition about that. > > Especially, I'm interested in the difference between > - eng > - user > - optional > - develop

[android-developers] Re: why no Horizontal GridView/ListView ?

2009-04-27 Thread Dianne Hackborn
Whoops sorry, I am wrong, it is Gallery that is horizontal. Anyway our primary navigation through data in the UI is vertical, so those are the widgets we have. We generally try to keep features out of the platform that aren't commonly used (especially in the built-in apps) because (a) they use sp

[android-developers] Re: why no Horizontal GridView/ListView ?

2009-04-27 Thread Dianne Hackborn
Er... GridView -is- horizontal. (And HorizontalScrollView is just being added for 1.5.) On Mon, Apr 27, 2009 at 6:57 AM, allstars wrote: > > hi > i would like to ask why GridView can only be vertically > > there is a HorizontalScrollView > but there is a ScrollView , which is vertically > > i

[android-developers] Re: What is the correct way to refresh UI when I use android:configChanges="keyboardHidden|orientation"

2009-04-27 Thread Dianne Hackborn
You realize that you need to save and restore your state to work correctly anyway, right? If you don't, you will lose your state when the user returns to it after it was killed in the background. So do that first. Seriously. You have to do it anyway. Then once you have that working, you can lo

[android-developers] Cupcake on ADP1

2009-04-27 Thread ericsk
Hi, I've upgraded my ADP1 to cupcake through the official roms: http://www.htc.com/www/support/android/adp.html#s3 However, the official roms equiped ONLY English locale now. Will the official ADP1 roms equip other locales (e.g., Chinese) in the future? anybody knows? Thanks. --~--~-~-

[android-developers] Re: GridView and BaseAdapter position bug

2009-04-27 Thread Streets Of Boston
It's not buggy. I use the adapters and grid/list-views in my apps and they work fine. I think they are not designed for your purpose. e.g. If your adapter has 100 elements and the grid/list-view only shows about 15 at a time on the screen, the getView is called about 15 times. Sometimes more time

[android-developers] Re: Transparency on Views behaving differently in 1.5

2009-04-27 Thread cnordvik
This is a workaround for the 1.5 emulator if anyone is interested: ... android:background="@color/my_transparent_background" ... ... # ... -Christer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android D

[android-developers] Re: Parsing &#xx; characters in XML

2009-04-27 Thread Marcus
I have the same problem. I'm using the org.w3c.dom namespace for reading and parsing xml data. My data also contains &#xx; entities. But when I try to get the node value with node.getNodeValue(), the string stops at the first occurrence of a entity like that. So I event can't decode the entity.

[android-developers] Re: Early Look Android 1.5 SDK

2009-04-27 Thread havexz
After 1.5 is released officially, for how long do we have to support for the older versions? Also tell me how can we release two different versions (one for 1.1 and other for 1.5) on the market? I cant develop for the new version untill these issues are resolved. On Apr 22, 8:50 pm, havexz wrot

[android-developers] Re: Early Look Android 1.5 SDK

2009-04-27 Thread havexz
After 1.5 is released officially, for how long do we have to support for the older versions? Also tell me how can we release two different versions (one for 1.1 and other for 1.5) on the market? I cant develop for the new version untill these issues are resolved. On Apr 22, 8:50 pm, havexz wrot

[android-developers] Android 1.5 SDK now available

2009-04-27 Thread Xavier Ducrohet
Hello developers, The Android 1.5 SDK, and the 1.5 images for ADP1 are now available for download. More information at http://android-developers.blogspot.com/2009/04/android-15-is-here.html Xav -- Xavier Ducrohet Android Developer Tools Engineer Google Inc. --~--~-~--~~--

[android-developers] Android Market: Can you download apps without publishing them? Do you pay for your own apps? +signing problems

2009-04-27 Thread Just Checking
Suppose you upload a paid app and you want to test if it works correctly when downloaded from Android Market - do you pay for it? Are your own apps free to you? And to download it from the market, do you have to make it visible to the whole world? I tried to upload an app, the uploader accepts i

[android-developers] Re: Android Market: Can you download apps without publishing them? Do you pay for your own apps? +signing problems

2009-04-27 Thread Justin (Google Employee)
> I tried to upload an app, the uploader accepts it, but when I try to > download it from the phone it says "package file was not signed > correctly". Did you already have your app installed when you tried to download the version from Market? If so, was the existing version uploaded automatically

[android-developers] How to analyze memory usage of your Android application

2009-04-27 Thread kohlerm
Hi all, If you interested in how to analyze the memory usage (including finding leaks) of your android app you might want to check my latest blog post at: http://kohlerm.blogspot.com/2009/04/analyzing-memory-usage-off-your-android.html Also not yet all features of Dalvik are supported, I think it

[android-developers] Re: Android 1.5 SDK now available

2009-04-27 Thread Mark Murphy
> The Android 1.5 SDK, and the 1.5 images for ADP1 are now available for > download. > > More information at > http://android-developers.blogspot.com/2009/04/android-15-is-here.html Congratulations! MLM (writing from a hotel room in Sweden) -- Mark Murphy (a Commons Guy) http://commonsware.co

[android-developers] Re: MediaPlayer.start() doesnot work fine after calling MediaPlayer.seekTo(0)

2009-04-27 Thread niko20
You have to call Stop() before you can call Seek(). Also you have lots of MediaPlayers which is not a good idea. I would upgrade to 1.5 cupcake SDK and use the AudioTrack classes (or soundpool maybe) -niko20 On Apr 27, 3:20 am, Sudha wrote: > Hi, > > I have a requirement to play several sounds

[android-developers] Re: GridView and BaseAdapter position bug

2009-04-27 Thread Illidane
My GridView shows all 100 cells on the screen ( all visible at one moment ) and all the animation works fine, and pretty fast ( on all 100 elements ), but than begin problems with last cell. Animation not child-view's. Each cell is a imageView with animation on it. On 27 апр, 20:43, Streets Of B

[android-developers] Re: GridView and BaseAdapter position bug

2009-04-27 Thread Illidane
There is a way to make GridView without Adapter ( e.g. something like .addView() method ) ? On 27 апр, 21:38, Illidane wrote: > My GridView shows all 100 cells on the screen ( all visible at one > moment ) > and all the animation works fine, and pretty fast ( on all 100 > elements ), > but than

[android-developers] Re: Android Market: Can you download apps without publishing them? Do you pay for your own apps? +signing problems

2009-04-27 Thread Just Checking
I already did have the app installed through Eclipse. Before uploading the app, I exported the apk, then signed it with jarsigner. I also tried adb uninstall before downloading; no luck there either. How about my other questions? --~--~-~--~~~---~--~~ You received

[android-developers] Re: Android Market: Can you download apps without publishing them? Do you pay for your own apps? +signing problems

2009-04-27 Thread Justin (Google Employee)
Having the app installed with two different certs used for signing would have definitely caused a problem. What's your app? What does logcat say when you try to download? As far as paying for your own app, I think you do, not really sure. This is pretty simple to test and it doesn't seem like giv

[android-developers] Re: MediaPlayer.start() doesnot work fine after calling MediaPlayer.seekTo(0)

2009-04-27 Thread BlackLight
I have same problem. I tried to seek()/start() and tried to create players too. Some sounds are silent if play them often. Any idea? Sometimes sound stuck at all. No sound anymore in active Activity, but if I go to my program menu (back button) and lunch play activity again - sounds are fine. On

[android-developers] Re: MediaPlayer.start() doesnot work fine after calling MediaPlayer.seekTo(0)

2009-04-27 Thread BlackLight
BTW: Seeks to specified time position. Call this after start(), pause(), or prepare(), or after receiving onPrepared or onCompletion event notification from OnPreparedListener or OnCompletionListener interface. No need to stop. Right? On Apr 27, 10:34 pm, niko20 wrote: > You have to call Stop()

[android-developers] Need help on Mobile Middleware

2009-04-27 Thread David
Hey guys, I was wondering, if you have any suggestions on the best Mobile Middleware solutions for the enterprise. If you could suggest any another alternatives to Mobile Middleware that will also be helpful. Thanks for your help! Best, David --~--~-~--~~~---~--~

[android-developers] Re: Parsing &#xx; characters in XML

2009-04-27 Thread Michael MacDonald
The entity is another node. You have to get the next node (the entity) and append it to the value from the previous node, and then add any ensuing nodes in the value (characters or entities) Marcus wrote: > I have the same problem. > > I'm using the org.w3c.dom namespace for reading and parsing

[android-developers] Re: Parsing &#xx; characters in XML

2009-04-27 Thread Marcus
Thank you for reply. This might be correct. But the problem for me was, that the file didn't have an encoding set. Serializing the xml with encoding set (to utf-8) and reading it back works. --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Re: Android Market: Can you download apps without publishing them? Do you pay for your own apps? +signing problems

2009-04-27 Thread Just Checking
I emailed you the name of the app. logcat simply says: I/vending ( 186): com.android.vending.AssetDownloader $DownloadManagerBroadcastReceiver $MyPackageInstallObserver.packageInstalled(): Package install from content://downloads/download/329 failed: Package file was not signed correctly. Givi

[android-developers] Re: Android 1.5 SDK now available

2009-04-27 Thread Mariano Kamp
Awesome. Now networking works in the emulator again. Thanks guys! On Mon, Apr 27, 2009 at 8:12 PM, Xavier Ducrohet wrote: > > Hello developers, > > The Android 1.5 SDK, and the 1.5 images for ADP1 are now available for > download. > > More information at > http://android-developers.blogspot.com

Please unsubscribe joesensp...@gmail.com Was: Fwd: [android-developers] Re: Android 1.5 SDK now available (Action Required)

2009-04-27 Thread Mariano Kamp
Hey Mr. Moderator, could you please unsubscribe the guy? This is the 6th challenge I get from his address today and I won't carve ;-) If this boxbe service would at least recognize that I already got 5 other mails from it today ... tstststs Cheers, Mariano -- Forwarded message -

Fwd: Please unsubscribe joesensp...@gmail.com Was: Fwd: [android-developers] Re: Android 1.5 SDK now available (Action Required) (Action Required)

2009-04-27 Thread Mariano Kamp
See? "Say Goodbye to Email Overload" It's not working for me. -- Forwarded message -- From: Date: Mon, Apr 27, 2009 at 9:40 PM Subject: Re: Please unsubscribe joesensp...@gmail.com Was: Fwd: [android-developers] Re: Android 1.5 SDK now available (Action Required) (Action Required

[android-developers] Re: Timer Help (Time Stamp my code)

2009-04-27 Thread mcmc
great, thanks! :) and for others who may be interested, you can get it in milliseconds too: System.currentTimeMillis(); On Apr 24, 10:24 am, Mark Anacker wrote: > Well, you could grab the System.nanoTime() value at the start of the > block, again at the end, and subtract... > > On Apr 24, 9:43 

[android-developers] Bitmap and pixel access

2009-04-27 Thread Andreas
Hi, I'm looking for a good way to present a pixel array on the screen. Currently I'm using ImageView that takes a bitmap. I use SetPixels() on this bitmap with my pixel array and invalidate() on the View to trigger a redraw. I find it a bit slow though. Is there a better way? Seems like copying

[android-developers] Re: Android Market: Can you download apps without publishing them? Do you pay for your own apps? +signing problems

2009-04-27 Thread Streets Of Boston
I tried buying my own app once to try out how updates would work, etc. I could not do it (i put in my credit-card details and i got some weird server-errors and that was the end of it). Maybe this has changed recently... On Apr 27, 2:50 pm, "Justin (Google Employee)" wrote: > Having the app ins

[android-developers] Re: Dialog Survival Over Configuration Change

2009-04-27 Thread Nmix
My workaround is in the message you quoted. I don't see how overriding onPrepareDialog can work since it isn't called after the config change -- that's the essence of the bug. On Apr 27, 9:02 am, AusR wrote: > I see bug 1639 - is there a workaround to restore a 're-created'dialogusing > code i

[android-developers] Re: Android Market: Can you download apps without publishing them? Do you pay for your own apps? +signing problems

2009-04-27 Thread Justin (Google Employee)
I guess the other question is, if its your app, why do you need to download it from Market? As far as providing free copies to reviewers, you can just host the APK on your own server behind a password protected page that you share the password to your reviewers. More logcat context would be usefu

[android-developers] Re: Android Market: Can you download apps without publishing them? Do you pay for your own apps? +signing problems

2009-04-27 Thread Justin (Google Employee)
Yeah, so as it turns out we don't allow you to purchase from yourself. This is not allowed by Checkout and I think there would be a number of issues if this was allowed. The Checkout help center would probably be the right place to look for more information on this. To the original poster, did yo

[android-developers] SW (2D API) vs. HW (openGL) rendering

2009-04-27 Thread mcmc
I'm trying to compare the difference in speed between software and hardware graphics rendering, but I'm a little confused... Can someone please give me a starter? I have 2 apps right now - one written with only java/android 2D APIs, and one written with openGL calls... Thanks a bunch. --~--~---

[android-developers] Layout question - how to replicate what the iPhone does...

2009-04-27 Thread Anna PS
Hi there, I have an application that consists of a series of tasks, and I'm struggling to replicate a user experience that is simple to implement on the iPhone. In the abstract: on the home screen, I'd like there to be a list of four tasks, of various kinds. -- Two will invite the user to click

[android-developers] Re: [android-beginners] Android 1.5 SDK now available

2009-04-27 Thread Stoyan Damov
Whoa, SoundPool is documented. Let's hope it works great too! ;) On Mon, Apr 27, 2009 at 9:12 PM, Xavier Ducrohet wrote: > > Hello developers, > > The Android 1.5 SDK, and the 1.5 images for ADP1 are now available for > download. > > More information at > http://android-developers.blogspot.com/

[android-developers] Re: MediaPlayer.start() doesnot work fine after calling MediaPlayer.seekTo(0)

2009-04-27 Thread Dave Sparks
Try this: mp.prepare(); mp.seekTo(0); mp.start(); And get rid of your onPreparedListener. It is unnecessary since you are calling prepare(). On Apr 27, 1:20 am, Sudha wrote: > Hi, > > I have a requirement to play several sounds many times in my game so > instead of creating the MediaPlayer aga

[android-developers] Observer for Adaper

2009-04-27 Thread yarik...@gmail.com
Hi everyone! I have an BaseAdapter and I need to know when it stops to change data ( eg View getView(int position, View convertView, ViewGroup parent) is no more calling ). I tried to use registerDataSetObserver method of the Adapter: public class DataObserver extends DataSetObserver {

[android-developers] Re: Error playing YouTube video in my application

2009-04-27 Thread Dave Sparks
I assume this in the emulator. I believe the issue is that the emulator does not forward the UDP packets you need for the RTP session. This should work on a real device. On Apr 27, 12:28 am, awwa wrote: > I'm trying to play streaming video(*.3gp) with android SDK 1.5 pre. > I have customized the

[android-developers] Re: Android Market: Can you download apps without publishing them? Do you pay for your own apps? +signing problems

2009-04-27 Thread Just Checking
The only reason to download it myself from Android Market is to make sure other people can do it. How can I be sure it's only MY phone that can't install it on, and users won't be impacted? I'm not sure what you mean by forward-locking status. Do you mean the copy protection publishing option? It

[android-developers] Re: Layout question - how to replicate what the iPhone does...

2009-04-27 Thread Streets Of Boston
Hi Anna, You can have any view inside your list-items. Create a ListView with an Adapter (BaseAdapter or any other type of Adapter). The Adapter has 4 elements; your four tasks. Then override the Adapter's getView(...) method. Based upon the 'position' (from the parameters of getView()), yo

[android-developers] Re: What's the proper way to share data between lite and pro versions of the same app?

2009-04-27 Thread Just Checking
Dianne, Thank you. That worked like a charm. The first time the app runs - onCreating the database - I try to get a context from the other version, and if it exists I basically copy all the databasebase tables. The same context gets me the other version's shared preferences. --~--~-~--~-

[android-developers] android.graphics.Picture and ç

2009-04-27 Thread Lucius Fox
Hi, Can you please tell me how can I convert a android.graphics.Picture to a android.graphics.Picture? or how can i create a new Picture object which is a scaled version of the original Picture object? Thank you. --~--~-~--~~~---~--~~ You received this message be

<    1   2   3   >