-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding changes to GpiiActivity.java class and AndroidManifest.xml from Gpii Android Application in order to allow its own installation #27
base: master
Are you sure you want to change the base?
Conversation
…ading GpiiActivity Android application in order to autodeploy it
isSystemApp = isSystemPackage(this.getPackageManager() | ||
.getApplicationInfo("net.gpii.app", 0)); | ||
} catch (NameNotFoundException e1) { | ||
Log.i("APPSISTEMA", "NO SE ENCUENTRA"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Every message needs to be in english
Beside my comments,
|
public class GpiiActivity extends Activity { | ||
|
||
private boolean isSystemApp; | ||
private static String TAG = "Cloud4all"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/Cloud4all/GPII
…I Android version
* You may obtain a copy of the License at | ||
* https://github.com/GPII/universal/blob/master/LICENSE.txt | ||
*/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Respect the headers
private static String uriTar = "http://docs.google.com/uc?authuser=0&id=0B9NaK6yZUAngMzdsRDdQWi1rbDg&export=download"; | ||
|
||
private static String gpiiCompatibleAndroidDevicesUrl = "http://wiki.gpii.net/index.php/GPII_Android_Devices_Compatibility_Table"; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
empty whitespaces
@Diegohp, |
also, I would love to have most of the new added functions into a separate .java file (ie: utilities.java). I would like to keep the GpiiActivity.java file as cleaner (and readable) as possible. |
import android.os.AsyncTask; | ||
import android.os.Bundle; | ||
import android.os.Process; | ||
import org.apache.commons.compress.archivers.tar.TarArchiveEntry; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing dep
Hi @Diegohp, it's not building here, I'm getting the following results when trying to build it:
Here I see 2 problems:
Can you please fix these problems? |
In relation to the missing dependencies, anode is already including an utility for dealing with tar files, isn't it enough for our purposes? Is it really needed to include a new one? |
Added dependencies for Tar and Gzip |
I meant including the libraries, not importing them in the source code again |
@@ -25,6 +25,7 @@ else | |||
fi | |||
|
|||
curl -o app/libs/jtar-1.0.4.jar https://jtar.googlecode.com/files/jtar-1.0.4.jar | |||
curl -o app/libs/commons-compress-1.5.jar https://docs.google.com/uc?export=download&id=0B9NaK6yZUAngSXlKNTBOMHRIcXM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why aren't we using the apache's official download URL of this library?
please, whenever you make a change and you want me to keep reviewing it, just let me know, we don't receive notifications when you add commits to the pull request. |
Even by applying your last commit, it's not building:
|
…ght jar library from maven repository
Hi @javihernandez, we have upload some changes to prebuild.sh file and fixed some errors in GpiiActivity.java and main.xml, in order to build Gpii Android app. We tested it, and everything should be work |
…rings, GPII User Listerners for NFC and QR, and GPII Architecture on the same project
Hey @Diegohp, thanks for pushing on this! Right now I'm getting this build error
any ideas? |
Also, I'm randomly experiencing this right before the installation ends:
Have you experienced the same issue before? |
|
||
try { | ||
tarIncluded=true; | ||
Arrays.asList(getResources().getAssets().list("")).contains("gpii-android.tar.gz"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I can see, the resource is called "gpii-android" (without the .tar.gz extension), and I'm not seeing any renaming-related process within this last commit. Am I overlooking it?
Hi Javi! We just added some changes to GpiiActivity in order to fix the issues you have found. Please, test it as soon as possible. |
Merge remote-tracking branch 'Diegohp/GPII-installer_FVE.git' into demoKit * Diegohp/GPII-installer_FVE.git: Changes added to GpiiActivity to fix some bugs Added changes to install GPII Android Application with declarative Strings, GPII User Listerners for NFC and QR, and GPII Architecture on the same project Some errors fixed. Added modification into prebuild.sh to download right jar library from maven repository prebuild.sh file modified to import common compress library Adding dependencies for tar an gzip New indentation added to whole class with four spaces Added 4 spaces instead tabulation on GpiiActivity.java. Added header Changes applied to GpiiActivity.java and AndroidManifest.xml for upgrading GpiiActivity Android application in order to autodeploy it
No description provided.