First off would like to say Hello to everyone, new to the forum.
Now I am not a programmer at all. I am looking for some direction and assistance. I have an idea for a product that runs on Android OS, and was wondering if a C++ person could add parental controls to the device.
The controls would include a time limit setting, blocking certain actives and access to a new app store only.
Any information or direction is greatly appreciated.
// Lets say you made a time class, now an object to represent the current time
Time time;
Time constTime; // The time you want the phone to lock
void setConstTime()
{
// Set the time values here
constTime.min = 10;
constTime.hours = 2;
}
bool checkTime(Time _time_)
{
if(time == constTime)
{
returntrue; // Return a value that lets you know the time is time to lock;
}
returnfalse;
}
void HandleTime()
{
if(checkTime(time))
{
LockProgram();
}
}
Don't know about the rest, I don't develop for mobile devices.
Seeing Java uses a VM even on a mobile device to run and that VM has to be written in something else, you can't really say Android OS is Java based. Only thing that's really Java based in android are the apps and even than you can still write a native C++ app but it still needs to interface with Java.
like kevinkjt2000 said, the Android OS is java based. although on the other hand, you can make apps for the iOS in Objective-C which i have never used but may be similar to C or C++