ImageView with graphic from the www ?

by Marco Alexander Schmitz » Sat, 27 Feb 2010 18:36:18 GMT


Sponsored Links
 Hello,

I want to show a graphic inside my activity. A graphic thats from the
www. Just like  http://www.google.de/logos/olympics10-sskating-hp.png. 

Wenn, in general I would download the graphic, convert it (maybe with
photoshop or something), rename it (if neccassary) and copy it to my
drawable folder. Then I can use its id inside my xml layout.

Now I want this procedure dynamically.

Which is the quickest way to do so?

Btw: I dont want to use WebView for this...

Greetings,
Marco

--



ImageView with graphic from the www ?

by skink » Sat, 27 Feb 2010 18:40:30 GMT


 


what you mean "dynamically" ?

pskink

--


Sponsored Links


ImageView with graphic from the www ?

by Fred Grott(Android Expert, http://mobilebytes.word » Sat, 27 Feb 2010 21:22:53 GMT


 not possible

On Feb 27, 4:36am, Marco Alexander Schmitz



--



Other Threads

1. Audio output is mono in my application

Hi All,

I have written simple application using audio flinger to play audio
but than output is mono. whereas default music player is playing in
stereo. I have set stereo channel from my Code. Also alsa HW paramas
output is

cat /proc/asound/card0/pcm0p/sub0/hw_params
access: MMAP_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 44100 (44100/1)
period_size: 1536
buffer_size: 6144

Channel is coming 2.

Do I need set something for my application?

Regards,
Niral

-- 

2. RT2070 Android2.1 Issue

Hi,All,i met rt2070 issue on andoid2.1.
anyone can give some good advice?

1)init.rc

    mkdir /system/etc/wifi 0771 wifi wifi
    chmod 0771 /system/etc/wifi
    chmod 0660 /system/etc/wifi/wpa_supplicant.conf
    chown wifi wifi /system/etc/wifi/wpa_supplicant.conf

    mkdir /data/misc/wifi 0771 wifi wifi
    chmod 0771 /data/misc/wifi
    mkdir /data/misc/wifi/wpa_supplicant 0771 wifi wifi
    chmod 0771 /data/misc/wifi/wpa_supplicant

    chmod 0660 /data/misc/wifi/wpa_supplicant.conf
    mkdir /data/misc/wifi/sockets 0777 wifi wifi
    mkdir /data/misc/dhcp 0770 dhcp dhcp
    chown dhcp dhcp /data/misc/dhcp
    chmod 0777 /system/etc/Wireless/RT2870STA/
    chmod 0777 /system/etc/Wireless/RT2870STA/RT2870STA.dat

service wpa_supplicant /system/bin/wpa_supplicant -Dwext -ira0
-c/data/misc/wifi/wpa_supplicant.conf -dd
        user root
        group system wifi inet keystore
        disabled
        oneshot

service dhcpcd /system/bin/logwrapper /system/bin/dhcpcd -d ra0
        disabled
        oneshot
        group system dhcp wifi

on property:init.svc.wpa_supplicant=stopped
        stop dhcpcd


2)system/etc/wifi/wpa_supplicant.conf
ctrl_interface=DIR=/data/misc/wifi/wpa_supplicant GROUP=wifi
eapol_version=1
ap_scan=1
fast_reauth=1

3)
system/etc/dhcpcd/dhcpcd.conf

interface ra0
option subnet_mask, routers, domain_name_serv

4)e
android$ vim hardware/libhardware_legacy/wifi/wifi.c
static const char IFACE_DIR[]           = "/data/misc/wifi/wpa_supplicant";

5)Boardconfig.mk
BOARD_WPA_SUPPLICANT_DRIVER := WEXT

WIFI_DRIVER_MODULE_PATH :=/system/lib/modules/rt3070sta.ko
WIFI_DRIVER_MODULE_NAME:=rt3070sta


# ls /data/misc/ -l
drwxrwx--- bluetooth bluetooth          2010-02-22 13:30 bluetoothd
drwx------ keystore keystore          2010-02-22 13:30 keystore
drwxrwx--- system   system            2010-02-22 13:30 vpn
drwxrwx--x wifi     wifi              2010-02-22 13:53 wifi
drwxrwx--- dhcp     dhcp              2010-02-22 13:30 dhcp

# ls /data/misc/wifi -l
# ls -l
drwxrwx--x wifi     wifi              2010-02-22 13:56 wpa_supplicant
drwxrwxrwx wifi     wifi              2010-02-22 13:56 sockets
-rw-rw---- system   wifi        29658 2010-02-22 13:32 wpa_supplicant.conf



i have granted permission to wifi communication,why also say can not connect
issue?


But following issue:
D/SettingsWifiEnabler( 1930): Received wifi state changed from Disabled to
Enabling
[ 1371.988702] rtusb init --->
[ 1371.990961]
[ 1371.990968]
[ 1371.990972] === pAd = ccb02000, size = 462912 ===
[ 1371.990979]
[ 1371.995048] <-- RTMPAllocAdapterBlock, Status=0
[ 1372.002469] ra0 (usb): not using net_device_ops yet
[ 1372.008687] usbcore: registered new interface driver rt2870
D/WifiService( 1856): ACTION_BATTERY_CHANGED pluggedType: 1
E/WifiHW  ( 1856): Unable to open connection to supplicant on
"/data/misc/wifi/wpa_supplicant/ra0": No such file or directory
D/SettingsWifiEnabler( 1930): Received wifi state changed from Enabling to
Enabled
[ 1376.985871] <-- RTMPAllocTxRxRingMemory, Status=0
[ 1377.008613] -->RTUSBVenderReset
[ 1377.010622] <--RTUSBVenderReset

-- 
our psychological growth is the movement from dependence to independence  to
interdependence!

-- 

3. Adding application to the source code

4. Sensitivity of SCROLL_STATE_FLING event

5. How to listen for ACTION_EXTERNAL_APPLICATIONS_AVAILABLE while Move2SD is enabled?

6. Emulator crashes when launching a new Activity

7. Can we access Java.util Map of a class in another class