Which robotium program should i write to launch application if i have only .apk file? - robotium

I wanted to know what code should i write in my program just to launch an application of which only .apk file is with me?
I have .apk file
I have robotium.jar file
I have used information provided on site "https://github.com/jayway/robotium-samples/blob/master/test-without-source/robotium-any-apk-howto.txt"
I am stuck at the step for resigning the .apk file mentioned at line no:29 under above mentioned link. I have used code provided in above mentioned link. But when i used that code i got errors such as "cannot instantiate the type solo" (Line 70) and "Undefined methods" for (Line 73, 77, 81). I have changed target package id and launcher class name as per .apk file which i have.

Related

cannot create file chromium-win-32.7z

jxbrowser is being used in my project.
String file=<path>+"data"+<pid>+<time in milliseconds>;
above file instance is passed to constructor of BrowserContextParams
BrowserContextParams bcp=new BrowserContextParams(file);
BrowserContext context=new BrowserContext(bcp);
cannot create file chromium-win-32.7z runtime exception is coming while BrowserContext is being instatiated.
I am new to chromium and unable to understand why this error is coming in instantiation.Please provide some pointers.
Please ignore generic code given in file name
1) The jxbrowser-win32.jar, jxbrowser-win64.jar, jxbrowser-mac.jar, jxbrowser-linux64.jar libraries are part of JxBrowser library. They contain Chromium binaries for the corresponding platform. At first run, JxBrowser extracts the binaries from appropriate JAR file into user’s temp directory on macOS and Linux, and AppData\Local\JxBrowser on Windows.
Please make sure that the folder, where binaries are extracted to, has write permissions.
2) You can manually extract, for example, the library jxbrowser-win32-6.22.2.jar (depending on your OS). Then before the first JxBrowser run - call System.setProperty("jxbrowser.chromium.dir", "")

How do I download a file in a custom directory?

I googled it and no help. I am making a program here people register and then they can download some indie games i am creating. But i am having problems with the download function. When i go to download the game / program i am getting a error saying i need a file extension here is the code i am trying
My.Computer.Network.DownloadFile("https://www.dropbox.com/sh/yioya7ek0dq1r60/AABzT-98B4DWPdgv1edYC5SMa?dl=0", "C:\ProgramData\GamingcenterApp\games")
I need it to be like this because it is downloading a games folder that the gaming center will know it is installed so it can open the app.
Thanks GamingBlock
Let me explain what to do. DownloadFile downloads a file to your PC, and not a folder. Here is the fixed code:
My.Computer.Network.DownloadFile("C:\ProgramData\GamingcenterApp\games", "READ_ME.txt")
Folders are purposely not supposed to be downloaded by the DownloadFile call. I haven't tested your code but it could generate an exception.
Argument 1 is the file you want to download from the internet, and Arguement 2 is the file name. Not the directory you want it to download to. Also, You can't set the text in the .txt file by code. And of course this will generate an exception because I tested your code.
If this does not help, Simply comment on this answer and I will try to improve it.

Publishing to AIR Captive Runtime ONLY creates .tmp folder

Having a recurring issue when trying to create an AIR Captive Runtime using the latest AIR 3.5 SDK.
Publishing in Windows 7 from Flash CS6.
Most of the time AIR will only create a .tmp folder and NOT an .app folder
And the .exe in the .tmp folder sometimes works, other times gives an error message on launch saying a wrong version of air exists.
At other times the .tmp folder is totally empty.
Anyone PLEASE with any ideas or suggestions greatly appreciated!
After running into this problem again, I found that the actual solution is:
1) EDIT the adobe air application descriptor xml file for the project, make sure the following tag is uncommented and includes the extendedDesktop profile:
<supportedProfiles>desktop extendedDesktop</supportedProfiles>
2) Clean your project
3) Then export release build from flexbuilder and select captive runtime option.
The solution listed below was misleading (I had actually included the step described above and not included it in my description below ). Command Line execution was a red herring.
I solved my problem by using a command line request and following the instructions at this website.
Executing the command line request from the bin-release temp folder on my machine I modified the following to my desktop settings:
c:\path\to\air3sdk\bin\adt.bat -package -storetype pkcs12 -keystore c:\path\to\certificate.p12 -target bundle myapp.exe myapp-app.xml -C . myapp.swf

What does Main.1 output file do in XCode?

I made a sample project called "Stack", but realized that i needed some more data structures, so i renamed everything - the project, made 2 new folders & their matching groups in XCode, modified the Target Build path to look for "Main/DataStructures-Prefix.pch" instead. But there's one file i don't understand -> earlier, i had gotten a "Stack.1" in my folder, so i just renamed it to "Main.1" and it doesn't seem to be affecting the build process, but i'm pretty skeptical. What does this "Main.1" do? is it the linked intermediate file like in C/C++?
here's a picture:
"Main.1" is a template for creating a "man page" (i.e. an on-line manual page) for your program. You can verify that by calling
man ./Main.1
on the command line in the directory where "Main.1" is located.
If you run
xcodebuild install
on the command line then the manual page is copied to the
$DSTROOT/usr/share/man/man1/
directory, where DSTROOT is the "Installation Build Products Location". The file is not used otherwise in the build process.
If you don't need a man page, you can just remove the file from the Xcode project.

Running an Mac OS command line application, how to

Suppose you create a new Mac OS Command Line Application using Xcode, which prints something. How do you actually find and run it using your command line or Finder?
Application was "built", but project directory structure does not seem to contain an executable file. For what matter in what format will this file be?
Please advise
This should help out:
Choose to build your project for archiving (Product->Build
For->Archiving).
The executable will be created and placed in the project build
folder. This will typically be something like
/Users//Library/Developer/XCode/DerivedData//Build/Products/Release.
If you wish, copy the executable to a more convenient location.
To run it, open up a shell window, browse to the executable
directory, and type in your command name.
EDIT
I see you mentioned iOS in your question and tagged it as such. This answer is NOT relevant to iOS, infact I see no option to build a command line application for that system and it doesn't really make much sense to have one.