What are the permission need to live wallpaper? - android

What are the permissions I need in order to set a live wallpaper and get the gallery images?

you want to give two permission
android:name="android.software.live_wallpaper" />
android:permission="android.permission.BIND_WALLPAPER">

For live wallpaper, place the below in your service tag in manifest.xml.
android:permission="android.permission.BIND_WALLPAPER
android:name="android.software.live_wallpaper
And for Gallery, here is the link.

Which are the permission i given to set live wallpaper and i cant get
gallery images
If your questions are interconnected, then permissions have nothing to do with you not being able to get gallery images
If these are two independent questions, I would suggest:
Start with a good tuturial. For example: http://www.vogella.com/articles/AndroidLiveWallpaper/article.html
Post the a separate question regarding getting gallery images in your app.
Anyway, to answer the question about permissions alone, depending on how you configure your application,
<uses-feature android:name="android.software.live_wallpaper" />
<uses-permission android:name="android.permission.BIND_WALLPAPER" />
Why I say depending on how you confihure your application is beacuse of this. If you look at the Vogella tutorial linked, the permission android:permission="android.permission.BIND_WALLPAPER" > is declared in the service in the application attribute.
If you look at this tutorial: http://www.codeproject.com/Articles/108390/How-To-Create-Android-Live-Wallpaper, it has the permission set to the application tag.
Here is (yet) another tutorial: http://mobile.tutsplus.com/tutorials/android/creating-live-wallpapers-on-android/

Related

Receiving an error when uploading app to google play

I keep getting the following error when uploading an app to google play:..
You uploaded an APK or android App Bundle which specifies an actions schema document in its manifest, but action schemas are not yet allowed. If you are part of a beta program, you need to have your developer account whitelisted.
I have applied to become whitelisted, but when I filled out the form my app did not meet the criteria for an specific 'type' (it is not a financial program etc.)
Most of the articles I have read say this relates to meta data content which some say can be deleted... my app however, will not work without the metadata content.
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="#xml/file_paths" />
and here is the resource file_paths
<paths xmlns:android="http://schemas.android.com/apk/res/android">
<external-path
name="ConfinedSpace_images"
path="Android/data/com.mynamehere.confinedspacemanagement/files/Pictures" />
</paths> ```
Does anyone know of a workaround?
It seems there is no getting around the google whitelist problem. I also found that my manifest had two areas of meta-data in it. The file system seems to be fine, but the following code seems to be where my problem is originating
<meta-data
android:name="com.google.android.actions"
android:resource="#xml/file_paths" />
I have deleted the meta data above and things still seems to work. I am curious though... where did the code come from, and more importantly.... what does it do? I openly admit I am still somewhat of a copy and paste programmer.
My problem now is that my camera will not work in my app???? any advice?
Update Dec 2/2019 ----- Camera now works fine. My problem was that the xml file_path resource wasn't changed... it was still trying to save to com.example.-----------

Convert web based database management application into mobile app to make it work offline

We have no knowledge of mobile applications. We need to convert a basic web-based database management application in Laravel into a mobile application. Is there a way to do it without having mobile application developers. The application has the following views
1. Form
2. Edit form
2. All forms
3. Users
4. Edit Users
There are two user type - Admin and data entry operator
Yes, you can do it using webview. Start a project in android studio, create a class extending from Activity, a xml layout file in res/layout, and take a look on your AndroidManifest file in the manifests folder.
It will look more or less like this:
The image also shows you the basic structure of the activity, though you don't really need the onCreateOptionsMenu part. Now to make the webview put this in the xml:
<WebView
android:id="#+id/webview"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>
And call it on your onCreate method like the one shown in the image:
WebView myWebView = (WebView) findViewById(R.id.webview);
myWebView.loadUrl("http://www.example.com"); //change the link to your
In your manifest add permission for the application to use internet:
<manifest ... >
<uses-permission android:name="android.permission.INTERNET" />
...
</manifest>
If you want to make your webview work offline you could use webview cache.
But since it is a database managing application, you probably will need to make a full app, and for that you will need an mobile developer. But you could use other approaches, like using xamarin, ionic or other transpilers, though that will still require learning, it is easier for programmers of other areas to adapt, then maybe you could avoid hiring a mobile programmer.

Android emulator sdcard permisisons not working

I've read many posts about this but nothing seems to solve the problem.
I've created a simple app that basically consists of:
Log.d("RSE", Environment.getExternalStorageState());
Log.d("RSE", "Readable? " + Environment.getExternalStoragePublicDirectory("Movies").canRead());
It always says mounted and Readable? false
When I try to do anything more, I get a permission denied error.
I've added
<uses-permission android:name="ANDROID.PERMISSION.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="ANDROID.PERMISSION.READ_EXTERNAL_STORAGE" />
inside AndroidManifest.xml inside the <manifest> tag and before the <application> tag.
Depending on the device, I've personally found Environment.getExternalStorage*() to be unreliable in what it points to. In this case, it's probably pointing to the emulated storage which doesn't seem to like I/O. I ended up just using "/sdcard/Movies/" which worked far more reliably than Environment.getExternalStoragePublicDirectory("Movies") ever did.
I have no idea why but I recreated the AVD and now its readable.

Why does accessing Android MediaStore, using MonoDroid, generate UnauthorizedAccessException?

When I attempt to use the solution presented on SO here for dealing with large bitmaps in Android, I get an UnauthorizedAccessException at the point I'm trying to read from the file system from a location such as:
/mnt/sdcard/DCIM/Camera/IMG_20111223_122513.jpg
Is there a particular permission in my manifest I was supposed to select, or something else going on?
Well, there is always this one:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
If you're looking to display a screen-sized version of a full-resolution photograph, may I please refer you to the Android Training article on this subject.

What are the contents of logcat file?

I have to parse the logcat output for my android application.So i wanted to know logcat content. I surfed a lot but i don't a proper answer. what are the logcat contents and when the system writes the logcat file?
Thanks
Pushpa
There's no api that I know of to read the logcat directly into your program. The easiest thing to do is to run logcat externally from your app and collect the results. One example of how to do that is here (see LogcatProcessor.java). Another, more elaborate, version is here (see SendLogActivity.java).
You will need this line in your manifest:
<uses-permission android:name="android.permission.READ_LOGS" />

Categories

Resources