j2memaprouteprovider project is not working, gives me a force close - android

There was a question about drawing lines in google maps and one of the solutions suggested is a complete project which is found on the following link.
http://code.google.com/p/j2memaprouteprovider/source/browse/#svn%2Ftrunk%2FJ2MEMapRouteAndroidEx%2Fsrc%2Forg%2Fci%2Fgeo%2Froute%253Fstate%253Dclosed
I just downloaded this application and it is not working. The whole thing, It gives me a force close.
I expected it to work without changes, as it was posted in above link. What possible things I could do in order to let it work?
Also, I didn't get the idea of the URL, I mean parsing?

Related

Recent API information on opening a camera in Android Studio (Kotlin)

This might come off as a weird post, because I don't directly want answers to how to fix this just yet. Over the past few weeks now I've been searching for good tutorials/information on opening the camera in Android Studio Kotlin with a button and having it ask for permission and all that jazz and allow you to take a picture and save it to the app, not the camera roll (I want to use the picture in several places of the app, and having it in the camera roll is not needed and also just takes up space). As of now I've tried several YouTube tutorials, and tried a few different ways that have been posted over the years but it seems most don't work and are severely outdated. I don't know if I'm implementing them wrong, which is very possible, I'm not well versed in Android Studio, and have been trying to learn. However most of the times the button just ends up not working, sometimes it doesn't do anything, sometimes it ends up crashing depending on which tutorial I use to help, or whatnot. I'm mainly here asking if anyone has any updated sources that I can look towards and at this point I will take anything, API Pages, YouTube, another Forum, anything that can point me in the right direction for this is insanely appreciated, the only thing I don't want is direct answers because I do want to be able to learn from this experience and hopefully be able to move forward with it without having to use a tutorial every time in the future, and direct answers aren't really going to help me achieve that.
I've tried to use several different ways to open the android camera, ask permission, and take a picture. So far the farthest I've gotten is it crashing, but most often it just doesn't do anything when said button is pushed. I even went for a more direct approach originally, eliminating the button as a whole and using just the navigation bar, but that went about as well as anything else did. Over this time I've tried maybe half a dozen or more tutorials and/or posts on another sites and stack overflow, and not only are each a different way, they're either many years old or using deprecated ways to complete the objective, and none seem to work. From this I would greatly appreciate just a link to a more up to date spot to learn how to use the camera.

Android chart library that's able to generate a PNG without showing the chart before that

Let's start with why do I want to do that:
The project my company's currently working in, involves the possibility to have one of our client's employee to go to the end of the world, with absolutely no way of having a connection to a mobile network, taking a portable printer with him, and print a report from his tablet. We currently have a working report already being printed this way, but they added a little detail that caused lots of trouble, which is the reason I'm here, I need to put 3 charts at the end of a Jasper report.
In a web application that would be extremely easy, since Jasper itself offer this functionallity, but since it's a mobile project, we tried using PDFReporter. This API generates a PDF from a .jrxml file, but it doesn't support every single feature from Jasper, and charts are one of them. Searching the web I've found that we could export a chart to a PNG and then add it to the report, which would work with PDFReporter.
Starting today by 8am I've spent my day searching and testing different chart-generating APIs, just to discover that, so far, 100% of the android APIs are meant to generate a chart directly on a view you specified on your activity, but that doesn't work for me at all.
I've also tested a few Java APIs, but got an issue there too, since most of them use java.awt resources to manipulate images, and that package is not included in android's SDK, nor is it supported (discovered that by adding JFreeChart to my project, which made my build take about 15 minutes and in the end fail with an OOM error).
So what I need help with is: is there an API I can use directly on a mobile project, with no connection whatsoever, that generates a pie chart as a PNG without having to render it on a view and just then fetching the Image?
I'd just like to make it clear that I'm NOT 100% sure about most of the things I've said above, except for the limitations of PDFReporter, those are confirmed, so please, any kind of help will be GREATLY appreciated, even a little "that's not how it works" will help.
Thanks in advance if you at least took your time reading it :)
I am not sure why you say "... generate a chart directly on a view you specified on your activity, but that doesn't work for me at all". Everything you see of your Android app is in some View anyway (in your case it would probably be an ImageView).
Do you just want to generate the chart as a PNG in memory and store it or manipulate it further? In that case, you could first generate it in a hidden ImageView using the API of your choice, then extract it using ImageView.getDrawable() for example. Assuming the API has no problem with the view being hidden. Maybe this helps

Unable to use chart libraries in Android

Can any one please tell me how to create a bar-chart in Android?
After I did some searches on Google then I got the solution as, there are two approaches to achieve this concept.
Using
"Achartengine" or
"kiCharts" approach
As per the search every one is recommending to use "Achartengine approach" because it is fully open source, this is the official link to this approach that I found.
Then I downloaded that file from the above link and I imported it into Eclipse but its not supporting. When I am trying to run that project it's showing like the below images.
Even though if I try to do access or while clicking any options on the emulator (here shown in the second image) it's showing up the with same result as "sorry your app unexpectedly closed!. Please try again. Force Close"
I don't know whether I am going in a wright way or not.
Can any one please explain this concept by sending at least one example program done using the AChartEngine approach.
OR
Please at least send me the steps to create a BAR-CHART using the AChartEngine approach.
Thanks for your precious time!..

Need help making a GPS Tracking application on Android

I've searched a lot before asking, but I can't make it out.
I'm making a GPS Tracking application on Android for runners & cyclists, like KeepRunning for example.
I tried to use open-gpstracker : http://code.google.com/p/open-gpstracker/source/checkout which is doing exactly what I want with the GPS. But I can't make it to run, I always get errors because I cannot import httpmime, etc... Do you have an idea about this ?
I also tried to do it by myself, but the OnLocationChanged was never called. (Maybe because of the emulator ? I used the DDMS menu to change location, the dot moves but the function isn't loaded) Any idea ?
I was trying to make a "mix" of these two answers : Create an Android GPS tracking application and Drawing a line/path on Google Maps but couldn't manage to do it for now.
I also checked myTracks which seems to be the best, but it's way too complicated for me right now...
I just started coding on Android, I'm not very comfortable yet with all this stuff, so thanks in advance for taking the time to read and answer :)
Sylvain
you need to download following .jar file and import it in your project for httpmime
http://www.java2s.com/Code/Jar/h/Downloadhttpmime412jar.htm.
Hope this will help.

Adwhirl Layout issue

I am currently using admob for a couple of my apps. This seems to work well, except the fill rates can get down to as low as 78%. So I decided to signup for AdWhirl.
So, I followed the instructions, what they are, on the setup instructions page for AdWhirl, but can not get anything to work. I either wind up with code that throws no errors and does not work, or if I add <AdWhirlLayout> to my xml the app will not run at all.
Can someone please explain to me what I need to do to get this working?
It appears there are some steps that are assumed and not explained.
I found this very helpful in getting AdWhirl up and running. The emulator is still very fickle in displaying the adds... watch the LogCat to try and decipher what is happening with AdWhirl, but first go to this link and follow instructions.
https://stackoverflow.com/questions/4898838/howto-implement-adwhirl-in-an-android-project
Oh, and it takes some time before the ads actually display (for me I had to wait overnight after implementing) for my key to work and serve up ads.

Categories

Resources