# Copy paste raw android help

**URL:** <https://community.smartthings.com/t/copy-paste-raw-android-help/124801>\
**Category:** General Discussion\
**Tags:** developers\
**Created:** [April 19, 2018, 11:27pm UTC](https://community.smartthings.com/t/copy-paste-raw-android-help/124801 "2018-04-19T23:27:21Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joe\_Mcnelly](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/joe_mcnelly/32/96570_2.png) [@Joe\_Mcnelly](https://community.smartthings.com/u/Joe_Mcnelly)\
**Post date:** [April 19, 2018, 11:27pm UTC](https://community.smartthings.com/t/copy-paste-raw-android-help/124801/1 "2018-04-19T23:27:21Z")

</div>

I know regular copy and paste raw code for smart apps doesn’t work, but is there an app or something people might use on Android phones to do this? I don’t always have access to a pc

---

<div class="post-metadata">

**Author:** ![JDRoberts](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/jdroberts/32/56577_2.png) [@JDRoberts](https://community.smartthings.com/u/JDRoberts)\
**Post date:** [April 19, 2018, 11:29pm UTC](https://community.smartthings.com/t/copy-paste-raw-android-help/124801/2 "2018-04-19T23:29:15Z")

</div>

> [@Joe\_Mcnelly](#):
>
> I know regular copy and paste raw code for smart apps doesn’t work, but is there an app or something people might use on Android phones to do this? I don’t always have access to a pc

Why do you think regular copy and paste raw code doesn’t work? As far as I know, it works fine as long as you have the SmartThings classic app. It doesn’t work with the new app.

> [@\[OBSOLETE\] FAQ: An Overview of Using Custom Code in SmartThings (SmartThings Classic, Groovy Code)](https://community.smartthings.com/t/faq-an-overview-of-using-custom-code-in-smartthings/16772):
>
> The original FAQ information in this thread refers to the original smartthings architecture, which was in place through the end of 2022 and a little beyond. Custom code was written in the groovy programming language and ran in the smartthings cloud. As of May 2023, you can no longer add new Groovy DTH‘s or smartapps to your smartthings account. So if you came here because of a link in an old forum thread, or on another site, I’m afraid the Groovy information is no longer usable. All of this was replaced by a new architecture. Cloud to cloud integrations use the smartthings API. Hub connected devices, mostly Zigbee and zwave, now use “Edge Drivers,” written in the LUA programming language. Here’s the official announcement on those: The process for using a custom Edge Driver in the new …

@tgauchat Or one of the other master coders should know more, I’m not that familiar with android and smartthings.

---

<div class="post-metadata">

**Author:** ![jkp](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/jkp/32/117130_2.png) [@jkp](https://community.smartthings.com/u/jkp)\
**Post date:** [April 19, 2018, 11:32pm UTC](https://community.smartthings.com/t/copy-paste-raw-android-help/124801/3 "2018-04-19T23:32:09Z")

</div>

You can look at this app, it can manage the installation/updating for a select group of apps…

> [@\[OBSOLETE\] Community SmartApp Installer](https://community.smartthings.com/t/beta-community-smartapp-installer/118348):
>
> Ok I’m ready to finally share this with the community I want to start off by saying thanks to @coreylista for all his wisdom and contributions in helping me make this happen! Think of this as a 2-tap installer of any of your apps/devices Users will install this single SmartApp into there IDE Enable OAuth which will then act like a MarketPlace to allow them to install any SmartApp/Devices that developer submitted to be installed or updated all with out ever touching any code. Features Adds the Github Repo to the IDE Installs any required apps/devices and allows them to select from any optional items the dev makes available Publishes any designated by the developers apps that need published. Enables OAuth for any SmartApps the developer defines. One-Touch Updates or Apps and Devices I…

---

<div class="post-metadata">

**Author:** ![Joe\_Mcnelly](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/joe_mcnelly/32/96570_2.png) [@Joe\_Mcnelly](https://community.smartthings.com/u/Joe_Mcnelly)\
**Post date:** [April 19, 2018, 11:34pm UTC](https://community.smartthings.com/t/copy-paste-raw-android-help/124801/4 "2018-04-19T23:34:31Z")

</div>

I don’t know why it doesn’t work, it just never does, someone once said that when it goes to clipboard something happens to it but that doesn’t help much, I have the community installer but it’s apps are limited.

---

<div class="post-metadata">

**Author:** ![WB70](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/wb70/32/95668_2.png) [@WB70](https://community.smartthings.com/u/WB70)\
**Post date:** [April 20, 2018, 12:33am UTC](https://community.smartthings.com/t/copy-paste-raw-android-help/124801/5 "2018-04-20T00:33:26Z")

</div>

> [@Joe\_Mcnelly](#):
>
> I don’t know why it doesn’t work, it just never does, someone once said that when it goes to clipboard something happens to it but that doesn’t help much, I have the community installer but it’s apps are limited

When you are on your phone and trying to get the code, if you scroll to the bottom and click desktop mode, then you have the ability to select Raw, the it will display the code with the screen you should be copying and pasting. Do it all the time from my Android. Works fine.

And then when copying and pasting, you need to make sure the code is for a SmartApp or a Device Handler.

---

<div class="post-metadata">

**Author:** ![Joe\_Mcnelly](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/joe_mcnelly/32/96570_2.png) [@Joe\_Mcnelly](https://community.smartthings.com/u/Joe_Mcnelly)\
**Post date:** [April 20, 2018, 12:53am UTC](https://community.smartthings.com/t/copy-paste-raw-android-help/124801/6 "2018-04-20T00:53:51Z")

</div>

Yeah I know to make sure it’s raw code. I’ve also tried desktop mode so maybe it’s just my phone then, thanks for the help.

---

<div class="post-metadata">

**Author:** ![Ryan780](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/ryan780/32/103505_2.png) [@Ryan780](https://community.smartthings.com/u/Ryan780)\
**Post date:** [April 21, 2018, 4:51am UTC](https://community.smartthings.com/t/copy-paste-raw-android-help/124801/7 "2018-04-21T04:51:55Z")

</div>

It cannot be your phone unless you are not using an Android or iPhone. Are you trying to paste a DTH into a SmartApp or vice versa? What “code” are you trying to paste into the smartapp? Also, when you log into the IDE, are you using GitHub integration? If not, you really should. Eliminates all that messy “raw” copy/paste.

---

<div class="post-metadata">

**Author:** ![Joe\_Mcnelly](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/joe_mcnelly/32/96570_2.png) [@Joe\_Mcnelly](https://community.smartthings.com/u/Joe_Mcnelly)\
**Post date:** [April 21, 2018, 2:41pm UTC](https://community.smartthings.com/t/copy-paste-raw-android-help/124801/8 "2018-04-21T14:41:12Z")

</div>

I use Github integration when the SmartApp author provides it but there is alot out there that just provide copy paste. I’ve tried probably 20 times various apps.

---

<div class="post-metadata">

**Author:** ![Ryan780](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/ryan780/32/103505_2.png) [@Ryan780](https://community.smartthings.com/u/Ryan780)\
**Post date:** [April 21, 2018, 4:10pm UTC](https://community.smartthings.com/t/copy-paste-raw-android-help/124801/9 "2018-04-21T16:10:46Z")

</div>

And are you going into the IDE on your phone or a laptop/desktop? I’ve never tried editing on Mobile so I am not sure how that works. Also, have you tried launching the IDE in an incognito window? I’m not able to edit any devices unless i use Incognito.

---

<div class="post-metadata">

**Author:** ![WB70](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/wb70/32/95668_2.png) [@WB70](https://community.smartthings.com/u/WB70)\
**Post date:** [April 21, 2018, 4:26pm UTC](https://community.smartthings.com/t/copy-paste-raw-android-help/124801/10 "2018-04-21T16:26:41Z")

</div>

> [@Ryan780](#):
>
> And are you going into the IDE on your phone or a laptop/desktop? I’ve never tried editing on Mobile so I am not sure how that works. Also, have you tried launching the IDE in an incognito window? I’m not able to edit any devices unless i use Incognito.

FYI:

When using Chrome and accessing the code for GitHub, there is no difference in doing this on Android versus a Desktop / Laptop, other than when in Android, there is a button on the page that contains the code that you press that then allows you to press the Raw Code button and then the person can do a select all / copy and the proceed to the IDE and paste in appropriately. I have a feeling it’s process and procedure as I have done this from my phone over a 100x without an issue. On Android, it all goes to an internal clipboard when copying/pasting.

@Joe_Mcnelly most of the mainstream SmartApps / Device Handlers are all structured in the appropriate directories in GitHub to allow them to be added as a repository in the IDE. Most of these developers have the name in their instructions and if they don’t, you can actually look at the directory structure in GitHub to be able to add this on your own. If you can’t figure it out or the find the commonality, ask the author to provide it or of they can place the SA/DH in the appropriate directory structure.

---

<div class="post-metadata">

**Author:** ![Joe\_Mcnelly](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/joe_mcnelly/32/96570_2.png) [@Joe\_Mcnelly](https://community.smartthings.com/u/Joe_Mcnelly)\
**Post date:** [April 21, 2018, 4:27pm UTC](https://community.smartthings.com/t/copy-paste-raw-android-help/124801/11 "2018-04-21T16:27:03Z")

</div>

I go in the ide on my phone yes, I have no problems getting around the ide, never tried incognito. Only thing that doesn’t work is what it pastes into it

---

<div class="post-metadata">

**Author:** ![Joe\_Mcnelly](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/joe_mcnelly/32/96570_2.png) [@Joe\_Mcnelly](https://community.smartthings.com/u/Joe_Mcnelly)\
**Post date:** [April 21, 2018, 4:29pm UTC](https://community.smartthings.com/t/copy-paste-raw-android-help/124801/12 "2018-04-21T16:29:08Z")

</div>

Thanks, I think I might have done that way back when once, I remember now, just wish copy paste would work also tho, I can always wait until I get home if need be too

---

<div class="post-metadata">

**Author:** ![WB70](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/wb70/32/95668_2.png) [@WB70](https://community.smartthings.com/u/WB70)\
**Post date:** [April 21, 2018, 4:38pm UTC](https://community.smartthings.com/t/copy-paste-raw-android-help/124801/13 "2018-04-21T16:38:44Z")

</div>

> [@Joe\_Mcnelly](#):
>
> Thanks, I think I might have done that way back when once, I remember now, just wish copy paste would work also tho, I can always wait until I get home if need be too

Step by step on Android:

1. When on the page with the .src file you are looking at on GitHub, you scroll all the way to the bottom and click Desktop version:

 ![Screenshot_20180421-093143](https://global.discourse-cdn.com/smartthings/original/3X/1/c/1cc5db66631e64e00cef79e36e357772945f8d2a.png)

1. Then you will see the Raw button, press that:

 ![Screenshot_20180421-093250](https://global.discourse-cdn.com/smartthings/original/3X/5/2/5256ccd30cb69ade80a29c21fb2d404d65b8cd74.png)

1. This will then display the code in the correct format. Now do a Select All.

 ![Screenshot_20180421-093313](https://global.discourse-cdn.com/smartthings/original/3X/b/f/bf53e1f90712b2b8092e4008a2a1d2a49271011b.png)

1. The press Copy

 ![Screenshot_20180421-093320](https://global.discourse-cdn.com/smartthings/original/3X/6/4/640a24ff394054bfc123fd345752b86801bac10f.png)

1. Then in IDE, where you are creating a New SmartApp or Device Handler, press the screen inside where the code will go and then select Paste.

This procedure works without failure. If it’s a large file and you press Create, you should wait several seconds before pressing Publish For Me (if you see the little circle it’s still processing).

---

<div class="post-metadata">

**Author:** ![Joe\_Mcnelly](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/joe_mcnelly/32/96570_2.png) [@Joe\_Mcnelly](https://community.smartthings.com/u/Joe_Mcnelly)\
**Post date:** [April 21, 2018, 4:38pm UTC](https://community.smartthings.com/t/copy-paste-raw-android-help/124801/14 "2018-04-21T16:38:53Z")

</div>

I have no issues doing copy paste on my computer, I’m just not home very often

---

<div class="post-metadata">

**Author:** ![Ryan780](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/ryan780/32/103505_2.png) [@Ryan780](https://community.smartthings.com/u/Ryan780)\
**Post date:** [April 21, 2018, 4:40pm UTC](https://community.smartthings.com/t/copy-paste-raw-android-help/124801/15 "2018-04-21T16:40:15Z")

</div>

Did I say there was a difference between phone and desktop versions of Chrome? No, I did not. I am trying to get an understanding of what the OP is doing to help him resolve the issue. All I did was ask a question.

---

<div class="post-metadata">

**Author:** ![WB70](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/wb70/32/95668_2.png) [@WB70](https://community.smartthings.com/u/WB70)\
**Post date:** [April 21, 2018, 4:42pm UTC](https://community.smartthings.com/t/copy-paste-raw-android-help/124801/16 "2018-04-21T16:42:39Z")

</div>

> [@Ryan780](#):
>
> Did I say there was a difference between phone and desktop versions of Chrome? No, I did not. I am trying to get an understanding of what the OP is doing to help him resolve the issue. All I did was ask a question.

It was informational for Joe and not aimed at you. For the fact that you have never performed this and have no knowledge of that process within Android there is nothing for you to contribute to copying and pasting.

I wholeheartedly agree with you that where and when available, he should use the GitHub integration with the repository defined so that he can avoid copying and pasting altogether.

---

<div class="post-metadata">

**Author:** ![Ryan780](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/ryan780/32/103505_2.png) [@Ryan780](https://community.smartthings.com/u/Ryan780)\
**Post date:** [April 21, 2018, 4:43pm UTC](https://community.smartthings.com/t/copy-paste-raw-android-help/124801/17 "2018-04-21T16:43:49Z")

</div>

I may not have tried to paste into the IDE…but I have plenty of knowledge when it comes to copying from Android. And I will continue to post whenever and on whatever topic I want to.

---

<div class="post-metadata">

**Author:** ![WB70](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/wb70/32/95668_2.png) [@WB70](https://community.smartthings.com/u/WB70)\
**Post date:** [April 21, 2018, 4:44pm UTC](https://community.smartthings.com/t/copy-paste-raw-android-help/124801/18 "2018-04-21T16:44:24Z")

</div>

Someone woke up on the wrong side of the bed 🙂

Have a great day all.

---

<div class="post-metadata">

**Author:** ![Ryan780](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/ryan780/32/103505_2.png) [@Ryan780](https://community.smartthings.com/u/Ryan780)\
**Post date:** [April 21, 2018, 4:48pm UTC](https://community.smartthings.com/t/copy-paste-raw-android-help/124801/19 "2018-04-21T16:48:08Z")

</div>

Not at all. Know-it-all jerks who bully people just really annoy me to no end.

---

<div class="post-metadata">

**Author:** ![Joe\_Mcnelly](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/joe_mcnelly/32/96570_2.png) [@Joe\_Mcnelly](https://community.smartthings.com/u/Joe_Mcnelly)\
**Post date:** [April 21, 2018, 4:53pm UTC](https://community.smartthings.com/t/copy-paste-raw-android-help/124801/20 "2018-04-21T16:53:51Z")

</div>

![Screenshot_20180421-105158](https://global.discourse-cdn.com/smartthings/original/3X/6/7/674568bb482f4c2595c350ae7cdf5eca75cc5dc7.png)

[Next page](https://community.smartthings.com/t/copy-paste-raw-android-help/124801.md?page=2)
