Intent for opening browser

by sam aldis » Mon, 13 Apr 2009 12:12:42 GMT

Sponsored Links
 Can anyone post me the intent for opening the
Browser on the url specified.?


Intent for opening browser

by Mattaku Betsujin » Mon, 13 Apr 2009 12:22:31 GMT

 startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(" ")));


Sponsored Links

Other Threads

1. How does Android determine whether to move the layout up when showing the softkeyboard?

How does Android determine whether to move the layout up when showing
the softkeyboard?

Note: I am aware that the activity property
adjustUnspecified" exists, as described here
, but in my case it doesn't seem to have any effect. This is my

I have two activities, pretty much the same layout, but the first one
is using a ListView that holds a list of buttons. The second activity
holds a scrollview with buttons. The rest is the same, same number of
buttons, same height of elements, etc. (All elements fit on the
screen, so actually the user doesn't need to scroll in the scrollview
or listview.)
Please see my screenshot to get an idea:

Now, when I press the search button to open the search input bar, in
my first activity, the entire layouts gets moved up. While on the
second activity, the layout is not being moved up but the softkeyboard
just displays on top of it. This is actually how I want it to behave.
How can I achieve the same with my activity that's using the ListView?

In my manifest, initially I didn't specify any
android:windowSoftInputMode attribute, but even if I do, it doesn't
make any difference; I tried all three values (adjustPan,
adjustResize, adjustUndefined, without any difference).

This is my layout:

(I'm not posting any code here for now, I'm more interested generally
how it's been exactly determined whether Android moves the layout up
or just displays they softkeyboard right on top of the existing layout
without moving it.)

I couldn't find a specific logic that's been followed. When I reduce
the number of buttons, when I even wrap the listView in a ScrollView
(just for the sake of trying to see what's happening), the layout just
won't stay fix.
On the other hand then, I have activities in my app that contain only
one large ListView, and on that one the layout also remains fixed.
First I thought it's related to ListViews, but it seems not to.

btw: nowhere in my manifest am I explicitly specifying the
windowSoftInputMode attribute.


2. ListView OnItemClickListener not working

Hello guys
After a long time away, got back to coding on this brazilian
independency holiday.

What Im trying to do is to create a list (using a listview) of items
(which are views inflated from the same layout) what must be
At first I thought that all I had to do was to add an
onItemClickListener to the ListView so if the used clicked on any of
the views that composed this Item the listener would react. Well, I
was wrong.
Ive tried a lot of things, including setting focus and
focusontouchmode off for each of the views that compose the items
view but it still doesnt work.

Any tips here? Can I archive this result?
Oh, also ... this listview is in a dialog and the listener  is in the
activity that builds the dialog.

Hope to hear from you soon. Thanks,
Gabriel Simes


3. Bug in glEsVersion?

4. Vertical Button Text

5. Multiplayer Game 鈥?Ha ndle Communication

6. Split Path to get filename and extension

7. Multiplayer Game 鈥?Handle Communication