Android Question Launcher...

ivanomonti

Expert
Licensed User
Longtime User
I need to display the icons in my form or widget of some installed apps, such as facebook and its notifications ... how can I act
 

ivanomonti

Expert
Licensed User
Longtime User
I have problems in using this code inside a widget because I can not declare in ImageView object type (dim ImageView01 as ImageView)

<--- error ----->

Parsing code. 0.01
Compiling code. Error
Error compiling program.
Error description: Cannot access activity object from sub Process_Globals.
Occurred on line: 12
Dim imageview01 As ImageView
Word: imageview

<---- end error --->

B4X:
Sub Process_Globals
Dim ImageView01 as ImageView
End Sub

B4X:
Dim pm As PackageManager
Dim Icons As BitmapDrawable
Icons = pm.GetApplicationIco("com.facebook.katana")
ImageView01.Background = Icons

how can i proceed
 
Upvote 0
Top