live-wallpaper

LiveWallpaper Background

北城余情 提交于 2019-12-11 20:21:28
问题 i have problem with live wallpaper on preview mode.ie the wallpaper image doesn't fit well in landscape mode.it works great on portrait.i need your help.hope you would help me.i have added code RajawaliRenderer.java public class RipplesRenderer extends RajawaliRenderer { private final int NUM_CUBES_H = 4; private final int NUM_CUBES_V = 4; private final int NUM_CUBES = NUM_CUBES_H * NUM_CUBES_V; //private Animation3D[] mAnims; private TouchRippleFilter mFilter; private long frameCount;

Live wallpaper getting force close issue

故事扮演 提交于 2019-12-11 17:39:00
问题 I am creating live wallpaper app, that runs perfectly on xhdpi and ldpi device, but getting force close issue in hdpi and mdpi based handset. It loads image in preview screen when we click "set wallpaper" it get crashed and even when we change settings from app. Above two conditions make app to force close. Looks like OutOfMemoryError Error is not consistent Here is my code : pixeltwo.java public class pix11two extends SurfaceView { private pix11three three; int fps; Bitmap mBitmap; int

How to check if my Live-Wallpaper is running

╄→尐↘猪︶ㄣ 提交于 2019-12-11 16:06:46
问题 I have a Live Wallpaper and an Activity. How can I check in the Activity if the User activated my Wallpaper and how can I send him to the Live Wallpaper Settings if not? 回答1: Found a solution: Method for checking if Service is running private boolean isMyServiceRunning(String className) { ActivityManager manager = (ActivityManager) getActivity().getSystemService(Context.ACTIVITY_SERVICE); for (RunningServiceInfo service : manager.getRunningServices(Integer.MAX_VALUE)) { if (className.equals

Application is crashing when i click settings option in live wallpaper

馋奶兔 提交于 2019-12-11 15:06:20
问题 Nothing is posted in logcat.Application just stops working. Here is my code form manifest <application android:icon="@drawable/ic_launcher" android:label="@string/app_name" > <service android:name =".LiveWallpaperAndroid" android:label = "@string/app_name" android:icon = "@drawable/ic_launcher" android:permission = "android.permission.BIND_WALLPAPER" > <intent-filter> <action android:name="android.service.wallpaper.WallpaperService" /> </intent-filter> <meta-data android:name ="android

call Live wallpaper within application

痴心易碎 提交于 2019-12-11 13:57:26
问题 I am trying to implement following thing in android 2.x. In my application i want to allow the user to create the custom live wallpaper kind of thing where user chooses few images and then those image will rotate in a typical fashion and after that user will be able to set it all the view as a live wallpaper within the application only. i have successfully implemented the selection of images and its rotation now i don't know how to set live wallpaper within the application. i have tried

setting background bitmap in live wallpaper

淺唱寂寞╮ 提交于 2019-12-11 12:15:59
问题 I just started writing a live wallpaper. What I would like to do is to set the background to a bitmap from my resources. And I will draw my animations on top of this. What is the most efficient way to do this? Is there a way to set the background to a bitmap in a live wallpaper? Do I just need to draw the bitmap into the canvas each time before I draw my animations (which seems like it might be hideously inefficient)? thanks, Jay 回答1: This is what I found. From the eclipse graphic

AndEngine:The livewallpaper app cannot open setting page

 ̄綄美尐妖づ 提交于 2019-12-11 05:42:12
问题 I write a live wallpaper with AndEngine . When I choose my wallpaper in the Wallpaper Selector it goes OK, except I click the " Settings " button(This action will crash the app). Can anyone help me? THanks in advance! PS: [Error Log] 08-30 10:46:54.376: E/Surface(4246): surface (identity=1406) is invalid, err=-19 (No such device) 来源: https://stackoverflow.com/questions/12188902/andenginethe-livewallpaper-app-cannot-open-setting-page

Android LiveWallpaper: start rendering below notification bar

我怕爱的太早我们不能终老 提交于 2019-12-10 20:49:14
问题 I'm doing a Android LiveWallpaper with LibGDX and I want my application to start rendering below the notification bar, and not under it. In the picture: Left is what I get, right what I want. Any advice? Thanks 回答1: You could use this: Height of Android statusbar And simply draw under it. If you are using Worldunit based drawing (not Pixelbased) you can use this: Gdx.gl.glViewport(x, statusbar.height, width, height); To show you what this does look at this link: Keep aspect with black borders

Error 1 libavcodec.so File format not recognized Android GL Live Wallpaper

我们两清 提交于 2019-12-10 12:42:07
问题 I am trying to make a Live Wallpaper for android that plays an .mp4 video located on the device in android-asset (with the example I am using, it actually copies the file to the sdcard at runtime/doesn't matter) I found this example And using this post I was able to get my eclipse set up with NDK and building the project. When building in eclipse using the NDK plugin I get this error in my problems window: Description Resource Path Location Type make: *** [libs/armeabi/libavcodec.so] Error 1