I am trying to make an app that can easily keep sending files to different apps(whichever the user is running currently), when those apps make request to my app for files.
I was going through this link Sharing a file in Android , Sharing simple data in android and also Sharecompat Blog.
In these links they use a chooser interface to select target apps which I don't want.
My goal is that those other apps can communicate with my app without any clicks or selection.
And In response I can provide them the necessary files.
But I couldn't find anything which can help me build my desired app.
How Can I do it?
Please, Any suggesstions.
Related
i want to create multiple copies of android application in same device. first approach is i can make Create user account in my app and then i am able to use two accounts of whatsapp,yahoo etc applications but i fail to do this please help me how can i do this stuf...
actually i want to make an app like this app : app Cloner
this App is actually manage two account simultaneously in android device. Please provide guideline how can i achieve this functionality..
And find a solution for this we have to create an virtual environment like as lody done so for this we need to implement C and Java knowledge because without the knowledge of NDK we can not create applications to manage multiple accounts.
So we need to create virtual core inside our app that provide virtual environment for other applications.
Working Examples
Document Virtual app
Best Google Example
All you have to do is make sure that you change the package name, applicationId and create a variant, you can follow this link to do it.
How to install different app variants on one Android device
Important:
If you want also you can read this files into the apk file..
And as a DevrimTuncer mentioned:
You can decompile your apk with apktool and your manifest will be readable. After editing your manifest you can compile and create apk again. Remember to sign you apk after creating new apk. Link to the answer Here:
I am developing a simple android app, I want to use file picker when I press button, so how can I implement file picker in my app.
I spent some time earlier figuring this out so to wrap up
Intents provide the ability to hook into third-party app components
for content selection. This works well for media files, but if you
want users to be able to select any file, they must have an existing
"file explorer" app installed. Because many Android devices don't have
stock File Explorers, the developer must often instruct the user to
install one, or build one, themselves. aFileChooser solves this issue.
You can clone it from iPaulPro/aFileChooser.
My question is simple, as in other operating systems like Windows, you can install a program specific content, such as images in the directory of another program so he can have it available for use.
I have understood that Android is based on Linux, and the app can not communicate directly with other.
So i was wondering if it is possible to do this, and if possible what steps should I consider.
To understand that I mean an example would be an app that you install emoticons in whatsapp for example.
Thanks.
There is a third answer.
If you're the same author for both apps, it's possible if you assign the same sharedUserId in the manifest of both apps and if you sign those two apps with the same key.
This way, both those apps will be treated as one by the system.
See this answer on StackOverflow: https://stackoverflow.com/a/16270487/320111
The File dir of an android app is strictly private and only accessable for that app. Even if you could access it on a rooted phone or through some other way, the emoticons for WhatsApp are contained in the Application package. If you want different emoticons for Whatsapp, you will have to decompile, exchange the emoticons, recompile and sign the WhatsApp apk file. This isn't worth the effort, since you could only exchange existing emoticons and it would only be different for you. (I know because i tried myself) Here is a tutorial.
You can't "install content" on another app, but you can share content providers.
I am designing an app for Android, iPhone/iPad and Windows Phone using GWT and PhoneGap. GWT will allow me to write the entire app in Java (my strong suit, unlike JavaScript or CSS) and will translate it into cross-browser JavaScript/AJAX. PhoneGap will then wrap that resultant JavaScript and turn it into a native app for each of the three platforms mentioned above.
I would like to have a "plugin-oriented architecture", whereby users can optionally purchase (or qualify for through other means) "add-ons" (plugins/extensions) that will enhance the functionality of the app.
Normally I would accomplish this by using the Java Simple Plugin Framework (JSPF) and allow users to download plugin JARs as they paid for them. These plugin JARs would then be added to the classpath of the main app so that the next time it starts and scans the classpath for plugins, it finds them and loads them.
Is this possible with native apps? I don't believe I can deploy anything other than APK, IPA and XAP (Android, iPhone and WinPhone respectively) files to these marketplaces.
In Java-land, this would be like having to download a "base" app in the form of an executable JAR (containing its own main method), and then having to download a "plugin" app that is also an exectuable JAR, and somehow get the two to behave like a normal plugin architecture (which would be if you have 1 exectuable JAR base app and then 1+ plugin non-executable JAR libs).
So I ask: how do add-ons work for native apps from a deployment/download perspective? How do you get 2 or more APKs/IPAs/XAPs to communicate with each other on the client-side? If not possible, how do native app developers handle add-ons (I know they exist, I've seen them!)? Thanks in advance!
as for iPhone - the only way is to implement the additional features and have them disabled until the user purchases in app to unlock the feature.
In Android you can have apps communicate with each other so that the user can just load add-on apps that provide only the add-on functionality. For more detail on this.. android communication between two applications
WP8 - I do not yet have experience
Although I am not a core Android Developer, here are some suggestions from my experience with Android till now:
One possible solution for Android is to use Updates for application. One way to achieve this is using a Background Service which checks for updates whenever app starts or use GCM (Google Cloud Messaging) to push update messages to the app. Second option is much better as you can provide instant update to the user ,on per device basis (a user can have multiple devices), as soon as he/she has bought your add on feature. After the user has got the update message you can download the whole app with new feature and update app on the device. Of course in this case you need to backup the existing data of the app and restore after installation of updated app.
I don't know if this thing can be done but it would be also be an good option in my opinion if you can provide a legitimate user, who have bought the particular add on, an updated app through Android Market.
Another way is to create each add on as a Service and then let the main app can detect (or bind) those services at startup and if they are available, your app can communicate with them easily. You can even call the UI portion of the newly deployed add on from your main app by using Intents and BroadcastReceivers.
You may also find this useful as far as Android is concerned:
However, there are ways for an application to share data with other
applications and for an application to access system services:
It's possible to arrange for two applications to share the same Linux
user ID, in which case they are able to access each other's files. To
conserve system resources, applications with the same user ID can also
arrange to run in the same Linux process and share the same VM (the
applications must also be signed with the same certificate).
Hope this gives some useful information to you.
So I'm building an android application, I want the users to be able to press a button that opens a window/activity. I need the activity to allow the user to browse the pictures saved on the phone and be able to select those that they want. Once they select the pictures and press "ok" the pictures need to be copied to a directory for my application to access them from. So basically does anyone know of any code or help to do this and where would i be able to save user data for my app specifically on the android device. Thanks and let me know if you need any clarification!
It looks like you are expecting someone to complete your task. Instead of giving solution I would like to suggest you a way to do this, there on you can go and search and find a solution which will make you learn lot of things. Here are some articles where you can have some reading to start with.
Searching files on the android system.
Create a view where he can invoke search and select files
Storing files on internal storage
Now you need to do some homework and start hitting the keyboard, I'm sure you can do this easily