[android-developers] How to integrate my application with Google map application

2009-07-07 Thread siva
Hi All, I am new to android development. I am trying to integrate my application with the Google maps application is it possible to do so. I have searched for source code for the Maps.apk file but i am unable to find the source code. Is it possible to integrate the my application with Google

[android-developers] Memory profiling an android application.

2009-07-07 Thread Android Development
How do we profile an android application's memory ? Help appreciated Thanks in advance --~--~-~--~~~---~--~~ 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] Why webview.loadUrl() does not work on Emulator behind a http proxy but Browser does

2009-07-07 Thread Jarod LIU
Hi androiders, I have a question about WebView class PROXY on Emulator regarding HTTP. I've written a test apk to load a URL with webview class. When running it, it always got a I/InetAddress( 799): Unknown host d.yimg.com, throwing UnknownHostException. But the same url can be visited with

[android-developers] Re: How to add Google Maps library, Maps to the Android 1.5 version device?

2009-07-07 Thread Zied Hamdi
Hi all, I'm really interested in this subject since I'm developing an app for the google challenge and I'd like to know if it will be possible to simply (as in plain old java) include the jars of the maps plugin as it was written by me (after all why not do it this way?). This way any device

[android-developers] Re: Need a way to simulate Button Click Event.

2009-07-07 Thread Raju
Hi Dianne, Thanks for the response, this solution solved my problem partially. By navigating to the required button by using sendkeys (trail and error) then clicking on that button. My concern is, I'm developing a tool which should simulate user actions on any application irrespective of

[android-developers] Re: AlarmManager nothing happening

2009-07-07 Thread Peli
receiver android:name=.FmiDaemon android:process=:remote / If you don't specify an explicit intent filter (like you did for BOOT_COMPLETED), you should probably set android:exported=true : receiver android:name=.FmiDaemon android:exported=true (android:process=:remote) / so that the

[android-developers] Re: Android Market :: Free application gets to top of pile on new release, paid app doesn't?

2009-07-07 Thread Cédric Berger
On Tue, Jul 7, 2009 at 02:19, Rob Franzrob.fr...@gmail.com wrote: Say I have two apps - one free, one paid. I release updates to both.  The free one is at the top of the list, but the paid one is down in the depths of the list.  That kind of sucks. Is this really how it works?  Or is

[android-developers] Re: Camera Captured Image not Saving

2009-07-07 Thread gjs
Hi, I just use an activity / service / class that implements MediaScannerConnection.MediaScannerConnectionClient which provides the callback methods - public void onMediaScannerConnected() { // TODO Auto-generated method stub bMSCConnected = true; }

[android-developers] How to return to an auto-started activity

2009-07-07 Thread nleiptv
Hi everyone, I have been searching till my fingers bled, so now I decided to ask here for help. I have the following problem: I have written an activity which I start up as soon as the phone has finished booting. For that I used a Broadcast receiver that listens to BOOT_COMPLETED intents. All

[android-developers] Re: Canvas Scaling issues

2009-07-07 Thread Piwaï
Hi ! Thanks for the link, the GestureDetector is nice. I started working on this today, and found another way to zoom move, which I think may be simpler. All you need is to set a specific Matrix on an ImageView. The matrix will apply transformations on the image (here we just want to scale and

[android-developers] Re: How to return to an auto-started activity

2009-07-07 Thread nleiptv
Hi, I finally solved it myself. The key to doing the stuf I wanted to do is a) the launch mode of an application b) the whether task reparenting is allowed I had to a) set the launch mode of my activtity to 'singleTask', since I want the activity to be the root of only one task and still allow

[android-developers] IOException(S) with sdcard files

2009-07-07 Thread pierre
Hi, I have, sometimes, quite often, some IOExceptions when I access sdcard files, for example when I do : - MediaPlayer.prepare() (with path to sdcard file set before) - File.mkDir() - MediaRecorder.prepare() (with path to sdcard file set before) If I retry later it works fine. Do you have any

[android-developers] how can i check left and right motion in onTouchEvent?

2009-07-07 Thread zeeshan
Hi dear, i need left, right motion event and a click event . problem is that, if i have onclickEvent then onTouchEvent doesn't fire. onTouchEvent works only if i disable onclickEvent and also it doesn't work what i expect. 1-only ACTION_MOVE fires twice everytime when i move on screen. 2-can't

[android-developers] Re: how can i check left and right motion in onTouchEvent?

2009-07-07 Thread Suhas
Hi I think u should return true and not false in ontouchevent On Tue, Jul 7, 2009 at 3:51 PM, zeeshan genx...@gmail.com wrote: Hi dear, i need left, right motion event and a click event . problem is that, if i have onclickEvent then onTouchEvent doesn't fire. onTouchEvent works only if i

[android-developers] how can i check left and right motion in onTouchEvent?

2009-07-07 Thread zeeshan
Hi dear, i need left, right motion event and a click event . problem is that, if i have onclickEvent then onTouchEvent doesn't fire. onTouchEvent works only if i disable onclickEvent and also it doesn't work what i expect. 1-only ACTION_MOVE fires twice everytime when i move on screen. 2-can't

[android-developers] Re: how can i check left and right motion in onTouchEvent?

2009-07-07 Thread Saurav Mukherjee
try using GestureDetector... u get functions like onScroll which shud make ur work easier. On Tue, Jul 7, 2009 at 3:57 PM, Suhas suhas.ga...@gmail.com wrote: Hi I think u should return true and not false in ontouchevent On Tue, Jul 7, 2009 at 3:51 PM, zeeshan genx...@gmail.com wrote:

[android-developers] Re: copy wiped/ raw data from android to sd-card (data recovery)

2009-07-07 Thread Lexi Kern
i want to copy the wiped internal phone storage data. so you recommend i should have a look at the backup command of the cupcake platform in order to learn how to copy the wiped data? i mean if it's possible to copy the internal phone storage data, then it should be possible to read the raw code,

[android-developers] Getting the email address of the Google Account tied to the handset

2009-07-07 Thread mscwd01
Hey, Simple question - but i'm finding it difficult finding the answer. I want to get the email address of the Google account tied to the phone (the one the user enters upon setup). I need it to uniquely identify the user of my app - however I do not want their password as it would,

[android-developers] Re: how can i check left and right motion in onTouchEvent?

2009-07-07 Thread Suhas
hi r u working on actual device or emulator ? on emulator if u key ur pointer at one place then it will trigger once or twice only but on actual g1 it will be in touch event move action On Tue, Jul 7, 2009 at 4:06 PM, zeeshan genx...@gmail.com wrote: i changed it to true but it doesn't seem to

[android-developers] how to restart the emulator through api's??

2009-07-07 Thread dark_messiah
I need to restart the emulator through code ...how can i do it??? Are there any api for doing this stuff? --~--~-~--~~~---~--~~ 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] Re: Android Market :: Free application gets to top of pile on new release, paid app doesn't?

2009-07-07 Thread Rob Franz
It never used to be like that though - when you uploaded two of them, you'd see both of the right at the top of the column. Didn't have to do with popularity... 2009/7/7 Cédric Berger cedric.berge...@gmail.com On Tue, Jul 7, 2009 at 02:19, Rob Franzrob.fr...@gmail.com wrote: Say I have two

[android-developers] Re: Android Market :: Free application gets to top of pile on new release, paid app doesn't?

2009-07-07 Thread ad
I'm guessing there was a longer period between releases on the free one - maybe thats why it went to the top? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] Re: How to maintain orange background of selected listview item in getView of ArrayAdapter-derivation when using setBackgroundcolor?

2009-07-07 Thread extrapedestrian
I need similar thing too... How to change the font color when list item is selected? It works automatically on default listview items, but if im creating the views... how to account for this? On Jun 28, 3:56 pm, pawpaw17 georgefraz...@yahoo.com wrote: Hi everyone, If you derive a class from

[android-developers] Re: Android Market :: Free application gets to top of pile on new release, paid app doesn't?

2009-07-07 Thread Rob Franz
The way I've been doing it - I release them at the same time, so there's maybe 1-2 minutes between uploads. So I doubt that there's 30 other apps (in the same order everytime) that are released. On Tue, Jul 7, 2009 at 8:00 AM, ad admin.androidsl...@googlemail.comwrote: I'm guessing there was

[android-developers] Re: how can i check left and right motion in onTouchEvent?

2009-07-07 Thread zeeshan
i tried on both, ActionMove triggers twice and ACTION_DOWN doesn't trigger at all On Jul 7, 12:23 pm, Suhas suhas.ga...@gmail.com wrote: hi r u working on actual device or emulator ? on emulator if u key ur pointer at one place then it will trigger once or twice only but on actual g1 it will

[android-developers] Error while application signing

2009-07-07 Thread rohit
Hello there, I am signing my android application through Eclipse but at the final step after pressing Finish button, I got the java.io.IOException: incorrect AVA format error. Please help me. Regards, rohit --~--~-~--~~~---~--~~ You received this message because

[android-developers] Adobe Flash

2009-07-07 Thread chris.compo
I heard the HTC Hero was coming with Adobe flash installed. does this mean previous android phones did not? and will we get an update for it ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] why MotionEvent.ACTION_DOWN doesn't fire in onTouchEvent?

2009-07-07 Thread zeeshan
Hi Dear, i am trying to capture startx and endx position but MotionEvent.ACTION_DOWN event doesn't fire at all. please check what wrong in the code below: @Override public boolean onTouchEvent(MotionEvent event) { switch (event.getAction()) {

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

2009-07-07 Thread denismo
Thanks for the reply. Do you know if this document has been updated with the changes made in Cupcake? Thanks. Denis On Jul 7, 9:34 pm, Peli peli0...@googlemail.com wrote: The numbers can be found in the official

[android-developers] things turning on in the night

2009-07-07 Thread chris.compo
Hi I am using a HTC Magic and recently various programs are turning on and using all my battery power. I recharged my phone for 8pm last night and woke up to a phone with no power at 5AM plugged in and loads of stuff I rarely use was on ( I do have a task kill program which I use before bed).

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

2009-07-07 Thread denismo
Perhaps this will give more information: I use BOOT_COMPLETED BroadcastReceived, which starts the service. It takes 5-6 second to start the service from the receiver on the real device, and less than a second on emulator: Device: Sat Jul 04 00:00:26 GMT+10:00 2009 4 Received intent: Intent {

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

2009-07-07 Thread Mark Murphy
Perhaps this will give more information: I use BOOT_COMPLETED BroadcastReceived, which starts the service. BOOT_COMPLETED is a very busy time in the life of a device. Consider using the BOOT_COMPLETED receiver to set a one-shot alarm with the AlarmManager to delay the start of your service for

[android-developers] Re: Getting the email address of the Google Account tied to the handset

2009-07-07 Thread Mike Garcia
Have you considered using the unique phone id rather than the g acct? The phone id is a much more reliable method especially since tthe email can be changed with a phone reset. On Tuesday, July 7, 2009, mscwd01 mscw...@gmail.com wrote: Hey, Simple question - but i'm finding it difficult

[android-developers] Re: Adobe Flash

2009-07-07 Thread Mike Garcia
No official word has come from the android team but I believe it safe to assume that in the coming months it is quite plausible that an ota update could be announced to coincide with the Hero's release that would provide support for flash. Being a web developer in my day job, I'm still not sure

[android-developers] Re: things turning on in the night

2009-07-07 Thread Peli
Does it only happen during the night? If so, can you exclude that you are sleepwalking and launching the programs yourself, or that someone else has access to your phone in the night? :-) You don't have by chance OI Countdown installed? ( http://www.openintents.org/en/node/204 ). The latest

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

2009-07-07 Thread Diego Torres Milano
This is fine. Thanks for the info. However, I've been writing some tests using ActivityInstrumentationTestCase2 and an Activity that depending on an extra parameter displays the Toast or not, and the results seems to be different. If the Toast is displayed the instance count constantly increases

[android-developers] Re: Android Market :: Free application gets to top of pile on new release, paid app doesn't?

2009-07-07 Thread Rob Franz
Ah sorry, I was talking about in the By Date view... which appears to be broken. 2009/7/7 Cédric Berger cedric.berge...@gmail.com On Tue, Jul 7, 2009 at 02:19, Rob Franzrob.fr...@gmail.com wrote: Say I have two apps - one free, one paid. I release updates to both. The free one is at

[android-developers] Re: Setting a scrollbar position.

2009-07-07 Thread Mathieu Plourde
Is there any way I could use TouchUtils without an InstrumentationTestCase or an ActivityInstrumentationTestCase. I'm doing something in a existing project and using those classes is not possible. I tried calling TouchUtils.clickView(null, view), and I'm getting an exception: Could not find

[android-developers] uploads disabled

2009-07-07 Thread dsurround
This problem in the browser has been written about for months, with no response anywhere. Some of the threads just stop, but the problem is still there. Can anyone shed some light on how to workaround the problem in the browser when a web site allows for files (pictures, etc) to be uploaded,

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

2009-07-07 Thread Romain Guy
Same thing, there is no leak. You have no guarantee in your test that the GC was run. It is important for the system_server process to be GC'd as well, which your test does not guarantee. On Tue, Jul 7, 2009 at 7:40 AM, Diego Torres Milanodtmil...@gmail.com wrote: This is fine. Thanks for the

[android-developers] Re: Blur an image

2009-07-07 Thread Sharmila Chakraborty
Thank you for your reply.No I don't have much experience with real time image processing.I am doing this as part of my summer project. I was wondering can I use the inbuilt blurmaskfilter in android? Thanks, Sharmila. On Mon, Jul 6, 2009 at 2:29 PM, mboehmer mboeh...@fh-muenster.de wrote: You

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

2009-07-07 Thread skink
On Jul 7, 12:27 am, Romain Guy romain...@google.com wrote: There is no leak, I just verified myself. Your call to System.gc() does NOT guarantee that the GC will run. To check for leaks here is the procedure: - Run the app - Run adb shell dumpsys meminfo | grep -A 12

[android-developers] Re: Blur an image

2009-07-07 Thread Saurav Mukherjee
here are two links, these might help u: http://www.java2s.com/Code/Java/2D-Graphics-GUI/ImageEffectSharpenblur.htm http://www.jhlabs.com/ip/blurring.html hope this helps. cheers! On Mon, Jul 6, 2009 at 10:37 PM, Sharmila sharmcg...@gmail.com wrote: Hi, I have a camera application that

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

2009-07-07 Thread skink
On Jul 7, 4:49 pm, skink psk...@gmail.com wrote: I think if the references of my Activity were not kept by someone the system would gc() them during the allocation of field mNotUsedIntArray (when there is no available free memory), but it doesn't. probably its that *mysterious* system

[android-developers] Re: Android Maket Place Apps

2009-07-07 Thread Disconnect
On Mon, Jul 6, 2009 at 11:07 PM, Ranganmjvran...@gmail.com wrote: Android Market Place and Google Maps are not both the open applications now. How we do we get these applications to products then? Do we need to have any formal communication with Google? So far the only thing that has been

[android-developers] ListView inside LinearLayout inside ScrollView

2009-07-07 Thread Michael J
So I've been extremely frustrated by this for a long time now. I've posted before, but can't seem to find a good solution. My goal is to have something pretty much exactly like the installed application details page in the Android Market. I need a list of items displayed along with other

[android-developers] Packet Driver and RIL Header Files

2009-07-07 Thread Junior Oyebadejo
Good Afternoon everyone, I have been looking at the telephony architecture of Android on kandroid.com (http://www.kandroid.org/android_pdk/telephony.html). From the diagram on that website one can see the libril-vendor.so binary file in the Libraries section. I know you can download this binary

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

2009-07-07 Thread Michael J
Below is a small portion of the code I'm attempting to do this with. DayView is simply an extention of LinearLayout, and homeLayout is the layout I'm trying to add each DayView to. When I'm debugging with a break inside of the onClick(View v) method, it never breaks. DayView day =

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

2009-07-07 Thread Mark Murphy
I vaguely recall your earlier thread, so forgive me if I either repeat or contradict myself, assuming I responded... My goal is to have something pretty much exactly like the installed application details page in the Android Market. I need a list of items displayed along with other content

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

2009-07-07 Thread Hayden
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 intent. The text has newline characters to space out the paragraphs, and when the

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

2009-07-07 Thread Dianne Hackborn
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 released until all of the toasts are shown and dismissed.

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

2009-07-07 Thread skink
On Jul 7, 6:38 pm, Dianne Hackborn hack...@android.com 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

[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 peli0...@googlemail.com 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

[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

[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: shape

[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 jsegh...@cequint.com 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

[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

[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 pathsdk-location set in local.properties is correct. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To

[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

[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

[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: shape

[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 uses-permission android:name=android.permission.GET_ACCOUNTS/uses-permission uses-permission android:name=com.google.android.googleapps.permission.GOOGLE_AUTH/uses-permission in manifest.xml , but

[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) TabHost xmlns:android=http://schemas.android.com/apk/res/android; android:id=@android:id/tabhost LinearLayout TabWidget android:id=@android:id/tabs

[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

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

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

[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] 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] 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] 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,

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

[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

[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 code.

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

[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

[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 djaut...@gmail.com wrote: I'm making a game which uses a SurfaceView to display the main

[android-developers] Re: things turning on in the night

2009-07-07 Thread Dianne Hackborn
It's not just services -- applications can create alarms, for example, to wake them up at a certain time. For all of these things, you can make sure the app won't run by using the force stop button in the manage apps settings. However, there are still somethings apps can do -- like watch for

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

2009-07-07 Thread Michael J
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? As long as I correctly implement those few methods you mentioned (getViewTypeCount(), getItemViewType(), etc)? On Jul 7, 11:19 am,

[android-developers] Re: why MotionEvent.ACTION_DOWN doesn't fire in onTouchEvent?

2009-07-07 Thread Dianne Hackborn
It certainly does. Are you sure you are actually touching within that view? On Tue, Jul 7, 2009 at 5:40 AM, zeeshan genx...@gmail.com wrote: Hi Dear, i am trying to capture startx and endx position but MotionEvent.ACTION_DOWN event doesn't fire at all. please check what wrong in the code

[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 mmur...@commonsware.com 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

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

2009-07-07 Thread fadden
On Jul 6, 11:23 pm, Android Development indodr...@gmail.com 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: 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 jdesbon...@gmail.com 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

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

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

2009-07-07 Thread schwiz
thanks On Jul 7, 2:49 pm, Charlie Collins charlie.coll...@gmail.com 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

[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: 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.

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

[android-developers] Re: SurfaceView detaining focus

2009-07-07 Thread djauto23
On Jul 7, 7:07 pm, Dianne Hackborn hack...@android.com 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

[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-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 charlie.coll...@gmail.com wrote: I haven't heard any official stance on this, but I would imagine there are security

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

[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 sch...@gmail.com 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

[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: 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] 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

[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: 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 sch...@gmail.com

  1   2   >