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
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
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
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
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
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
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
--~--~-~--~~~---~--
>
> 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
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
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
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";
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
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
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
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
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
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
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
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
> 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
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
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
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
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
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:
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,
>>
>
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
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
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
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
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
How about you use:
TelephonyManager c=(TelephonyManager) Context.getSystemService
(Context.TELEPHONY_SERVICE);
switch (c.getNetworkType())
{
case TelephonyManager.NETWORK_TYPE_UNKNOWN:
Log.i("CONNECTION", "UNKNOWN");
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
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
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
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
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
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=
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
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
--~--~-~--~~--
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
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.
--~--
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 >>>
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
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
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
46 matches
Mail list logo