Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I am running my android app on my samsung galaxy s2 phone. The phone has a physical menu button, and if I click it, I get a menu overlap that has 1 option that says by default "Settings". Some phones don't have the physical menu button. I made a button in the app for this purpose, to show the menu.
However I don't know how to show the menu using java code.
Does anyone know how do this?
Thanks.
Simply call openOptionsMenu(); and it will programmatically open the options menu.
I suppose you can't do this in onCreate, or other methods similar to this where the options menu has not yet been created.
reference to Android's official documentation.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 2 years ago.
Improve this question
My multiple activity show different app and not mix in one app
how to fix it , could you help or maybe i forgot something in my code
here that problem i gave red square of that problem.
https://i.stack.imgur.com/S06lw.png
Look Like That this Is Your Directory Problem & Not Of Code
Make Sure That All The Activities Are In Same Package of Your Application.
And Also Check Activity In AndroidMeinfist.xml , It Should Contain All The Activities
If You Still Didn't Find Solutions , Try Me To Share Your Code 🤨
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 8 years ago.
Improve this question
I understand that during development, you are supposed to use the test devices (either xml tags or java code behind) to show test ads on your own devices to avoid clicking your own ads before releasing an app for production in the PlayStore.
My question is that once an app is in production, in the PlayStore, is it not fair game for the developer to click ads? After turning off test ads for upload to PlayStore does AdMob know that it is the developer that is clicking ads? How?
Google's stance seems pretty unambiguous to me. AdMob publisher guidelines and policies
Publishers may not click their own ads or use any means to inflate
impressions and/or clicks artificially, including manual methods.
Testing your own ads by clicking on them is not allowed.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I want to implement inapp purchase in my app which is a free app, It will ask to buy, after purchase the new apk replace the old apk.
Thanks
Err, I think you'll need to take a different approach.
According to the Google Play Rules, "An app downloaded from Google Play may not modify, replace or update its own APK binary code using any method other than Google Play's update mechanism." So you cannot change your apk.
But you have some options:
Create a 'pro' version on the Play Store
Have a app wide setting which changes the activity behaviour, or have 2 sets of activities, as you seem to already have made... This can be triggered by an in-app purchase. The docs for that are here: http://developer.android.com/google/play/billing/api.html
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have desktop simulation which is developed in java (jar file). Is there a way to convert java desktop application to an Android app.
If you would like to convert a java desktop app to an Android app, you would have to get hold of the source code and adjust to make it run on the Android platform, make it work with the Android lifecycle and make it respond to the input methods provided.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I'm trying to build an app that should show user's files on the ListView, i've seen 2 video tutorial on Google Developers but at the end they don't explain nothing of i wanted know. Can someone explain me (maybe with code or some web example) how i can do this?
Here's how to connect to connect to a user's gDrive, also at the left there is a menu with all information you would need.. Authorize Requests, API Reference, Developer Guides and alot more.. ;)
QuickStart - https://developers.google.com/drive/quickstart-android
StartPage - https://developers.google.com/drive/
~Max