"Fire" in the Android Jetboy Example App - android

I'm testing the "Jetboy" example Android code in an emulator. It says "Use your fire button...". Where is that? I've clicked all the buttons on my mouse, and hit about all the buttons on my keyboard, and I get nothing.
I was hoping that the following link would help, but I don't see my particular need in it:
http://developer.android.com/guide/developing/devices/emulator.html
Thanks for your help!

You can find the relevant code inside JetBoyView.java, check the processKeyEvent() method.
Fire is the DPAD center, thats usually pressing the trackball/-pad on a device. On the emulator it's this button:

Related

Appium press call back button make the app crash on android

I have searched the same symptom but cannot be fixed.
I use appium to do some automation with UiAutomator1.
Every call the back button
driver.keyevent(4)
The app crash(or exit) and goes to the Android home page.
The log seems normal.
However, a click back button on the emulator is fine.
There is no way to go to that page without click back button.
How can I click back button, or get the view name and go to that view directly?
Thanks.
If you want to click on BACK button in android, I think the following code will work fine:
driver.pressKeyCode(AndroidKeyCode.BACK);
reference:
http://appium.io/docs/en/commands/device/keys/press-keycode/
I don't know how to fix it.
However, i use another way to fix my problem.
self.driver.start_activity("xxx", "xxx")
It may not the best solution, but it can go to the view directly
Got the same problem some time back, solved using this :
driver.navigate().back();
or you can also try using this :
driver.back();

What is good way to backtrack a function in your Android app (like a button) to the code that implements it?

I have a project that I did not develop but am trying to fix bugs in. There's a button that I press and then a bug occurs. I want to find out where in the code this button is implemented but its hard to trace it since there are so many classes and layout files. Usually, if there's text associated with the button, then I find the string in my strings.xml file and work my way back. Unfortunately, this button doesn't have any text associated with it.
Hey just connect your actual android phone and run the app on it and also open logcat, when you will click that button logcat should hopefully display all the errors and you can go to the function.
Try this and comment me back if it works
This is a unconvential method, but I used it in the beginning aswell. In Android Studio press CTRL + H to open the Find in Path dialog. This will search the whole project.
For a Button you might want to search e.g. setOnClickListener, Button etc. and navigate it down by this approach. This method will also find dynamically created Views in case it's not in the layout.xml

Chromecast - Lock screen/Notification/Mini Controller - Stop Button instead of a Pause button

I've implemented Cast SDK 3 into my application for Android, everything is working as expected when following the guidelines from the Cast SDK website, the only thing that I can't wrap my head around is the button for play_pause_toggle_button, the screen shot from the Cast SDK website shows a proper pause button, but I get stop button instead (in which pauses the video) is there something I'm not doing correctly that may not be obvious?
First post, please go easy :)
If I were to guess, I would say you have set the stream type of your MediaInfo objects to MediaInfo.STREAM_TYPE_LIVE. If so, change them to MediaInfo.STREAM_TYPE_BUFFERED and see if that fixes your problem.

Can we set the location of android keyboad? if yes how?

I am new in Android. I am creating a calling app, where I am using android keyboard. but at the bottom I want "Dial" Button which should show even after the keyboard is appear. Currently I created a screen where all working is fine but when keyboard appears the "Dial" button is get hidden. This is the scenario, please suggest me, Can we set the location of android keyboard or What else I can do.? Please suggest me how can I do this.
Thanks in advance.
The Wireframe for screen is like below image
I guess this link Might solve your problem.
Android_Dialer

How to kill the softkeyboard from flash player

I needed a way to invoke softkeyboard in android platforms, and i got to know how to do it form here Flash APIs for Android Platform. Now i need to kill the keyboard, basically there is a button which i want to use to toggle the keyboard. Flash has provided a way to invoke the keyboard but not to kill it.(never understood how they work). One more issue is that when i click the down button on softkeyboard which is located on bottom left of the screen, the Softkeyboard_Deactivate event is not fired. It seems its fired only when the focus shifts from one object to another.
So what should be done ?
OK so it seems if you just set the "stage.focus = null" it will lower the keyboard. It came out of the blue to me to try this and worked like a charm.
Im not sure if this will work and this is a bit of a hack but on the hide button click you could set focus to an off screen textfield which has its needsSoftKeyboard property set to false.
I dont have an android phone so im unable to test that this works from here.

Categories

Resources