Is there any possibility to make phone calls without using the default phone app with intents?
It's not easy. You can start learning the source code from com.android.phone.PhoneGlobals, and read all relevant source code in com.android.internal.telephony and com.android.phone
Related
I want to write one script(.sh file) in the kernel which is continuously checking my System app.
if my system app is crashed or for any other reason it stopped. my script(.sh file) will start the application.
Anyone have this script example or any other method to do this?
in which location I have to add this script in the Android part?
Thanks.
Let me know if you give more details.
In Android, you should handle this on the framework level.
Specifically ActivityManagerService is the system service which deals with this. You should debug and find the specific logic that is triggered when app crashes, so that you can there trigger a re-open.
Having searched a bit on the AOSP code, this seems to be the relevant file:
https://android.googlesource.com/platform/frameworks/base/+/master/services/core/java/com/android/server/am/AppErrors.java
I am trying to debug native code in my Android App development and I need to have com.android.server.PackageManagerServices in the device. I search the info for PackageManagerServices and can't find good info in the web.
My queries are
(1)Where to get com.android.server.PackageManagerServices?
(2)How to create this service available on the device?
Thanks
PackageManagerService is located at /frameworks/base/services/java/com/android/server/pm/
PackageManagerService is a system service which gets started by SystemServer.java at boot time and always keeps running. one need not to create another instance of it.
You can refer aosp source code at http://androidxref.com
I'm a newbie programmer android I want to make an android app to record phone activities such as incoming calls, outgoing calls, or miss call and record the logs to a file .txt
what should I do ?
please help me ...
Take a look at CallLog.Calls
Here are some good tutorials on using call log:
android-tutorial-call-logs
Call Log in Android Application
reading-call-log-from-phone
accessing-call-logs
Use the PhoneStateListener:
Android Developer: Telephony-PhoneStateListener
You can read more in the reference.
You probably want to create a service that periodically records call logs. I'd recommend using the CallLog class and since you're a newbie, some tutorial on creating services (use Google)
Is it possible to create an Android application that automatically attend incoming calls to an Android phone? If so, which APIs may be used to achieve this (a piece of code snippet highly appreciable)?
If the programmatic auto attendant feature not possible, why the Android OS imposes this restriction?
Is iOS behaves as same as Android in this scenario, please explain.
While googling I found something that can be useful. I haven't tried yet still I think this will help have a look at Call Control in Android
You can listen incomming call intent by implementing broadcast receiver Intent.CALL_STATE_CHANGED to listen for incoming call, but answering incomming call automatically seems not feasible.coz android application dont have access to incomming call audio stream.
I am new to android. I need to create an auto startup application. That application will control the files( if we open a image file from Gallery (or) mail attachments, on that time our application give a alert dialog to the user). Please guide to how to create an auto startup application to control all the file format in the android emulator.
You should use the permission android.permission.RECEIVE_BOOT_COMPLETED and register a BroadcastReceiver for android.intent.action.BOOT_COMPLETED.
Update:
I can't find a source, but I'm pretty sure, before an app is able to receive android.intent.action.BOOT_COMPLETED it should at least have been started once since it's installation.
You can take a look at Photostream source as it implements BroadcastReceiver approach suggested by MrSnowflake http://code.google.com/p/apps-for-android/
Please guide to how to create an auto
startup application to control all the
file format in the android emulator.
Creating an "auto startup application" can be done as MrSnowflake and Fedor describe.
Creating an "application to control all the file format in the android emulator", fortunately, is impossible, as that would represent a massive security hole.