[android-developers] Re: How to receive events on MapView using Overlay

2009-07-02 Thread mak
Team, Below code is working as I need to select first View by pressing left arrow key which maked MapView as Current view and then pressing back button. It is getting called. Thanks for your patience. Regards, _-_Mayank Rana_-_ On Jul 3, 11:04 am, mak wrote: > Overlay Code: > >  public class

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

2009-07-02 Thread skink
hi, take NotifyWithText api demo as example. add in the begging of onCreate System.gc() and some logs with getInstanceCount() and try to show any Toast, then exit NotifyWithText demo. run it again - you will see getInstanceCount() increases leaking Activities. repeat running demo couple of times

[android-developers] Re: Detecting when the file system runs out of space

2009-07-02 Thread gjs
Hi, See android.os.StatFs The camera source code has an example of use http://android.git.kernel.org/?p=platform/packages/apps/Camera.git;a=blob;f=src/com/android/camera/MenuHelper.java;h=a88f020e4c1bacdac50c4aa58bcbb7c68875772f;hb=HEAD eg: public static int calculatePicturesRemaining() { 73

[android-developers] Unknown response Format coming from the server when i am using nusoap webservices

2009-07-02 Thread android.vinny
Hi i am getting unknown format response form the server any help me what type of response it is how to parse that response 07-01 15:14:35.575: VERBOSE/Isizzle(879): getRatingResponse { return=ContestInfo{item=anyType{name=Ankitha; totalimages=2; rating=2.5; }; item=anyType{name=Anus

[android-developers] Re: java.lang.ClassCastException when casting from ParcelableArray

2009-07-02 Thread Romain Guy
It is illegal in Java to cast an array of a supertype into an array of a subtype. On Thu, Jul 2, 2009 at 11:42 PM, ade wrote: > > Hello Android Developers, > > Why do I  get java.lang.ClassCastException when I tried to cast back > an array of custom object that implements Parcelable? > > Here is

[android-developers] java.lang.ClassCastException when casting from ParcelableArray

2009-07-02 Thread ade
Hello Android Developers, Why do I get java.lang.ClassCastException when I tried to cast back an array of custom object that implements Parcelable? Here is the custom class: public class Placemark implements Parcelable { public Double latitude; public Double longitude;

[android-developers] Google docs on HTC Magic (poss all gphones)

2009-07-02 Thread chris.compo
Hi All I am using a Htc Magic, I can access my docs ok but when I tried to edit a shared spreadsheet from the phone I could not do it, it viewed perfectly. Is it possible to edit from phone? should it be ? could it be as would really help me loads... --~--~-~--~~~---

[android-developers] How to receive events on MapView using Overlay

2009-07-02 Thread mak
Overlay Code: public class MyLocationOverlay extends com.google.android.maps.Overlay { @Override public boolean onKeyDown(int keyCode,KeyEvent event, MapView view){ System.out.println("==INSIDE onKeyDown =="); if(keyCode == KeyEvent.KEYCODE_BACK) {

[android-developers] Re: import org.apache.commons.httpclient.HttpClient library error

2009-07-02 Thread Android Development
Hello, I have a custom library that is built as a wrapper around the apache commons http client libraries. Is it possible for me to use this library on android ? Or am i only limited to use the http client libraries as part of android ? On Fri, Jul 3, 2009 at 10:43 AM, Nithu wrote: > > Thanks fo

[android-developers] Find all active alarms

2009-07-02 Thread Veroland
Hi Is there a way to find all the alarms which is currently active set to go "off"? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-deve

[android-developers] Re: import org.apache.commons.httpclient.HttpClient library error

2009-07-02 Thread Nithu
Thanks for the reply But these two libraries not found I just checked using editor... and also you give the reference blog is also not found these libraries Thank You Nithin N V --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Re: implementation of picture gallery

2009-07-02 Thread Sujay Krishna Suresh
the cause should be the adapter u use... plz post ur adapter code so tat we can help u better... On Thu, Jul 2, 2009 at 9:56 PM, ankit_cb...@yahoomail.com < ankit.ag...@gmail.com> wrote: > > Please help, > > > I am trying to implement picture gallery in my application but it's > not scrolling smo

[android-developers] Re: How can I stop the Location Manager service

2009-07-02 Thread tstanly
if really have close,it should be stop immediatly(status symbol is disappear) so how can i removed the listener correctly??? On Jul 3, 11:37 am, JP wrote: > I found it sometimes takes a couple of seconds for GPS to stop (or > rather: for the status symbol to disappear). > Also - are you sure yo

[android-developers] Re: is Instant Messaging and Presence Service(IMPS) available in Android...

2009-07-02 Thread Suchand Ghosh
Thanks Smith. So IMPS support is not a part of Android now. Am I right? :) As you told to use "jabber library", I want to know, is it portable to android framework? Is it possible to integrate my own IM service in Android or android platform does not support at all? I think IMPS/SIP has a very good

[android-developers] Re: How to capture soft keyboard's key events.

2009-07-02 Thread Chris
Thank you very much. It solved my problem. On Jul 2, 4:15 pm, Sujay Krishna Suresh wrote: > plz visithttp://developer.android.com/reference/android/text/TextWatcher.html > to no more... It can be associated with an edittext as follows. >             yourEditText.addTextChangedListener(yourTextWa

[android-developers] Re: ListView with different types of View's

2009-07-02 Thread quanghuytruongdinh
Build a class that extends BaseAdapter, you can customize what u want here. Then use this class as the adapter for your ListView. On Jul 2, 8:45 pm, ayanir wrote: > Hello for all the Android's out there, > > I'm trying to make a ListView when every item in that list can be a > different type of

[android-developers] Re: How to stop any currently played audio?

2009-07-02 Thread quanghuytruongdinh
In my memory, Android has a class that take care of device audio stream. Maybe you can investigate on this class. On Jul 2, 5:40 pm, hmmm wrote: > Hi, > > I'm developing an application which plays some music files. I want to stop > any other audio playback when my application starts playing the

[android-developers] Re: mac layout editor issues

2009-07-02 Thread Clay
Wow am I the only person with layout editor problems on a Mac? Clay On Jun 18, 8:09 pm, Clay wrote: > Hello all! > > I have a mac and I run JDK 1.6 with my android dev setup and eclipse > 3.4. It seems that the layout editor display is totally fragged. > > http://media.momentarynow.com/dev/lay

[android-developers] Re: can recieve and play MMS or RTSP audio stream??

2009-07-02 Thread tstanly
http://groups.google.com/group/android-developers/browse_thread/thread/a68113ee42f62353/be7a9f817ee69b2a?hl=en&lnk=gst&q=rtsp#be7a9f817ee69b2a in this discussion, Dave says there are errors in emulator because the firewall issue. is that true? On 7月3日, 上午10時06分, tstanly wrote: > hi all, > > do

[android-developers] Re: How can I stop the Location Manager service

2009-07-02 Thread JP
I found it sometimes takes a couple of seconds for GPS to stop (or rather: for the status symbol to disappear). Also - are you sure you haven't registered more listeners than you remove? Location providers stay on until the last listener is removed. On Jul 2, 8:22 pm, tstanly wrote: > hi all,

[android-developers] About Receiving Keyboard events on MapView

2009-07-02 Thread mak
Hi All, I am developing application which is Google Map based one. I want to receive KeyPress Event on Mapview. I got OnKeyListener on it but it is not receiving any key events. Any suggestions .. Any examples. Appreciate your inputs. Thanks. Regards, _-_Mayank Rana_-_ --~--~-~--~---

[android-developers] How can I stop the Location Manager service

2009-07-02 Thread tstanly
hi all, i have a location manager: mLocationManager01 = (LocationManager)getSystemService (Context.LOCATION_SERVICE); because i want to stop the gps service, but when i use mLocationManager01.removeUpdates(mLocationListener01); that's not working to stop gps. how can i stop it? thank you

[android-developers] Re: Retrieve list of applications

2009-07-02 Thread aljo
I found it... getApplicationLabel (ApplicationInfo info) I guess it was just there all along --~--~-~--~~~---~--~~ 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: is Instant Messaging and Presence Service(IMPS) available in Android...

2009-07-02 Thread John Smith
2009/7/2 Suchand Ghosh > Hi, > > I like to know whether Instant Messaging and Presence Service (IMPS) > support available in Android release. If yes, please can I know in/from > which release it's available? Thanks in Advance. > > Only for their own service and I think they were telling devs

[android-developers] code to uninstall applications

2009-07-02 Thread aljo
I wan't to uninstall applications using my application... I can retrieve the list of packages installed but I don't know how to remove them... I used the PackageManager class, getInstalledApplications() method... I can't find any method like removeApplication() or uninstallApplication(). the only

[android-developers] Re: how to modify value in AttributeSet?

2009-07-02 Thread Yuchih
Hi Dianne. Thanks for your answer. I have traced some source codes. I think a new AttributeSet is needed. First, I have to produce a XML from original AttributeSet with my modification. Then put this XML to XmlPullParser, and get new AttributeSet using Xml.asAttributeSet(...). But I have to modify

[android-developers] can recieve and play MMS or RTSP audio stream??

2009-07-02 Thread tstanly
hi all, does android can recieve and play MMS or RTSP audio stream? or just can address for HTTP stream?? i try for MMS stream,but there is nothing to hear.. can somebody give me some advise? thanks --~--~-~--~~~---~--~~ You received this message because you a

[android-developers] Re: can't use mouse click for ZoomControl

2009-07-02 Thread tstanly
thank you and sorry. On 7月3日, 上午12時51分, Dianne Hackborn wrote: > Neither mouse input not x86 CPUs are supported Android features, so this is > not appropriate for the android-developers group. Clearly there is > something wrong with whatever patch you have that adds mouse support for > your dev

[android-developers] Failing to send attachments via email

2009-07-02 Thread Don Oleary
Hi guys Apologies if this question has been asked before. I have found numerous threads with the same question, but have never found a satisfactory answer. I am trying to send an attachment through email. When composing the email, everything looks great (attachment seems to be included and ready

[android-developers] Re: Security Exception

2009-07-02 Thread Rab73
Thanks you so much for the response This exception occurs when tryChangeSimLockState is called at packages/apps/Settings/src/com/android/settings/SimLockSettings.java The exception is random. Sometimes it passes without any issues and sometime it gives exception. I try to provide wrong PIN to re

[android-developers] Re: how to modify value in AttributeSet?

2009-07-02 Thread Dianne Hackborn
Sorry, this is pretty much read-only. On Wed, Jul 1, 2009 at 11:05 PM, Yuchih wrote: > > Is there a simple way to modify value in AttributeSet? > > all i want to do is something like this: > in Button.java > > public Button(Context context, AttributeSet attrs, int defStyle) { > > /** > In orig

[android-developers] Re: Questions on applications and how applications are to follow hardware limitations?

2009-07-02 Thread Dianne Hackborn
On Thu, Jul 2, 2009 at 9:45 AM, Rangan wrote: > 1) Is it legal to install Greader as an application on the devices > when it is shipped to customer? if yes, what is the best way to do it? > Can we simply use the apk file of Greader and install it on device? > Any other better ways? You had sure

[android-developers] Re: How to prevent app to be removed/uninsalled

2009-07-02 Thread Jean-Baptiste Queru
Or even the android-porting mailing list if you're not planning to contribute that application back to the Android Open-Source Project. JBQ On Thu, Jul 2, 2009 at 3:01 PM, Yusuf T. Mobile wrote: > >> We plan to build our own firmware and have the app pre-installed. > > This subject is more suite

[android-developers] Re: How to close the Soft Keyboard?

2009-07-02 Thread Dianne Hackborn
To manually close it, use the InputMethodManager class which you can retrieve from Context. On Thu, Jul 2, 2009 at 8:58 AM, DonB wrote: > > Did anyone get this resolved? I have the same issue. > > Don > > On Jun 6, 9:29 am, Bram wrote: > > Sorry, no anwser. I have the same question. Did you get

[android-developers] Re: SimpleCursorTreeAdapter bug

2009-07-02 Thread Marco Nelissen
On Thu, Jul 2, 2009 at 3:28 AM, LD wrote: > > Hello, > > I have tried to use SimpleCursorTreeAdapter class. > > So, I have created my own that extends SimpleCursorTreeAdapter, like > below: > > public MyListAdapter(MyModel model, Cursor cursor, Context context, > int groupLayout, >            int

[android-developers] Re: HTC Hero has multi-touch. SDK support?

2009-07-02 Thread CraigsRace
I had a look at Lukes "hack". Very clever, smart guy! Except when I ran the multi-touch visualizer on my G1 it never actually showed me multi-touching (he did explain in his blog that the G1 hardware didn't support multi-touch very well). It would be really easy to implement a multi-touch SDK i

[android-developers] Re: About Android Developer Challenge 2

2009-07-02 Thread D.Garcia
Thank you very much Yusuf.I'll have to wait! Thanks again, Darío García On Thu, Jul 2, 2009 at 13:50, Yusuf T. Mobile wrote: > > Hi DG, This is the right forum to ask. You will find the full terms at > http://code.google.com/android/adc/ once they've published them. I > know they mention June in

[android-developers] Re: How to prevent app to be removed/uninsalled

2009-07-02 Thread Yusuf T. Mobile
> We plan to build our own firmware and have the app pre-installed. This subject is more suited for the platform mailing list: http://groups.google.com/group/android-platform?hl=en Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the

[android-developers] Re: DEVELOPER CHALLENGE 2 - Can suite of applications participate as one entry?

2009-07-02 Thread havexz
I really agree with "whitemice". On Jul 2, 2:24 am, whitemice wrote: > I had this issue in ADC1 and was forced to put all my apps into the > same APK, although by configuring the manifest.xml file I was still > able to make each application show up with an individual icon. > > However, due t

[android-developers] Re: ListView with different types of View's

2009-07-02 Thread Mark Murphy
ayanir wrote: > Hello for all the Android's out there, > > I'm trying to make a ListView when every item in that list can be a > different type of View. > for example the list could be: > 1. TextView > 2. ImageView > 3. MyCustomView > > I understands that in order to make a list I need to use an

[android-developers] Re: How do i compile platform/packages/apps applications ?

2009-07-02 Thread Yusuf T. Mobile
You can't use an internal API when developing an app with the Android SDK. Google strongly discourages the use of internal APIs for several reasons, among them the likelihood that the APIs will change in the future, leaving your app out in the cold. Yusuf Saib Android ·T· · ·Mobile· stick toget

[android-developers] Re: do I always close() cursor explicitly?

2009-07-02 Thread Mark Murphy
hmmm wrote: > Hello, > > If I don't close() a cursor explicitly, relying on gc instead, may it, > theoretically, cause any problems? That depends. If this is a managed cursor (see managedQuery() and startManagingCursor() in Activity), then it will automatically be closed for you. Otherwise, i

[android-developers] Re: G1 system UIDs inconsistent, none of the apps work, help.

2009-07-02 Thread Justin (Google Employee)
Return your device, sounds like a hardware failure or some sort. In the future topics like this are best put on android-discuss, this forum is for Android developer to discuss application development issues. Cheers, Justin Android Team @ Google On Jul 2, 10:18 am, melipaisa wrote: > About two d

[android-developers] Re: import org.apache.commons.httpclient.HttpClient library error

2009-07-02 Thread Markuz05
You have to import android-sdk libraries: org.apache.http.client.HttpClient Look at the reference: http://developer.android.com/reference/org/apache/http/package-descr.html Bye On 2 Lug, 08:06, N V wrote: > Hi to all... > >            I got one blog which interacts with servlets... Link as > f

[android-developers] Home Screen Sample

2009-07-02 Thread bayeeblue
Hi all, I am able to compile the Home Sample in the 1.5 SDK, however, when tried to run in emulator or real device, it force close when I try to switch the this Home Sample. I was told to move the if(mFavorites) block up in bindFavorites() function, but it still not working. Anyone know how to g

[android-developers] ListView with different types of View's

2009-07-02 Thread ayanir
Hello for all the Android's out there, I'm trying to make a ListView when every item in that list can be a different type of View. for example the list could be: 1. TextView 2. ImageView 3. MyCustomView I understands that in order to make a list I need to use an Adapter. the problem is that the

[android-developers] Re: How to close the Soft Keyboard?

2009-07-02 Thread DonB
Did anyone get this resolved? I have the same issue. Don On Jun 6, 9:29 am, Bram wrote: > Sorry, no anwser. I have the same question. Did you get this sorted > out? In my use-case I clear the focus from an EditText and thus want > the keyboard gone too.. > > myPageEditText.addTextChangedListene

[android-developers] Debug Native JNI code on Android emulator

2009-07-02 Thread Hachaso
Hi! I'm trying to debug my native JNI code located on a shared library. I have been trying to debug using gdb/gdbserver. Here is how I go about, trying to debug: I need help how to debug JNI native code on the Android emulator I'm using gdb/gdbserver I do this at the emulator terminal gdbserver

[android-developers] how to modify value in AttributeSet?

2009-07-02 Thread Yuchih
Is there a simple way to modify value in AttributeSet? all i want to do is something like this: in Button.java public Button(Context context, AttributeSet attrs, int defStyle) { /** In origional XML, I have android:textSize="20sp". Then do something to make textSize attr. value + 2sp. The ef

[android-developers] android-sdk-windows-1.5_r2: How to show default keyboard autometically on focus of EditText.

2009-07-02 Thread Himanshu Shekhar
Hi All, Problem Statement: I am trying to show keyboard when EditText got focus. From following two URL's, I got an idea how to implement it. My target platform is android-sdk-windows-1.5_r2. -First--- http://groups.google.com/group/android-porting/browse_thread/thread/53852dc869b4a64

[android-developers] How to stop any currently played audio?

2009-07-02 Thread hmmm
Hi, I'm developing an application which plays some music files. I want to stop any other audio playback when my application starts playing the music. I've looked at the source code of the Music application and figured out how to to pause the Music application using the intent "com.android.mus

[android-developers] implementation of picture gallery

2009-07-02 Thread ankit_cb...@yahoomail.com
Please help, I am trying to implement picture gallery in my application but it's not scrolling smoothly can someone suggest me what could be the reason or how to do it.how it is implmented i the phone Thanks in advance --~--~-~--~~~---~--~~ You received

[android-developers] do I always close() cursor explicitly?

2009-07-02 Thread hmmm
Hello, If I don't close() a cursor explicitly, relying on gc instead, may it, theoretically, cause any problems? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send

[android-developers] UDP broadcast receiver

2009-07-02 Thread andev
I am writting an application which is using UDP broadcast. I am able to send information but I can't receive any. Are there any permissions I should set or receiving just doesn't work yet (if not will it work soon?) --~--~-~--~~~---~--~~ You received this message

[android-developers] onLoadResource / shouldOverrideUrlLoading

2009-07-02 Thread ioRek
Hi everybody, I have some issues in intercepting resource or url and cancel them. here is an exemple : I have a webview.loadUrl("http://www.anyurl); but the server actually redirect me on an other url. How to cancel this redirect ? I can see the new url in "onLoadResource" but I can't block i

[android-developers] is Instant Messaging and Presence Service(IMPS) available in Android...

2009-07-02 Thread Suchand Ghosh
Hi, I like to know whether Instant Messaging and Presence Service (IMPS) support available in Android release. If yes, please can I know in/from which release it's available? Thanks in Advance. BR, Chand --~--~-~--~~~---~--~~ You received this message becau

[android-developers] Re: Movie.decodeStream(is) is returning NULL after updating to 1.5 SDK

2009-07-02 Thread Grégory Oliver
I have exactly the same problem. On 15 juin, 03:06, Daz wrote: > I'm having the same problem, trying to follow the information to get > animated gifs working, and now this! > > Any idea on a fix? I can't see where the difference to the source was > made. > > Movie.Decodestream is a native method

[android-developers] SimpleCursorTreeAdapter bug

2009-07-02 Thread LD
Hello, I have tried to use SimpleCursorTreeAdapter class. So, I have created my own that extends SimpleCursorTreeAdapter, like below: public MyListAdapter(MyModel model, Cursor cursor, Context context, int groupLayout, int childLayout, String[] groupFrom, int[] groupTo, String [] ch

[android-developers] Detecting when the file system runs out of space

2009-07-02 Thread Chris
This is quite a simple question, but I haven't yet been able to find a solution. How would one determine the number of bytes that are not used on the file system (both the main and the SD card) within an application? I'm writing an application that downloads content from the internet, and I'd rath

[android-developers] Could Activity access photos and videos?

2009-07-02 Thread i...@hanimobile.com
Could Activity accesses photos and videos in normal photos and videos? How can I do this? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to androi

[android-developers] traceview previous time error

2009-07-02 Thread Jaewon
Hi all I need to know some function call flows. I thinks the traceview is the best tool to know that. So I added Debug.startMethodTracing() and Debug.stopMethodTracing() then I got my.trace file. But when I tried like this, strange previous time error came up. $ traceview my.trace ThreadData:

[android-developers] G1 system UIDs inconsistent, none of the apps work, help.

2009-07-02 Thread melipaisa
About two days ago my phone started receiving and making all calls as 'unknown'. I decided to wait to go straight to a T-mobile retail store. But today July 2 at 10 am. none of the apps where working, the browser, text messages, none. the phone became crazy I started to receive error messages on

[android-developers] What is the best way to implement dynamic textures in OpenGL ES?

2009-07-02 Thread Bruce Rees
Hi All, I have a texture-mapped cube based in part on the Kube API demo and the Textured Cube example from anddev.org, It is working fine using bitmaps loaded from R.drawable.. what I need to do now is to make the texture for each face dynamic (using Bitmaps created in code). I'm having trouble

[android-developers] REGARDING AsyncTask Class in Android

2009-07-02 Thread Arun kutty
In the code below the sendSMS should be running in a background thread can i use the AsyncTask class for this purposeI saw a similar AlarmReceiver class where it uses locks for acquiring and releasing...http://pastie.org/403831 Should locks be used here also..???...will putting the sendSMS()

[android-developers] How do i compile platform/packages/apps applications ?

2009-07-02 Thread Erik Ellis
Hello, I'm interested in extending some of the basic applications that comes with Android. In my case platform/packages/apps/music.git. I first tried doing it with just the SDK with no luck because there's some classes missing from the SDK, One of them being "com.android.internal.database.ArrayLi

[android-developers] Canvas.drawText failing to draw on a second call

2009-07-02 Thread Casper
public class TCheckBox extends CheckBox{ public void onDraw(Canvas canvas){ Paint tTextPaint = new Paint(); tTextPaint.setColor(Color.BLACK); canvas.drawText("mtext1", getPaddingLeft(), getBottom(), tTextPaint); int width = getWidth

[android-developers] Questions on applications and how applications are to follow hardware limitations?

2009-07-02 Thread Rangan
Hello, There are certain application which are default available on Android and certain applications available freely in market place. Greader is an application not available default in the Open source package on web to download. 1) Is it legal to install Greader as an application on the devic

[android-developers] Re: sensor_service breaking change in cupcake? getSystemService(Sensor_Service)

2009-07-02 Thread Karthik
Hi- Does anybody know if there is a fix for this? Has Google provided an ETA for the fix if not currently available? Thx On May 22, 1:47 pm, Bob wrote: > Hi, > I have the following code in my app which seems to pause indefinitely > when I run it in thecupcakeemulator: > > SensorManager  mSensor

[android-developers] Re: Question about GENERATING key strokes and DYNAMIC selection of list items.

2009-07-02 Thread Mark Murphy
Mathieu Plourde wrote: > 1. How do you programmatically generate key strokes? I found some > tutorials where it says to use IWindowManager, but that doesn't exist > anymore in 1.5. (And WindowManager doesn't provide any function to > generate key strokes) For your own activity, you could try manu

[android-developers] Re: Intercepting bluetooth device buttons

2009-07-02 Thread sktech
Thanks, I have successfully implemented this thanks to your help. However, I have the following problem: I have an application that plays audio and I listen through my bluetooth headset. When I push the play/pause button on the headset, my application get the corresponding broadcast and pauses

[android-developers] Re: possible leak in orientation change?

2009-07-02 Thread skink
skink wrote: > hi, > > i just made another interesting observation: when and only when > changing from landscape to portrait mode the screen dims a bit and the > system sometimes calls my Activity twice: the first Activity is > getting normal Activity life cycle but its onDestroy()ed in fraction

[android-developers] Re: Animation Transition

2009-07-02 Thread bkbonner
Peli, I found them Views -> Animations -> 3D, etc. Thanks. On Jul 2, 4:35 pm, bkbonner wrote: > Peli, I've looked through the API demo examples... which ones in > particular talks about view transition animations? > > Brian > On Jun 23, 8:20 am, Peli wrote: > > > > > Have you looked into the A

[android-developers] Re: Application forces close when launched from the market

2009-07-02 Thread benderamp
Just solved problem by myself - removed extra parameters from tag in manifest - during development they did not cause any problems though now it seems they were not needed thank's On Jul 3, 12:24 am, fry wrote: > Hi! > > I have uploaded application to market and met weird problem which I > ne

[android-developers] Re: Animation Transition

2009-07-02 Thread bkbonner
Peli, I've looked through the API demo examples... which ones in particular talks about view transition animations? Brian On Jun 23, 8:20 am, Peli wrote: > Have you looked into the API demo examples? > > Peliwww.openintents.org > > On Jun 23, 9:39 am, Sukitha Udugamasooriya wrote: > > > > > Hi

[android-developers] Application forces close when launched from the market

2009-07-02 Thread fry
Hi! I have uploaded application to market and met weird problem which I never received before - when I click "Open" button when the application is installed I receive error dialog and the application is forced to close. I do not have this problem when start application from desktop launcher panel

[android-developers] Question about GENERATING key strokes and DYNAMIC selection of list items.

2009-07-02 Thread Mathieu Plourde
Hello devs, I have two questions: 1. How do you programmatically generate key strokes? I found some tutorials where it says to use IWindowManager, but that doesn't exist anymore in 1.5. (And WindowManager doesn't provide any function to generate key strokes) 2. How do you programmatically select

[android-developers] Re: OpenGL .dae model loader

2009-07-02 Thread nEx.Software
I was able to get the ModelRenderer to work on the 1.1 firmware. Haven't bothered to do anything with it though since 1) it was too slow for my needs and 2) I wasn't interested in a GPL solutions ince I didn't want to GPL my game. I ended up writing my own file format and parser which worked best

[android-developers] Re: Documentation inconsistency in Service.onBind() intent extras availability

2009-07-02 Thread Gert
Aaah, _that_ is what you meant, I understand it now :) You bind the service, getting an (AIDL defined) interface back for the RPC calls, then you just call a method on that interface to get another AIDL defined RPC interface back, the same way the API example does the other way around for the cal

[android-developers] Re: launch an app with widget

2009-07-02 Thread Peli
> @Dianne: If you define some standard intent for the calculator, please > make it accept some number extra that appears in the display :-) and return the final result in onActivityResult() :-) Peli > > Peli > > On 2 Jul., 20:01, schwiz wrote: > > > > > well the widget I am making most likely

[android-developers] Re: launch an app with widget

2009-07-02 Thread Peli
@schwiz: Logcat would work with both, emulator and device: http://developer.android.com/guide/developing/tools/adb.html#logcat @Dianne: If you define some standard intent for the calculator, please make it accept some number extra that appears in the display :-) Peli On 2 Jul., 20:01, schwiz w

[android-developers] Webview dont open Virtual Keyboard?

2009-07-02 Thread guruk
Hi, I have a URL where User can Input in a Field. When I open that URL with the Android Browser and click in the Field the Virtual Keyboard pops up. When I open the same URL with my WebView and click in the Field the Virtual Keyboard does NOT appear?! What Do I have to do? Greets Chris --~--~-

[android-developers] Re: launch an app with widget

2009-07-02 Thread schwiz
well the widget I am making most likely wont be released on the market but I had intended to just do a try catch, and if it doesn't find the app it would just throw up a little message saying that toggle settings wasn't found on the system.. Will the logcat catch the name I need to launch the appl

[android-developers] Re: launch an app with widget

2009-07-02 Thread Dianne Hackborn
I believe the calculator has an action defined for launching with a value. But still... it is not a part of the standard platform, so you would be in trouble if you were relying on it being there -- I wouldn't count on it being on every device, and certainly if we do define some intent action for

[android-developers] Percentage of loading in WebView

2009-07-02 Thread guruk
Hi, I there a Way how I can get the Percentage of how many of a URL is already loaded (I would like to make a Preloader how does show how many % are already loaded from a Page) thankx --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

[android-developers] Re: Package access for SQLiteDatabase methods

2009-07-02 Thread jcpalmer
Looking at SQLiteDatabase's locking, better to bypass execSQL(): public int executeUpdate(String sql) throws SQLException { lock(); try { native_execSQL(sql); return (int) lastChangeCount(); } catch (SQLiteDatabaseCorruptException e) { onCorruption(); t

[android-developers] Re: launch an app with widget

2009-07-02 Thread Peli
So what would be the best way to write, e.g., a restaurant bill widget that launches the built-in calculator? It does not have any other intent filters except MAIN LAUNCHER: http://android.git.kernel.org/?p=platform/packages/apps/Calculator.git;a=blob;f=AndroidManifest.xml;h=ce9063f14287377cb31ff

[android-developers] Re: ScrollView with ListView being cut off

2009-07-02 Thread Dianne Hackborn
Or put all of your list item views directly inside of the scroll view, not inside a list view container. This is essentially what would have to happen when you put a list view inside of a scroll view, because a scroll view is an infinitely high container, so the list view expands to be as large as

[android-developers] Activity Analysis

2009-07-02 Thread Rud
For what it is worth, I have an analysis of the Activity life cycle at http://sites.google.com/site/mysticlakesoftware/android-surfaceview-template which includes some skeleton code for an application. I know there are a lot of other sites that present this information but I may have a slightly di

[android-developers] How to know where a HorizontalScrollView is flinted?

2009-07-02 Thread HeHe
Hello folks, Could somebody teach me how to get current left x-position relative to a HorizontalScrollView view after a Flint event is processing by HorizontalScrollView's factory onFlint handler? There seems to me no such API in current SDK. Am I correct? Thank you!! --~--~-~--~~--

[android-developers] Re: launch an app with widget

2009-07-02 Thread Dianne Hackborn
The launcher doesn't have any hard-coded component names; it does a query of the system for all activities implementing MAIN LAUNCHER. On Thu, Jul 2, 2009 at 9:52 AM, Peli wrote: > > Sorry, my mistake. Of course for settings it is better to use the > appropriate intent action. > > But for many a

[android-developers] Re: Documentation inconsistency in Service.onBind() intent extras availability

2009-07-02 Thread Dianne Hackborn
MyPool is an aidl interface, and you can pass references to such interfaces across processes. The code I wrote was intended to be pseudo-aidl code, not Java code, though I realize now that is probably not clear. On Thu, Jul 2, 2009 at 6:06 AM, Gert wrote: > > That would be impossible, unless an

[android-developers] Re: Intercepting bluetooth device buttons

2009-07-02 Thread Nick Pelly
On Thu, Jul 2, 2009 at 4:36 AM, info.sktechnol...@gmail.com wrote: > > Could someone point me to the documentation or example on how my > application can intercept button pushes on an already paired and > connected bluetooth device? AVRCP events are broadcast as media intent's if the foreground a

[android-developers] Re: Documentation inconsistency in Service.onBind() intent extras availability

2009-07-02 Thread Dianne Hackborn
I would really suggest that you look at the remote service API demos, this shows a variety of things you can do between interfaces. It isn't exactly the pattern here, but it shows using a secondary interface and passing it across the first interface. On Thu, Jul 2, 2009 at 3:10 AM, Gert wrote:

[android-developers] Re: launch an app with widget

2009-07-02 Thread Peli
Sorry, my mistake. Of course for settings it is better to use the appropriate intent action. But for many applications, the launcher intent is simply MAIN (in category LAUNCHER), so there is no way to differentiate between different applications, except by their component - right? (or is it easil

[android-developers] Re: can't use mouse click for ZoomControl

2009-07-02 Thread Dianne Hackborn
Neither mouse input not x86 CPUs are supported Android features, so this is not appropriate for the android-developers group. Clearly there is something wrong with whatever patch you have that adds mouse support for your device, and questions about that should be asked on android-porting. On Thu,

[android-developers] Re: About Android Developer Challenge 2

2009-07-02 Thread Yusuf T. Mobile
Hi DG, This is the right forum to ask. You will find the full terms at http://code.google.com/android/adc/ once they've published them. I know they mention June in their timeline, but they also mention "this timeline is subject to change until the Official Rules are published." Oh well! Yusuf Sa

[android-developers] Re: How to prevent app to be removed/uninsalled

2009-07-02 Thread Dianne Hackborn
On Thu, Jul 2, 2009 at 2:19 AM, John Smith wrote: > 2009/7/2 Dianne Hackborn > >> You explicitly can not do this. >> > Except if you build your own firmware and have the app pre-installed etc > etc etc similar to how some google apps and core libraries can't be removed. > > True, nothing in the

[android-developers] Re: launch an app with widget

2009-07-02 Thread Dianne Hackborn
Please don't hard-code component names of other packages. Those are implementation details, and you can very well break at some point in the future. The Settings class has a number of intent actions to launch standard settings panels; for other things, you should figure out the right intent proto

[android-developers] Re: launch an app with widget

2009-07-02 Thread Peli
If you are only interested in a specific application, you can study the logcat output while launching that application. It will tell you the component that is necessary to launch it. Looking at the Settings manifest: http://android.git.kernel.org/?p=platform/packages/apps/Settings.git;a=blob;f=An

[android-developers] Re: Problem with Convert Project in Eclipse Plugin

2009-07-02 Thread Balwinder Kaur (T-Mobile)
Another way to do this is the following: File->New->Android Project-> With in the New Project Screen, in the "Contents" area, choose the "Create project from Existing Source" option and point it to the your source tree that houses the AndroidManifest.xml file. It should work. Balwinder Kaur Open

  1   2   >