wallpaper

Android: how to convert a Drawable to Bitmap

How can I convert a Drawable to a Bitmap? I would like to set a certain drawable as the device's wallpaper, but all wallpaper functions accept Bitmaps only (I cannot use WallpaperManager - I'm pre 2.1). Also, my drawables are downloaded from the web and do not reside in R.drawable. Thanks, Rob ...

Can I open a URL from android Live Wallpaper?

Hi, I'm new to android... having trouble trying to open a URL from a live wallpaper.. Code to open the url: Intent intent = new Intent(Intent.ACTION_VIEW); intent.setData(Uri.parse(url)); Activity activity = new Activity(); activity.startActivity(intent); But I just get a Nullpointer...

Python win32api registry key change

Hi, I am trying to trigger an event every time a registry value is being modified. import win32api import win32event import win32con import _winreg key = _winreg.OpenKey(_winreg.HKEY_CURRENT_USER,'Control Panel\Desktop',0,_winreg.KEY_READ) sub_key = _winreg.CreateKey(key,'Wallpaper') evt = win32event.CreateEvent(None,0,0,None) win32api...

Changing background in Launcher

Is there a way, either programmatic or with user gestures, to change the background of the launcher app? It's a dismal black background. I'd like a sunny yellow. How to do this!? Peter ...

Android - A different Bitmap wallpaper for every home screen - OutOfMemory

I am trying to set a different wallpaper for every home screen, but I get OutOfMemory issues. I have 5 Bitmaps which I am trying to overlay on a wallpaper Bitmap which is 5 times the display width. Using the code below I get OOM. The problem seems to be the first line of code which creates the large wallpaper Bitmap. My question is wheth...

Change wallpaper programmatically using c++ and windows api

Hi, I've been trying to write an application, using Qt and mingw32, to download images and set them as the background Wallpaper. I have read several articles online about how to do this, in VB and C#, and to some extent how to do it in c++. I am currently calling the SystemParametersInfo with what seems to be all the correct arguments (...

Loading in preferences only on ititial launch or user has just visited PreferenceActivity

I'm working on a live wallpaper and I would like to load in my shared_preferences file only when the wallpaper is first set or when the user visits my PreferenceActivty. I'm currently loading in my preferences in onVisibilityChanged() of my WallpaperEngine() class. Is there a place that makes more sense? The reason I don't want to loa...

setting Wallpaper in android

Hi there I am developing a simple app that sets wallpapers based on some user inputs ' I am almost done with my app , I am only missing the code for setting wallpapers . I have been looking for it in lots of websites in vain . Can anybody post a sample code that sets as a wallpaper a drawable that is saved in res folder. Thanks a lot ...

Cropping a wallpaper in order to have a crisp image

Hi , I am currently working on a wallpaper application and I was wondering if there is a way to make the bitmap look less blurry and more crisp once it is set as a wallpaper. Does it just require cropping the picture and resizing it to fit perfectly the size of the screen or there is some other way of solving this issue? ps: i read tha...

How to set android wallpaper

Hello I am wondering if someone can help. I would like to create a simple wallpaper test app. I have tried a few things with no success. Eventually, I started playing with gallery codes and have a few achievements. But ... I am not sure how to attach a wallpaper function to the gallery. I am new to all this (I am only a few months into ...

"Set wallpaper" button function, Android.

I've created a custom gallery; however, the "Set wallpaper" button will not set the wallpaper. Here's the wallpaper.java I have. I'm just lost on how to implement OnClickListener and then set my button to use an onclicklistener like so: buttonName.setOnClickListener(this); package com.totem; import android.app.Activity; import android...

Incorporating LiveWallpaper in application

I'm sure all must have seen Twitter application for android. How can i show livewallpaper inside application on my dashboard screen, just like twitter is doing. I need to do the same thing as they have done, where and image will keep floating around when user views home screen of the application. Any help would do!!! Thanks in advance...

Android - WallpaperService why does my Engine have to be a inner class?

Hey, I'm working on a simple android live wallpaper, I'm following chapter 12 from Hello, Android as my guide. The bare-bones of a wallpaper service looks like this: public class MyWallpaper extends WallpaperService { private class MyEngine extends Engine { //... } //... } According to the book MyEngine m...

Android - Live Wallpaper offset clipping

Hello, I am writing a live wallpaper for android. To test my basic code was working I drew a rectangle in the top left-hand cornor of the screen: canvas.drawRect(0f,0f,50f,50f,paint); Half of the rectangle was underneath the bar at the top of the home screen. I tried to take into account pixel offsets using: public void onOffsetsC...

How to set the Android Live Wallpaper icon?

I built my first Android app. It is a Live Wallpaper designed for 2.2. When I press and hold the screen, select Wallpapers and then select Live Wallpapers, my live wallpaper has what looks like a default icon with the name of my live wallpaper overlaid. How do I set this icon? My manifest file has an application icon specified as @...

Live wallpaper animation force closing when I add more than 10 frames?

I'm trying to make a simple livewallpaper out of a series of boot animation .pngs... I'm using private static final int NUM_RES = 9; private final Bitmap[] mPics = new Bitmap[NUM_RES]; CubeEngine() { Resources res = getResources(); for (int i = 0; i< NUM_RES; i++) { int id = res....

Live Wallpaper OutOfMemory Error when i have more than 30 frames

I've been trying to make a simple live wallpaper out of a boot animation. So basically i have about 50 .pngs in my drawable folder. I'm able to set the animation to about 10-20 frames and it works great. But once i set it to about 30 frames...I get an OutOfMemory Error. I was hoping maybe someone could take a look at my code and maybe gi...

drawing textures on live wallpaper using OpenGL in android

Hii, I want to make a simple live wallpaper using OpenGL in Android that will draw the textures. I have develop a simple OpenGL Activity that can work exactly for live wallpaper. But some problems are there like IllegleArgumentException. I am using GLWallpaperService from earth live wallpaper. Thanks.... ...

Help adding Settings To Android Live Wallpaper

Hi I'm a bit of a novice developer looking for help from someone who has more of a clue then me lol. So I'm working on a project which you can download here, Eclipse Project Link Sorry for the suspicious link but it's on my site and you can check it for viruses. Ok well I need help adding settings to choose which texture to show you sho...

Problem with wallpaper app

I have a wallpaper app and it seems to work fine but... when i open the app in eclipse... the app icon appears as the first image in the wallpaper. I cannot figure out what is happening. can someone help. also the scrolling seemed to have slowed down after i added more images (40)..any suggestions. what is the recommended file size the ...