Live wallpapers in android - android

i'm doing Android Live Wallpaper programmitically.I tried an example from http://www.codeproject.com/KB/Android/AndroidLiveWallpaper.aspx .WHen i run..i got error message on console as
"No Launcher activity found!
The launch will only sync the application package on the device!".How could i recover from this?

That's fine. Ignore the warning.
It's basically saying you can't start the 'activity' from the menu. But you don't have an activity you have a live wallpaper :-)
Just Long click the home screen > LiveWallapers > and you will see it installed here.

Related

About program crashes since startup, causing studio not to print error log problems

Using a real machine test on the Android 8.0 system, the program crashed and restarted too quickly, resulting in no error log on Android studio causing the crash. how to solve this problem?
I had the same issue, create your app specific log beacause it clears the log if app crashes:
In Android Studio, the default setting for the Logcat window seems to be "Show only selected Application" (top right corner of the Logcat window). Which is looking at the log of the selected process (your current launch by default). So when your app crashes during testing, that process is gone, so the filter clears the log.
Instead, select "Edit Filter Configuration" and set up a filter for your app, like this:
FilterName: MyApp(Your Filter Name)
PackageName: com.example.myapp (<< replace with your app's package name)
...and then select that filter for future runs. This should keep the log there for you, even after the app crashes.
OR You can enable ADB Integration
1- Tools --> Android --> Enable ADB Integration.
and to see the logcat and the crashes as normal.
First option is much more convenient.
Me too, I had the same issues
enable ADB Integration
Tools --> Android --> Enable ADB Integration
In Logcat window change "Show only selected Application" to "No Filter"
and "Verbose" to "Error" you can see occurred errors

Baidu push notification channel id is not generated on one plus 3 phone with oxygen os 4.1.7 and android V7.1.1

OnePlusAppBootManager: #skipBroadcast # black action : Intent { act=com.baidu.android.pushservice.action.RECEIVE flg=0x30 pkg=com.equationswork.kinghoo cmp=com.equationswork.kinghoo/com.cordova.plugins.push.baidu.BaiduPushReceiver (has extras) }
I got this error in android studio Logcat please help me to get out from this issue.
This is not a code issue, this error occurred due to operating system changes you need to follow following steps to resolve this issue: 1. Go to settings > Battery and tap the ellipses in the upper right corner.Then disable aggressive Doze and App hibernation. 2. Open the affected app, then trigger the app switcher and lock the app by tapping lock icon beside it. 3. Go to settings>App>Gear Icon, Then enable App auto lunch.

How to filter out my logcat in android studio?

In Android Studio I connected my device and I can see the outputs of every single running application but i want to see the logs form only one application, I went to the filter and put in "anrdoid.kik" which is was the process is called but no logs showed up. I then went to the search bar and wrote the same thing, some logs showed up but it wasn't live no other logs were being shown live. I checked the name of the process by enabling "show processes " in my developer menu on my android but so far nothing seems to work any solutions? Using the search bar to filter by kik works but i also wish to check the network logs too and I dont think using only the keyword kik doesn't exactly work.
When you open Android Device Monitor, on the side with Saved Filtersyou click on + and add your application by Application Name. Also note that applications in release version (applications downloaded from play store) will not show up, because they don't have debugging messages allowed - not even in alpha release.

Issue with #string and developing for android

I am trying to write a sms receiver for android. But I am having issues. I found an example here: http://www.apriorit.com/our-company/dev-blog/227-handle-sms-on-android
Eclipse had underlined the line :
android:text="Update SMS list" />
So I changed it to:
<Button android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_margin="2dip"
android:text="#string/UpdateList"
android:id="#+id/UpdateList"/>
and added this into strings.xml :
<string name="UpdateList">Update SMS List</string>
The issue is now with the line :
android:text="#string/UpdateList"
This is the error message:
[2013-03-14 16:37:07 - FindMyPhone] ActivityManager: Warning: Activity not started, its current task has been brought to the front
Does anyone see what the issue is? Or have an idea of how to fix it?
Underline Issue:
I reckon the Linter just hasn't noticed the change yet, I often find that saving the file, closing it and opening it up again, is required to clear it's "cache", if it can be called that, of errors / warnings.
ActivityManager: Warning: Activity not started, its current task has
been brought to the front
This just means that the Activity is open on the device/emulator and you're launching it again. This happens if the code hasn't changed since the last launch, and it brings the current Activity to the front.
[2013-03-14 16:37:07 - FindMyPhone] ActivityManager: Warning: Activity not started, its current task has been brought to the front
This generally indicates that the APK being installed on the device isn't different from what is on there already. Based on your question, the error can be resolved by cleaning and rebuilding the application, then reloading it on to your device.
[2013-03-14 16:37:07 - FindMyPhone] ActivityManager: Warning: Activity not started, its current task has been brought to the front
Your code isn't the problem, it's that the app is currently running on the emulator/device and Eclipse is trying to launch it again. Just hit back until you get to the home screen and try to launch it again.

android activity class does not exists?

I have been developing a project in eclipse for an android app. An error which i frequently get is that of- activity class does not exist. But when i just save the manifest file once again the error vanishes and the program runs correctly. Why then do i get the same error again and again. ?
Console error:
[2011-11-18 15:08:38 - link] Starting activity acb.abc.LinkActivity on device emulator-5554
[2011-11-18 15:08:40 - link] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=acb.abc/.LinkActivity }
[2011-11-18 15:08:40 - link] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2011-11-18 15:08:40 - link] ActivityManager: Error: Activity class {acb.abc/acb.abc.LinkActivity} does not exist.
every time a new activity is added in the application, it needs to be added in the manifest file as well with a new tag.
Make sure that u r doing this otherwise the new activity will not be considered.
For reference see This
I got this problem today.
Attention that: "class {acb.abc/acb.abc.LinkActivity}",you should modify the AndroidManifest.xml, change acb.abc.LinkActivity to ".LinkActivity". Then will be OK.
You are not declairing your package name correctly in your manifest, thats what I guess. Either post your manifest or go through this discussion.
http://groups.google.com/group/android-developers/browse_thread/thread/ce62996fde2d4727
Cheers.....!!!!!!
In may case, in Android Studio, I changed AndroidManifest.xml like this: change main Activity on my custom Activity. Then I start my app on emulation device, I get:
"Error type 3 Error: Activity class {...} does not exist.",
and may app failed.
I was forced delete my app on virtual device (use Application Manager in device) and restarted app in Android Studio. This solution helped me.
I saw this error because I had installed my app as a built-in app, then disabled it to removed it. I thought I had removed it when I tried to run my app in eclipse as a "normal" app. I discovered that my app was still in system/app.
Once I removed it, I didn't see this error when running my app in Eclipse.
i had this problem too and it was because i had a second tag in my AndroidManifest.xml
on android studio <= 0.8.6 it was no problem
i'm not sure yet how to handle this if one needs two application's defined here
my use case was related to saving the application state in a separate activity
e.g.
http://blog.tomgibara.com/post/126377651/global-application-state-in-android
Error: Activity class {com.myapplication5.myapplication/com.myapplication5.myapplication.MainActivity} does not exist.
answer:
file-projectstructur-flavors-minsdk version =4
ok

Categories

Resources