-3

I programmed a vb.net program to browse .apk file and install in on emulator , now i want to make it a default program to open .apk files

problems : - how to make program that can open a file ! - how to get opened file path

thanks for your time :)

1 Answer 1

4

The whole "Double-Click to Open" part is done by Windows, not by your program. If you double-click a file Windows checks the registry for settings on what to do with the program. You need to set these settings so that your program is the default program for the datatype. Try google file association windows.

The filename of the file that was double-clicked is passed to the program through a command line parameter. You can access these through

My.Application.CommandLineArgs 

Use this to then open the file in your program.

Sign up to request clarification or add additional context in comments.

1 Comment

tnx , if c:\test.apk opened my app , how can i get path of the file that is "c:\test.apk" , which property ?

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.