Can Two separate Application share their resources like database? - android

I have two separate Application in the same work space Now can i use resourses like.. database of one application in another??
please help me out..

The normal way of sharing data like that between applications would be to use a ContentProvider to proxy the database and make it available in a managed way.

Yes they can, multiple applications with the same sharedUserId in the manifest, and signed with the same key, can access each other resources.
Take a look at this links:
http://androidboss.com/androids-shareduserid/
http://mylifewithandroid.blogspot.com/2009/06/controlling-application-separation.html

It has several issues regarding security and permissions but yes it is possible, as if you are android user some application asks to get your contact list details? How do they get into your phonebook application and get details from there? got a clue?
now follow this link it may help you
http://developer.android.com/guide/topics/security/security.html
Be ethical,
Happy Coding

Related

How to share data between 2 android applications

I am developing 2 application of android parallaly.Now i want to access one application data from another application i.e the data from folder data/data/com.sampleApp1.As both application will be developed by me so is it possible to access data of one application from another application if possible please provide solutions.Thanks in advance
If you're developing both applications you can use Shared User Ids. Both application will share permissions and files. Please be careful and check if you need/want this.
http://developer.android.com/guide/topics/security/permissions.html#userid
An another option would be a ContentProvider.
Please Refer Standard Content Providers Training Tutorial from developer.android
Please go through once you will not face any problem in future regarding Content provider
http://developer.android.com/guide/topics/providers/content-providers.html
I dont know how to access different folder and whether it is possible or not. I think the best idea for you is to use content provider.
Check this site:
http://www.vogella.com/articles/AndroidSQLite/article.html

How to find all downloaded items information?

I am developing one application related to downloads.
For that i am searching.I got some examples,but these examples are not full fill my
requirement.
My requirement is getting the information about all downloaded items.
If any one know the solution,please help me
Thanks in advance
My requirement is getting the information about all downloaded items.
Fortunately, this is not possible, for obvious privacy and security reasons. Applications do not have to somehow magically make their Internet operations available for you to spy upon.

Modify the source code of contacts application on an Android

I want to know if it's possible to customize the default contact application because I want to write a better one. One that gives a ranking of the contacts in a particular user context (based on location, time, day, recent calls...). I want to give a list of 10 contacts which will probably be called. I've read that some internal classes in the application are not public and not in the SDK API's. So is there another way? I also started to write my own application and it's easy to get the contacts and make the design. But is it possible to make calls in it?
Thx in advance!
Yes, technically it is possible to modify the Contacts application, but it requires you to download the source. All of the source to the original Contacts application is on the documentation web site. Download the source, find the application and modify what you desire to modify. To address your issue about some of the class not being public, I'm sure you can figure it out. I can't imagine the functionality from those classes would be too hard to reproduce (unless they are core classes).

Is it possible to remove permissions from an Android application?

I am new to Android. I've been looking for a way to remove a permission of other app. For example, I don't want an app to send SMS. Is it possible?
Thanx in advance.
Thanx for the replies.
Actually, I am in middle of coding where I want to restrict the manifest permission of other application.
Since, these kind of applications exist in market, then this is possible. Any more help or any reference would be so helpful.
thanx again.
You need to be rooted for that, and there are already programs on the market that allow you to do it, for example LBE Privacy Guard
NOTE: This program doesn't work with Android 'Jelly Bean' at the moment
Welcome to stackoverflow. As far as I know, what you want to do is not possible without rooting your phone.
This site is a Q&A-site for specific programming questions. A suggestion is that you try it out for yourself, and when you've stumbled upon a specific problem with your code you can ask a question here. That way you'll have a much easier time getting answers! Good luck!

how can i get other application preference screen for ours

today is not my day i am stuck with this problem
how can i access other application preference screen from my application by specifying in the preference screen layout using intent or something
what is the better or correct way to do so??????
thanks in advance
regards,
kariyachan
As far as I am aware you are not able to access other applications from your own. That would have huge security implications. Why do you need access to another application anyway?
Applications are separated for a reason. If I download two separate apps that do two separate things, I don't want one of them messing with the other in any way (settings, cache, saved files, database, etc).

Categories

Resources