How to use the AndroidTestCase file? - android

I'm working on some stuff and some nice guy give me these link. It is an AndroidTestCase file. I've done some seach, it seems that this has something to do with the TestSuit. I also read stuff about the android test frame. But there is no clear information about how could I build a test based on this AndroidTest file. Can anyone give me a hint?
Thank you!

Related

Mobclix ADs inside Unity3D

I have lost much time solving this problem, and looks like I'm back at the beginning.
I want to run the full screen ADs from the Mobclix inside my Unity3D game. I found many tutorials but I can't get any of them working.
As far as I know, there are 2 approaches:
1.) extending unity player
2.) make JAVA side method for showing the AD's and just call it from the unity(c#)
Most important for me is to make it work, but I would prefer 2. approach.
Can somebody suggest me something and maybe give some hints/examples what am I missing?
I tried both ways. I made an JAVA plugin but when I try to call a method nothing happens or I got an error from JNI something like: "can't find that method", my manifest is not configured correctly, or my app crashes.
If I'm making a plugin (not extending UnityPlayer) do I need to add something to the manifest to support my activity/make my class able to call inside unity? How would the manifest look like? Can it be done that way?
If I'm extending the UnityPlayer how would mthe anifest file looks like and how can I call my method for that will show ADs?
I tried to call java/android methods from the unity/c# and that worked, but when I try to call my own simple method from the plugin it won't work. Looks like I'm missing something in that part. (connecting the JAVA plugin and the unity3d)
I'm experienced in the C#, but my JAVA knowledge is really at the minimum. I'm sure this can work (there are people that are selling solutions) but looks like I'm not smart enough and keep missing something :)
I tried many things, I stopped counting and deleted most of them. Can somebody tell me the right way to do this? A working example would be really useful...
Thanks for taking the time to read all of this, I hope there will be some useful responses because I'm starting to get depressed :)
Unfortunately, it looks like the absolute easiest way is to purchase a plugin, made just for this. I found one here, which costs $50, and it specifically stated it supports fullscreen Mobclix ads.
There is a free one developed by the staff at Unity3D forums, however, it seems more complex, in that you must run it on the actual android device, and I am not sure if it supports full screen. You can find the discussion thread here.
Hope these links helped!
Edit: I found a much more affordable £6.00 Unity3D plugin, which you can get here. It did not explicitly state support for fullscreen, however.
Note: I found a tutorial from the very same website that offers the £6 plugin. This tutorial might be worth checking into, however it involves compiling your own Unity Android plugin. Because it is from the same website, it may be worth checking into. It is specifically a plugin to display Mobclix ads on a Unity3D for Android app.

Android JUnit Test for Class

I am such a beginner in Android and I don't have any experience with JUnit. I am wondering if it is possible to directly use android api (ex. Camera.getNumberOfCameras()) inside the JUnit class. Actually, I have tried doing that although it compiled successfully, when I execute the test case I am getting ClassNotDefined error. Maybe I am missing something here.
Any feedback is greatly appreciated.
Thanks,
artsylar
Check out the documentation http://developer.android.com/guide/developing/testing/testing_eclipse.html#CreateTestProjectEclipse

Android graphical login/passcode

Several of my customers asked me to implement graphical password checker like
Any ideas how to implement this kind of UI?
Try to see this: https://code.google.com/p/android-lockpattern/. Guys extracted the appropriate code from android sources and made it easy-to-use in an app.
Well the android source code is a start. Also have a look at LockPatternKeyguardView.java

Documentation for Robotium test cases,Android

From long time i am searching for some documentation for Robotium test cases.
So please tell me from where i will get the same.
Soon we will upload some tutorials about Robotium. For know you can get some idea from
http://code.google.com/p/robotium/wiki/RobotiumTutorials
if you have not visited this page so far. If you are facing some specific issue, you can also ping us.
Javadoc is distributed in jar form at https://code.google.com/p/robotium/downloads/list.
However, that's really annoying and lame. It's just HTML, so why not post it on the web somewhere??
UPDATE: Seems that this has been done: http://robotium.googlecode.com/svn/doc/index.html
You can download the javadoc for Robotium here: http://code.google.com/p/robotium/wiki/QuestionsAndAnswers
This should give you all you need.

Android Development: File Browser For Reading/Saving Files

Does anyone know any good tutorials for this please?
Or could anyone run me through some basic code for making this?
Do you really need to write your own? Because you could just use intents and use someone else's file browser.

Categories

Resources