# Android App Basics

**URL:** <https://community.particle.io/t/android-app-basics/47293>\
**Category:** Developer Tools\
**Created:** [January 26, 2019, 5:12pm UTC](https://community.particle.io/t/android-app-basics/47293 "2019-01-26T17:12:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fixingthingsguy](https://avatars.discourse-cdn.com/v4/letter/f/e68b1a/32.png) [@fixingthingsguy](https://community.particle.io/u/fixingthingsguy)\
**Post date:** [January 26, 2019, 5:12pm UTC](https://community.particle.io/t/android-app-basics/47293/1 "2019-01-26T17:12:40Z")

</div>

Hello Users,  
I’m new here, and am creating an Android App that will test my ability to execute a function that I wrote in  
the IDE, for the electron. As simple as Writing to a Port, HIGH or LOW.  
All that works fine in the [particle.io](http://particle.io) console.

Now I have build on Android Studio, the basic Hello World and that works fine.

Graduating now to wanting to connect to the Particle Cloud using the SDK for particle

Changed build.gradle in the app to include(used “implementation” because of compiler warnings )  
implementation 'io.particle:cloudsdk:0.3.1’  
implementation 'io.particle:devicesetup:0.4.9’  
Set up login as follows in activity.xml (adapted from GitHub site…

> **[Custom Android App Relay Controller With Photon](https://www.hackster.io/javawocky/custom-android-app-relay-controller-with-photon-da1edf)**
>
> A custom Android app remote for a Photon powered relay controller. By Damian Smith.

@Override

```
        public Object callApi(ParticleCloud sparkCloud) throws ParticleCloudException, IOException {

            sparkCloud.logIn("xxxxxxx", "xxxxxx");

            return -1;

```

Fails all the time, as far as I can tell.

So, please advise if any new updates I should use or any helpful  
suggestions.

Thanks for any help.

Regards
