well thanks for this,
here's my code which i'm trying but its not working. I mean the image is not
fit to the screen of android
LinearLayout l=(LinearLayout) findViewById(R.id.lview);
ImageView im=(ImageView) v;
l.setBackgroundDrawable(im.getDrawable());
WallpaperManager wm=
WallpaperManager.getInstance(getBaseContext());
Drawable dr= im.getDrawable();
dr.setBounds(0, 0, wm.getDesiredMinimumHeight(),
wm.getDesiredMinimumWidth());
im.setBackgroundDrawable(dr);
im.setDrawingCacheEnabled(true);
//im.setImageDrawable(wallpaperdrawable);
try
{
//Bitmap.Config con= bmp.
//Bitmap bmp1=
Bitmap.createBitmap(wm.getDesiredMinimumWidth(),
wm.getDesiredMinimumHeight(), con);
//bmp.prepareToDraw();
wm.setBitmap(im.getDrawingCache());
}
catch (Exception e) {
EditText ed= (EditText)findViewById(R.id.editText1);
ed.setText("Error:"+e.getMessage());
}
On Tue, Apr 19, 2011 at 7:15 PM, TreKing <[email protected]> wrote:
> On Tue, Apr 19, 2011 at 8:36 AM, kumar Gaurav <[email protected]> wrote:
>
>> well i'm not here for making jokes, i simply need help as resource which
>> can be a link as well, n i think this forum is for the same purpose
>
>
> If you want a serious answer, explain what you have tried and what exactly
> you're having trouble with.
> Coming a volunteer group and saying "please give me the code" to fix my
> problem is not going to get you very far.
>
>
>
> -------------------------------------------------------------------------------------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en