[android-developers] Changing ringer volume

2009-04-18 Thread John Doe
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 internally, changing this

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

2009-04-18 Thread moontain
Hi, Is anyone encountering this issue too? 2009/4/8 moontain chen.worksp...@gmail.com 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 data files will not be

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

[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 juanjosegilmen...@hotmail.com wrote: Hi I know this is more a java question, but I have been in many java forums, and the theory seems to

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

[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

[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

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

[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

[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

[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=_xclickbusiness=mym...@mail.comitem_name=mydescrno_shipping=1no_note=1currency_code=USDtax=0lc=ILbn=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 ja...@redfish.net wrote: in the vast majority of cases, compare Java strings with equals() or equalsIgnoreCase() == tests

[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

[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

[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 m...@baroukh.com wrote: Hi. Hi have an absolute layout with pictures. Only 2 pictures are show simultaneously. Others

[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

[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

[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

[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] 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 tje...@gmail.com wrote: Hello all, Maybe a stupid question (i dunnot have an android phone), but it is possible to move the trackball

[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: activity android:name=.engines.droidTxtHandler intent-filter

[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 hack...@android.com 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

[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 juanjosegilmen...@hotmail.com wrote: Hi I know this is more a java question, but I have been in many java forums, and the

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

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

[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

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

[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 srfar...@gmail.com wrote: I have the same problem, running the emulator on Mac OS X.  Any suggesstions would be appreciated. On Feb 21,

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

[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

[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 joachim.pfeif...@gmail.com wrote: You may get this resolved by calling the garbage collector right there; system.gc() after you dereference the

[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

[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 i org.apache.http.impl.client.BasicResponseHandler /i 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