In the main screen of OSMDROID's webpage can be saw the use of bubble of information but I don't know how implement this funcionality. I searched how do it in the official documentation, internet and stackoverflow but I don't find anything.
Does this functionality available in the library or just is part of OSMViewer?
Check out this thread, Post #5:
https://groups.google.com/group/osmdroid/browse_frm/thread/262444b24373385b?hl=en#
With this new library you can have much better 'infowindows' than the rather limited ItemizedOverlayWithFocus:
http://code.google.com/p/osmbonuspack/
I haven't tested it myself yet but it looks good.
The source code for the viewer program is on Google Code so you can see how they've done everything:
http://code.google.com/p/osmdroid/source/browse/#svn%2Ftrunk%2FOpenStreetMapViewer
I think that what you're looking for is a ItemizedOverlayWithFocus, used here:
http://code.google.com/p/osmdroid/source/browse/trunk/OpenStreetMapViewer/src/org/osmdroid/samples/SampleWithMinimapItemizedoverlayWithFocus.java
Related
I'm trying to play video within a JFrame, I've been looking around online for a while and everything I have tried (VLCJ, Xuggger i think its called) doesn't work, the errors I get can I can never seem to fix, the closest I have gotten is using JMF which is very old, it can never play a video file but as mentioned, it's the furthust I've gotten. Is there any good little API's / examples I can look at?
Thanks.
I guess that depends on the video, however there are a few build in mechanism.
You could use java fx http://docs.oracle.com/javafx/2/media/simpleplayer.htm
And then build javafx into your JFrame, like here: http://docs.oracle.com/javafx/8/embed_swing/jfxpub-embed_swing.htm
If embedding in java seems to be a bad solution, there is always the possibility to open the systems media player:
Desktop.getDesktop().open(new File("the.mp4"));
I've quite searched in stackoverflow and google but I couldn't find a solution. Everytime I hover over an object which comes from the google play services library it gives me the message I have as a title. I mean that I don't have such a problem problem when hovering over "Activity" or "super.onCreate" etc. for exapmle. I have imported the google play services into my project and added the library. I've tried a lot of solutions proposed in here but none helped. Plz be as much specific and thorough as you can be cause I'm still a newbie in android.
Javadocs are those comment blocks you see above code in libraries; they're parsed in a special way such that they can be used, for example, to provide information about a class or method on hover.
The Javadocs for Activity and other Android SDK code are provided. But external libraries don't necessarily come with them, or may be provided in a separate jar. Depending on the IDE you're using, the instructions for adding them are different. You can see some instructions for Eclipse by another user, here: https://stackoverflow.com/a/17601734/2203712
Hover the object Type and the object's method would give you more information you want.
Hovering to the object itself, will never tell much
so im writing an application that is supposed to use 6 game pads as input. i have found alot of documentation about a library called JINPUT. but the official download link gives me a 404 error. it would be awesome if someone here knew an alternative i could use. or knew a good download link. thanks!
JInput can be found there :
http://java.net/projects/jinput
You can use SVN to get it :
http://java.net/projects/jinput/sources/svn/show/trunk?rev=252
There are some tutorials around the web you could use.
I use google a lot to find help on JFace/SWT but the only way I find something usefull is when I know the name of the class I want to use. And search again with an other classname related with the first one to finally get to the example of an avanced use of the class (what I wanted for the first time).
Exemple "jface toolbar" doesn't show really interesting results on jface (just some examples on swt). "jface ToolBarManager" show a litle more interesting stuff.
So my question is: where can I find a good advanced documentation on JFace (not only for my toolbar problem) ? A site that list code sample of advance used of JFace components ?
Is this problem of poor documentation due to a framework that is not used a lot ? (execpt in eclipse projet ?)
Thanks in advance
Probably this helps? Furthermore: how about the eclipse integration as well as Javadoc locally and integerated in eclipse so F2 brings up the corresponding docs?
I have no Java experience and prefer Visual Basic; I've found a very nice translation IDE called Basic4android (www.basic4android.com). It works by interpreting a scripting language that's similar to Visual Basic and then using it to generate and compile native Java code. Rather ingenious, if you ask me. In fact I believe I found it from a reference here on StackOverflow.
I'm having some trouble wrapping PayPal's Mobile Payments Library:
www.x.com/community/ppx/xspaces/mobile/mep (scroll down for the HTML Tutorial)
I need to do it in a way that promotes the library's functionality so that B4A can in turn expose it to the Android device (emulator in this case). I've made some halting progress so far, but now I'm stuck on NullPointerExceptions occurring deep within the MPL.
The saga is pretty well described in a thread at their forum:
http://www.basic4ppc.com/forum/additional-libraries-official-updates/8819-looking-download-link.html
Here's my wrapper and the generated code—download here—as only licensed users may access downloads in that particular forum section.
The latest NullPointerException occurs a few calls down from the initWithAppID function. The JD-GUI decompiler reports an internal error when it gets to the com.paypal.android.b.b class, so it doesn't appear to be possible to know exactly what's going on down there.
I'm certain this can be done; I just need to know how to open the proper communication channel between the device and the MPL.
I'm new at Java and I'm new at Android. Quite a combination, wouldn't you say?
It turns out the problem is in the way PayPal bundles their resource files; non-Eclipse projects can't get at them.
More info on the original B4A thread.
Thanks,
Jeff
I think if you ask here about something that generates code for you, you won't be provided with any answers because you can't give any useful source code or something. Also, if you use something like this tool, you never know what it's generating. Also, you can't fix any occurring errors with the generated code... I could go on and on and on...
If you want to use Android the way it's supposed to be used, you'll need to learn Java and Android. If you are good with VB, this shouldn't be that hard. And this is what anyone is going to tell you.