create account

Project Setup for a Steemit Android App by razem-io

View this thread on: hive.blogpeakd.comecency.com
· @razem-io ·
$0.09
Project Setup for a Steemit Android App
Hello Community,

this is a follow up blog post regarding -> https://steemit.com/android/@razem-io/building-an-android-app-for-steemit

Some of you might be interested in the process I make others might want to know on how to build a simple android App. That's why I will briefly document what I am doing. If questions remain fell free to comment. I will answer as soon as possible.

In this post I will describe the process of setting up the App skeleton and creating a repository at github for the App.

First of all we will need an IDE to get started. I will use [Android Studio](https://developer.android.com/studio/index.html) as an IDE which is based on Intellij's IDEA. Once downloaded, installed and opened, let's start with a new project. 
**I am not sure about the final application name (suggestions are welcome)** so I will just name it *Steemit App* for now. I will set the minimum API level to 15 which stands for IceCreamSandwich version 4.0.3. It should  be compatible with more then 97% of all Android devices out there. Finally I will select the *Empty Activity* template as a skeleton for the App. Perfect! Our project skeleton is almost done.

To get things a little emotional I would like to display the steem logo for the initial version. Also it makes a much better screenshot. I found a good one at [steem.io](https://steem.io/)!

<p align="center">
  <img src="https://steem.io/images/steem.png" alt="Steem Logo"/>
</p>

I will save the image under `app\src\main\res\drawable\steem_logo.png` and add the image to the application using an `ImageView`. Now the `acitvity_main.xml` looks like this:

```
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context="io.razem.steemitapp.MainActivity">

    <ImageView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:src="@drawable/steem_logo"/>
</RelativeLayout>
```

That's it for the initial App skeleton. We have a nice looking dummy App which displays the steem logo.

To backup our current work and let other developers participate we will create a repository at [Github](https://github.com) . I will distribute the App under the MIT License. This will allow anybody to use it without to many restrictions. 

From now on anybody will be able to see the current status of the project at github.

-> https://github.com/razem-io/Steemit-App <-

This is what it looks like. It isn't much but it's a start.

<p align="center">
  <img src="http://i.imgur.com/mrSlioN.png" alt="Steemit App Screenshot"/>
</p>

Tomorrow (CEST) I will setup an automated build so that there will always be a current version for you guys to download and test.
👍  , , , , , , , , , , , , , , , , ,
properties (23)
authorrazem-io
permlinkproject-setup-for-a-steemit-android-app
categoryandroid
json_metadata{"tags":["android","app","steemit","development","dev","tutorial","github"],"image":["https://steem.io/images/steem.png","http://i.imgur.com/mrSlioN.png"],"links":["https://github.com"]}
created2016-07-16 09:04:24
last_update2016-07-16 09:04:24
depth0
children4
last_payout2016-08-18 04:12:51
cashout_time1969-12-31 23:59:59
total_payout_value0.089 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,106
author_reputation53,217,547,712
root_title"Project Setup for a Steemit Android App"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id133,015
net_rshares60,481,732,274
author_curate_reward""
vote details (18)
@r4fken ·
I was trying to setup crowdfunding for an app: https://steemit.com/crypto/@r4fken/steemdroid-crowdfunding-a-steem-android-app
👍  
properties (23)
authorr4fken
permlinkre-razem-io-project-setup-for-a-steemit-android-app-20160716t095035402z
categoryandroid
json_metadata{"tags":["android"],"links":["https://steemit.com/crypto/@r4fken/steemdroid-crowdfunding-a-steem-android-app"]}
created2016-07-16 09:50:36
last_update2016-07-16 09:50:36
depth1
children2
last_payout2016-08-18 04:12:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length125
author_reputation-14,070,504,625,313
root_title"Project Setup for a Steemit Android App"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id133,448
net_rshares447,314,214
author_curate_reward""
vote details (1)
@razem-io ·
Awesome! Perhaps with  a few more people helping this might result in a nice app.
properties (22)
authorrazem-io
permlinkre-r4fken-re-razem-io-project-setup-for-a-steemit-android-app-20160717t230403735z
categoryandroid
json_metadata{"tags":["android"]}
created2016-07-17 23:04:06
last_update2016-07-17 23:04:06
depth2
children1
last_payout2016-08-18 04:12:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length81
author_reputation53,217,547,712
root_title"Project Setup for a Steemit Android App"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id155,227
net_rshares0
@r4fken ·
Exactly!
properties (22)
authorr4fken
permlinkre-razem-io-re-r4fken-re-razem-io-project-setup-for-a-steemit-android-app-20160718t125905383z
categoryandroid
json_metadata{"tags":["android"]}
created2016-07-18 12:59:06
last_update2016-07-18 12:59:06
depth3
children0
last_payout2016-08-18 04:12:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length8
author_reputation-14,070,504,625,313
root_title"Project Setup for a Steemit Android App"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id165,528
net_rshares0
@yonuts ·
i was wondering if Steem already had an app. This is the kind of stuff we need for adoption!
👍  
properties (23)
authoryonuts
permlinkre-razem-io-project-setup-for-a-steemit-android-app-20160716t090748776z
categoryandroid
json_metadata{"tags":["android"]}
created2016-07-16 09:07:48
last_update2016-07-16 09:07:48
depth1
children0
last_payout2016-08-18 04:12:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length92
author_reputation1,817,762,656,977
root_title"Project Setup for a Steemit Android App"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id133,040
net_rshares447,314,214
author_curate_reward""
vote details (1)