Offline google maps from image - android

Ok, so, I have a .tiff file that is my image for the map. I read a bunch of tutorials and forums about it, but I cannot find a solution on how to implement this. I created the .mbtiles, tried implementing that, it doesnt work, converted the .tiff file to .png, app crashes because of out of memory, been stuck here for some time, so, if anyone knows how to implement my .tiff, .mbtiles of .png file to a google map, please share that with me.

You need to implement a custom TileProvider and provide your implementation using the following way:
mMap.addTileOverlay(new TileOverlayOptions().tileProvider(new MyTileProvider()));
I suggest you to investigate this similar question.

Related

Slide-Show from storage images

So I´m new and still getting the hang of Android Studio.
What I´m trying to do is to create a "slide-show"apk in which you can add images to a specific storage folder on your device and the app will show you each image for a specific amount of time.
I´ve been trying to do this with the function: Animation list but I just found out you can´t add resources to drawable on runtime. So i´m not sure what´s the best way to tackle this... Hope someone has done something similar and is willing to help :)

How to access Offline Maps in Android

I was given a task where i need to build an offline map i have shape file and a kml file..
I found something about kml where i need to parse the data and overlay the data on the maps.but it should be done from scratch.If there any tutorial Please do help me for kml.
or
IS there any easy way to store the maps offline and use it in android. i see lot of things like tpk,.map etc
please do help i am struck with this from abt a week and dint find any clue how to do it..
tpk is basically doing the map with tile packages concept, whereas the other option involves using sqlite format compact cache. for more details, you can consult arcgis library at
http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#/Welcome_to_the_ArcGIS_Server_10_Help/009300000004000000/
and also this is for OSMdroid library
http://www.haakseth.com/?p=30. hope it will help you

Android: how to load pdf within app?

I have:
First goal: figure out how to load a PDF from the internet and display it whithin my app
Second (maybe more complex) goal: download a pdf and display OFFLINE within my app
I looked for some solution on stackoverflow and on the Internet but I can't figure out how to implement it
For example I found Mupdf and the source code of some PDF viewer for Android but I'm quite confused: why is so difficult to display a "simple PDF"? Is there any Java library that will do it without incorporate external source code etc.?
Any suggestion is really appreciated.
Thanks in advance!
There are some libraries and sdk.
This might help you
http://www.qoppa.com/android/pdfsdk/
http://code.google.com/p/droidreader/

osmdroid sqlite tile source

I want to add a SQLite tile provider to OSMDroid just like RMaps. I went through OSMDroid source code and its tile providers and I found that they are designed to get tiles from File, Archive file and internet.
I am using osmdroid-android 3.0.5.
I don't belive this is possible with the current Osmdroid library. If you want to do it you will have to create your own TileProvider to fit into the framework which should be possible.
I expect that using an archive file for the actual map tiles and a seperate database for your meta data is by far the simplest solution. Putting large amounts of data like the tiles into the database is not recomended.
Have a look at this page. I think this is what you are looking for :o)
I recently implemented a sqlite storage for the tiles of the osmdroid lib, and the only thing missing is the ability to create it with mobac. So I wrote this patch to provide the new output option. Please have a look and commit it if you like it. Let me know if you think I should change something.

Loading private pictures from flickr into imageView

I need to load some private pictures from flickr into imageViews. I tried to use flickrj-android but I don't really understand how it works. My guess is I need to get the oauth-token first. That I can do. But how do I proceed from there? I googled already but didn't find anything usefull.
All I want is a way to construct my URLs so I can load the pictueres into ImageViews.
Has anyone worked with flickr before and knows a good step by step tutorial?
It can't be that difficult.
Since you have questions about the whole flow from authorization to Flickr url construction, I suggest you have a look at the open source sample application Android Photostream which includes everything you need to create your own basic Flickr app. It's part of the apps-for-android project.

Categories

Resources