weblinks in widget

by abhay » Sat, 12 Mar 2011 04:19:38 GMT


Sponsored Links
 I am having a TextView in a widget and i have set its link clickable
to true the content of TextView is set by this code

CharSequence link = " http://www.google.com ";
 RemoteViews remoteViews = new RemoteViews(context.getPackageName(),
R.layout.main);
 remoteViews.setTextViewText(R.id.TextView01,link);


 when i run the widget and click on the link the application
forcecloses

Help me out .... Thanks ...
 I WANT A LINK TO OPEN A WEB BROWSER IN MY WIDGET if there is some
other way tell me

thanks.....

-- 



Re: weblinks in widget

by Mark Murphy » Sat, 12 Mar 2011 04:52:41 GMT


 Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
LogCat and look at the stack trace associated with your "forcecloses".






-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://github.com/commonsguy 
 http://commonsware.com/blog  |  http://twitter.com/commonsguy 

Android Training in NYC:  http://marakana.com/training/android/ 

-- 


Sponsored Links


Other Threads

1. Identifying users line drawings/"gestures"

I need to extract information on lines that users draw in my
application. I.e. If i user paints a line (in a typical painting app)
I need to know how sharp/spiky the line is at places, and how round
its edges are at others. In theory it would be able to tell the
difference between a circle or square or hexagon or any random
scribble. A sort of gesture classification for an infinity number of
complex shapes and user scribbles.

I am thinking about methods which involve just letting the user draw a
straight image and then processing it, using 2d Fourier transforms and
all sorts of {*filter*} processor intensive routines, but these approaches
do not have the accuracy I need, and the eat up too much computational
time.

Another option is to try implement some kind of of spline system, but
I am unsure of how to do this.

Any other ideas?

Thanks

-- 

2. remote service called by apps concurrently

I want to write a remote service by Aidl, which will provide an
interface(named Ixyz) to other android client apps.In the interface
Ixyz, a method named m1() is included. Method m1 will show different
views by starting different activitys.In addition, We allow client
apps call method m1() concurrently.

        Now consider this case, for example, when client app1 calls
Ixyz.m1(), and the first activity, Activity1 shows currently.Then home
key is pressed to lanuch client app2. app2 also calls Ixyz.m1(), and
another new activity, Activity2 shows currently. At this point, we
switch back to app1 by press home key, and we expect Activity1 shows
currently.

        So, what we want is, the right activity will be poped to show as
currently when different app is switched.

        Thanks.

-- 

3. unable to delete all references

4. Soft Keyboard in Landscape

5. why is the app store sooo silly

6. How to add images with textview in Listview

7. FroYo PC Emulator not showing WiFi Hotspot USB Tether menu