• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

To determine the app's information needs you will need to download and examine the following code:

Alexcol

Newbie
Mar 13, 2019
10
0
Good evening, i need your help please

I am newbie about developing in Android and the course I am taking is absed in an android applications, so i was asked to review a code is in a zip file thatt contains a folder called SharingApp_c3_local_storage, and this folder contains some others folders line .gradle,.idea,app,buid,dradle and some other files.


So can i reviw this code? how can i edit ?
do i have to import? if so, what can i do?

because the purpose of this course isto have all the application’s saved data stored remotely,

While i review the code, ive got to determine which classes need their variables to be stored remotely


For me its a kind of complex issue, but i cant give up, i need to learn, so i need your help and and your expertise to get thouh this and have a shed light about this

trhank you for bearing with me and your support as always
 
I am newbie about developing in Android and the course I am taking is absed in an android applications, so i was asked to review a code is in a zip file thatt contains a folder called SharingApp_c3_local_storage, and this folder contains some others folders line .gradle,.idea,app,buid,dradle and some other files.


So can i reviw this code? how can i edit ?
do i have to import? if so, what can i do?
First you will need to install an Integrated Development Environment(IDE).
You can download the Android Studio(AS) IDE from here:
https://developer.android.com/studio/

Follow the installation tutorial from here for your operating system.
There's both written and video tutorials:
https://developer.android.com/studio/install

It seems that the zip file you have is from a project originally created in AS (I'm basing this on it having gradle). So after you have AS installed you will need to select the option to "open an existing AS project" and choose "SharingApp_c3_local_storage".

Once you've done the above you can begin to work on your code.

Good luck. ;)
 
Upvote 0
Ive got already instaled AS 3.3.2 but Im not sure about IDE.
AS is an IDE. So you're all set. :thumbsupdroid:

In the Event log windows there is a message:
IDE and Plugin Updates: The following component is ready to update: Android Emulator

Ive got to updtate this ?
The android emulator is like a virtual device to test your apps on in the absence of or to supplement a physical device. You should accept all updates.
 
  • Like
Reactions: ocnbrze and Alexcol
Upvote 0
OK. I open the existing Project and throws a bunch of errors like:

31/03/2019
6:57 PM Gradle sync started

7:03 PM Gradle sync failed: Failed to find target with hash string 'android-23' in: C:\Users\Pablo Alejandro\AppData\Local\Android\Sdk (5 m 56 s 400 ms)

7:03 PM Syncing only active variant
You can disable this experimental feature from
File → Settings → Experimental → Gradle → Only sync the active variant

So what does it mean with these errors? and how can i correct them?
The Buid Sync windows what is it used for?

I would appreciate your help in advanced
 

Attachments

  • Errors SharingApp_c3_local_storage.PNG
    Errors SharingApp_c3_local_storage.PNG
    62.4 KB · Views: 146
  • SharingApp_c3_local_stor.PNG
    SharingApp_c3_local_stor.PNG
    29.8 KB · Views: 146
Upvote 0
OK THanks you very much for your update.
But as i dold u i have zero experience as a developer, so ive never hear about github, i just google itand it is likely a great platform for developers.
the course aim taking about SOA as a practice asked me to install AS, configure it, and review the aplication code.

so these questions arises:
1 how to update gradle file ?
2. how can i make this application to be run?
3 what languaje programming is this for instance in bulid.graddle(app module) this is the code:

apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "25.0.0"
defaultConfig {
applicationId "com.example.sharingapp"
minSdkVersion 19
targetSdkVersion 23
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
 
Upvote 0
1. AS will highlight warnings and errors in the gradle file. You can simply place the cursor on the warning and click on "Alt + Enter" which will bring up a menu with suggestions to fix the warning.

2. It'll run fine once the configuration files are updated. (ie. build.gradle etc)

3. Don't worry about gradle language for now as it doesn't affect you. It's just a config file.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones