imgsimonebiliato Well-Known Member Licensed User Longtime User Feb 12, 2015 #1 Hi everyone, this is my first simple library, named "SilentApp" As title, with this library, you can install or uninstall an apk file in background, without the final user, manually accepts the installation. I premise that, it works only on ROOTED DEVICE, so for the first time, you must set the root permission to the application. HOW TO USE IT? Simply call these methods: Install: Code: Dim r as string r = SilentApp.InstallApk ( "/", "test.apk" ) Uninstall: Code: Dim r as string r = SilentApp.UninstallApk ( "packagename" ) If the result is empty, then everything it's ok! I provided an example that it works with the "apptest.apk" file. N.B.: You have to copy this "apptest.apk" into your device Enjoy! Attachments SilentApp_ex.zip SilentApp_ex.zip 497.5 KB · Views: 858 SilentApp_lib.zip SilentApp_lib.zip 2.6 KB · Views: 567 Last edited: Apr 20, 2016
Hi everyone, this is my first simple library, named "SilentApp" As title, with this library, you can install or uninstall an apk file in background, without the final user, manually accepts the installation. I premise that, it works only on ROOTED DEVICE, so for the first time, you must set the root permission to the application. HOW TO USE IT? Simply call these methods: Install: Code: Dim r as string r = SilentApp.InstallApk ( "/", "test.apk" ) Uninstall: Code: Dim r as string r = SilentApp.UninstallApk ( "packagename" ) If the result is empty, then everything it's ok! I provided an example that it works with the "apptest.apk" file. N.B.: You have to copy this "apptest.apk" into your device Enjoy!
itgirl Active Member Licensed User Longtime User Feb 12, 2015 #2 That's nice, thank you for this for sure i will give it a try
A androidappl Active Member Licensed User Longtime User Feb 13, 2015 #4 Excellent library. Will be useful to many ...
Silv Member Licensed User Longtime User Mar 9, 2015 #5 Is anybody have an idea why i can't compile it? Compiling generated Java code. Error javac 1.7.0_67 src\b4a\example\cameraexclass.java:68: error: cannot find symbol public b4a.example.silentapp _silentapp = null; ^ symbol: class silentapp location: package b4a.example Note: src\b4a\example\cameraexclass.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error Thanks.
Is anybody have an idea why i can't compile it? Compiling generated Java code. Error javac 1.7.0_67 src\b4a\example\cameraexclass.java:68: error: cannot find symbol public b4a.example.silentapp _silentapp = null; ^ symbol: class silentapp location: package b4a.example Note: src\b4a\example\cameraexclass.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error Thanks.
T Troberg Well-Known Member Licensed User Longtime User Mar 9, 2015 #6 That would be very nice if it was included in B4A-Bridge!
Silv Member Licensed User Longtime User Mar 9, 2015 #7 Troberg said: That would be very nice if it was included in B4A-Bridge! Click to expand... What you mean?
Troberg said: That would be very nice if it was included in B4A-Bridge! Click to expand... What you mean?
T Troberg Well-Known Member Licensed User Longtime User Mar 9, 2015 #8 Silv said: What you mean? Click to expand... So that I didn't need to click on a bunch of OK's to test run my program when running on wifi.
Silv said: What you mean? Click to expand... So that I didn't need to click on a bunch of OK's to test run my program when running on wifi.
Erel B4X founder Staff member Licensed User Longtime User Mar 9, 2015 #9 It only works on rooted devices.
JakeBullet70 Well-Known Member Licensed User Longtime User Mar 9, 2015 #10 I Silv said: Is anybody have an idea why i can't compile it? Compiling generated Java code. Error javac 1.7.0_67 src\b4a\example\cameraexclass.java:68: error: cannot find symbol public b4a.example.silentapp _silentapp = null; ^ symbol: class silentapp location: package b4a.example Note: src\b4a\example\cameraexclass.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error Thanks. Click to expand... I am running into the same problem.
I Silv said: Is anybody have an idea why i can't compile it? Compiling generated Java code. Error javac 1.7.0_67 src\b4a\example\cameraexclass.java:68: error: cannot find symbol public b4a.example.silentapp _silentapp = null; ^ symbol: class silentapp location: package b4a.example Note: src\b4a\example\cameraexclass.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error Thanks. Click to expand... I am running into the same problem.
Reids Member Licensed User Longtime User Mar 9, 2015 #11 Troberg said: So that I didn't need to click on a bunch of OK's to test run my program when running on wifi. Click to expand... you can use adb over wifi instead B4A bridge to working, just connect your phone hover wifi and type adb connect yourip, it wont request bunch of ok while compiling app to device
Troberg said: So that I didn't need to click on a bunch of OK's to test run my program when running on wifi. Click to expand... you can use adb over wifi instead B4A bridge to working, just connect your phone hover wifi and type adb connect yourip, it wont request bunch of ok while compiling app to device
T Troberg Well-Known Member Licensed User Longtime User Mar 10, 2015 #12 Erel said: It only works on rooted devices. Click to expand... Is there any developer who hasn't rooted their device?
Erel said: It only works on rooted devices. Click to expand... Is there any developer who hasn't rooted their device?
westingenieria Active Member Licensed User Longtime User Oct 29, 2015 #13 hi, @imgsimonebiliato , why when I download you library(SilentApp) , only have one file with extension xml, but not have correct file extension jar. I can´t open file jar. thanks in advanced.
hi, @imgsimonebiliato , why when I download you library(SilentApp) , only have one file with extension xml, but not have correct file extension jar. I can´t open file jar. thanks in advanced.
johndb Active Member Licensed User Longtime User Oct 29, 2015 #14 westingenieria said: hi, @imgsimonebiliato , why when I download you library(SilentApp) , only have one file with extension xml, but not have correct file extension jar. I can´t open file jar. thanks in advanced. Click to expand... I downloaded the library zip and there is both the xml and jar. Try downloading it again.
westingenieria said: hi, @imgsimonebiliato , why when I download you library(SilentApp) , only have one file with extension xml, but not have correct file extension jar. I can´t open file jar. thanks in advanced. Click to expand... I downloaded the library zip and there is both the xml and jar. Try downloading it again.
K KingEdem Member Licensed User Longtime User Apr 13, 2016 #15 Silv said: Is anybody have an idea why i can't compile it? Compiling generated Java code. Error javac 1.7.0_67 src\b4a\example\cameraexclass.java:68: error: cannot find symbol public b4a.example.silentapp _silentapp = null; ^ symbol: class silentapp location: package b4a.example Note: src\b4a\example\cameraexclass.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Click to expand... I am also facing similar error... any solution ?
Silv said: Is anybody have an idea why i can't compile it? Compiling generated Java code. Error javac 1.7.0_67 src\b4a\example\cameraexclass.java:68: error: cannot find symbol public b4a.example.silentapp _silentapp = null; ^ symbol: class silentapp location: package b4a.example Note: src\b4a\example\cameraexclass.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Click to expand... I am also facing similar error... any solution ?
B bluedude Well-Known Member Licensed User Longtime User Apr 14, 2016 #16 Troberg said: Is there any developer who hasn't rooted their device? Click to expand... Well, a good developer develops on a system for the group of users he is targeting. Not many people root devices.
Troberg said: Is there any developer who hasn't rooted their device? Click to expand... Well, a good developer develops on a system for the group of users he is targeting. Not many people root devices.
DonManfred Expert Licensed User Longtime User Apr 15, 2016 #17 Naresh Edem said: I am also facing similar error... any solution ? Click to expand... Which b4a version are you using?
Naresh Edem said: I am also facing similar error... any solution ? Click to expand... Which b4a version are you using?
K KingEdem Member Licensed User Longtime User Apr 15, 2016 #18 DonManfred said: Which b4a version are you using? Click to expand... Version 3.80 I observed that, the SilentApp.jar file is corrupt and having only "pk" written when opened in notepad, the file occupped only 22 bytes. Can anyone upload the same here please ....
DonManfred said: Which b4a version are you using? Click to expand... Version 3.80 I observed that, the SilentApp.jar file is corrupt and having only "pk" written when opened in notepad, the file occupped only 22 bytes. Can anyone upload the same here please ....
DonManfred Expert Licensed User Longtime User Apr 15, 2016 #19 Confirm. The lib download in post #1 is less than 1kb. And most of them is the xml file. Seems to be broken
Confirm. The lib download in post #1 is less than 1kb. And most of them is the xml file. Seems to be broken
K KingEdem Member Licensed User Longtime User Apr 15, 2016 #20 The XML file is okay but, SilentApp.jar file is empty. please upload if you have one.