[android-developers] Re: Changing ringer volume

2009-04-18 Thread John Doe
Ok. I found it. AudioManager adjustvolume does it. Thanks :) On Apr 17, 11:07 pm, John Doe wrote: > Hi everybody; > > I am trying to change ringer volume but I am a bit confused. I can > reach the volume_ring level by using the code > > String vr = System.getString(this.getContentResolver > (),S

[android-developers] Re: memory problems

2009-04-18 Thread Carl Whalley
Try running that in DDMS and watching how often the GC is called. -- Android Academy: http://www.androidacademy.com On Apr 17, 10:01 pm, petunio wrote: > Hi > > I know this is more a java question, but I have been in many java > forums, and the theory seems to contradict the real thing... > > I

[android-developers] Re: WebView and Button in layout, only one of them can be clicked.

2009-04-18 Thread kevin
I programmed the layout instead of layout.xml (for our own reason). Following is the code: LinearLayout mainPanel = new LinearLayout(ctx); mainPanel.setLayoutParams(new LinearLayout.LayoutParams (LinearLayout.LayoutParams.FILL_PARENT, LinearLayout.LayoutPar

[android-developers] Re: Profiling ->memory usage

2009-04-18 Thread Zhubham
Hi, I am trying to convert the hprof generated by android to standard format using the code at http://bigflake.com/HprofConv.c.txt. For this i goto unix and 1) type gcc HprofConv.c (this is the file containg the code from above link) 2) next i type, ./a.out heap-profile.hprof standard1.h

[android-developers] TrackBall an event states: is there always a ACTION_DOWN before ACTION_MOVE

2009-04-18 Thread TjerkW
Hello all, Maybe a stupid question (i dunnot have an android phone), but it is possible to move the trackball without generating an ACTION_DOWN event. So is the trackball both a button and a trackball.. Or is there always an action down event before an action move, like there is with a touchscre

[android-developers] "automatic location finder"

2009-04-18 Thread Zhubham
Hi Experts, I want to integrate an additional "automatic location finder" functionality in android already existing map application. The idea is to retrieve the current location from GPS and automatically focus first to your city and then the area. BUT, how do i retrieve location from GPS (this w

[android-developers] DDMS Heap view format

2009-04-18 Thread Zhubham
Hi, Can anyone please help me to know what do the following mean in the Heap view of DDMS: 1) Data Object 2) Class Object 3) 1,2,4,8-byte array : which arrays are we talking about here?? 4) non- Java object Thanks in advance. Best Regards, Zhubham --~--~-~--~~~---~--

[android-developers] Re: Changing ringer volume

2009-04-18 Thread Mark Murphy
> > Hi everybody; > > I am trying to change ringer volume but I am a bit confused. I can > reach the volume_ring level by using the code > > > String vr = System.getString(this.getContentResolver > (),System.VOLUME_RING); > > > However it says in the explanation "Ringer volume. This is used > int

[android-developers] Maps API

2009-04-18 Thread alexdonnini
Hello, Access to the maps API at http://www.google.com/glm/mmap was disabled some time ago. Would someone be able to tell if it was replaced, and what the current access path is? Alternatively, I would appreciate it if someone could give me some information regarding getting access equivalent

[android-developers] Is there a way to navigate android SDK documentation online for multiple releases??

2009-04-18 Thread Satya Komatineni
Going forward will Android maintain the sites for multiple SDKs that might be in use. For example at this very moment there may development teams that are working on 1.0, 1.1 and possibly 1.5. If the main site carries documentation only for 1.1 (current release) will Android make an effort to ma

[android-developers] Re: WebView and https post problem

2009-04-18 Thread Evgeny V
Thanks, It works but partially only. I didn't get the full expected page. I tried also paramtrized url insted parametized POST request. " https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=mym...@mail.com&item_name=mydescr&no_shipping=1&no_note=1¤cy_code=USD&tax=0&lc=IL&bn=PP-DonationsBF";

[android-developers] Re: String comparison with Text in EditText with online data.

2009-04-18 Thread murphy
Thanks for the help guys, I shouldn't have been using the ==, a compareto() and including a boolean to check against managed to solve. On Apr 16, 9:14 pm, Jason Proctor wrote: > in the vast majority of cases, compare Java strings with equals() or > equalsIgnoreCase() > > == tests for reference

[android-developers] How to delete textfiles from the device.

2009-04-18 Thread murphy
Hi, I'm currently downloading information from an online source which is saved in a textfile on the device. i'm just wondering what function is used in order to "clean out" the textfiles once the program has ended. Thanks. --~--~-~--~~~---~--~~ You received this mes

[android-developers] maps api and 1.5

2009-04-18 Thread wayne mcfadden- Red Droid
Sorry guys, originally i posted to discussion which is the wrong place. I'm migrating over an application from 1.1 to 1.5 and it uses the Google maps. I got through most of the class path issues resolved I think but when launching the application I get the following message. 04-18 13:19:11

[android-developers] Re: Question about animation

2009-04-18 Thread daniel.benedykt
Hi Mike, I am having the same issue here. I try a lot of things and nothing worked. Does anyone have the answer to this? Thanks Daniel On Apr 16, 11:34 pm, Mike Baroukh wrote: > Hi. > > Hi have an absolute layout with pictures. > Only 2 pictures are show simultaneously. Others are on the layo

[android-developers] Re: Question about animation

2009-04-18 Thread daniel.benedykt
Hi Mike Actually I just got the solution :) I was having this problem for a couple of days but just solved it. Here is the solution: When you want to animate from left to write do this: absoluteLayout.post(new SwapViewsDifferent()); then you have a inner class: private final class SwapViews

[android-developers] ReStarting An Activity From A Service

2009-04-18 Thread Mohamed Amir
I have a Service that starts an Activity on certain event passing to it some parameters. The problem is if the Activity is still open, when the service tries to startActivity() again, the activity isn't started because it's already started. Is there a way to force the destruction of the old Acti

[android-developers] Re: TrackBall an event states: is there always a ACTION_DOWN before ACTION_MOVE

2009-04-18 Thread Marco Nelissen
Off the top of my head I don't know the specific events generated, but given that you can use the trackball to e.g. scroll through a list without clicking on items, what you want to do is obviously possible. On Sat, Apr 18, 2009 at 3:09 AM, TjerkW wrote: > > Hello all, > > Maybe a stupid questi

[android-developers] Re: ReStarting An Activity From A Service

2009-04-18 Thread Marco Nelissen
On Sat, Apr 18, 2009 at 8:50 AM, Mohamed Amir wrote: > > I have a Service that starts an Activity on certain event passing to > it some parameters. > > The problem is if the Activity is still open, when the service tries > to startActivity() again, the activity isn't started because it's > alread

[android-developers] Re: ReStarting An Activity From A Service

2009-04-18 Thread Mark Murphy
> I have a Service that starts an Activity on certain event passing to > it some parameters. I do not recommend this. What if the user is in the middle of doing something else? > The problem is if the Activity is still open, when the service tries > to startActivity() again, the activity isn't s

[android-developers] OnTouchListener: return true or false?

2009-04-18 Thread arnouf
Hi all, Whe you try to manage the event on an element using OnTouchListener you have 3 states: DOWN, MOVE and UP. The implement of this method must return a boolean value. If in my MOVE case, I return true...the method continues to be parse until the last return value. Why? What is the normal

[android-developers] using custom data in message handler

2009-04-18 Thread DevilMayCry
Hi All , I am calling a remote service from my app which initiates a callback from another thread. I have implemented the message handler and am getting the message in my UI thread. the problem is the callback data contains a boolean along with int which i need in my app. stub in my avctivity CBGe

[android-developers] Problems deleting an audio file using a media content uri

2009-04-18 Thread estivenrpo
Hi guys I have a Uri like "content://media/external/audio/media/149" that is a audio file and i want to delete it i have tried: Uri fileUri = Uri.parse("content://media/external/audio/media/149"); c.getContentResolver().delete(fileUri, null, null); I have also tried: File fileToDelete = new Fi

[android-developers] Re: TrackBall an event states: is there always a ACTION_DOWN before ACTION_MOVE

2009-04-18 Thread Dianne Hackborn
Moves are completely independent from down/up in the trackball, since you can move it without having it pressed down. On Sat, Apr 18, 2009 at 3:09 AM, TjerkW wrote: > > Hello all, > > Maybe a stupid question (i dunnot have an android phone), > but it is possible to move the trackball without gen

[android-developers] Intent to handle files opened in browser ending .droid.txt

2009-04-18 Thread Alec
Hi Im having an issue with intents. Im attempting to have the google browser open my application when it opens a blahblah.droid.txt however am having no luck. Here's what ive got so far:

[android-developers] Re: TrackBall an event states: is there always a ACTION_DOWN before ACTION_MOVE

2009-04-18 Thread Tjerk Wolterink
Aha tanks for the info,i dunnot have a device so i was not sure. Thanks! 2009/4/18 Dianne Hackborn > Moves are completely independent from down/up in the trackball, since you > can move it without having it pressed down. > > On Sat, Apr 18, 2009 at 3:09 AM, TjerkW wrote: > >> >> Hello all, >> >

[android-developers] Re: memory problems

2009-04-18 Thread JP
You may get this resolved by calling the garbage collector right there; system.gc() after you dereference the byte array with buff=null; On Apr 17, 2:01 pm, petunio wrote: > Hi > > I know this is more a java question, but I have been in many java > forums, and the theory seems to contradict th

[android-developers] Re: maps api and 1.5

2009-04-18 Thread Brian Conrad
Did you set the project up for level see or Google Apps which include the Maps library and 1.5? Just 1.5 won't do for MapActivity as I found out when I recompiled my program but setting it to Google Apps (the third setting) fixed it. wayne mcfadden- Red Droid wrote: > Sorry guys, originally i

[android-developers] Re: maps api and 1.5

2009-04-18 Thread Xavier Ducrohet
As long as you set the build target to be "Google APis" and set the uses-library you should be good. Is the class net.company.android.OrgMapActivity in a different project referenced by your app project? Xav On Sat, Apr 18, 2009 at 7:15 AM, wayne mcfadden- Red Droid wrote: > > Sorry guys, orig

[android-developers] Re: How to apply LOCAL_AAPT_FLAGS to eclipse project?

2009-04-18 Thread Xavier Ducrohet
There is no way to do this in ADT at this time, sorry. Xav On Tue, Apr 7, 2009 at 8:42 PM, moontain wrote: > Hi, > > In the Android.mk, there are AAPT flags set as below. > LOCAL_AAPT_FLAGS := -0 .dat > > I'm wondering how to apply this AAPT flag in the eclipse project, so that > the .dat raw d

[android-developers] Check if a View contains another View

2009-04-18 Thread xspotlivin
Is there a way to check if a view contains another certain view? I have an AbsoluteLayout view that I add multiple views to (buttons). I have a certain button, let's call it reportButton, and I want to check to see if its already within my AbsoluteLayout view. Is there like an AbsoluteLayout.conta

[android-developers] Re: Distinguishing Between Edge and 3G network

2009-04-18 Thread Moto
How about you use: TelephonyManager c=(TelephonyManager) Context.getSystemService (Context.TELEPHONY_SERVICE); switch (c.getNetworkType()) { case TelephonyManager.NETWORK_TYPE_UNKNOWN: Log.i("CONNECTION", "UNKNOWN");

[android-developers] Re: Check if a View contains another View

2009-04-18 Thread Marco Nelissen
View.findViewById() ? On Sat, Apr 18, 2009 at 2:52 PM, xspotlivin wrote: > > Is there a way to check if a view contains another certain view? I > have an AbsoluteLayout view that I add multiple views to (buttons). I > have a certain button, let's call it reportButton, and I want to check > to s

[android-developers] Re: Active Calendar app on Android Emulator?

2009-04-18 Thread Omer Saatcioglu
Emulator can not sync with Google Server. You should test the sync with a real device that had activated with google ID. On Feb 26, 1:52 pm, Steven Farley wrote: > I have the same problem, running the emulator on Mac OS X.  Any > suggesstions would be appreciated. > > On Feb 21, 3:24 am, Tim Bao

[android-developers] Re: Check if a View contains another View

2009-04-18 Thread DeRon Brown
I'm not using XML, so that won't work for me, I don't think. However, I found another solution. I'm just going to use a button ArrayList (of size 1). Each time I'll check to see if the ArrayList's size is greater than zero, if it is, I remove the button in the list from the view. On Sat, Apr 18, 2

[android-developers] Re: Check if a View contains another View

2009-04-18 Thread Dianne Hackborn
Er... if you have an ArrayList that you are putting one item in, why not just have a pointer? Much less overhead. Also you can assign your own id and still use findViewById(). And keep in mind that AbsoluteLayout is being deprecated in Cupcake, and we strongly discourage its use since it is ver

[android-developers] Re: Distinguishing Between Edge and 3G network

2009-04-18 Thread Dianne Hackborn
Keep in mind that in the future there will be other network types, such as on CDMA devices in the near future, and whatever new cell network protocols appear even later. Depending on comparing against a fixed set of types is not robust. On Sat, Apr 18, 2009 at 4:11 PM, Moto wrote: > > How about

[android-developers] Re: memory problems

2009-04-18 Thread Dianne Hackborn
You really should not be forcing the garbage collector to run like this, and there should be no need to do so. On Sat, Apr 18, 2009 at 11:31 AM, JP wrote: > > > You may get this resolved by calling the garbage collector right > there; system.gc() after you dereference the byte array with > buff=

[android-developers] Re: Distinguishing Between Edge and 3G network

2009-04-18 Thread Moto
I believe what you are saying is true, but as of now this is the best and fastest way to achieve a "guess" as of how fast the users data connection is... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Develop

[android-developers] Question about MotionEvents

2009-04-18 Thread pperotti
hi everyone, Can anyone give me a clue about how can I do to make a list scroll down or up programatically ? I'm trying to understand how to trigger the same motion event that happen when a list scrolls down or up as a consecuence o a touch. Thanks for the help. Pablo --~--~-~--~~--

[android-developers] EditView inputType

2009-04-18 Thread Brian Conrad
Since "Numeric" has been deprecated what do you enter in the Layout properties for Input type? For integer I can use EditInfo.TYPE_CLASS_NUMBER when using setInputType(EditorInfo.TYPE_CLASS_NUMBER) but that doesn't work in the layout editor. Are there some examples I haven't stumbled upon

[android-developers] Re: WebView and https post problem

2009-04-18 Thread Chander Pechetty
Not sure why you are initializing one time settings of WebView in a while loop. (and also the StringBuffer.toString inside a loop fed to WebView) It doesn't look right to me. Use org.apache.http.impl.client.BasicResponseHandler for getting the string from the http response to feed it. --~--

[android-developers] how to parse and analyze the call stack of native code? any tools?

2009-04-18 Thread Paranoia
Thanks! the following is the log from native code. I/DEBUG ( 543): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** I/DEBUG ( 543): Build fingerprint: 'generic/generic/generic/:1.5/ CUPCAKE/eng.xx.20090418.095237:eng/test-keys' I/DEBUG ( 543): pid: 644, tid: 644 >>>

[android-developers] Re: Some problems in cupcake imf

2009-04-18 Thread Lewis
Hello, I am currently trying to work with InputMethodService. Have you managed to successfully override the default keypad? I would love to see the code if I could? Thanks Lewis On Mar 27, 8:04 am, Paranoia wrote: > i am developing an ime on android. i have some questions. > > 1. why InputMet

[android-developers] Re: Anybody can help me with the control style?

2009-04-18 Thread AllSet
Hi Greg, wow. Thanks a lot for such detailed information. I have been trying to do what i described above with View and Animation, just like you said. and it seems to work just fine, though currently doesn't look so good as "ZoomControls" :) maybe i should use some images in the Views instead

[android-developers] Re: WebView and https post problem

2009-04-18 Thread Evgeny V
Thank you very much for feedback! Regarding the loop. Of course I don't do it inside a loop. The sent code is first attempt and contains this bug. Will use BasicResponseHandler to handle result. It definitely can casue the performance probpem. Do you think the way I'm extracting the resopnse stri