Sorry if this is not the best title, this is my first question here.
I'm developing a mobile app to read barcodes. In my app there is a login form before the main form loads. On the main form I put action list and add TTakePhotoFromCameraAction action to open the device camera and take photo using it. So far is working well, I'm following the tutorial here.
But after pressing the yes button after taking photo, my app returns to the login form where I assume it is restarted while it should be back to the main form where I call the action.
So what am i missing here. The code I use is the same as the tutorial above.
I'm using Delphi XE 6 update 1
Please let me know if I miss some information you need. Thanks in advance
Iwan
I experienced this same problem. To fix, in your android device, go to Settings > Developer options, uncheck 'Do not keep activities'.
Related
I am working on an Android app and want to display a menu with some data about the app on a similar menu when you do a long click on the app logo in the main menu of the phone, like the one the YouTube app has, or other Android apps when pressed down.
I am working on Android Studio, and I've searched different sites for info on how to get to the menu, by default the android apps show a menu when long clicked, in which you can choose whether you want to delete the app or something else. I want to know how to access that menu.
At least I want to know the name of the menu so I can do more research, but if anyone knows how to interact with it, it would be great.
This blog explains it nicely
https://medium.com/#andreworobator/implementing-android-app-shortcuts-74feb524959b
Also FYI, With Q Android is doing some changes in shortcuts api. Do check that as well.
they're called Android App Shortcuts, this could help you answer your question How to create shortcut within app in Android?
Good luck! :)
Currently I am trying to build my school project in Android and I am afraid I have chosen a really difficult project to complete. I would ask if it is possible to open a 3rd party application in a small window within my application. When I try to start a 3rd party application via a button click, the application starts and I cannot go back to my application any more. I want to start another application IN my application, take a screenshot of it, and close this small window. I would kindly ask you to help me in this subject. Thank you very much in advance.
I would ask if it is possible to open a 3rd party application in a small window within my application
No, sorry.
I want to start another application IN my application, take a screenshot of it, and close this small window
You can start an activity via startActivity(). With user permission, you can take a screenshot of whatever is on the screen, by means of the media projection APIs. You cannot:
embed the UI of the other activity in yours
open the other activity in a "small window" (though the user could, using split-screen capabilities in Android 7.0+)
At the end of the day, I decided to use multiwindow. Adding the line below into my code, I made it to run in a small window. Then I was able to start the other activity in the big window.
I need to create an application that opens another app, and allowed me to take a screenshot of the second app, and then go back to my application and make a report.
I did it with FileObserver, but I had a problem with Android 6.0 (Marshmallow), so I planned to create a "float button" that was present the hole time in the second app, which allows me take the screenshot and go back to my app.
The problem appears while taking the screenshot, since it needs a View and I do not know how to do it.
Any of you has already done it? Or do knows how to?
Thanks
I am working on multi users android app and I was wondering if there any method to display a specific facebook post inside the app and when the users click on the post he'll be directed to the facebook app then he can "like or share .. that post" and go back to my app
I've been searching a couple of week for method to do that but I can't find any method to do it. If you know any method to do it please tell me.
Looking for the same answer myself.
Ended up in sending the link of the post to my app, along with the post-text and image if any. Display the post and image according to you will and redirect the user to the link on click on either the image or the text. If the Facebook app is installed on the device, it will automatically ask you if you need to go to the app. You can design the app to show the image and text one below another to achieve the (near fb) style you need.
This is just a workaround to achieve the feature. I could not find a solution to achieve embedding post in android, the way it can be achieved on the web
In my android application as soon as the user clicks on the application icon from menu the app is getting launched.It is happening even if the application is open earlier.
I would like to maintain the state like if the application is opened then the app should show the default opened page and should not launch it again.
Please let me know your valuable suggestions.
Thanks in advance :)
Hey i solved this issue.Earlier i was using android:launchmode as single instance.When i removed this its working fine :)