[android-developers] NDK OpenSL decode MP3

2010-12-28 Thread Klaus Kartou
Hi! I'm trying to get decoded PCM data from a mp3 file using the newly released NDK. I have tried different combinations of AudioPlayer and AudioRecorder using audio source and audio sink like this: // configure audio source SLDataLocator_AndroidFD loc_fd = {SL_DATALOCATOR_ANDROIDFD,

Re: [android-developers] Re: startLayoutAnimation in reverse order

2010-08-24 Thread Klaus Kartou
I did some more research and found others with the same problem, but no solution: http://groups.google.co.jp/group/android-developers/msg/a60b330dd1745d35 It looks like the issue is related to how the convertViews are re-used in the adapter. Any ideas how to solve this? On Tue, Aug 24, 2010 at 2

[android-developers] Re: startLayoutAnimation in reverse order

2010-08-20 Thread Klaus Kartou
If have experienced the issue on 1.5, 1.6, 2.0, 2.1 and 2.2. Any ideas how to avoid this? On Wed, Aug 18, 2010 at 11:51 AM, Klaus Kartou wrote: > Hi, > > I´m doing a layout animation on my listview where I fade the list > elements into view using a LayoutAnimation with > android

[android-developers] startLayoutAnimation in reverse order

2010-08-18 Thread Klaus Kartou
Hi, I´m doing a layout animation on my listview where I fade the list elements into view using a LayoutAnimation with android:animationOrder="normal". It works perfectly fine and the elements are faded into view in top-to-bottom order. However, if I trigger a layout animation twice (eg call startL

Re: [android-developers] When is onMeasure called?

2010-07-16 Thread Klaus Kartou
On Mon, Jul 12, 2010 at 2:48 PM, TreKing wrote: >> On Mon, Jul 12, 2010 at 3:09 AM, Klaus Kartou wrote: >>> >>> However it would be nice to know if there is a rule that relates onMeasure >>> to the activity lifecycle? >> >> I doubt onMeasure has anythi

[android-developers] When is onMeasure called?

2010-07-12 Thread Klaus Kartou
Hi, I have a custom view on which I need to call a method from my activity after the view has been measured in onMeasure. I would like to know exactly when onMeasure is called in the View layout process. It looks like onMeasure is called after my activity´s onCreate, onStart, and onResume. I could

[android-developers] Handle GONE in RelativeLayout

2010-06-07 Thread Klaus Kartou
Hi, I´m having some trouble figuring out how to handle views that are GONE in a RelativeLayout. I have a ListView that is aligned below a View using android:layout_below="@id/view". However, the view can be toggled and is sometimes GONE. At the moment when I toggle the GONE state on the view I add

[android-developers] BroadcastReceiver dilemma

2010-04-23 Thread Klaus Kartou
Hi, I recently added functionality to my app that does a simple state check on a boolean when the connectivity state changes. In order to do this i register a broadcast receiver that is invoked as soon as the phones connectivity state changes. This is all fine and works just as intended. However,

Re: [android-developers] PackageManage: Couldn't copy package file to temp file.

2010-01-12 Thread Klaus Kartou
The *.apk is about 0.9 MB and 2.0 MB when installed. I have 19 MB internal phone storage available. It stopped working on 2 dev phones at the same time...looks like its not a storage problem? On Wed, Jan 13, 2010 at 2:16 AM, Mark Murphy wrote: > Klaus Kartou wrote: > > Hi! >

[android-developers] PackageManage: Couldn't copy package file to temp file.

2010-01-12 Thread Klaus Kartou
Hi! We are suddenly unable to install our app on G1 developer phones with 1.6. Works perfectly on emulator. When installing the app we get: Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE Please check logcat output for more details. Launch canceled! ..and logcat: PackageManage: Couldn'

Re: [android-developers] Re: Pop-up without using Toast.

2010-01-11 Thread Klaus Kartou
Heh yeah, that is true :) But how do you display something over the in-call screen? On Mon, Jan 11, 2010 at 6:36 PM, Mark Murphy wrote: > Klaus Kartou wrote: > > I would like to be able to do what they do in this app: > > > http://www.threadabort.com/archive/2009/12/14/city-

Re: [android-developers] Re: Pop-up without using Toast.

2010-01-11 Thread Klaus Kartou
myself a little much clear this time? :) On Mon, Jan 11, 2010 at 5:56 PM, Mark Murphy wrote: > Klaus Kartou wrote: > > I dont think I can show a dialog from a service...remember, I dont have > > an activity. My service starts when there is an incomming call...i then > >

Re: [android-developers] Re: Pop-up without using Toast.

2010-01-11 Thread Klaus Kartou
ogs... > > Kumar Bibek > http://tech-droid.blogspot.com > > On Jan 11, 9:35 pm, Klaus Kartou wrote: > > Hi! > > > > I have a service that runs in the background. I´d like to be able to show > a > > message to the user when there is an incomming call. Atm i´m using

[android-developers] Pop-up without using Toast.

2010-01-11 Thread Klaus Kartou
Hi! I have a service that runs in the background. I´d like to be able to show a message to the user when there is an incomming call. Atm i´m using a Toast, because as far as I know it is the only way to display something regardless of the current activity the user is running. But I have seen apps

[android-developers] AlertDialog and setMultiChoiceItems

2009-12-15 Thread Klaus Kartou
Hi, I am having some problems maintaining the checked state of items in a AlertDialog. I want to show a dialog with a list of checkboxes that reflects the contents and states of items I have in a array in my activity. In *onCreateDialog *I use: builder.setMultiChoiceItems (int itemsId, boolean[]

Re: [android-developers] How to disable autocomplete on AutoCompleteTextView

2009-12-06 Thread Klaus Kartou
yways, thank you for your help Mark! On Sat, Dec 5, 2009 at 11:27 AM, Klaus Kartou wrote: > I have tried setting the contents of the adapter to an empty array, but > that didn't help. Ok, setting the adapter to null might give different > results, ill try that and come back with

Re: [android-developers] How to disable autocomplete on AutoCompleteTextView

2009-12-05 Thread Klaus Kartou
I have tried setting the contents of the adapter to an empty array, but that didn't help. Ok, setting the adapter to null might give different results, ill try that and come back with the result. Thanks! On Dec 5, 2009 11:22 AM, "Mark Murphy" wrote: > Yes and it works, but I need be able to call

Re: [android-developers] How to disable autocomplete on AutoCompleteTextView

2009-12-05 Thread Klaus Kartou
Yes and it works, but I need be able to call setText() at any time, eg when the user presses a button. On Dec 5, 2009 10:38 AM, "Mark Murphy" wrote: > So this is a response to another thread, that I never got a reaction on. > Hopefully someone can ... Have you tried calling setText() before atta

[android-developers] How to disable autocomplete on AutoCompleteTextView

2009-12-05 Thread Klaus Kartou
So this is a response to another thread, that I never got a reaction on. Hopefully someone can give a hand. I have a AutoCompleteTextView with a CursorAdapter with data. I need to be able to set a text in the AutoCompleteTextView programmatically without the autocomplete mechanism kicking in. If I

[android-developers] Re: AutoCompleteTextView and setText()

2009-12-02 Thread Klaus Kartou
There must be a way to this? On Tue, Dec 1, 2009 at 11:35 PM, Klaus Kartou wrote: > Still stuck with this issue. Is it even correct behaviour of the > AutoCompleteTextView to show the pop-up when setText() is being called? > > > On Sun, Nov 29, 2009 at 1:23 PM, Klaus Kartou wrot

[android-developers] Re: AutoCompleteTextView and setText()

2009-12-01 Thread Klaus Kartou
Still stuck with this issue. Is it even correct behaviour of the AutoCompleteTextView to show the pop-up when setText() is being called? On Sun, Nov 29, 2009 at 1:23 PM, Klaus Kartou wrote: > I tried to call setText before filling data into the CursorAdaptor, but > this isnt a very

[android-developers] Re: AutoCompleteTextView and setText()

2009-11-29 Thread Klaus Kartou
I tried to call setText before filling data into the CursorAdaptor, but this isnt a very solid solution since I need to be able to call setText at any time. So I´m still in need of some ideas? :) On Sat, Nov 28, 2009 at 6:26 PM, Klaus Kartou wrote: > Hi! > > I have a AutoCompleteText

[android-developers] AutoCompleteTextView and setText()

2009-11-28 Thread Klaus Kartou
Hi! I have a AutoCompleteTextView with a CursorAdapter with data. I need to be able to set a text in the AutoCompleteTextView programmatically without the autocomplete mechanism kicking in. If I use *setText *on the AutoCompleteTextView it will start the autocomplete. I tried calling *dismissDropD

Re: [android-developers] Re: Our app is not visible on market for some devices

2009-11-26 Thread Klaus Kartou
dsets which registered developers could drop by and test on, we'd > be getting somewhere... > > FWIW, Klaus, Gigbox is visible from my handset (a stock G1 running 1.6 > on UK T-Mobile), as well as my 1.5 test environment. > > String > > On Nov 25, 10:05 am, Klaus Kartou

Re: [android-developers] Re: Our app is not visible on market for some devices

2009-11-25 Thread Klaus Kartou
We haven't got a HTC Tattoo in house to test with, so its hard to supply more data. Our app is called Gigbox, and is available for free. Maybe some one here can see if the app is visible and supply data about their phone? So far we know it is visible with G1, HTC Magic and the Droid. Thanks :) On

Re: [android-developers] Re: Our app is not visible on market for some devices

2009-11-23 Thread Klaus Kartou
. No explanation yet of why, or if anyone from > HTC/Google is aware of the problem, or what you can do about it if > your app requires the camera. > > String > > On Nov 23, 9:15 pm, Klaus Kartou wrote: > > Thank you for your fast response! > > We havent activated copy

Re: [android-developers] Our app is not visible on market for some devices

2009-11-23 Thread Klaus Kartou
Thank you for your fast response! We havent activated copy protection, so that is not the issue. On Mon, Nov 23, 2009 at 10:11 PM, Greg Donald wrote: > On Mon, Nov 23, 2009 at 3:10 PM, Klaus Kartou wrote: > > Our app does not show up on the market on HTC Tattoo/Dragon devices.

[android-developers] Our app is not visible on market for some devices

2009-11-23 Thread Klaus Kartou
Our app does not show up on the market on HTC Tattoo/Dragon devices. The manifest includes the following: Any ideas what we are missing? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android

Re: [android-developers] Re: How to test if app is shown on Market for all screensizes

2009-11-22 Thread Klaus Kartou
Did anyone else experience this? On Fri, Nov 20, 2009 at 11:07 PM, Klaus Kartou wrote: > To summarize...Our app does not show up on the market on HTC Tattoo > devices. The manifest includes the following: > > android:name="android.permission.ACCESS_FINE_LOCATION&

Re: [android-developers] Re: How to test if app is shown on Market for all screensizes

2009-11-20 Thread Klaus Kartou
To summarize...Our app does not show up on the market on HTC Tattoo devices. The manifest includes the following: What can we do? On Fri, Nov 20, 2009 at 1:38 AM, KKK wrote: > Hi, Google, Your mother let you answer our questions. > > On Nov 19, 5:29 pm, Klaus Kart

Re: [android-developers] Re: How to test if app is shown on Market for all screensizes

2009-11-20 Thread Klaus Kartou
, Nov 19, 2009 at 10:29 AM, Klaus Kartou wrote: > Agreed, feedback from Google would be nice... > > > On Wed, Nov 18, 2009 at 10:58 AM, blindfold wrote: > >> Same thing with me, I have copy protection turned off in Android >> Market. >> >> It would be good

Re: [android-developers] Re: How to test if app is shown on Market for all screensizes

2009-11-19 Thread Klaus Kartou
> 1.5 phones is because you have copy protection set to "On". You can > > > turn this off in your developer console when logged in to your Android > > > Market account and editing your application description/title > > > > > cheers! > > > >

Re: [android-developers] Re: How to test if app is shown on Market for all screensizes

2009-11-18 Thread Klaus Kartou
; Market account and editing your application description/title > > cheers! > > On Nov 17, 1:19 am, Klaus Kartou wrote: > > Is there any Google people that can shed some light on this issue? > > > > On Mon, Nov 16, 2009 at 4:42 PM, blindfold >wrote: > > >

Re: [android-developers] Re: How to test if app is shown on Market for all screensizes

2009-11-17 Thread Klaus Kartou
; > > BTW, lots of HTC Tattoo buyers seem annoyed, judging fromhttp:// > androinica.com/2009/10/11/htc-tattoos-android-market-will-not-... > > > where it is stated that even Google's own "Listen", "My Tracks" and > > > "Sky Map" are (were?

Re: [android-developers] Re: How to test if app is shown on Market for all screensizes

2009-11-14 Thread Klaus Kartou
Hi Blindfold, Sorry I dont have a HTC Tattoo to test :( Thats our problem...some users reported that they couldnt find our app on Market with their Tattoo. But we have no idea why? To Edward: HTC Tattoo has a camera, so that cannot be the reason our apps are not showing. What to do? :D Cheers

Re: [android-developers] Re: How to test if app is shown on Market for all screensizes

2009-11-14 Thread Klaus Kartou
Our app use the following permissions: android.permission.ACCESS_FINE_LOCATION - android.permission.INTERNET - android.permission.ACCESS_COARSE_LOCATION - android.permission.CAMERA - android.permission.ACCESS_NETWORK_STATE - android.permission.WRITE_EXTERNAL_STORAGE But why should

Re: [android-developers] Re: How to test if app is shown on Market for all screensizes

2009-11-13 Thread Klaus Kartou
7;m assuming can see your app - but it doesn't hurt. > > String > > On Nov 13, 8:31 am, Klaus Kartou wrote: > > Hi! > > > > How's your uses-sdk part of manifest looks like ? > > > > It looks like this: > > > > > > > android:small

Re: [android-developers] Re: How to test if app is shown on Market for all screensizes

2009-11-13 Thread Klaus Kartou
check that? > > Scott > SoftwareForMe.com > Makers of PhoneMyPC > > > On Thu, Nov 12, 2009 at 2:45 PM, Alexey Volovoy wrote: > >> How's your uses-sdk part of manifest looks like ? >> >> On Nov 12, 4:29 pm, Klaus Kartou wrote: >> > Can anyone en

[android-developers] Re: How to test if app is shown on Market for all screensizes

2009-11-12 Thread Klaus Kartou
Can anyone enlighten me? :) It looks like our app doesnt show up on the market on HTC Tattoo. What else should we specify in the manifest? On Thu, Nov 12, 2009 at 4:01 PM, Klaus Kartou wrote: > Hi! > > We have uploaded a new version of our app where we added the following to >

[android-developers] How to test if app is shown on Market for all screensizes

2009-11-12 Thread Klaus Kartou
Hi! We have uploaded a new version of our app where we added the following to the manifest: However, we are receiving complaints that users cannot find the app on the market using their HTC Tattoo and HTC Dragon phones. Any ideas what we are doing wrong, and is there a way for the developers to

Re: [android-developers] Re: ADC2 Results Post

2009-11-05 Thread Klaus Kartou
Just checked the spam folder too... Gigbox also made it to the next round...nice :D http://www.mygigbox.com On Fri, Nov 6, 2009 at 12:01 AM, Vytautas Vaitukaitis < vaitukaitis.vytau...@googlemail.com> wrote: > My entry Learn! also made it to the Top 20 in the Education Category! > > Checking the

[android-developers] Problems with Bitmap.copy in Android 2.0

2009-11-01 Thread Klaus Kartou
Hi! In our app we are adding a alpha channel to bitmaps without alpha channels by doing this: Bitmap dest = src.copy(Bitmap.Config.ARGB_, true); This has been working fine until Android 2.0. Now the dest bitmap is still created, but without a alpha channel. This happens when using the defaul

Re: [android-developers] Re: Need an invitation to google Wave?

2009-11-01 Thread Klaus Kartou
That would be great :) Thank you! On Sun, Nov 1, 2009 at 11:51 AM, ColletJb wrote: > Yes thank you very much ;) > > On 1 nov, 11:16, jax wrote: > > yes thanks > > > > On Nov 1, 4:26 pm, li jiecong wrote: > > > > > > > > > Hi, please give me an invitation, thx! > > > > > 2009/11/1 Auguste Lunan

[android-developers] Re: Hmm... at last ADC2 is out of our way ... tell about your app and experience

2009-09-30 Thread Klaus Kartou
Hi all! I hope you are all doing well in this phase, its pretty exciting :D Our entry for the ADC2, Gigbox, has been released to the market. If you haven't tried it through the ADC2 app please give it a try, any feedback is much appreciated! You can give feedback at feedb...@mygigbox.com :) Best r

[android-developers] Re: Hmm... at last ADC2 is out of our way ... tell about your app and experience

2009-09-02 Thread Klaus Kartou
Hi all, Here is our entry: Gigbox By: Gigbox Team, the Gigbox Team consists of 3 students. Category: Lifestyle Site: www.mygigbox.com Description: "Gigbox brings music events from all over the world to your phone. Find events based on your location and your musical taste, bookmark your favorite

[android-developers] Re: No com.android.camera.CropImage on HTC Magic?

2009-08-29 Thread Klaus Kartou
Bump. Please, have anyone used the CropImage intent on a HTC Magic? On Sat, Aug 29, 2009 at 12:39 AM, Klaus Kartou wrote: > This code works on G1 > > Intent intent = new > Intent("com.android.camera.action.CROP"); > intent.setClas

[android-developers] Re: No com.android.camera.CropImage on HTC Magic?

2009-08-28 Thread Klaus Kartou
); intent.putExtra("output", Uri.parse("file:/" + FILE_PATH + userId + "/user.jpg")); startActivityForResult(intent, CROP_PICTURE_ACTION); On Sat, Aug 29, 2009 at 12:16 AM, Klaus Kartou wrote: > Hi, > > I have a pretty urgent issue. I am using the CropImage intent on my

[android-developers] No com.android.camera.CropImage on HTC Magic?

2009-08-28 Thread Klaus Kartou
Hi, I have a pretty urgent issue. I am using the CropImage intent on my G1 Dev phone to crop images. However when starting this intent on a HTC Magic I get an error indicating the activity cannot be found: "Unable to find explicit activity class {com.android.camera/com.android.camera.CropImage}"

[android-developers] Re: How to create button with icon and text

2009-08-27 Thread Klaus Kartou
I have a additional question then. If I want to specify a background color for the text only, how do I do that?When I set android:background="#FF" I get a red color around both the text and the topDrawable. Regards, Klaus On Thu, Aug 27, 2009 at 2:17 PM, Mark Murphy wrote: > > > How can I cr

[android-developers] Re: Icon with label + background

2009-08-25 Thread Klaus Kartou
I asume there must be a build in way to achieve this? I could really need some help on this. Cheers, Klaus On Tue, Aug 25, 2009 at 1:19 AM, Klaus Kartou wrote: > Hi! > I am trying to make an icon with a label, just like the ones used on the > home screen. > Currently I use a TextVie

[android-developers] Icon with label + background

2009-08-24 Thread Klaus Kartou
Hi! I am trying to make an icon with a label, just like the ones used on the home screen. Currently I use a TextView with a top drawable as specified in the code below: < TextView android:id="@+id/share" android:layout_width="wrap_content" android:layout_height="wrap_content"

[android-developers] Camera.setPictureSize not working

2009-08-21 Thread Klaus Kartou
Hi! I have a problem with setting the picture size of pictures I take with the camera. It looks like the values I set are overruled somehow.I am setting the size both in the "surfaceCreated" and in "onShutter()" according to: http://groups.google.com/group/android-developers/browse_thread/thread/8

[android-developers] Drawable tilemode repat only vertically

2009-08-18 Thread Klaus Kartou
Hi! Is there a way to specify that a drawable should only be repeated vertically and then stretched horizontally? At the momemt I use the following which repeates the drawable both in the vertical and horizontal direction: http://schemas.android.com/apk/res/android"; android:src="@drawable/wal

[android-developers] Starting thread from the Application object

2009-08-17 Thread Klaus Kartou
Hi all, In my application I have my own Application object where I use onCreate to do some heavy work behind the scenes in a thread. The problem is that even though I do the heavy work in another thread, it seams the main activity is first started when the thread I launched in my Application object

[android-developers] Google Maps kills process with oom_adj=7

2009-08-16 Thread Klaus Kartou
Hi all! I have an application where I start Google Maps with an intent like this: Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(uri)); The thing is that I can see that my app gets killed when I use the map, especially when I go to street view. I use: "adb shell dumpsys activity" to inspect

[android-developers] Safely render to bitmap.

2009-08-13 Thread Klaus Kartou
Hi! I have a custom view that extends ImageView. In onDraw I render directly into the bitmap that I have set using setImageBitmap on the ImageView. Is this a safe thing to do? Cheers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

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

2009-08-13 Thread Klaus Kartou
FormatImpl(_JNIEnv*, > e3b4dvmPlatformInvoke > 00040a8a dvmCallJNIMethod > > > j > > On Wed, Aug 12, 2009 at 2:16 PM, Klaus Kartou wrote: > > Hi! > > > > My app has been pretty stable so forth, and suddenly I keep getting these > > crashes that kill the en

[android-developers] Crashes with no usefull stacktrace

2009-08-12 Thread Klaus Kartou
Hi! My app has been pretty stable so forth, and suddenly I keep getting these crashes that kill the entire process. What do they mean and how should I deal with them? Since I dont get any usefull stacktrace I really dont know how to debug this. Below is the dump from my error log. Any help is muc

[android-developers] convertView with wrong type

2009-07-30 Thread Klaus Kartou
I hope someone can share some light on a issue I have with using the convertView that is supplied by the BaseAdapter. The problem is that I have a couple of different listviews in my app. When using the convertView with listviews that only shows one type everything works fine, and I experience a b