I am learning Black berry programming.
I have written a program "Hello World" using the eclipse plug in for Black Berry.
Then I want to run the program using the Black Simulator from Run As --> Black Berry Simulator.
A blank window is appeared. I tried to Load .cob file, still it is not working.
Can any body please help me.
I think you didn't add the labelField (With helloworld text) in MainScreen.
Otherwise, your labelfield foreground color is the same as screen color.
Just try to override the pain() of the LabelField.
eg:-
labelField= new LabelField("HelloWorld")
{
protected void paint(Graphics graphics)
{
graphics.setColor(Color.RED);
super.paint(graphics);
};
};
Try this; I think this should help you.
This is a very difficult question to answer correctly because there are many variables such as your OS, what exactly you mean by "blank window", the steps you may or may not have completed correctly in your tutorial.
If you are using a Windows machine, instead of trying to install the eclipse plugin yourself it might be easier for you to download and run the pre-installed eclipse bundle provided by RIM.
Next, I suggest you go back to the HelloWorld, tutorial, start from scratch. Double check each of your steps and take your time so you fully understand each of your steps. If you reach a part of the tutorial that you cannot complete then you should raise the exact part in this question.
But also! (And this is one of the most important things you must learn to become a successful programmer like me) Do not assume people have knowledge of your setup, your coding, or any variable when you ask a question. Put yourself in the shoes of the person answering it and consider what they would need to know in order to do so. This is such a fundamental thing that it should perhaps even be part of every HelloWorld tutorial.
Related
My old iPad (ios9.3) refuses to load any reveal.js slides. It only shows the "Fork me on Github" image on the top corner. I suppose it will be that ios 9.3 does not support some new features of html5+js+css (I am not a developer, my skills are quite limited, so please excuse me if I say something stupid).
I am very interested in using it on an iPad due to the chalkboard plugin.
Any of you know what can be causing the trouble? Could I disable any of these features/files and make it work?
Thank you.
aimar
During all this weekend I was trying to figure out a solution. Finally, I manage to debug iOS safari from my windows laptop following this procedure and found that an "Unexpected identifier" was impeding "chalkboard" plugin to load.
A variable was defined with "let" command that, as I learnt, was not recognized by safari 9. I changed 4 "let"s with 4 "var"s commands in "plugin.js" (chalkboard plugin) and now it works in my old iPad, even with reveal v4.
Now I have another issue with the menus (menu plugin) not showing properly, but I will try also to fix it.
I am receiving an "Error 1" when using particle io relay - I am using the same exact firmware found here: https://github.com/spark/relayshield. What do I need to change?
1_Blink_a_Relay.cpp:2:37: fatal error: RelayShield/RelayShield.h: No such file or directory
#include "RelayShield/RelayShield.h"
It looks like your code can't find the library you're trying to import. Often (and especially when adapting Arduino code for Particle), the folder name for a library needs to be removed. Try #include "RelayShield.h instead.
If that doesn't work, please provide a little more information, such as your development environment. (Are you using Particle's web-based IDE? Did you import the library from there?)
Cheers!
If you are using the web ide, the one at build.particle.io, then you have to include the library. You have to go to the fifth item on the left menu bar, after flash, compile, save, and code. It should say library, and looks like a bookmark. Click on that. It will pop out a view. Scroll down until you see the Community Library search bar. And search for RelayShield. It will show you the "RELAYSHIELD", which currently is used by 520 people (or something like that). Click on that, and it will open the library. Scroll down on the left side (the one that pops up) until you see the button "Include in App". Click on that, and select your app. After you click on that, it will bring up your app. Then scroll down on that popped out view, until you see "Add to this App". Just click on this button, and then it will include that library in your project.
For Particle Dev on Desktop, it is a lot harder. If you are using Particle Dev, please reply, and I will give you the solution for that. It is very hard to manage libraries with Particle Dev. However, if you want to use the Serial Monitor while using the Particle Build on the internet, what you can do is that you do the regular serial commands on the Particle Build (build.particle.io), and open the Serial monitor on Particle Dev after also connecting to your Particle photon
So this is the problem I have with my Outlaw:
My Corona SDK is in that adress:
C:\Program Files (x86)\Corona Labs\Corona SDK\Corona Simulator.exe
I'm going to Preferences --> Corona SDK simulator --> puts this adress.
once I'm trying to lunch my program, Outlaw says this:
"Windows cannot find 'C:\Program\". make sure you typed the name correctly, and then try again"
I've figures it doesn't recognise spaces (lamest thing ever). what the hell should I do? I don't want to mobilize my entire computer to non-spaced folders.
I've stumbled to the same problem trying to use Outlaw on Windows. I've tried adding quotes, tried options with PATH, but ultimately I've to just gave up.
Apparently author never tested his app under Windows :)
As a side note I can recommend ZeroBrane Studio as an excellent alternative. It's free and works great with Corona.
You need to use the Browse button in Prefs to point to the simulator exe; don't type in the pathname. I should probably make that field read-only so you have to use the Browse button.
I am trying to make the particle system example given in the book OpenGL ES programming guide to compile in iOS 6 but I don't seem to be able to make it work. For reference here is the web site of the book:
http://www.opengles-book.com/
The code can be downloaded from Google Code, see instructions below:
http://code.google.com/p/opengles-book-samples/wiki/Instructions
The code is in chapter 13.
Has anyone came across this and were able to make it work in iOS 6? I had made some modifications but still no joy.
Follow these steps:
Open "Common.xcodeproj" located in "/opengles-book-samples/iPhone/Common/"
Select to build for device or simulator and build.
After Build Succeeded close the Common.xcodeproj.
Open Finder and from the menu Go>Go to Folder... type without quotes "~/Library/Developer/Xcode/DerivedData/" and find the folder called "Common-bkoronpjvpvwbxgdgxbwiukcqwaz" inside folder go to : /Build/Products/ and copy "libCommon.a" to ParticleSystem project.
Build&Run particle example.
That's it. :)
Good luck.
Despite the title, I fully expect this to be a user error.
I've done mostly native Android development, and now I'm trying to get an HTML5/Phonegap application going on iOS. I'm following the extended "getting started" tutorial Here. I get the application up and running on a physical test device, but my phonegap functionality is non-responsive, so something is amiss.
Take a look at the following screenshots from the tutorial, we'll call this step 3:
The screenshot above is what my project looks like at this point. I see the PhoneGap.framework in there, so I'm feeling optimistic. Step 4 says, drag your "WWW" folder into your project, which I did (assuming the red box indicates the landing zone), and I was prompted with the screenshot presented in the tutorial, I selected the same options..
Step 5 shows the screenshot above. Notice the differences:
PhoneGap.framework isn't there anymore
There is another project in the workspace called PhoneGapLib.xcodeproj
There was only one simple step in between, yet the project looks very different. It seems to me, that more things happened than just dragging the www folder?? I know thousands of people are using PhoneGap with iOS, so I'm hoping one of you can shine a light on what went wrong here.
Ok, looks like this was indeed a user error. When you create the PhoneGap project, you're supposed to run a build before you do anything. This generates the www folder, but doesn't actually add it to your project. You have to go to the folder location where your app resides, and drag the created www folder into the project.
I was dragging my own www folder that already had my code that works in Android. Not sure why this didn't work.
In my defense, even now that it's working, my project doesn't look like the screenshot above with the additional phonegap project. Either way - I hope this saves someone some time...