Hi, I have been trying to run a very simple project to run the first example on my own project. I have taken the steps mentioned in setup guid, and here is my MainActivity.java:
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
}
///////////////////////////////
I have copied an example to assets folder and the HTML file is called index.html
I just want the camera functionality so I eliminated the Gsensor and Location stuff.
any advice?
A
Andreas Fötschl
said
about 10 years ago
Hi Nima,
Manifest permissions, feature requirements, activity lifecycle and proper JavaScript coding are the things to keep in mind in project set-up. Please have a look at the provided Sample-Application project which is bundled together with the SDK, here you find best-practice implementation of all main-topics.
Regards, Andreas
N
Nima Mahmoudi
said
about 10 years ago
Thanks for replyinh Andreas,
I simply copied the java code from the sample project, did the Manifest as stated in the SetupGuide and I have no idea what the other stuff you mentioned is. I will try to get to know them. thank you very much.
Nima Mahmoudi