I created an emulator with VSCode for Flutter programming purposes, everything works great except the fact that i cannot use my own keyboard to write on TextFields, i'm forced to use the embbed keyboard of the android.
How do i allow key input from my keyboard?
You need to explicitly specify that option on the emulated device's settings if you've created the emulator using flutter with VSCode.
Open Android Studio.
Hover over the Tools section on the top bar and click AVD Manager
Find your emulated device on the list and click to pen icon to edit device specific settings.
Click to Show Advanced Settings.
Scroll down and make sure Enable keyboard input is ticked.
There is also pictured version of these steps.
I have used an old emulator for API Level 23, which does not take keyboard input for my apk. So I have created new emulator for API Level 29, and then it works. Following is the step to install new emulator.
Open "Android Virtual Device Manager"
Create new Virtual Device.
When you select a system image, please choose and download the last version(API Level29) on "Virtual Device Configuration" window
Related
I'm testing on a older iPhone and I have to shake the phone like a madman to get to the dev menu. Is there a command I can send through the bridge to reload or bring up the dev menu? I'm aware of live reload but that's not what I want.
For example on my Android device I can send adb shell input keyevent 82 to simulate a shake event and bring up the dev menu.
There is no way to open dev menu without shaking phone. Here is the issue related to this problem: https://github.com/facebook/react-native/issues/10191.
Nevertheless you can always try your code inside an iPhone emulator and open dev menu using ⌃⌘Z.
Best regards.
in the past, i used to connect my iPhone or my iPad on my iMac.
In Xcode Organiser tool i was able to see all installed application and i was able to download document files for each app.
Since Xcode 6, i am not able to do this. I think i have to work with "Device" menu instead of "Organiser" menu. I can see my iPhone or my iPad but i cannot see apps.
I do not see "Use for Developpement" button.
Can anyone explain me how i should do in order to download all application document folders ?
Thanks
You will need to add your devices to the developer portal (https://developer.apple.com/account/ios/device/deviceList.action) and update your provisioning profiles accordingly (which is what the "Use for development" button actually did).
After that things are quite straightforward. By going into the devices window in Xcode and selecting your device, you will get the list of your installed apps. Tapping on the cog icon will give you the options to see and download the app's container (as shown in the screenshot)
Is it possible to mock a location when using Core Location Manager like you can in Android? I want to do this so we can see simulated behaviors when a user is a different location.
If you are using at least Xcode 4.2 and iOS SDK 5+, you can launch your app and in the simulator you can click the debug menu, then click the location option, the click custom location. You can then enter a custom latitude and longitude. They also have options for Freeway Drive, City Bicycle Ride, and City Run these all emulate the device moving.
You can definitely simulate location on the device if you run from Xcode. After the app compiles, installs, and starts running, find the "Debug Bar" at the bottom of the window (or just above the Console, if you have that showing). There is a small "Location" icon that reveals a menu of locations, plus an option to load a GPX file if you want something more complex. You can also edit your build scheme to include a default location in the Run phase (i.e., for every run, not just when you set the location with the menu in the Debug bar).
One thing to note, if you're using your personal device and not a dedicated development device: the custom location Xcode sets persists even after you disconnect from Xcode. So if you leave your desk with your phone, you may find it still thinks it's in whatever location you simulated; restarting will clear this setting, and allow you to use your device normally.
I have developed a Blackberry app for the 4.5 os series.
It works fine on all device except on the storm 1 (storm2 untested).
The problem (on the storm) is that the main screen of my application (and all other screens in fact) is shown with the virtual keybord. But there is no text field displayed on the screen that would justify the VK to show up.
I have bitmap fields and button fields only on that screen.
The use of a single program for all devices (4.5 and up) is seriously preferred.
What is causing the VK to show up and what can I do to prevent it (in JDE 4.5)?
You could compile your application for OS 5.0 or 4.7(depending on the OS on the device) on the storm to make sure the app will not run in compatibility mode.
Or you can change how your app is setup in the JAD.
Here is a KB article from RIM
RIM-TouchCompatibilityMode: false
RIM-TouchCompatibilityMode-UserChangeable: false
You can also [disable compatibility mode] within the device after the app is installed2.
Navigate to the Applications list by
clicking Options -> Advanced Options
-> Applications.
Locate and select the third-party
application.
Display the menu and click Disable
Compatibility Mode.
if(VirtualKeyboard.isSupported())
getVirtualKeyboard().setVisibility(VirtualKeyboard.HIDE_FORCE); //Force to close the virtual Keyboard.
you will compile in 4.7 and use preprocesor directives to detect if Virtual Keyboard is supported, then force to close..
//#ifdef BlackBerrySDK4.7.0
if(VirtualKeyboard.isSupported())
getVirtualKeyboard().setVisibility(VirtualKeyboard.HIDE_FORCE);
//#endif
I am working on a web development project that I want to make sure works well on the BlackBerry browser. As part of both testing and documentation, I want to be able to take screenshots of my application and was wondering where to start.
I see there are a couple of pay applications on BlackBerry App World when I search for screenshot, but I am looking for recommendations or other options. Specifically, I have a Bold 9700 (v5.0.0.296, platform 5.1.0.83).
It appears this feature is built into the iPhone, according to the iPhone User Guide.
Take a screenshot of the iPhone
display: Quickly press and release the
Sleep/Wake and Home buttons at the
same time.
You may want to write you're own app or service to make screenshots.
Use
Display.screenshot(Bitmap bitmap)
or
Display.screenshot(Bitmap bitmap, int x, int y, int width, int height)
Note: you should sign app to use this api
If you have the developer tools installed, you can use "javaloader -u screenshot file.bmp" to capture a screenshot. Otherwise, the easiest way is to install a PC app called Master Control Program which has the capability to capture screenshots as well (as long as you have your device connected to your PC with a USB cable).
I get BlackBerry screenshots in two ways:
-On real devices I connect them to my PC over USB and run javaloader -u screenshot image.bmp from the command line (as Marc says, it's included with the developer tools).
-The BlackBerry Simulator makes it easy to take screenshots by pressing F3 (or choosing Edit -> Save LCD Snapshot from the menu, note you can choose to save directly as a .png, which is handy). You can change which phone model to simulate based on the SDK you have installed. For the 9700 I think you will need the V5.0 OS SDK (I haven't tried that yet), which you can get from here.
BBScreenShooter http://oppitronic.net/pb/ouiVC.php#BBScreenShooter
I've also heard of something called BB Stream that will actually stream the blackberry screen to your PC. Can't find it anywhere though.
This is a very good guide
http://www.aboutonlinetips.com/taking-screenshots-of-blackberry-screen/