[android-developers] Re: IME - Main Dictionary

2009-07-07 Thread nEx.Software
So, I've been looking over the LatinIME in the git repository, and I am getting the feeling that this (the native dictionary piece) can't be compiled on the NDK - at least not officially? There seem to be some unsupported libraries and such being used. Specifically, Asset.h and AssetManager.h whic

[android-developers] Re: Integrating with Google Docs

2009-07-07 Thread Mooretis
Here is the code I am attempting to execute when I get the 404. The ClientLoginResponse holds the valid auth token I receive from the ClientLogin request. private static final String DOCUMENTS_BASE_URL = "http:// docs.google.com/feeds/documents/private/full"; try {

[android-developers] Integrating with Google Docs

2009-07-07 Thread Mooretis
I am attempting to integrate with Google Docs. (At the moment just trying to get a list of documents). I have issued the ClientLogin request and get an authorization token. But when I then hit the http://docs.google.com/feeds/documents/private/full with my authorization key in the headers, I

[android-developers] Re: Sent email via intent removing newline characters

2009-07-07 Thread Hayden
No ideas what may be causing this? On Jul 7, 12:36 pm, Hayden wrote: > The quick summary of my problem is after creating an email with an > intent, when Gmail actually sends it all newline characters are > removed. > > In my app, there is an option to send text via email to friends using > an in

[android-developers] Re: Image

2009-07-07 Thread peeyush varshney
I want that user can move smaller one and drop any where he want over Big Image. It is almost same as SeekBar. I tried same with vertical SeekBar with also. but SeekBar Thumb is not getting adjust according to progress. On Wed, Jul 8, 2009 at 11:00 AM, Balwinder Kaur (T-Mobile) < balwinder.k...@t

[android-developers] Re: Image

2009-07-07 Thread Balwinder Kaur (T-Mobile)
You can try something like this : Create a mutable bitmap from your original image. //You can use the BitmapFactory class for that. http://developer.android.com/reference/android/graphics/BitmapFactory.html Lets call it Bitmap b; Create a Canvas c as show below. Canvas c = new Canvas(b); Create a

[android-developers] Re: One click Run App

2009-07-07 Thread Jack Ha
Windows->Preferences->Run/Debug->Launching and select the "Always launch the previously launched application" checkbox in the Launch Operation section at the bottom. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those

[android-developers] Image

2009-07-07 Thread peeyush varshney
Hi All, Has anyone customized the Image. Actually I want to have one Image and over that one more samll Seeker Type image, Is it possible. Do anyone have some Idea please help me out.. -- Thank & Regards Peeyush Varshney --~--~-~--~~~---~--~~ You received

[android-developers] Re: Recording amr Audio and streaming to http server in realtime

2009-07-07 Thread ccitt
thanks. On 7月7日, 上午2时50分, ccitt wrote: > Hi, > > AudioRecord can record audio data in pcm format in realtime, but there > is no audio-encoder who can encode pcm data to amr format. may be > third-party java code can do this, but the performance may be very > low. > > MediaRecorder just record au

[android-developers] Re: MediaRecorder's callback listener OnInfoListener never be called.

2009-07-07 Thread ccitt
anyone can help me? --~--~-~--~~~---~--~~ 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 email to and

[android-developers] One click Run App

2009-07-07 Thread Ivan Soto
Hi, This may not be related to the Android SDK, but it will surely help me and maybe others. On Eclipse, I usually make a Run Configuration so then I can just right click on the project and select Run as Android App and it runs however I want but I was wondering if there's a way to make the green

[android-developers] Obtaining Android market place data

2009-07-07 Thread clemsongrad
I have seen some sites pop up that show summary of the applications that are available on the android market place. For example, if i try to go to Android market place from a desktop the interface is very limited (like no search etc). How do these sites obtain this data, they show the category

[android-developers] Re: Disappearing Views with ListView

2009-07-07 Thread Romain Guy
I checked the code and it is indeed a bug. fill_parent does not behave the way it really should in LinearLayout in that particular case. If the last item in a LinearLayout is fill_parent, then it will behave (almost) as if it had a weight. Fixing the bug would probably break apps so it won't happe

[android-developers] Re: Disappearing Views with ListView

2009-07-07 Thread Mark Murphy
Romain Guy wrote: >> So, I remain fully convinced that ListView with a height of fill_parent >> works as expected. > > It should not. That's either a bug in LinearLayout or you gave that > ListView a weight. Well, it ain't the latter -- I posted the code. -- Mark Murphy (a Commons Guy) http://

[android-developers] java.net.ConnectException: The socket level is invalid

2009-07-07 Thread swenker
Did anybody know something about this exception ? java.net.ConnectException: The socket level is invalid 07-03 15:36:45.806 W/System.err( 227): at org.apache.harmony.luni.platform.OSNetworkSystem.connectWithTimeoutSocketImpl(Native Method) 07-03 15:36:45.806 W/System.err( 227): at org.ap

[android-developers] Re: changing orientation resets activity?

2009-07-07 Thread schwiz
ok this is interesting, it doesn't crash on my device anymore but it crashes in the emulator On Jul 7, 6:32 pm, schwiz wrote: > my main activity does have a static variable to the Resources.  I > added the meathod onDestroy and added the line res = null;  Then I > made sure that res = context.ge

[android-developers] Re: Disappearing Views with ListView

2009-07-07 Thread Romain Guy
> So, I remain fully convinced that ListView with a height of fill_parent > works as expected. It should not. That's either a bug in LinearLayout or you gave that ListView a weight. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me,

[android-developers] Best way to constrain what text can be entered in a text preference?

2009-07-07 Thread jimshowalter
EditTextPreference uses EditText, which uses TextView, which has special-case handling for the "numeric" tag in preference XML files. But that seems to be the only constraint TextView supports: choices are limited to plain text, or numbers. I want to constrain a text preference to be a URI. What

[android-developers] Re: Disappearing Views with ListView

2009-07-07 Thread Mark Murphy
Romain Guy wrote: > if you put the button at the top yes. But now ListView is too tall and > extends out of the screen. Here are two screenshots demonstrating the LinearLayout in my previous post: http://commonsware.com/misc/device2.png http://commonsware.com/misc/device.png The ListView does n

[android-developers] Re: Disappearing Views with ListView

2009-07-07 Thread Romain Guy
if you put the button at the top yes. But now ListView is too tall and extends out of the screen. layout_weight is the only way to do it. On Jul 7, 2009 6:29 PM, "Mark Murphy" wrote: Romain Guy wrote: >>> fill_parent won't work, the button will be pushed out of the screen. > > Tha... Um, no.

[android-developers] Re: Disappearing Views with ListView

2009-07-07 Thread Nikola Miljkovic
Perfect. Thanks! On Jul 7, 8:11 pm, Romain Guy wrote: > Hi, > > Do not use wrap_content on the ListView. Instead, use > layout_height="0dip" and layout_weight="1.0". > > > > On Tue, Jul 7, 2009 at 1:53 PM, Nikola Miljkovic wrote: > > > Hello all, > > > I am having a problem with ListViews.  Aft

[android-developers] Re: Disappearing Views with ListView

2009-07-07 Thread Mark Murphy
Romain Guy wrote: >>> fill_parent won't work, the button will be pushed out of the screen. > > That would not work either, part of the list would then end up outside > of the screen. Um, no. http://schemas.android.com/apk/res/android"; android:orientation="vertical" android:lay

[android-developers] Re: Disappearing Views with ListView

2009-07-07 Thread Romain Guy
>> fill_parent won't work, the button will be pushed out of the screen. That would not work either, part of the list would then end up outside of the screen. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to

[android-developers] Re: Disappearing Views with ListView

2009-07-07 Thread Mark Murphy
Romain Guy wrote: >> -- fill_parent > > fill_parent won't work, the button will be pushed out of the screen. Yes, I should have mentioned he would need his button to be on top. >> -- a fixed height (e.g., 200px) > > This is a very bad idea to support multiple devices. Do not do this. He alrea

[android-developers] Re: Vertical and Horizontal Scrolling together

2009-07-07 Thread Romain Guy
Hi, Not with the standard widgets, you would have to create your own. On Tue, Jul 7, 2009 at 4:19 PM, Blackmarket wrote: > > Hello, is it possible to have both Scrollbars together. My Application > is too big for just one of them. > I tried it with a ScrollView in a  HorizontalScrollView Layout,

[android-developers] Re: dip and setting values in code

2009-07-07 Thread Romain Guy
int dip = (int) (20 * aContext.getResources().getDisplayMetrics().density + 0.5f); On Tue, Jul 7, 2009 at 1:57 PM, kabir wrote: > > Hi > > I have read about using a 'dip' scale rather than just px, this is > straightforward to implement in XML. > But how do I adjust values accordingly in the java

[android-developers] Re: Disappearing Views with ListView

2009-07-07 Thread Romain Guy
> -- fill_parent fill_parent won't work, the button will be pushed out of the screen. > -- a fixed height (e.g., 200px) This is a very bad idea to support multiple devices. Do not do this. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private question

[android-developers] Re: Disappearing Views with ListView

2009-07-07 Thread Romain Guy
Hi, Do not use wrap_content on the ListView. Instead, use layout_height="0dip" and layout_weight="1.0". On Tue, Jul 7, 2009 at 1:53 PM, Nikola Miljkovic wrote: > > Hello all, > > I am having a problem with ListViews.  After adding a few items to the > list and it becomes larger than the layout,

[android-developers] Re: Disappearing Views with ListView

2009-07-07 Thread Mark Murphy
Nikola Miljkovic wrote: > Hello all, > > I am having a problem with ListViews. After adding a few items to the > list and it becomes larger than the layout, my cancel button > disappears. Scrolling and everything else on the ListView still work > fine, but it replaces the views I have below it.

[android-developers] Re: Speech Recognition

2009-07-07 Thread Mark Murphy
Steven wrote: > I am confused after reading through this group about speech > recognition in android. Is it possible for me as a developer to create > an application that uses speech recognition in the 1.5 SDK. I want to > be able to base my code on the examples/api/voicerecognition.java > code. I

[android-developers] Vibrating Notifications

2009-07-07 Thread Paladin27
I am stumped on how to make vibrating notifications work correctly in Cupcake. I have made a very basic app with a single button that should send a notification event with vibrate. It only works for my friends with the UK ROM or one of the XDA-Dev roms. I can NOT get it to vibrate for myself or

[android-developers] Disappearing Views with ListView

2009-07-07 Thread Nikola Miljkovic
Hello all, I am having a problem with ListViews. After adding a few items to the list and it becomes larger than the layout, my cancel button disappears. Scrolling and everything else on the ListView still work fine, but it replaces the views I have below it. Anyone else run into this issue?

[android-developers] Speech Recognition

2009-07-07 Thread Steven
I am confused after reading through this group about speech recognition in android. Is it possible for me as a developer to create an application that uses speech recognition in the 1.5 SDK. I want to be able to base my code on the examples/api/voicerecognition.java code. Is this possible. Thanks

[android-developers] Re: onLoadResource / shouldOverrideUrlLoading

2009-07-07 Thread Daniel
Yeah, bummer... Some kind of shouldOverrideUrlLoading/ shouldLoadResource would be really nice and useful. Is a feature like this planned for future versions? And now that we are at it, will the DOM of a WebView ever be accessible? There is a feature-request (http://code.google.com/p/ android/issu

[android-developers] dip and setting values in code

2009-07-07 Thread kabir
Hi I have read about using a 'dip' scale rather than just px, this is straightforward to implement in XML. But how do I adjust values accordingly in the java code? For example: tv.setTextSize(20) will result in text of size 20 px right? What's the quickest way of making this 20 dip, other than

[android-developers] Vertical and Horizontal Scrolling together

2009-07-07 Thread Blackmarket
Hello, is it possible to have both Scrollbars together. My Application is too big for just one of them. I tried it with a ScrollView in a HorizontalScrollView Layout, but it supports only vertical or horizontal scrolling at the same time and not crosswise. It would be nice to have a scrolling jus

[android-developers] Re: Google Maps with geo Intent

2009-07-07 Thread Mark Murphy
Dagvadorj Galbadrakh wrote: > First of all the code of yours worked very beautifully. > > Sorry for making life easy for me. However, I need some strict > information and kinda urgent. > > So please tell me if i can arrange the initial map view satellite and > center pinned with geo intent filte

[android-developers] Google Maps with geo Intent

2009-07-07 Thread Dagvadorj Galbadrakh
First of all the code of yours worked very beautifully. Sorry for making life easy for me. However, I need some strict information and kinda urgent. So please tell me if i can arrange the initial map view satellite and center pinned with geo intent filter. Thanks. -- Dagvadorj GALBADRAKH --~-

[android-developers] Re: Starting Google Maps from my Activity

2009-07-07 Thread Dagvadorj Galbadrakh
First of all the code of yours worked very beautifully. Sorry for making life easy for me. However, I need some strict information and kinda urgent. So please tell me if i can arrange the initial map view satellite and center pinned with geo intent filter. Thanks. On Wed, Jul 8, 2009 at 2:23 A

[android-developers] Re: Resetting XML preferences does not restore default values

2009-07-07 Thread jimshowalter
Found it--the default value has to be from the array of values, not from the array of entries. Which is obvious now, of course. On Jul 7, 4:29 pm, jimshowalter wrote: > I should emphasize that it only does this for list preferences--the > other prefs reset correctly. --~--~-~--~~---

[android-developers] Re: changing orientation resets activity?

2009-07-07 Thread schwiz
my main activity does have a static variable to the Resources. I added the meathod onDestroy and added the line res = null; Then I made sure that res = context.getResources(); is in the onRestoreInstanceState and onCreate meathods. But I am still getting the same log error and force close. On

[android-developers] Re: Resetting XML preferences does not restore default values

2009-07-07 Thread jimshowalter
I should emphasize that it only does this for list preferences--the other prefs reset correctly. --~--~-~--~~~---~--~~ 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: ProgressBar to grow from middle

2009-07-07 Thread Rohit
Thats what I was thinking too but I was hoping there would be an easier way :( Thanks though... On Jul 7, 3:24 pm, Mark Murphy wrote: > Rohit wrote: > > Hi, > >         Is there a way to grow the progress bar from the middle and in > > both directions? Something like below: > > >

[android-developers] Re: Starting Google Maps from my Activity

2009-07-07 Thread Dagvadorj Galbadrakh
Thank you for quick response. I am really appreciated. On Wed, Jul 8, 2009 at 2:07 AM, Mark Murphy wrote: > > > startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("geo:LAT,LON"))); > does it, where LAT and LON are latitude and longitude in decimal form, > negative numbers for the Southern

[android-developers] Resetting XML preferences does not restore default values

2009-07-07 Thread jimshowalter
Prefs are defined in preferences.xml, arrays.xml, and strings.xml. Default values are defined in strings.xml. For example: preferences.xml: arrays.xml: 24 12 8 4 2 1 strings.xml: Notification Interval How often to notify th

[android-developers] Re: IME - Main Dictionary

2009-07-07 Thread nEx.Software
Awesome, thanks for the info. I had a feeling that was the case. Thanks for confirming that for me. On Jul 7, 3:04 pm, Dianne Hackborn wrote: > The prediction dictionary is built into the IME, it is not a part of the > platform like the user dictionary, so you will need to implement your own > f

[android-developers] Re: Starting Google Maps from my Activity

2009-07-07 Thread Mark Murphy
Dagvadorj Galbadrakh wrote: > Is it possible to start Google Map centered in a specified location from > my Activity? Heard something about geo command from Intent. startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("geo:LAT,LON"))); does it, where LAT and LON are latitude and longitude in de

[android-developers] Who recovers the memory of allocateDirect of java nio buffers? (A helpful note)

2009-07-07 Thread Satya Komatineni
While programming in OpenGL on Android one will be using the native nio buffers from the core java package. In many of the opengl samples you will see that these native buffers are being allocated. But you will not see that memory anywhere being "un" allocated. So a question begs to be asked: Who

[android-developers] Re: Starting Google Maps from my Activity

2009-07-07 Thread Dagvadorj Galbadrakh
By the way the point is not using Maps API. I am using Android API 1.1. On Jul 8, 1:55 am, Dagvadorj Galbadrakh wrote: > Is it possible to start Google Map centered in a specified location from my > Activity? Heard something about geo command from Intent. > > Anyone, any idea? > > -- > Dagvadorj

[android-developers] Here is an approach to draw a regular polygon using Android OpenGL.

2009-07-07 Thread Satya Komatineni
If you are new to OpenGL and also happen to be experimenting with OpenGL and Android here is an article that I cooked up that explains how to draw any regular polygon at any origin on the scene. The design approach is simple enough: start by defining a regular polygon with the help of a radius, n

[android-developers] Starting Google Maps from my Activity

2009-07-07 Thread Dagvadorj Galbadrakh
Is it possible to start Google Map centered in a specified location from my Activity? Heard something about geo command from Intent. Anyone, any idea? -- Dagvadorj --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "An

[android-developers] Re: ProgressBar to grow from middle

2009-07-07 Thread Mark Murphy
Rohit wrote: > Hi, > Is there a way to grow the progress bar from the middle and in > both directions? Something like below: > > > 0% > ++10% > ----- > ++-- > --++- > +

[android-developers] Re: changing orientation resets activity?

2009-07-07 Thread Streets Of Boston
Do you have static variables that reference (indirectly) an Activity or a View? If so, get rid of these static variables or make absolutely sure that you clean them up (set them to null, clear cache, whatever) when the activity's onDestroy is called. On Jul 7, 5:50 pm, schwiz wrote: > actually,

[android-developers] ProgressBar to grow from middle

2009-07-07 Thread Rohit
Hi, Is there a way to grow the progress bar from the middle and in both directions? Something like below: 0% ++10% ----- ++-- --++- ++

[android-developers] Re: picasa

2009-07-07 Thread Christine
Sure. This is the best location to start: http://code.google.com/apis/picasaweb/developers_guide_protocol.html it's an API like any other, which allows you to upload pictures, create albums, anything. Authentication is like in any Google app, you will need an API key. I can send you sample code t

[android-developers] Re: IME - Main Dictionary

2009-07-07 Thread Dianne Hackborn
The prediction dictionary is built into the IME, it is not a part of the platform like the user dictionary, so you will need to implement your own for your IME. The LatinIME code is open source, so to start you can just copy it (especially now that we have the NDK available). On Tue, Jul 7, 2009

[android-developers] IME - Main Dictionary

2009-07-07 Thread nEx.Software
I am attempting to do an IME and am wondering the best way to use the main dictionary for the suggestions to work? Using the User Dictionary is pretty straight forward, but I am not sure how to use the main dictionary. The System IME appears to use BinaryDictionary and a native method to do this?

[android-developers] Re: changing orientation resets activity?

2009-07-07 Thread schwiz
actually, i just hadn't noticed, but this happens with or without the instanceState meathods being implemented. On Jul 7, 4:08 pm, schwiz wrote: > thanks I have made the changes your link suggests, and my app is > working as expected when I switch from portrait to landscape, but now > when I swi

[android-developers] beginner Help!

2009-07-07 Thread G_man
I badly need to apply a java class that force every text shown in the screen to go through it. basically, it is a shaper that check the language of the text and if it is Arabic it will change the shape of the character depending on it's place in the word. The java classes are here: http://githu

[android-developers] Re: uploads disabled

2009-07-07 Thread dsurround
Thanks Charles, helps a bit, but this is a real pain for webview development too so I hope we hear from the Android team... Dsurround On Jul 7, 4:19 pm, Charlie Collins wrote: > I haven't heard any official stance on this, but I would imagine there > are security concerns, and then other techni

[android-developers] Re: changing orientation resets activity?

2009-07-07 Thread schwiz
thanks I have made the changes your link suggests, and my app is working as expected when I switch from portrait to landscape, but now when I switch back to portrait it forcecloses. The logcat is spitting out all kinds of errors when this happen, most notability one that says android.view.WindowL

[android-developers] Re: SurfaceView detaining focus

2009-07-07 Thread djauto23
On Jul 7, 7:07 pm, Dianne Hackborn wrote: > This isn't an intrinsic problem -- apps like YouTube have a surface view and > show the menu fine.  And there isn't enough information here to provide much > help. Yes, several other examples I've looked at, including the LunarLander game does this, so

[android-developers] Re: uploads disabled

2009-07-07 Thread Charlie Collins
I haven't heard any official stance on this, but I would imagine there are security concerns, and then other technical hurdles on this front (having a file browser, and then which files each activity has access to). There is an open issue you can comment on and or follow - http://code.google.com/

[android-developers] Re: Connect to a SQL Database

2009-07-07 Thread Charlie Collins
In general you don't want to do that - connect directly to your SQL server from Android. If your Android device is on the same subnet, and you configure host resolution and port access, you *might* be able to do that, I have never really thought to try, but it's certainly not the normal path. No

[android-developers] weird behaviour with WebView.loadDataWithBaseURL

2009-07-07 Thread Jason Proctor
i install a WebViewClient to intercept links using shouldOverrideUrlLoading(). i fetch the URL content myself, preprocess it, then feed it to the browser using loadDataWithBaseURL(). as the base URL, i use the original URL of the request. this mechanism has been working reliably for a while,

[android-developers] Re: changing orientation resets activity?

2009-07-07 Thread schwiz
thanks On Jul 7, 2:49 pm, Charlie Collins wrote: > That is intentional. > > http://developer.android.com/reference/android/app/Activity.html > > "Unless you specify otherwise, a configuration change (such as a > change in screen orientation, language, input devices, etc) will cause > your curren

[android-developers] Re: changing orientation resets activity?

2009-07-07 Thread Charlie Collins
That is intentional. http://developer.android.com/reference/android/app/Activity.html "Unless you specify otherwise, a configuration change (such as a change in screen orientation, language, input devices, etc) will cause your current activity to be destroyed, going through the normal activity l

[android-developers] changing orientation resets activity?

2009-07-07 Thread schwiz
So I finally got to the point where I was ready to deploy my app to my G1 and test it out and the first thing I noticed was that when I change my phone to landscape view my main activity restarts and resets all of my variables to their default settings. How can I avoid this? --~--~-~--~--

[android-developers] Re: Sending files via Bluetooth and Wi-fi

2009-07-07 Thread schwiz
only possible with a rooted phone On Jul 6, 5:40 pm, jdesbonnet wrote: > As far as I know it's not possible with Bluetooth with Android API > version 1.5. See Bluetooth FAQ > (http://sites.google.com/a/android.com/opensource/projects/bluetooth-faq > ). Nether is OBEX. > > "Sending files" is a ra

[android-developers] Re: Memory profiling an android application.

2009-07-07 Thread fadden
On Jul 6, 11:23 pm, Android Development wrote: > How do we profile an android application's memory ? See dalvik/docs/heap-profiling.html: http://android.git.kernel.org/?p=platform/dalvik.git;a=blob_plain;f=docs/heap-profiling.html;hb=HEAD --~--~-~--~~~---~--~

[android-developers] Re: ListView inside LinearLayout inside ScrollView

2009-07-07 Thread Michael J
Thanks man, I think that pretty much answers my questions. Now it's up to the implementation. On Jul 7, 11:51 am, "Mark Murphy" wrote: > > So are you saying I need to revert back to my original method of using > > a ListView with a custom adapter and add my "pre-list" content Views > > to the a

[android-developers] Views with round corners and transparent background color

2009-07-07 Thread Ice13ill
Hello, I wanted to create a custom view with rounded corners and a transparent background (lets say #dd00) I created a color and it worked ok For the rounded corners I found this method: Create a file "res/drawable/my_border.xml" and define a shape: http://schemas.android.com/apk/res/androi

[android-developers] Re: SurfaceView detaining focus

2009-07-07 Thread Dianne Hackborn
This isn't an intrinsic problem -- apps like YouTube have a surface view and show the menu fine. And there isn't enough information here to provide much help. On Tue, Jul 7, 2009 at 8:39 AM, djauto23 wrote: > > I'm making a game which uses a SurfaceView to display the main > graphics. I want to

[android-developers] Re: picasa

2009-07-07 Thread tyy
null point exception occured Caused by: java.lang.NullPointerException at android.content.ContentResolver.acquireProvider (ContentResolver.java:571) at android.content.ContentResolver.query(ContentResolver.java:144) at com.google.android.apps.uploader.common.UploadActivity.getFileProperties (Uploa

[android-developers] MediaRecorder's callback listener OnInfoListener never be called.

2009-07-07 Thread ccitt
Hi, MediaRecorder can record audio(or video) to disk. and it's method "setMaxDuration" can limit the recording duration. when the time reached, the OnInfoListener will callback the "onInfo" method. but in my practice, the "OnInfo" never be called. can any body give me some tips? below is the cod

[android-developers] Connect to a SQL Database

2009-07-07 Thread AntoniMG
Hi, Im triying to connect to a SQL Database with Android, this is my code: package com.example.conversor; import java.sql.*; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; [...] try { Class.forName

[android-developers] Re: picasa

2009-07-07 Thread tyy
I did, but it is a error: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.google.android.apps.uploader/ com.google.android.apps.uploader.picasa.PicasaUploadActivity}; have you declared this activity in your AndroidManifest.xml? how to resolve? i add thei

[android-developers] Re: What SensorManager.getOrientation returns?

2009-07-07 Thread Herbert
On my phone (HTC Magic) SensorManager.getRotationMatrix(...) fails always: it returns false and does not fill the arrays parameter with something usable. I'm surely doing something wrong... However if getRotationMatrix() doesn't work SensorManager.getOrientation() is also useless. If someone kno

[android-developers] Launch application after installing issue

2009-07-07 Thread Pablo Szyrko
Hi all, I'm developing an application that has a login screen that only is shown when the user has not been registered before. If the user was registered before the main screen is open. To implement this feature i have added an initial activity (action=android.intent.action.MAIN, Category=android.

[android-developers] Overlapping drawBitmap problem

2009-07-07 Thread ReubenH
Hi, I have a program in which the app's main view displays a small part of a much larger area. The user has suitable controls (touch, directional pad, etc) to pan around, much like Google Maps. Since drawing is reasonably expensive (there are several layers to compute & draw), the technique I've

[android-developers] Recording amr Audio and streaming to http server in realtime

2009-07-07 Thread ccitt
Hi, AudioRecord can record audio data in pcm format in realtime, but there is no audio-encoder who can encode pcm data to amr format. may be third-party java code can do this, but the performance may be very low. MediaRecorder just record audio data to disk. not realtime. It seems that this is

[android-developers] Re: Getting PCM data from the builtin audio decoders

2009-07-07 Thread dworz
Hi I also need access to the decompressed audio-samples. I saw SoundPool uses MediaPlayer::decode to do this. This Method doesn't seem to be in the public Interface. Is it possible to access it anyway? I accept it may break my App in the future. --~--~-~--~~~---~--~-

[android-developers] Re: QualcommCameraHardware messages

2009-07-07 Thread Lilith
I've been getting those errors also, and I've noticed that the the onPictureTaken method in the Camera.PictureCallback never gets called despite this log - QualcommCameraHardware: receiveJpegPicture: X callback done. Have you found the solution yet? On Jun 9, 2:05 am, "loril...@gmail.com" wrote

[android-developers] Too many images makes android to be slow

2009-07-07 Thread confiq
Hi Guys.. I've notice that each time when i want to add image to the user, default gallery scans all images on mini-sd and then render to the user. The problem is when you have 500+ images. The loading is really slow and takes time. The solution for this, it would be to allow user to let gallery

[android-developers] Re: Sensor, Accelerometer, Orientation, RotationMatrix

2009-07-07 Thread Herbert
> - How to retrieve the rotation-matrix by using the getRotationMatrix() > function when we don't have aligned data. On my G2 (HTC Magic) getRotationMatrix() returns always false (i.e. failure) and does not fill the given arrays with something usable. In the same way, the data returned in SensorEv

[android-developers] Camera Exceptions on User Phones

2009-07-07 Thread andy smith
Basic camera app - works on most phones but some users are getting one or other of these two exceptions : Exception Details: java.io.IOException: takePicture failed at android.hardware.Camera.native_takePicture(Native Method) at android.hardware.Camera.takePicture(Camera.java:362) Exception Deta

[android-developers] SurfaceView detaining focus

2009-07-07 Thread djauto23
I'm making a game which uses a SurfaceView to display the main graphics. I want to use the button labelled "MENU" in the emulator, and I have implemented onCreateOptionsMenu(Menu menu) in the Activity. Trouble is, the MENU button isn't working. Only if I first press and hold Home, then select my

[android-developers] Setting the text color of inactive tabs

2009-07-07 Thread germanDev
Hi! I have a view that is defined like (shortened by removing the layout attributes) http://schemas.android.com/apk/res/android"; android:id="@android:id/tabhost" ... The tabs a

[android-developers] View with rounded corners and transparent background

2009-07-07 Thread Ice13ill
Hello, I wanted to create a custom view with rounded corners and a transparent background (lets say #dd00) I created a color and it worked ok For the rounded corners I found this method: Create a file "res/drawable/my_border.xml" and define a shape: http://schemas.android.com/apk/res/androi

[android-developers] Re: problem in receiving the status of call

2009-07-07 Thread Tian Yingying
thanks ,i have another problem that i upload photos to picasa, the followed is code and i make in manifest.xml , but a error occured: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.google.android.apps.uploader/com.google.android.apps.uploader.picasa.P

[android-developers] Re: Recognizer not present - Voice Recognition failed

2009-07-07 Thread Eponymous Cowherd
Voice recognition is not implemented on UK phones (both the Vodafone Magic and the T-Mobile G1), so this could be your problem. Quite why UK operators decided to remove this feature has caused some consternation on many non-developer Android forums. On Jul 6, 10:53 am, GGJames wrote: > Dear all

[android-developers] RIL and HTC Dream

2009-07-07 Thread Spectre
Hello, I want to extend Radio Interface Library (RIL) to support data call but I found this link: http://source.android.com/documentation/building-for-dream where it says that RIL for HTC is proprietary and we can get only binaries. I already have some RIL source code (generic, I suppose) so my

[android-developers] Re: Build android1.5 project by ant

2009-07-07 Thread FFEH
I met the same problem while sdk-location path is wrong. Maybe you can check if the path set in local.properties is correct. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this

[android-developers] Encrypt files

2009-07-07 Thread Cyril ROQUES
Hi, I need to encrypt some files but the user must have access to them in both read/write I would to create a virtual partition and mount it into a folder but how to link an application with a folder ? or create a driver ? If this approach can't run maybe with a live folder but I don't kno

[android-developers] Re: Class derived from IntentService must have default constructor

2009-07-07 Thread Joan
Thank you very much, you saved me a lot of time!!! On May 8, 8:07 pm, jseghers wrote: > I'm posting this to share the lessons I learned while working with > IntentService. > > IntentService has a single constructor that takes a string argument > "name". The documentation has no description of wh

[android-developers] View with rounded corners and transparent background

2009-07-07 Thread Ice13ill
Hello, I wanted to create a custom view with rounded corners and a transparent background (lets say #dd00) I created a color and it worked ok For the rounded corners I found this method: Create a file "res/drawable/my_border.xml" and define a shape: http://schemas.android.com/apk/res/androi

[android-developers] Re: com.android.internal.telephony.PhoneStateIntentReceiver not available

2009-07-07 Thread Yusuf T. Mobile
Absotively posilutely. That is, if you're using some OTHER carrier besides the fabulous T- Mobile where signal strength is tip-top everywhere! Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual cap

[android-developers] Re: Application gets killed due to a timeout

2009-07-07 Thread Dianne Hackborn
On Tue, Jul 7, 2009 at 4:34 AM, Peli wrote: > There are no limits on a background service once it is running. However... even in a service, never ever do long work on the main thread (where the Service class callbacks happen) -- there could well be some other thing that gets scheduled for your

[android-developers] Re: ListView inside LinearLayout inside ScrollView

2009-07-07 Thread Mark Murphy
> So are you saying I need to revert back to my original method of using > a ListView with a custom adapter and add my "pre-list" content Views > to the adapter itself? No, and I'm not sure, respectively. First, in terms of "need", I'm not saying you need to do anything. You said you wanted a UI

[android-developers] Re: **never ever** use Toasts with Activity context

2009-07-07 Thread skink
On Jul 7, 6:38 pm, Dianne Hackborn wrote: > Um...  a toast by definition sticks around for a while.  If you are enqueing > a bunch of toasts, they are all sticking around waiting to be displayed. > They hold a reference on your context to load resources and such, so your > context won't be rele

  1   2   >