Creating and displaying a Pop-up window using the Android NDK? - java

How can I create and display a pop-up window using the Android NDK (i.e the equivalent of the win32 MessageBox() ) ? I took a look at what I assumed to be the the documentation of the NDK but I couldn't find it.
Thank you.

See this link , i think this may help you http://www.dynadream.com/ddweb/index.php/Special_Blog?id=20

Related

Android : handle click on 3D object arcore, android studio - JAVA

I'm working on an AR Application for Android with Google ArCore SDK (using Android Studio and Java). I have a problem to handle invents : tap or clic on displayed image/3D Object, weither it is about Augmented images or placing a permanent anchor.
Please do you have any example of how to handle click on 3D object in Android Studio?
Thank you.
From this post:
ARCore is not supporting this feature. You need to do it by yourself.
The most recommended method is use of ray casting. Assuming you're using OpenGL, this post describes some methods of using ray casting in the way you need.
After looking through deep research, I found out that there is an open existing project for sceneform that is still working.
You can find the project here :
https://github.com/SceneView/sceneform-android
and some Android Java samples there :
https://github.com/SceneView/sceneform-android/tree/master/samples
But pay attention, it seems that some methods in samples are deprecated. I'm working on integrating this in my Augmented Image project but I have some trouble finding corresponding new methods for some of them.
I will appreciate any help from someone who has already done it.

Set pass code for an android application in android studio

I am working on a application , it is having an pass code screen with 4 digits. How to set pass code like that screen and when I open the app I need to show the pass code screen in order to open the application.
Thank you.
first you need to google out something before you ask any question..any way this may help you JUST START your THOUGHT.
How can i set up screen lock with a password programmatically?

Adding app shortcut on lockscreen

I want to add my app's shortcut on phone's lock screen, is it possible in android ? Below screenshot (which is of iPhone) will make it clear.
Without Widget..
Any help will be appreciated, thanks :)
If you want to add a shortcut in the home-screen then that is obviously possible with the API Android provides.
But you are talking about adding a shortcut to the lock-screen, which only a few (very few) Android devices support officially. I have experience with a lot of different Android devices from a lot of different manufacturers but none of them supports adding an app shortcut on the lockscreen.
You might not be willing to accept my answer as may not provide the answer you were looking for, but still I would try to give you two possible solutions :-
1) You need to create your own lockscreen for this and then you obviously have the privilege of adding any shortcut you want there. See if that's a possible solution for you.
2) Or, if know of any Android device that does support this, then you need to contact the device manufacturer for knowing the API.
I am rest assured there is no official API available to put an app shortcut on the lockscreen.
Hope I could help you with my best.
Check out this article at: http://fieldguide.gizmodo.com/put-your-key-apps-on-the-android-lock-screen-for-easy-a-1621573474. Following these steps should get you what you are looking for.

System of help for Android Studio?

this is my first time with Android Studio and I can remember when you try to use button functions eclipse shows the functions available and text of description, but Android Studio no...
For example: button.setOnClickListener()....
This system of help it's available in Android Studio?
Sorry for my english and thanks in advance!
Do you mean suggestions?
Check if CTRL + Space bar is what you are looking for as these stand for suggestion by default. Please notice Android Studio is based on IntelliJ IDEA, so all IDEA's shortcuts should work in AS as well.Read more about code assistance here.
By the way - you can set your shortcuts to be Eclipse-like.
You may also want to read FAQ for Eclipse Users
Edit.
Ah, I posted so many link already, I'll post one more: Default shortcuts keymap

CaptureFromFile in OpenCV on Android in Java

Maybe I'm being a bit slow, but I can't find the equivalent of CaptureFromFile for grabbing video frames one by one from a file in OpenCV in Java on Android.
Can anyone put me out of my misery please and show me where to look?
Many thanks
Barry
OpenCV does not support video reading/writing on Android yet.
Take a look at solution in here. Also, it seems like Open CV is available thrue Android NDK, here you may find how to use it. In addition, you may take a look at Processing, which i believe supports Open CV and able to export code as apk.

Categories