I don't have any programming knowledge, but I have installed Eclipse, and android SDK. I want to package some wallpapers into an apk and publish them in the android market. Can someone show me a tutorial or explain how to do it?
Thanks
Files placed in your res folder when you build your application are placed inside the apk.
Though they will not be avaliable for external use other than your own application. Aka, you will not be able select them via the built in wallpaper picker options.
You would have to have the apk copy the resource files to the SDCard when it is run.
Actually here is another question asking the same thing:
How to put a wallpaper inside an apk file?
Its relatively straight forward but requires some basic android and programming skills.
Store all your wallpapers in your res folder (apk).
WHen the application launches, one by one, save the resource file to the SDCard. (Check if they already exist first).
The user can now navigate his/her photos and see your wallpapers. - And hence able to set them as wallpapers.
If you don't have any programming knowledge, it doesn't matter. Here is an android wallpaper app example code, you can easily replace your image url (which should be on internet) inside.
Android Wallpaper App Tutorial (1-4)
Related
I do not actually know what this is called. But I have seen app icons beside their directories in internal storage. I assume that it's some kind of association. I would like to know how to achieve this for a directory made by my app.
Here is a screenshot showing Telegram and WhatsApp doing what I want:
I am using the following to create a directory:
File(Environment.getExternalStorageDirectory(), "MyApp").mkdirs()
What else should I add to the above code?
What else should I add to the above code?
Nothing. And note that this code does not work on Android 10 (by default) or Android R+ (for all apps), as external storage has been locked down.
But I have seen app icons beside their directories in internal storage.
Note that from an Android SDK standpoint, you are looking at external storage. More importantly, you are looking at external storage through some app.
I would like to know how to achieve this for a directory made by my app.
There is nothing in Android directly for this. You will need to talk to the developers of the app that you used (where you see this icon) and ask what they are doing. It could be as simple as "see if there is an installed app with the same name as the directory" or "see if there is an installed launcher icon with the same name as the directory".
Because I have seen it all file managers I have used
That means that you have more people that you can contact to see what they are doing. Again, there is nothing in the OS for this. After all, if there were, I could write an app to associate my app icon with every directory, and others could do the same. Whatever these file managers are doing, hopefully it is based on information that apps cannot manipulate to somehow spam the association information.
I want to create a folder with pictures just in installation.
I searched a lot for this but I didn't found nothing but a lots of apps do that. I speciffically mean the Android folder in /storage/emulated/0/ or /sdcard/.
That is not possible, sorry. You are welcome to create directories and files when your app is run by the user. There is no option for doing so just because your app is installed.
you can create the folder after the app is installed.. However you can design your code such that it creates folder while loading the Application for first time.
I want to know how parallel space
https://play.google.com/store/apps/details?id=com.lbe.parallel.intl&hl=en is working. It is an app for logging in with another facebook, whatsapp etc account. You can find the detailed description in the play store link.
I have looked at the folders that parallel space is creating using ES Explorer. They have created the following folder parallel_intl/0/
In this folder they have DCIM, Pictures etc folder. I logged in another whatsapp account using parallel space and they created the whatsapp folder at the following location parallel_intl/0/Whatsapp
Is it possible to achieve the same thing with Android For Work Container???
Are they some how creating a separate space where Whatsapp etc will run???
Kindly provide some guideline explaining how this can be achieved.
Thanks.
Actually they have created a virtual OS named multi-droid where you can run any app on that OS. As you install any app on their OS the space for that app increases by the size of the app. Firstly they find the path of your installed APK then they copy that APK into somewhere in the directory
Thus they have the APK to install . now they run it on their OS and they took all the permissions required by the app that way all the permission could be obtained .then the app has a service running in background so notifications can be obtained .
Just out of curiosity, I wanted to know where on the file system of an Android device the application icons are stored.
Like I have shortcuts to various applications on the homescreen of my device, where those icons files (or images) are stored. Is it only inside the application package (.apk) or Android stores it some where else?
If it is in application package only does Android loads all the imagess from each of the apk and loads it when it is started for the first time?
When an app file is installed, the .apk file is analyzed and various items of information are extracted by the launcher. (This process does not involve loading and running the app itself.) Among these items is the app icon, which the launcher typically caches in its own private area. Exactly how this is done depends on the launcher currently active on your device. You might be able to browse through the source for your launcher to find out more details about how it caches these items extracted from the app .apk files, but I'm not sure what practical use there would be to that exercise.
The launcher's use of its own cache greatly speeds up start-up, as otherwise every installed app would have to be scanned at every reboot to extract the requisite information for the launcher to show itself. However, the cache is the source of occasional problems, such as the icon not updating right away when an updated app (with a new icon and possibly a new app name) is installed. (See, for example, this thread and this one.)
Think about what happens when you create your own app. Typically, you create icons for your app for all drawable resource buckets (or at least the ones you want to support). Then these files get packaged with AAPT into the apk with the rest of your project. Then after installing your app, the OS will pick the icon that matches your phone configuration and create a shortcut on your installed apps page.
I'm developing an Android application. I'm very new on Android development.
I see on other projects that textures are hold on res directory. They have to be compiled and deployed into device.
I'm wondering if I can download a picture as a texture from a web service and use it.
I don't know if every media that I need has to be compiled.
Thanks.
Yes you could download the pictures from the web and use them. If you plan on having changeable content then you should probably do so as well.
Adding Images to Res will have them included in the APK and, Then copied to the device on installation (Unless you use zipalign which should sometimes allow you to use content from the apk)