All Credits To A Very dear friend , kind Human being and a Talented Developer
GIANNIS STELLA (GS WATCHFACES).
The source code was made by him to help me and i am also sharing it for free with you, here are the details:-
I have generated new helper app that opens link of the same watch face on connected device when you click on displayed image. The display image i have not yet updated in my apk yet. i am in process of doing so
i have added 1x txt file that contains the complete source code to add to build.graddle.app
i have added 1 x txt file that contains the complete source code of MainActivity .Java
I have also added code of my Main Activity XML in zip file . Not needed but if you want to inspect it.
I have created a sign apk of My watch face digital basic 12 as a sample added to zip for you to see how it works
When you install the apk and open it .
Click on the main displayed image.
It will open watch face on your connected wear OS device
If watch is not connected it will show a toast that No watch is not connected.
Happy building new Companion App.
NOTE: We still need to push Google to fix the issues since for some this method still shows unpaid watch face and for some it works. I personally for example have to install every time watch face from web browser.
Thanks for sharing, i had to find out how to make one by asking for information on Github and even then i struggled since i had zero experience with Android studio and spent hour with guides and tutorials. But at least i learned something useful in the end.
Thanks for your work. But unfortunately your method does not work for me, I am also not a professional in Android Studio. It would be possible to get a project file from you to see it as an example?
@SGWatchDesign I have zipped and added project folder and all other files at one place. Please kindly see 1st post. Please open link you will find dbasic12 zip file with 76MB size. Do let me know if link is not working.
Also please let me know as well how you imported it successfully. Thanks
I created and packed a project file for you. Unpack the file and copy folders in Android studio into the Android studio project folder. Then open Android Studio and open the file … and select the folder SG_test. I always get an error message. Something is wrong.
well I also a noob at android studio , I haven’t imported any projects my knowledge is very limited about that . I have also updated to the latest android studio. I am not having any project errors.
I cannot open your drive link file needs access to be given.
EDIT : I have tested a scenario . i moved project files of a watch face zipped and then Unzipped them. I had folder within folder of Same name dbasic12
Please make sure you are not posting project along with my zipped folder which has also same name if that is the case then extract the zip and inside will be complete folder paste that to your projects location ensure there is no dbasic12/dbasic12 sub directory/…
Copy the folder named dbasic12 inside into projects folder .DONT Unzip it in the project folder.
Then Open Android Studio
Goto File > Open
Browse to the project location you unzipped
5.Tap to open this file gradlew.bat. it will sync with android studio . other wise android studio considers it as just a directory
See my 2nd screenshot pleasefollow that .
Android will make necessary changes and setup the project . After it finishes close window go back to Android Studio and your imported project will work fine.
I just tested by moving a project completely , zipping it and then followed like above. The project was imported successfully.
I have successfully imported your project. same way i mentioned above.
1.i copied your folder SG_Test to my android studio projects folder .
2. Tap gradlew.bat to rebuild project to resolve class dependencies.( It is compulsory)
3. wait for it to complete .
4. Now open project .
A big thank you to you and Giannis. I copied and pasted your codes and it works great. Nevertheless I hope that the bug will be fixed soon. It’s a little help, but still it doesn’t really get us anywhere.
I finally got it. In the Mainactivity.java, a final } was missing at the end of the code. This was the error.
Thanks again to you and Giannis for the help