Skip to content Skip to sidebar Skip to footer

Custom Android Telephony Application

I assume this is the proper forum , not android.stackechange since it is software related. I am a novice Java developer and need to create a custom Android telephony application wi

Solution 1:

Yes you can make single activity class. But as you want to add few functions so its better to create few activity classes. As its easy to check and manage smaller activity classes as compare to only one large activity class. And the number of classes depend upon functions. Its good if you create one class for one function.

1.For automatically launching it when device starts you can use following code-

publicclassYourReceiverextendsBroadcastReceiver {
    @OverridepublicvoidonReceive(Context context, Intent intent) {
        Intentintent=newIntent(context, YourActivity.class);
        context.startActivity(intent);
    }
}

And add following code to your manifest file-

<receiverandroid-permission="android.permission.RECEIVE_BOOT_COMPLETED"android:name="YourReceiver" ><intent-filter ><actionandroid:name="android.intent.action.SCREEN_ON" /><actionandroid:name="android.intent.action.BOOT_COMPLETED" /></intent-filter></receiver>

2.For launching it in kiosk mode-

Is it possible to create an android app to make the phone run in sort of a kiosk mode?

3.For making phone calls-

How To Make A Simple Phone Call Application

How to make a phone call from your application

4.For bluetooth option-

Android Bluetooth sample app

Solution 2:

As I can see you are trying to unite several existing apps in one )

launches automatically when device starts , boots

launches in kiosk mode, no notifications, or access to other applications!

this two you can borrow from parental control apps like Kids Space launcher

1) I do not know examples on github but fisrt of all you make your application main launcher of device after this it will launches automatically when device starts , boots

2)

for in kiosk mode

try to google how to kill onother application (probably it will be your service that running all time and checks the system for unwanted applications have been launched and trying to kill them)

3)

has a single 'call' button which places a phone call to a hardwired phone number.

Yes just do it your launcher application as single Activity with one functionality - Dailer. There a lot of dailer example in internet. For example this one https://github.com/mirontoli/android-dialer;

...

In order to properly test both incoming and outgoing calls do I need to first deploy to an actual device with an initialized(with phone number) SIM?

Yes the better way for test is real devices.

Post a Comment for "Custom Android Telephony Application"