forked from oss2019/oss2019.github.io
-
Notifications
You must be signed in to change notification settings - Fork 1
/
helloandroid_blog.html
455 lines (332 loc) · 20.8 KB
/
helloandroid_blog.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
<!DOCTYPE html>
<html lang="en">
<head>
<title>OSS — IIT Dharwad</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="shortcut icon" href="./images/oss_logo.png" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito+Sans:200,300,400,700,900|Roboto+Mono:300,400,500">
<link rel="stylesheet" href="fonts/icomoon/style.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/magnific-popup.css">
<link rel="stylesheet" href="css/jquery-ui.css">
<link rel="stylesheet" href="css/owl.carousel.min.css">
<link rel="stylesheet" href="css/owl.theme.default.min.css">
<link rel="stylesheet" href="css/bootstrap-datepicker.css">
<link rel="stylesheet" href="css/animate.css">
<link rel="stylesheet" href="fonts/flaticon/font/flaticon.css">
<link rel="stylesheet" href="css/fl-bigmug-line.css">
<link rel="stylesheet" href="css/aos.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/custom.css">
</head>
<body>
<div class="site-wrap">
<div class="site-mobile-menu">
<div class="site-mobile-menu-header">
<div class="site-mobile-menu-close mt-3">
<span class="icon-close2 js-menu-toggle"></span>
</div>
</div>
<div class="site-mobile-menu-body"></div>
</div> <!-- .site-mobile-menu -->
<header class="site-navbar py-1" role="banner">
<div class="container">
<div class="row align-items-center">
<div class="col-6 col-xl-2">
<a href="index.html"><img src="images/oss_logo.png" style="max-height: 100px;"></a>
<!-- <h1 class="mb-0"><a href="index.html" class="text-black h2 mb-0">O<strong>SS</strong></a></h1> -->
</div>
<div class="col-10 col-xl-10 d-none d-xl-block">
<nav class="site-navigation text-right" role="navigation">
<ul class="site-menu js-clone-nav mr-auto d-none d-lg-block">
<li class="active"><a href="index.html">Home</a></li>
<li><a href="events.html">Events</a></li>
<li><a href="blog.html">Blog</a></li>
<li><a href="team.html">Team</a></li>
<li><a href="new_post.html"><span class="rounded bg-primary py-2 px-3 text-white"><span class="h5 mr-2">+</span>Propose an Idea </span></a></li>
</ul>
</nav>
</div>
<div class="col-6 col-xl-2 text-right d-block">
<div class="d-inline-block d-xl-none ml-md-0 mr-auto py-3" style="position: relative; top: 3px;"><a href="#" class="site-menu-toggle js-menu-toggle text-black"><span class="icon-menu h3"></span></a></div>
</div>
</div>
</div>
</header>
<div class="site-section bg-light">
<div class="container">
<div class="row">
<div class="col-md-12 col-lg-8 mb-5">
<div class="p-5 bg-white">
<div class="mb-4 mb-md-5 mr-5">
<div class="job-post-item-header d-flex align-items-center">
<h2 class="mr-3 text-black h4">Hello Android!</h2>
<div class="badge-wrap">
<span class="bg-warning text-white badge py-2 px-4">Workshop</span>
</div>
</div>
<div class="job-post-item-body d-block d-md-flex">
<div class="mr-3"><span class="fl-bigmug-line-portfolio23"></span> <a href="team.html">Sonu Sourav</a></div>
<div><span class="fl-bigmug-line-big104"></span> <span>IIT Dharwad</span></div>
</div>
</div>
<!--Content here-->
<h1 id="androidstudioinstallation">Android Studio Installation</h1>
<p>Android Studio is the official Integrated Development Environment (IDE) for Android app development, based on IntelliJ IDEA.</p>
<p>Before starting the installation process, please Download the latest version of <a target="_blank" href="https://developer.android.com/studio/">Android Studio</a>. You should have JDK (Java SE Development Kit) 7+and you can download it from <a target="_blank" href="https://www.oracle.com/technetwork/java/javase/downloads/index.html">here</a>.</p>
<p>So let's launch Android Studio.exe. Make sure before launching Android Studio, that environment variable JAVA_HOME is set to the JDK installation directory via command <br />
<code>SET JAVA_HOME</code>. </p>
<p>Otherwise, Follow the steps <a target="_blank" href="https://github.com/oss2019/HelloAndroid/blob/master/Setting%20Environment%20Variable%20-%20JAVA_HOME.md">HERE</a>.</p>
<h2 id="installationonwindowsplatform">Installation on Windows Platform</h2>
<h3 id="requirements">Requirements:</h3>
<ul>
<li>3 GB RAM minimum, 8 GB RAM recommended</li>
<li>1280 x 800 minimum screen resolution</li>
<li>Microsoft® Windows® 7/8/10 (32- or 64-bit)</li>
</ul>
<h3 id="installation">Installation</h3>
<ol>
<li>Launch <code>android-studio.exe</code> to start the installation process. The installer responds by presenting the Android Studio Setup dialog box as shown. Click <strong>Next</strong> to go the <strong>Android Virtual Device</strong> (AVD) screen.</li>
</ol>
<p><img src="https://user-images.githubusercontent.com/34706326/54194875-48228e80-44e3-11e9-80df-b52831f74061.jpg" alt="studio2" /></p>
<ol>
<li>Choose the default settings and click <strong>Next</strong>.</li>
</ol>
<p><img src="https://user-images.githubusercontent.com/34706326/54194592-9edb9880-44e2-11e9-924c-f1cc5edf661c.jpg" alt="studio3" /></p>
<ol>
<li>After clicking Next,the <strong>Configuration Settings</strong> panel will show up, where the place to store android files have to be specified. After providing the location, click <strong>Next</strong>.</li>
</ol>
<p><img src="https://user-images.githubusercontent.com/34706326/54194593-9edb9880-44e2-11e9-89ca-b58912709cd3.jpg" alt="studio4" /></p>
<ol>
<li>On clicking Next, <strong>Choose Start Menu Folder panel</strong> shows up. Keep the default setting and click <strong>Install</strong>.</li>
</ol>
<p><img src="https://user-images.githubusercontent.com/34706326/54194594-9edb9880-44e2-11e9-89a4-56c175913c72.jpg" alt="studio5" /></p>
<ol>
<li>The following Installing panel appears:</li>
</ol>
<p><img src="https://user-images.githubusercontent.com/34706326/54194595-9f742f00-44e2-11e9-9739-372893c3e78b.jpg" alt="studio6" /></p>
<ol>
<li>Clicking <strong>Show details</strong> shows the names of files being installed and other activities. When installation finishes, the Installation Complete panel appears.</li>
</ol>
<p><img src="https://user-images.githubusercontent.com/34706326/54194597-9f742f00-44e2-11e9-8376-dc989faabcc3.jpg" alt="studio7" /></p>
<ol>
<li>To complete the installation, leave the <strong>Start Android Studio</strong> box checked and click <strong>Finish</strong>.</li>
</ol>
<p><img src="https://user-images.githubusercontent.com/34706326/54194598-a00cc580-44e2-11e9-9c08-5bc5b9dd7cad.jpg" alt="studio8" /></p>
<h3 id="runningandroidstudio">Running Android Studio</h3>
<ol>
<li>The first time Android Studio runs, it presents a <strong>Complete Installation</strong> dialog box that offers the option of importing settings from a previous installation.</li>
</ol>
<p><img src="https://user-images.githubusercontent.com/34706326/54205116-af4c3d00-44fb-11e9-8878-08e1a8a4b023.jpg" alt="studio9" /></p>
<ol>
<li>Choose <strong>NOT</strong> to import settings (the default selection) and click <strong>OK</strong>, which would take to the following splash screen:</li>
</ol>
<p><img src="https://user-images.githubusercontent.com/34706326/54194599-a00cc580-44e2-11e9-8481-8006bfd88988.jpg" alt="studio10" /></p>
<ol>
<li>A message box which says <strong>Finding Available SDK Components</strong> pops up.</li>
</ol>
<p><img src="https://user-images.githubusercontent.com/34706326/54205045-8c218d80-44fb-11e9-800b-8b0a4990dfaa.jpg" alt="studio11" /></p>
<ol>
<li>At this point, Android Studio presents the following Android Studio Setup Wizard dialog box:</li>
</ol>
<p><img src="https://user-images.githubusercontent.com/34706326/54193652-8d918c80-44e0-11e9-876f-2bd587bc8925.jpg" alt="studio12" /></p>
<ol>
<li>Click <strong>Next</strong>, and the wizard invites to select an installation type. Keep the default <strong>Standard</strong> setting.</li>
</ol>
<p><img src="https://user-images.githubusercontent.com/34706326/54193654-8e2a2300-44e0-11e9-84a0-722fb4242645.jpg" alt="studio13" /></p>
<ol>
<li>The next window asks user to select a user Interface Theme. Choose any one theme and press <strong>Next</strong>.</li>
</ol>
<p><img src="https://user-images.githubusercontent.com/34706326/54193655-8ec2b980-44e0-11e9-8ad7-c5c6a7b2341c.jpg" alt="studio14" /></p>
<ol>
<li>A <strong>Verify Settings</strong> window opens. Click <strong>Finish</strong> to begin the process of downloading SDK components.</li>
</ol>
<p><img src="https://user-images.githubusercontent.com/34706326/54193657-8ec2b980-44e0-11e9-9d97-b8ccbbc1f3ee.jpg" alt="studio15" /></p>
<ol>
<li>On the next window, Android Studio begins the process of downloading SDK components.</li>
</ol>
<p><img src="https://user-images.githubusercontent.com/34706326/54193658-8ec2b980-44e0-11e9-8feb-15367ac4217b.jpg" alt="studio16" /></p>
<p>It can take several minutes for this part of the setup to finish. Finally, click <strong>Finish</strong> to complete the wizard.</p>
<p><img src="https://user-images.githubusercontent.com/34706326/54193661-8f5b5000-44e0-11e9-9ec6-a22ad471b5a0.jpg" alt="studio18" /></p>
<p>The <strong>Welcome to Android Studio</strong> dialog box appears.</p>
<p><img src="https://user-images.githubusercontent.com/34706326/54213076-cf82f880-4509-11e9-8837-87ceb525161b.jpg" alt="studio1" /></p>
<h2 id="creatingfirstapphelloworld">Creating first App - <strong>Hello World</strong></h2>
<p>Now the installation process is done, and we can move to create our first app, <strong>Hello World</strong> - the beginning project of every developer.</p>
<ol>
<li>Click on <strong>Start a new Android Studio project</strong>. Android Studio will respond with the Create New Project dialog box as shown.</li>
</ol>
<p><img src="https://user-images.githubusercontent.com/34706326/54193662-8ff3e680-44e0-11e9-9986-d95a24405b4c.jpg" alt="studio19" /></p>
<ol>
<li>Fill the project details and click <strong>Next</strong>.</li>
</ol>
<ul>
<li><p><strong>Application Name</strong> : It should match with the purpose of the app.</p></li>
<li><p><strong>Company Domain</strong> : It is the domain name, which will be the app identity when the app will be uploaded on the playstore. <br />
It should have three terms atleast (e.g. com.iitdh.oss) and should be written in decreasing order ( com -> company name -> project {->}.. ) and not in opposite order.</p></li>
<li><p><strong>Project Location</strong> : Specify the Project location. Make sure the location name does not have white spaces in between. <br />
Generally, white spaces occurs in Computer Username (e.g. Sonu Sourav), in which case the user name <br />
should be changed to a single word (e.g. SonuSourav) otherwise it poses a problem in the future.</p>
<p><img src="https://user-images.githubusercontent.com/34706326/54193664-8ff3e680-44e0-11e9-8ef0-bf5ea7d47f74.jpg" alt="studio20" /></p></li>
</ul>
<ol>
<li>In the next window, select the target Android devices and click <strong>Next</strong>.</li>
</ol>
<p><img src="https://user-images.githubusercontent.com/34706326/54193665-908c7d00-44e0-11e9-8c47-1e56a9b64c44.jpg" alt="studio21" /></p>
<ol>
<li>The next window asks to select the type of Activity from the provided templates. Select <strong>Empty Activity</strong> and click <strong>Next</strong>.</li>
</ol>
<p><img src="https://user-images.githubusercontent.com/34706326/54193667-908c7d00-44e0-11e9-8b5b-12f66b70a97c.jpg" alt="studio22" /></p>
<ol>
<li>Next enter the Activity and layout name. Type <strong>MainActivity</strong> and <strong>activity_main</strong> in ActivityName and Layout name respectively. After this, press <strong>Next</strong>.</li>
</ol>
<p><img src="https://user-images.githubusercontent.com/34706326/54193668-91251380-44e0-11e9-8489-1bf07a98f6bc.jpg" alt="studio23" /></p>
<ol>
<li>A Installer windows opens up which creates the project. This might take some time, so sit back and relax. After its done, click <strong>Finish</strong>. </li>
</ol>
<p><img src="https://user-images.githubusercontent.com/34706326/54193669-91251380-44e0-11e9-9137-2e24500007a6.jpg" alt="studio24" /></p>
<ol>
<li>The project is setup and we are ready to create our first app.</li>
</ol>
<p><img src="https://user-images.githubusercontent.com/34706326/54193670-91251380-44e0-11e9-99b4-56443682f64a.jpg" alt="studio25" /></p>
<h3 id="videotutorial">Video tutorial</h3>
<p>You can follow this video for Windows installation
<a target="_blank" href="https://developer.android.com/studio/videos/studio-install-windows.mp4">Video Link</a></p>
<h2 id="installationonmacplatform">Installation on Mac Platform</h2>
<h3 id="toinstallandroidstudioonyourmacproceedasfollows">To install Android Studio on your Mac, proceed as follows:</h3>
<ol>
<li>Launch the Android Studio DMG file.</li>
<li>Drag and drop Android Studio into the Applications folder, then launch Android Studio.</li>
<li>Select whether you want to import previous Android Studio settings, then click OK.</li>
<li>The Android Studio Setup Wizard guides you through the rest of the setup, which includes downloading Android SDK components that are required for development. Further steps are similar to <strong>Windows Installation</strong> and can be found <a target="_blank" href="https://github.com/oss2019/HelloAndroid/blob/master/Android%20Studio%20Installation%20-%20Windows.md">here</a>.</li>
</ol>
<h3 id="videotutorial">Video Tutorial</h3>
<p>You can follow this video for Mac installation:
<a target="_blank" href="https://developer.android.com/studio/videos/studio-install-mac.mp4">Video Link</a></p>
<!-- Linux -->
<h1 id="installationonlinuxplatform">Installation on Linux Platform</h1>
<h2 id="toinstallandroidstudioonlinuxproceedasfollows">To install Android Studio on Linux, proceed as follows:</h2>
<ol>
<li>Unpack the <code>.zip</code> file you downloaded to an appropriate location for your applications, such as within <code>/usr/local/</code> for your user profile, or <code>/opt/</code> for shared users.</li>
<li>To launch Android Studio, open a terminal, navigate to the <code>android-studio/bin/</code> directory, and execute <code>studio.sh</code>.</li>
<li>Select whether you want to import previous Android Studio settings or not, then click OK.</li>
<li>The Android Studio Setup Wizard guides you through the rest of the setup, which includes downloading Android SDK components that are required for development.
Further steps are similar to <strong>Windows Installation</strong> and can be found <a target="_blank" href="https://github.com/oss2019/HelloAndroid/blob/master/Android%20Studio%20Installation%20-%20Windows.md">here</a>.</li>
</ol>
<h3 id="requiredlibrariesfor64bitmachines">Required libraries for 64-bit machines:</h3>
<p>If you are running a 64-bit version of Ubuntu, you need to install some 32-bit libraries with the following command:</p>
<p><code>sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386</code></p>
<p>If you are running 64-bit Fedora, the command is:</p>
<p><code>sudo yum install zlib.i686 ncurses-libs.i686 bzip2-libs.i686</code></p>
<h3 id="videotutorial">Video Tutorial</h3>
<p>You can follow this video for Linux installation:
<a target="_blank" href="https://developer.android.com/studio/videos/studio-install-linux.mp4">Video Link</a></p>
<!-- End Linux -->
<!--End Content here-->
</div>
</div>
<div class="col-lg-4">
<div class="p-4 mb-3 bg-white">
<h3 class="h5 text-black mb-3">Want to know more?</h3>
<p>Check out the official website by clicking the button below.</p>
<p><a target="_blank" href="https://github.com/oss2019/HelloAndroid" class="btn btn-primary py-2 px-4">View website</a></p>
</div>
</div>
</div>
</div>
</div>
<!--Start Footer-->
<footer class="site-footer unit-5 overlay footer-color">
<div class="container">
<div class="row">
<div class="col-lg-9">
<div class="row">
<div class="col-6 col-md-6 col-lg-6 mb-5 mb-lg-0">
<img src="images/oss_logo.png" style="max-width: 100%">
</div>
<div class="col-6 col-md-3 col-lg-3 mb-5 mb-lg-0">
</div>
<div class="col-6 col-md-3 col-lg-3 mb-5 mb-lg-0">
<div class="text-center">
<h3 class="footer-heading mb-4">Quick Links</h3>
<ul class="list-unstyled">
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="team.html">Team</a></li>
<li><a href="codeofconduct.html">Terms & Policies</a></li>
</ul>
</div>
<div class="text-center">
<h3 class="footer-heading mb-4">Follow Us</h3>
<span class="unit-3-icon icon" style="margin-left: 5%" >
<a href="https://www.facebook.com/OSS-Open-Student-Society-390468168410308/" target="_blank">
<img src="images/facebook.png" style="max-width: 20px">
</a>
</span>
<span class="unit-3-icon icon" style="margin-left: 5%" >
<a href="https://www.linkedin.com/company/oss2019" target="_blank">
<img src="images/linkedin.png" style="max-width: 20px">
</a>
</span>
<span class="unit-3-icon icon" style="margin-left: 5%" >
<a href="https://github.com/oss2019/oss2019.github.io/" target="_blank">
<img src="images/github.png" style="max-width: 20px">
</a>
</span>
</div>
</div>
</div>
</div>
<div class="col-lg-3">
<h3 class="footer-heading mb-4">Contact Info</h3>
<ul class="list-unstyled">
<li>
<span class="d-block text-white">Address</span>
Indian Institute of Technology, Dharwad,
Karnataka 580011
</li>
<li>
<span class="d-block text-white">Email</span>
oss@iitdh.ac.in
</li>
</ul>
</div>
</div>
<div class="row pt-5 mt-5 text-center">
<div class="col-md-12">
<p>
<!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
Copyright © <script data-cfasync="false" src="/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"></script><script>document.write(new Date().getFullYear());</script> All Rights Reserved <br> OSS, IIT Dharwad<br>
</p>
<p style="font-size: 10px;">
This template is made by <a href="https://colorlib.com" target="_blank" >Colorlib</a>
<!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
<br>
Icons made by <a href="https://www.flaticon.com/authors/geotatah" target="_blank" title="geotatah" style="">geotatah</a> from <a href="https://www.flaticon.com/" target="_blank" title="Flaticon">www.flaticon.com </a> is licensed by <a href="http://creativecommons.org/licenses/by/3.0/" title="Creative Commons BY 3.0" target="_blank">CC 3.0 BY</a>
</p>
</div>
</div>
</div>
<div class="footer-up-btn">
<div>
<img src="images/arrow-up.png" alt="up">
</div>
</div>
</footer>
<!--End Footer-->
</div>
<script src="js/custom.js"></script>
<script src="js/jquery-3.3.1.min.js"></script>
<script src="js/jquery-migrate-3.0.1.min.js"></script>
<script src="js/jquery-ui.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/jquery.stellar.min.js"></script>
<script src="js/jquery.countdown.min.js"></script>
<script src="js/jquery.magnific-popup.min.js"></script>
<script src="js/bootstrap-datepicker.min.js"></script>
<script src="js/aos.js"></script>
<script src="js/main.js"></script>
</body>
</html>