I have two applications, can i get the complete xml file of application 1 in application 2 ?
I am currently getting the individual resources application 1 in application 2 by using package manager.
So my first suggestion is to just re-make the xml file in the second application.
However, I am assuming that since you are getting resources from the other application that you want to be able to interact with the second app, in which case I would suggest reading through the Android documentation on Intents:
http://developer.android.com/guide/topics/intents/intents-filters.html
If you want to share xml data you would need to create a content provider for this purpose.
Related
I want to create an app that is not using any system permissions. And I found out, that using Intent#ACTION_CREATE_DOCUMENT can create and save files without asking for permissions in Manifest.
But I do not have a clue how to
Option 1 - hand over the created file from Intent to PdfDocument so that I can write my PDF and save it later.
OR
Option 2 - create my PDF first and hand it over to Intent instead of Document.writeTo(storage)
And yes, by now I cannot provide any code because it is too rough and inconsistent. :-(
Can somebody of you give me a hint or code snippet for that?
I need create many similar simple applications (Android and iOS) that consist of four tabs, each tab contains listview but it must be offline.
The difference between the apps will be only the content of the list and tabs names.
what is the best way to design this app ?
The first idea was putting configuration file and the app will load the info from there.
For sure i'm not the first dealing with this issue, maybe there is already solution or design for such problems ?
Maybe there is solution to load the content in compile time and not in run-time (as in my solution) ?
Thanks.
You can create a class containing all the information you want and you can use the data from that class instead of configuration file, and you can replace that class file for each individual app you create. This will be done at compile time rather run-time.
For run time best is to go with plist files for iOS and xml/properties file for android
For Compile time create a Class containing all data and replace it for each application version
I have been working on a bunch of utility activities. The goal is that the user simply can reuse the source code and there is no need for any layout xml files. Hence, all the layouts are created programmatically. There is no reference to any layout xml file.
The only problem I am running into is that the user is forced to enter the activities in the manifest file.
I am wondering if there is a way to bypass this step by the user. Perhaps the user can call some Init() method in my code that will programmatically add activities to the "manifest" object. There must be some notion of manifest object as Android is looking it up when a new activity is created.
Thank you in advance for your help.
The goal is that the user simply can reuse the source code and there is no need for any layout xml files. Hence, all the layouts are created programmatically. There is no reference to any layout xml file.
This hardly seems like a good thing. Now you are preventing your reusers from readily modifying matters, to tweak for different device characteristics that you are not yet supporting, etc. Android library projects allow you to create reusable components that contain layout files and other resources.
I am wondering if there is a way to bypass this step by the user.
No, sorry, that is impossible.
Eventually, I think Android library projects will support merging of manifests to help deal with this.
I'm sure you can help such a newbie like I am.
I created a project in android and I want to use it as a model for next 10 and more apps, just changing the raw sources.
I mean I want to make some products i.e. 10 videocharts about norway, I make one project with the needed activity and resources so each app will differ only for the content value.
I will keep of course the same file name too if needed.
How can I save the project?
Cause I tried to make a new project from resource but I get an error on top of the tab saying Manifest is not present in the folder while manifest is actually there, and I cannot proceed further.
Thank you
ANgelo
This sounds like a place to use an Android library project.
I am wondering about new skinning mechanism for my app. However I don't want to make my application bigger.
Is it possible to create another app, which will be able add/change files of another my app in /data/data/com.myfirstapp directory ?
You could set up aContentProvider that other apps could use to transfer data to your app, which could then save it to its own data directory.
The answer is simply no, you can access other applications from your own application but you cannot edit or change them.