Deploy BlackBerry app to BlackBerry 10 Device Simulator from Eclipse BlackBerry plugin - blackberry-10

I'm trying to build a BlackBerry app, from and Android project using the Eclipse plugin for BlackBerry. I got the BAR file compiled and signed, not I'm trying to figure out how to install it on the BlackBerry 10 Device Simulator. This simulator is run with VMware player. How do I install the BAR file into the virtual simulator?
I tried downloading it with Simulator's browser from my testing website, and clicking the APK or BAR file from the 'downloads' screen brings up an error message "Unable to open the file."

I hope this will hep You
https://developer.blackberry.com/android/documentation/deploy_signed_file_1985504_11.html
Another way is :
blackberry-deploy -installApp -device <deviceIP> -package <BAR file path>
-password <device password>

You need an additional tool like the BlackBerry Native SDK. This will include the blackberry-deploy tool which you can use to install your app on the simulator.
https://developer.blackberry.com/native/download/

Related

Importing Blackberry 10 webworks app in QNX Momentics IDE

I have a blackberry 10 webworks application by following this link ("https://developer.blackberry.com/htm...llo_world.html") . This application works fine and I have signed this app from command prompt using this command "blackberry-signer -storepass xxx path_to_bar file" and the application is signed successfully.
I got this message in Command line as " Info: bar signed"
But when I tried to verify my bar file by unzipping it i found an additional manifest.bbr file. when I package another blackberry 10 sample application in QNX momentics IDE , there is no such manifest.bbr file. Its getting signed perfectly.
Now, all I want is to port my Blackberry 10 webworks app from RippleSites folder to QNX momentics IDE and I want to sign the app from that IDE to get it signed perfectly.
How can I do this? can anyone help me on this?
If you've signed the app successfully via WebWorks then you're good to go. No need to question the "bar signed" output from the signer.
If you want to port your BlackBerry 10 app from web to native then you'll need to rewrite it using QML and possibly C++ depending on what features and/or APIs you're making use of.

How to install a .bar file hosted in a remote server to a BlackBerry 10 Dev Alpha device

I have port an Android application to BlackBerry using Android Runtime. I can install that application successfully using Eclipse. Now I want to put those deploy files (MyApp.bar) in to a remote server and download the .bar file using a browser and install it to another BlackBerry 10 Dev Alpha device. I was able to download but unable to install the .bar file. What should I do?
I believe that you are looking for an app or tool that you can run from a BB10 device itself to install the .bar file, after you've already downloaded it. There used to be a tool like this for the Playbook, but it seems to be no longer maintained and Blackberry (RIM) have blocked the method this app used to perform the install in newer version of the Playbook OS (and presumably BB10 as well).
A solution which has been reported to work by some in the Blackberry Developer forums is the Playbook App Manager as a Firefox or Chrome plugin. You can use this plugin from the browser on your PC to push the .bar to your other Blackberry 10 Dev Alpha device over the network.
If that doesn't work, that leaves you only with external tools that you already know work like the Eclipse plugin, and you could also use the command line tools like blackberry-deploy or batchbar-deploy installed with the SDK.
Finally, crackberry.com has a tutorial on sideloading Android apps using the DDPB third party app, which requires Java and .Net (so the browser plugin tool is really preferred).

How to install .bar file in Blackberry 10 simulator

I have 1 .bar file which is generated from eclipse plug-in.
Now I want to test that .bar file in Blackberry 10 simulator.
How can I test that Application?
I have installed blackberry simulator 10 Dev Alpha successfully and configured IP Address also.
Please help me. Thanks in Advance.
After signing the bar file please paste the following line into the command line
*
blackberry-deploy -installApp 192.168.177.131 -password 1234 hello.bar
*
I was able to get the playbook simulator working using this tut:
http://blog.joelambert.co.uk/2012/02/07/getting-started-with-phonegap-on-blackberry-playbook/
When you say you're using the Eclipse plug in, do you mean the QNX Momentics IDE (which is The native BlackBerry 10 IDE but based on Eclipse)? If so, here are the steps I take.
If you have the simulator running, make sure development mode is on.
Click the Run Menu -> Run Configurations
Select "Simulator-Debug" for the run configuration (note the simulator needs to run the x86 compiled binary not ARM)
You mention that you have the IP address set up, so the simulator should appear as a target.
I also like to set the auto build option.
Apply these settings and close.
Now run and the IDE should build the code, and deploy it to your simulator.
If you have only the .bar you can use the vnBB10 tool to install the app in the device or simulator. http://forums.crackberry.com/blackberry-10-os-f269/how-get-bb10-hardware-id-sideload-app-bar-file-into-blackberry-10-a-780773/

Unable to launch Android emulator from Eclipse/Linux

I'm using Eclipse Juno (build 20120920-0800) on openSUSE 12.2 to code Android applications.
I have installed the SDK by uncompressing it into my home directory (if I install the SDK via YaST package I can't download stuff unless I'm root). I installed ADT from Eclipse Marketplace, configured the path of the SDK and configured a couple of emulator configurations.
I can run and debug fine on my phone, and I guess the same applies to my tablet even if I haven't tried yet.
The real problem is that I can't run the emulator. Clicking on the bacarozzo debug icon prompts me to run the application on the device but doesn't show me available emulators.
If I open the device manager I'm shown with the virtual devices I created but I can't just start any. The progress bar reaches the end, I see no emulator screen and if I try to delete the emulator I'm warned that the instance is running... (OK in the screenshot there is only one, I already managed to delete the other)
I urge to test some GUI features in an outdated version of Android. I have done all the field tests of the business logic code in my program on a JB device and I know for sure that code works on any device.
Now I only need to be backward-compatible with preferences and layouts.
How can I start the emulator in Linux?
Just by luck I managed to run the emulator from console
djechelon#RAYNOR:~/android-sdk-linux/tools> ./emulator-arm -avd Emulator_cell
It came to life and Eclipse debug is detecting it as active device

the apk file working in emulator but not in android device

I run an application in Android emulator in my p.c. , it is working properly .
but,
when I connect my Android device with p.c. , then through eclipse , I run the application , eclipse prompt that whether you want to install your application in android emulator or Android device , I choose Android device ,, the device prompt a force to close error !!!!
even in my laptop the application were installed properly , but not working properly ...
what could be the reason ????
my current Android device version is 2.3.6
thanks...
It's hard to say what the issue is because what you described isn't specific. Have you ever been able to install any application on the device? Is it just this one application that doesn't install?
The first things I would check:
Do you have the correct Windows USB driver installed?
The Android developers website has a page dedicated to it ( http://developer.android.com/sdk/oem-usb.html ) but you should check the manufacturer's website for the most up-to-date software.
Do you have the developer settings enabled on the device?
Settings > Applications > Enable Unknown Sources
Settings > Applications > Development > Enable USB Debugging