How to set Image to the ImageView dynamically

by murali » Thu, 07 Jan 2010 13:36:17 GMT

Sponsored Links
 hi friends ,
I am facing problem that whenever i am setting the image to a
ImageView dynamically from a file path(not from the Res,drawable),by
using SetImageURI(uri),i am getting one error like
resolve uri failed on bad bitmap uri
so how can i get the image from a file path by using this setImageURI
Thanks and Regards
Murali dhuli

Other Threads

1. Ethernet & POTS modem


Is it possible to have Ethernet(RJ45) and/or POTS modem(over Serial)
interfaced on Android platform for internet connectivity?
what level of BSP modifications will be required for the same?

my platform is freescale i.MX53x processor with Android BSP.



2. AlarmManager - problem

I'm new here so greetings to all.

Here is my problem:

I want to: Start MyApp after boot.

Code below gives me:
1. when I manualy run MyApp it works correctly. Gives me Alert HELLO.
2. After reboot system gives my info:
"The application MyApp (process test.test)  has stopped unexpectedly.
Please try again."

Any idea ? I have tried almost all ( commented lines) and still

Here goes the Code:
package test.test;
public class TabletDambonia extends Activity {
 /** Called when the activity is first created. */
    public void onCreate(Bundle savedInstanceState) {
       Biblioteka.make_alert("HELLO", "blebleble", this );
package test.test;

import android.content.Context;
import android.content.DialogInterface;
import android.view.Gravity;
import android.widget.Toast;

public class Biblioteka {
    public static void generuj_alert( String title, String msg,
TabletDambonia tablet_dambonia ){
        AlertDialog alertDialog = new
AlertDialog.Builder( tablet_dambonia ).create();
        alertDialog.setButton("OK", new
DialogInterface.OnClickListener() {
          public void onClick(DialogInterface dialog, int which) {
        } });;

package quanGodziny.quanGodziny;

import java.util.Calendar;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class BootUpReceiver extends BroadcastReceiver {
        public void onReceive(Context context, Intent intent) {
            AlarmManager am = (AlarmManager)
           // Intent serviceIntent = new Intent(context,
           // PendingIntent pi = PendingIntent.getService(context, 0,
serviceIntent, PendingIntent.FLAG_UPDATE_CURRENT);
           // Calendar calendar = Calendar.getInstance();
            Intent serviceIntent = new Intent(context, TabletDambonia.class);
            PendingIntent pi = PendingIntent.getActivity(context, 0,
serviceIntent, PendingIntent.FLAG_UPDATE_CURRENT);
            Calendar calendar = Calendar.getInstance();
            long triggerAtTime = calendar.getTimeInMillis() + (1 * 1 * 60 *
1000);   // starts in 60 sec
          //  am.setInexactRepeating(AlarmManager.RTC_WAKEUP, triggerAtTime,
repeat_alarm_every, pi);
            am.set(AlarmManager.RTC_WAKEUP, triggerAtTime, pi);



4. Specification of strings.xml available?

5. User Interface Design Question : Application UI as Overlays

6. Bluetooth socket send issue

7. Modify voice during call