Android : Expose Methods Of An Application To Another Application
Jun 27, 2010
Is there any way to expose the methods of one application to another application in android. Suppose that I have written a slider for one application and if i want to use the same slider in some other application, How can I do it without copying the source.(Both the applications are installed on the device).
View 2 Replies
Aug 31, 2009
I have created a service and want to expose the interface to other applications. For one service I have done this successfuly. I just put the AIDL interface into the new project and all worked fine. Now for this service I've done the same but I get a java.lang.VerifyError when trying to use this interface. I think that the problem is that the AIDL uses a class (PolicyRole) that is only defined in the source code of the service. To compile the source that uses the interface I had to link against the code of the service but at runtime the error appears. Code...
View 2 Replies
View Related
Nov 24, 2010
Need help closing/accessing my views in a simple app (included an img of my program layout) but I might have been too confusing. Basically, I have an app that has a main menu where the user can click a button to open a camera. The user then snaps a photo and it is displayed on a page. The user will then click another button that detects faces. If faces are detected, the user is sent to a final page that shows the cropped face, etc. I give the user the ability to return to the main menu or snap a new photo.
Let's say a new photo is snapped and the user does it a few more times. Now I have multiple saved instances of old snapped photos (presented on the layout). How do I kill the previous instance (the layout from before he decided to snap a new photo)? So when I try to close the app it doesn't go back to the previous instance (displayed layout of said snapped photo). I am so confused on this one thing.
View 1 Replies
View Related
Sep 17, 2009
I am currently working on porting a application written in C in android platform. I need to know that can i invoke/call the getSystemService from the C application using invocation interface by JNI. Meaning using a .java file which will interact with the interace provided by the android.telephony.TelephonyManager.java for using getCallState() and other mehthods.
View 2 Replies
View Related
Aug 17, 2010
I currently have an app that has many activities and needs to have a way of maintaining state between these activities.
I use the Application class to do this, declaring my global variables and using getters and setters to interact with my activities.
I was hoping to place a few custom methods in there, so that when I want to do a common task like, for instance, display an error message, I can declare the method in my application class and call it from any activity that uses it
EscarApplication application = (EscarApplication) this.getApplication();
EscarApplication being the name of my application class above.
I have tried to include this method in my application class:
CODE:.....
In the hope that I can call this method from activity without having to redeclare it, but when I call it using something like below I get an null pointer exception:
Visit.this.application.showError("Update error", "An error has occurred while trying to communicate with the server");
Visit being the name of my current activity above.
Should this work, or can I only use getters and setters to change global vars in an Application Class.
EDIT Stack Trace:
CODE:...............
The dialog is declared as such in the application class:AlertDialog alertDialog;
Created in that same class:alertDialog = new AlertDialog.Builder(this).create();
And the method to call it in that class is as follows:
CODE:.............
And finally, it is called from an activity like so:
CODE:........................
View 3 Replies
View Related
Sep 3, 2010
I have built an SMS application and install it on my HTC Hero. but whenever i receive an SMS i receive 2 copies.How can I make this application as the default application to send and receive SMS.
View 1 Replies
View Related
Nov 15, 2010
I want to add a big feature to an application i am developping, but as this feature interest few people and is quite independant from the main part, I would like to put that in a seperate "plugin" application.Does anyone knows any design patterns, snippets, "reference" examples about such design?In particular that separate plugin application should be able to access some tables in the main application DB. Is it possible to do that without broadcast receiver? - the main application uses a TabActivity: is it possible that a the tabactivity instanciates an Intent Activity that is part of the plugin? - does the plugin can access main application preferences (not sure this would be necessary, but better to anticipate the question!) is it possible from the plugin to access main applications ressources?At least the 2 first points are mandatory for me.
View 4 Replies
View Related
Mar 14, 2010
I'm looking into writing simple graphics code in Android and I've noticed some synchronized() blocks. What is the reasoning behind this and how do I know when I should be "synchronizing" my code?
View 1 Replies
View Related
Sep 21, 2009
Does anyone has an idea of how to split the screen into two? Is it possible for me to run an application in one screen and another app in other screen?
View 11 Replies
View Related
Apr 20, 2010
My application is a trial version apk. Once the period is completed, can I initiate another application to be installed/downloaded from the android market ( purchasing process) which is a paid application using the current running trail application.
View 1 Replies
View Related
Sep 21, 2010
I guess that Android won't let people to do this, because they think they have perfect handle for the task/applications. However, I really need to do this in my case.
I have an activity A acting as the entry point of my application. In that activity, it reads the preference and decided which activity to start, say B or C. After that, it finishes itself. So, activity A never appears to the users.
My application stores things on sdcard, and reads from it constantly. So, when the sdcard is unmounted, I need to display a message to the user that the sdcard is unavailable, instead of opening B or C. I set a check in A to display that message when sdcard is unavilable. When that message is displayed, A will not try to start B or C.
Things works perfectly if user only enter my application from application launcher. However, I found that user can also enter my application by long pressing home and choose it from the recent application list, if he has opened it recently. When user does that, it skips A and goes directly to B or C. I don't have the check in both of them, so exception is thrown while I am trying to access sdcard, and force close dialog pops up.
I can simply move my check to both B and C to fix this problem. But in the future, the number of activities started from A will increase. If there are 6 of them, I'll need to copy this check to 6 places. Needless to say, this looks very ugly, and is a maintenance nightmare.
So, the best fix should be removing my application from recent application list when the sdcard is uunmounted. However, I can't find how to do this. Even killing the process or use ActivityManager.restartPackage, it still appears in the list. Can anyone tell me how to remove it from the list?
View 2 Replies
View Related
Jun 13, 2009
understanding why in my emulator, i can * in my settings-> manage application, see an entry for an application there * but i cant' find the icon for launching that in All Application. how can I make my application launches on the emulator?
View 6 Replies
View Related
Feb 6, 2010
I want to add a flag that will tell how much time my application is running. This flag will have to stay even after the application is removed. And, if its installed back, i must have a way to recover this flag. What's a way to implement this?
View 8 Replies
View Related
Sep 4, 2010
I am developing an Android application for which I would like to add Facebook functionality using Facebook's Android SDK. I have registered the application and acquired the ID and Secret, but what is the point of the URL? Am I supposed to install something on my website on that specific URL so that I Facebook can do the OAuth key exchange?
View 1 Replies
View Related
May 30, 2010
I want my app to kill a running app but i got the problem that since AP I 8 the method is deprecated and i need to use another function. So i want that if AP I level of the device is smaller than 8 it runs this
Activity Manager a M = (Activity Manager) this.get System Service(ACTIVITY_SERVICE); a M.restart Package(package); And from 8 this But how do i accomplish this because using something like an if will make the compiler complain.
View 2 Replies
View Related
Jan 6, 2010
I want to launch another application through the current application.
In RIM there is a "ApplicationManager.getApplicationManager().launch("String path")" method that launches directly RIM application mentioned in "String path".
Is there any method like this in android or any other way to solve this problem ?
View 2 Replies
View Related
Nov 1, 2010
Is there any way to hide an application icon from Android applications list ? The application should be downloaded from Market and opened some GUI for configuring my application. I don't want to see any icon of my application in applications list. User should not be able to run it.
By the way I know some way:
remove this line from manifest
<category android:name="android.intent.category.LAUNCHER" />
But it is not worked for me, because the GUI is not shown.
View 6 Replies
View Related
Nov 1, 2010
Is there any way to hide an application icon from Android applications list ? The application should be downloaded from Market and opened some GUI for configuring my application. I don't want to see any icon of my application in applications list. User should not be able to run it.
By the way I know some way:
remove this line from manifest
category android:name="android.intent.category.LAUNCHER"
But it is not worked for me, because the GUI is not shown.
View 2 Replies
View Related
Aug 24, 2010
I have published application and now I'm making update to it. I changed applications Data structure and moved all files under /Android/ data/<package_name>/files/ folder.All files that are in that folder will be automatically removed when application is uninstalled.I want those files to be removed when application is uninstalled but not when it's UPDATED. I don't want users to lose all their data after every update. I don't know how to test it (without publishing new release). So will those files be deleted when user updates my application?
View 5 Replies
View Related
Aug 5, 2010
I have a wizard application that I want to make Home application. How can I convert regular application into a home application.
View 1 Replies
View Related
Jul 27, 2009
Is it possible to attach Menu to an application rather than each activity in the application? I have 20-23 activities in my application and it doesn't make sense me to add same menu to all the activities.
View 5 Replies
View Related
Jul 10, 2010
I am new to this Android application Programing. I need to know the thing that, disable and hiding of one application from application menu list. instead of deleting the entire application, that need to do some other changes to hide and disabling any application from menu list.
View 2 Replies
View Related
Nov 5, 2010
I have downloaded a file manager application called "AndExplorer" inside my Android emulator.
My goal is to call this application inside my current custom application.
View 1 Replies
View Related
Jul 15, 2010
Say I have app A, in app A i want to set a schedule to startup the app B and C at specific time?
Is it possible to do that? if yes how?
Just need to know the code to fire the outside app.
View 4 Replies
View Related
Sep 29, 2010
I have web application for mobile (developed in .net), I want to use iPhone maps application from web application( i.e. from web browser on button click)..how to do it? I want to do same in android to.
View 2 Replies
View Related
Jul 26, 2010
On the applications screen, (the one which you drag up from the bottom of the home screen), is there any way to create folders there and re-organise the position of apps? I know that you can create folders on the home screens, but this isn't what I want to do. I would love to be able to create a folder that I can dump all of the programs I will never use but which Sony will not allow me to delete, (you know the ones - moxier etc!!)
View 6 Replies
View Related
Apr 20, 2014
I just recently received mine Galaxy S5 and sometimes a toast message pops up with the message "Stealth application cannot register this application".
View 3 Replies
View Related
Aug 26, 2010
I am trying to install an application from within another application. I know the usual way it to launch an intent with Intent.ACTION_VIEW, present it to the user and let him agree and this works. What i would like to do is perform a silent install, with no user interaction. I'd like to mention that my application is a system application, it has system rights! Still i can't seem to install it using
CODE:.........................
in my manifest and used this code:
CODE:......
I get "No Activity found to handle Intent" on logCat. What is the correct intent to launch the installer?
View 8 Replies
View Related
Feb 21, 2010
I would like to know if it is possible to launch my application whenever a new entry is written to phone call log (i.e. out-going, in-coming or missed call). I wrote an application to manage the call log entries as per user preferences by listening to the publication of android.intent.action.PHONE_STATE events. My application is working fine as long as its process is running. However if the user has stopped my application with a task-killer application, then the log entries can not be managed as my app itself was not running. I need a way to make sure that my application is launched in the background if it is not already running when the android.intent.action.PHONE_STATE occurs. Or is it possible to launch my application as a service that always runs?
View 2 Replies
View Related
Jun 30, 2010
I really liked the expose-like (Mac's expose) feature on the HTC Evo where if you pinch out it will show a spread of all your home screens as little thumbnails--like mac's expose feature. Will this be available on the Droid X?
View 7 Replies
View Related