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
(uri)
Thanks and Regards
Murali dhuli



Other Threads

1. Ethernet & POTS modem

Hello,

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.

Regards.
Rajeev

-- 

2. AlarmManager - problem

Hello,
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
nothing.

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

Biblioteka.java:
[code]
package test.test;

import android.app.AlertDialog;
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.setTitle(title);
        alertDialog.setMessage(msg);
        alertDialog.setIcon(R.drawable.quan);
        alertDialog.setButton("OK", new
DialogInterface.OnClickListener() {
          public void onClick(DialogInterface dialog, int which) {
            return;
        } });

        alertDialog.show();
    }

}
[/code]

BootUpReceiver.java:
[code]
package quanGodziny.quanGodziny;

import java.util.Calendar;

import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class BootUpReceiver extends BroadcastReceiver {
        @Override
        public void onReceive(Context context, Intent intent) {
            AlarmManager am = (AlarmManager)
context.getSystemService(Context.ALARM_SERVICE);
           // Intent serviceIntent = new Intent(context,
TabletDambonia.class);
           // 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);
        }
}
[/code]


-- 

3. com.android.phone.CallTime

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