Android 2.3.3
I am new to Vuforia and Augmented Reality in particular. So, please excuse me if this is very basic question.
I was able to download and run the sample application from Vuforia on Text Recognition and Image Recognition. Now I set out to create a sample application(Image Targeting) of my own.
Here is what I did ::: Following the steps given in Vuforia
Downloaded the SDK from Vuforia.
Created a Database using Target Manager in the developer console of Vuforia.
Adding a Target - I uploaded an image into the database that i just created. It's an image of letter A.
Updating Targets - skipped this step
Downloading Targets - Selected the image and clicked "Download selected targets" and got a zip file in my system. I extracted it and now i see two files, one is a .dat and another is a .xml file.
Now I have no clue of what to do, from here...
Here is what I wanted to do.. When I scan the Image A with my application, it should show, you have scanned A. That's it - As simple as that.
Can someone tell me what I need to do from here..
I tried searching for tutorials on Android part of vuforia, but I really didn't get any help from web. Please guide me incase you have some links with you.
Thanks in advance!!
Thanks for your quick response Sushil
Edit 1 ::: Okie, I see them in the Assets folder. I will add them in the Assets folder too. Now, can I change the files in the sample application, with my files(that I downloaded) and change the references, to make the sample application work for my files? Is it that simple?
You need to keep those two target image files (.dat and .xml in the assets folder) and then use them in the code.
Check the sample application. You will see .xml and .dat files inside the assets folder
Related
Greetings dear readers,
I have this query which the team is facing. We are developing a hybrid app for android platform and ran into one issue that seems to get complicated.
Here it goes.
Team is calling static HTML pages(no control on html content modification) in a web view, the html page content involves images which are taken from asset folder. Now when we are debugging the application on android device, asset folder images are getting copied automatically in gallery.
I am not a native coder but it seems asset folder images will be copied automatically. Please correct me if I am wrong. Is there any way, When I debug my app on device I could restrict this automatically copying of asset images to device gallery.
As I am not from Android, this might be the silly question but any help in this scenario would be highly appreciated.
I have researched on google to find out possible fix but unable to find one.
Guys, please suggest.....Any leads on this....
If you don't want your photos being accessible from gallery, add .nomedia file to the folder copied onto the device. This will prevent photos from appearing into gallery.
I try to make Webview from to display application/x-shockwave-flash embed element in my app, but i have blank gray screen on emulator and white on device. There are many topics about this problem but any1 really solved.
I explore log of simillar app and see: file//android_asset/index.html. So question... this static file or i can get it from web or modify it.
I trying get my data video.loadDataWithBaseURL() from web, but can i have that data from local storage?
Maybe I said something wron but it's look for me like 'convert web data to local'?? Can some one help my in my problem or explain in this question.
Thank you.
file://android_asset/ is a way that allows android apps access assets by a network-based URI. But assets represent neither local nor online files, they are packed into your apk. Put any files in assets folder in a android project and they will be packed into the apk file by the builder.
I don't have any programming knowledge, but I have installed Eclipse, and android SDK. I want to package some wallpapers into an apk and publish them in the android market. Can someone show me a tutorial or explain how to do it?
Thanks
Files placed in your res folder when you build your application are placed inside the apk.
Though they will not be avaliable for external use other than your own application. Aka, you will not be able select them via the built in wallpaper picker options.
You would have to have the apk copy the resource files to the SDCard when it is run.
Actually here is another question asking the same thing:
How to put a wallpaper inside an apk file?
Its relatively straight forward but requires some basic android and programming skills.
Store all your wallpapers in your res folder (apk).
WHen the application launches, one by one, save the resource file to the SDCard. (Check if they already exist first).
The user can now navigate his/her photos and see your wallpapers. - And hence able to set them as wallpapers.
If you don't have any programming knowledge, it doesn't matter. Here is an android wallpaper app example code, you can easily replace your image url (which should be on internet) inside.
Android Wallpaper App Tutorial (1-4)
I am writing an android application which has a lot of images in it.
I do not want to keep these images as a part of my apk file because that will make the size of the apk file very huge.
I have written the application in a way that it loads these images at runtime from the sdcard from some predefined location. Now my problem is that how do i provide these images to the user who wants to install my application. Since the images are not a part of the project (i.e. not present in any of the drawable folders) so they will not be a part of the APK file that i provide.
Is it even possible to do such a thing in Android? Or can someone suggest a better solution that i have right now. Any help is greatly appreciated.
There is an official way to achieve what you want: APK Expansion Files
It is my first time building an android app. Was wondering firstly, if there are demos that exists which could help me to build a media tag editor (form to edit mp3 files).
I would also like to know how to populate the sd card on the emulator.
Any help on android would be good. Thanks all!
When you create your AVD you can tell it how big you want the memory card to be and then you can use DDMS to copy files over to it. There are pretty good explanations on how to do this on the Android website.