{"id":470,"date":"2019-10-23T18:20:46","date_gmt":"2019-10-23T16:20:46","guid":{"rendered":"https:\/\/www.cipv6.de\/worp\/?p=470"},"modified":"2019-10-23T18:20:52","modified_gmt":"2019-10-23T16:20:52","slug":"how-do-i-debug-tradfri-on-openhab","status":"publish","type":"post","link":"https:\/\/www.cipv6.de\/worp\/index.php\/2019\/10\/23\/how-do-i-debug-tradfri-on-openhab\/","title":{"rendered":"How do I debug Tradfri on Openhab ?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">open the openhab-cli:<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">root@rpi6:\/home\/pi# openhab-cli console\n\nLogging in as openhab\n\n                          __  _____    ____\n  ____  ____  ___  ____  \/ \/ \/ \/   |  \/ __ )\n \/ __ \\\/ __ \\\/ _ \\\/ __ \\\/ \/_\/ \/ \/| | \/ __  |\n\/ \/_\/ \/ \/_\/ \/  __\/ \/ \/ \/ __  \/ ___ |\/ \/_\/ \/\n\\____\/ .___\/\\___\/_\/ \/_\/_\/ \/_\/_\/  |_\/_____\/\n    \/_\/                        2.5.0.M4\n                               Milestone Build\n\nHit '&lt;tab>' for a list of available commands\nand '[cmd] --help' for help on a specific command.\nHit '&lt;ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown openHAB.\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Find the packacke-namespace of the tradfri bundle:<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">openhab> bundle:list -s|grep trad\n226 \u2502 Active \u2502  80 \u2502 2.5.0.M4              \u2502 org.openhab.binding.tradfri\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">get the current debug-level:<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">openhab> log:get org.openhab.binding.tradfri\nINFO\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">change the debug-level if needed:<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">openhab> log:set ERROR org.openhab.binding.tradfri\nopenhab> log:set DEBUG org.openhab.binding.tradfri\nopenhab> log:set INFO org.openhab.binding.tradfri\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>open the openhab-cli: Find the packacke-namespace of the tradfri bundle: get the current debug-level: change the debug-level if needed:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[53,58,59],"class_list":["post-470","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-53","tag-tradfri","tag-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How do I debug Tradfri on Openhab ? - cipv6.de<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.cipv6.de\/worp\/index.php\/2019\/10\/23\/how-do-i-debug-tradfri-on-openhab\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How do I debug Tradfri on Openhab ? - cipv6.de\" \/>\n<meta property=\"og:description\" content=\"open the openhab-cli: Find the packacke-namespace of the tradfri bundle: get the current debug-level: change the debug-level if needed:\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.cipv6.de\/worp\/index.php\/2019\/10\/23\/how-do-i-debug-tradfri-on-openhab\/\" \/>\n<meta property=\"og:site_name\" content=\"cipv6.de\" \/>\n<meta property=\"article:published_time\" content=\"2019-10-23T16:20:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-10-23T16:20:52+00:00\" \/>\n<meta name=\"author\" content=\"ugu5ma\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ugu5ma\" \/>\n<meta name=\"twitter:site\" content=\"@ugu5ma\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ugu5ma\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2019\\\/10\\\/23\\\/how-do-i-debug-tradfri-on-openhab\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2019\\\/10\\\/23\\\/how-do-i-debug-tradfri-on-openhab\\\/\"},\"author\":{\"name\":\"ugu5ma\",\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/#\\\/schema\\\/person\\\/5d62b275485540be9e5e9e33d4fab86d\"},\"headline\":\"How do I debug Tradfri on Openhab ?\",\"datePublished\":\"2019-10-23T16:20:46+00:00\",\"dateModified\":\"2019-10-23T16:20:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2019\\\/10\\\/23\\\/how-do-i-debug-tradfri-on-openhab\\\/\"},\"wordCount\":26,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/#\\\/schema\\\/person\\\/5d62b275485540be9e5e9e33d4fab86d\"},\"keywords\":[\"29\",\"Tradfri\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2019\\\/10\\\/23\\\/how-do-i-debug-tradfri-on-openhab\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2019\\\/10\\\/23\\\/how-do-i-debug-tradfri-on-openhab\\\/\",\"url\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2019\\\/10\\\/23\\\/how-do-i-debug-tradfri-on-openhab\\\/\",\"name\":\"How do I debug Tradfri on Openhab ? - cipv6.de\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/#website\"},\"datePublished\":\"2019-10-23T16:20:46+00:00\",\"dateModified\":\"2019-10-23T16:20:52+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2019\\\/10\\\/23\\\/how-do-i-debug-tradfri-on-openhab\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2019\\\/10\\\/23\\\/how-do-i-debug-tradfri-on-openhab\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2019\\\/10\\\/23\\\/how-do-i-debug-tradfri-on-openhab\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How do I debug Tradfri on Openhab ?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/#website\",\"url\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/\",\"name\":\"cipv6.de\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/#\\\/schema\\\/person\\\/5d62b275485540be9e5e9e33d4fab86d\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/#\\\/schema\\\/person\\\/5d62b275485540be9e5e9e33d4fab86d\",\"name\":\"ugu5ma\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7211dd31d32612293e4228c8f880721a803dcc15211868f096ea9a8e77b6f316?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7211dd31d32612293e4228c8f880721a803dcc15211868f096ea9a8e77b6f316?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7211dd31d32612293e4228c8f880721a803dcc15211868f096ea9a8e77b6f316?s=96&d=mm&r=g\",\"caption\":\"ugu5ma\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7211dd31d32612293e4228c8f880721a803dcc15211868f096ea9a8e77b6f316?s=96&d=mm&r=g\"},\"sameAs\":[\"https:\\\/\\\/cipv6.de\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How do I debug Tradfri on Openhab ? - cipv6.de","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.cipv6.de\/worp\/index.php\/2019\/10\/23\/how-do-i-debug-tradfri-on-openhab\/","og_locale":"en_US","og_type":"article","og_title":"How do I debug Tradfri on Openhab ? - cipv6.de","og_description":"open the openhab-cli: Find the packacke-namespace of the tradfri bundle: get the current debug-level: change the debug-level if needed:","og_url":"https:\/\/www.cipv6.de\/worp\/index.php\/2019\/10\/23\/how-do-i-debug-tradfri-on-openhab\/","og_site_name":"cipv6.de","article_published_time":"2019-10-23T16:20:46+00:00","article_modified_time":"2019-10-23T16:20:52+00:00","author":"ugu5ma","twitter_card":"summary_large_image","twitter_creator":"@ugu5ma","twitter_site":"@ugu5ma","twitter_misc":{"Written by":"ugu5ma","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.cipv6.de\/worp\/index.php\/2019\/10\/23\/how-do-i-debug-tradfri-on-openhab\/#article","isPartOf":{"@id":"https:\/\/www.cipv6.de\/worp\/index.php\/2019\/10\/23\/how-do-i-debug-tradfri-on-openhab\/"},"author":{"name":"ugu5ma","@id":"https:\/\/www.cipv6.de\/worp\/#\/schema\/person\/5d62b275485540be9e5e9e33d4fab86d"},"headline":"How do I debug Tradfri on Openhab ?","datePublished":"2019-10-23T16:20:46+00:00","dateModified":"2019-10-23T16:20:52+00:00","mainEntityOfPage":{"@id":"https:\/\/www.cipv6.de\/worp\/index.php\/2019\/10\/23\/how-do-i-debug-tradfri-on-openhab\/"},"wordCount":26,"commentCount":1,"publisher":{"@id":"https:\/\/www.cipv6.de\/worp\/#\/schema\/person\/5d62b275485540be9e5e9e33d4fab86d"},"keywords":["29","Tradfri"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.cipv6.de\/worp\/index.php\/2019\/10\/23\/how-do-i-debug-tradfri-on-openhab\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.cipv6.de\/worp\/index.php\/2019\/10\/23\/how-do-i-debug-tradfri-on-openhab\/","url":"https:\/\/www.cipv6.de\/worp\/index.php\/2019\/10\/23\/how-do-i-debug-tradfri-on-openhab\/","name":"How do I debug Tradfri on Openhab ? - cipv6.de","isPartOf":{"@id":"https:\/\/www.cipv6.de\/worp\/#website"},"datePublished":"2019-10-23T16:20:46+00:00","dateModified":"2019-10-23T16:20:52+00:00","breadcrumb":{"@id":"https:\/\/www.cipv6.de\/worp\/index.php\/2019\/10\/23\/how-do-i-debug-tradfri-on-openhab\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.cipv6.de\/worp\/index.php\/2019\/10\/23\/how-do-i-debug-tradfri-on-openhab\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.cipv6.de\/worp\/index.php\/2019\/10\/23\/how-do-i-debug-tradfri-on-openhab\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.cipv6.de\/worp\/"},{"@type":"ListItem","position":2,"name":"How do I debug Tradfri on Openhab ?"}]},{"@type":"WebSite","@id":"https:\/\/www.cipv6.de\/worp\/#website","url":"https:\/\/www.cipv6.de\/worp\/","name":"cipv6.de","description":"","publisher":{"@id":"https:\/\/www.cipv6.de\/worp\/#\/schema\/person\/5d62b275485540be9e5e9e33d4fab86d"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.cipv6.de\/worp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.cipv6.de\/worp\/#\/schema\/person\/5d62b275485540be9e5e9e33d4fab86d","name":"ugu5ma","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/7211dd31d32612293e4228c8f880721a803dcc15211868f096ea9a8e77b6f316?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/7211dd31d32612293e4228c8f880721a803dcc15211868f096ea9a8e77b6f316?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7211dd31d32612293e4228c8f880721a803dcc15211868f096ea9a8e77b6f316?s=96&d=mm&r=g","caption":"ugu5ma"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/7211dd31d32612293e4228c8f880721a803dcc15211868f096ea9a8e77b6f316?s=96&d=mm&r=g"},"sameAs":["https:\/\/cipv6.de"]}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9uBTs-7A","jetpack-related-posts":[{"id":740,"url":"https:\/\/www.cipv6.de\/worp\/index.php\/2022\/04\/17\/mac-network-commands-cheat-sheet\/","url_meta":{"origin":470,"position":0},"title":"Mac Network Commands Cheat Sheet","author":"ugu5ma","date":"April 17, 2022","format":false,"excerpt":"nice CLI-cmd-overview created by JJ can be found at: https:\/\/gist.github.com\/jjnilton\/add1eeeb3a9616f53e4c","rel":"","context":"In &quot;MacOS\/IOS&quot;","block_context":{"text":"MacOS\/IOS","link":"https:\/\/www.cipv6.de\/worp\/index.php\/category\/macos\/"},"img":{"alt_text":"photo of imac near macbook","src":"https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2022\/04\/pexels-photo-1029757.jpeg?fit=1200%2C786&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2022\/04\/pexels-photo-1029757.jpeg?fit=1200%2C786&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2022\/04\/pexels-photo-1029757.jpeg?fit=1200%2C786&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2022\/04\/pexels-photo-1029757.jpeg?fit=1200%2C786&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2022\/04\/pexels-photo-1029757.jpeg?fit=1200%2C786&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":939,"url":"https:\/\/www.cipv6.de\/worp\/index.php\/2024\/08\/26\/duplicati-rpi-setup-on-64-bit-ubuntu-os-jammy-22-04\/","url_meta":{"origin":470,"position":1},"title":"Duplicati RPi setup on 64-bit Ubuntu OS Jammy (22.04)","author":"ugu5ma","date":"August 26, 2024","format":false,"excerpt":"Setting up Duplicati on Ubuntu Jammy (22.04) for Raspberry Pi (RPI) is a great way to ensure your data is securely backed up. Duplicati is a free, open-source backup solution that allows you to store encrypted, incremental, and compressed backups on various cloud storage services and remote file servers.\u00a0It supports\u2026","rel":"","context":"In &quot;Linux&quot;","block_context":{"text":"Linux","link":"https:\/\/www.cipv6.de\/worp\/index.php\/category\/linux\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2024\/08\/CleanShot-2024-08-26-at-11.43.33%402x.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2024\/08\/CleanShot-2024-08-26-at-11.43.33%402x.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2024\/08\/CleanShot-2024-08-26-at-11.43.33%402x.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2024\/08\/CleanShot-2024-08-26-at-11.43.33%402x.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2024\/08\/CleanShot-2024-08-26-at-11.43.33%402x.png?resize=1050%2C600&ssl=1 3x"},"classes":[]},{"id":973,"url":"https:\/\/www.cipv6.de\/worp\/index.php\/2024\/09\/06\/manual-steps-for-certificate-based-ssh-communication\/","url_meta":{"origin":470,"position":2},"title":"Lab setup: Secure your SSH communication with certificates","author":"ugu5ma","date":"September 6, 2024","format":false,"excerpt":"When you Ssh the first time to a host the screen shows something like: ssh test@10.50.100.110 The authenticity of host '10.50.100.110 (10.50.100.110)' can't be established. ED25519 key fingerprint is SHA256:jCJ0TIJkKnjgu3RTv5eGER7p4IN5Tb\/JpTEVJNMfpMs. This key is not known by any other names Are you sure you want to continue connecting (yes\/no\/[fingerprint])? Be honest:\u2026","rel":"","context":"In &quot;Security&quot;","block_context":{"text":"Security","link":"https:\/\/www.cipv6.de\/worp\/index.php\/category\/security\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2024\/09\/ssh_cover.jpeg?fit=1024%2C1024&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2024\/09\/ssh_cover.jpeg?fit=1024%2C1024&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2024\/09\/ssh_cover.jpeg?fit=1024%2C1024&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2024\/09\/ssh_cover.jpeg?fit=1024%2C1024&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":51,"url":"https:\/\/www.cipv6.de\/worp\/index.php\/2017\/12\/22\/android-timer\/","url_meta":{"origin":470,"position":3},"title":"Android: Timer","author":"ugu5ma","date":"December 22, 2017","format":false,"excerpt":"[java] @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); new CountDownTimer(10000, 100) { public void onTick(long millisecondsUntilDone) { Log.i(\"Seconds Left!\", String.valueOf(millisecondsUntilDone \/ 1000)); Toast.makeText(MainActivity.this, \"\" + String.valueOf(millisecondsUntilDone \/ 1000), Toast.LENGTH_SHORT).show(); } public void onFinish() { Log.i(\"We're done!\", \"No more countdown\"); } }.start();<\/pre> [\/java]","rel":"","context":"In \"Android\"","block_context":{"text":"Android","link":"https:\/\/www.cipv6.de\/worp\/index.php\/tag\/android\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":42,"url":"https:\/\/www.cipv6.de\/worp\/index.php\/2017\/12\/22\/run-task-in-background\/","url_meta":{"origin":470,"position":4},"title":"Android: run task in background","author":"ugu5ma","date":"December 22, 2017","format":false,"excerpt":"\u00a0 [java] package de.clarisweb.android.downloadwebcontent; import android.os.AsyncTask; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; public class MainActivity extends AppCompatActivity { public class DownloadTask extends AsyncTask\u00a0{ @Override protected String doInBackground(String... strings) { Log.i(\"URL\", strings[0]); return \"done !\"; } } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); DownloadTask task = new DownloadTask(); String\u2026","rel":"","context":"In \"Android\"","block_context":{"text":"Android","link":"https:\/\/www.cipv6.de\/worp\/index.php\/tag\/android\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":46,"url":"https:\/\/www.cipv6.de\/worp\/index.php\/2017\/12\/22\/android-listview-clicked-item-loschen\/","url_meta":{"origin":470,"position":5},"title":"Android Listview: clicked item l\u00f6schen","author":"ugu5ma","date":"December 22, 2017","format":false,"excerpt":"[java] package de.clarisweb.android.listview; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); final ListView myListView = findViewById((R.id.myListView)); final ArrayList myFamily = new ArrayList(); myFamily.add(\"P1\"); myFamily.add(\"P2\"); myFamily.add(\"P3\"); myFamily.add(\"P4\"); myFamily.add(\"P5\"); final ArrayAdapter arrayAdapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1, myFamily); myListView.setAdapter(arrayAdapter); myListView.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView adapterView,\u2026","rel":"","context":"In \"Android\"","block_context":{"text":"Android","link":"https:\/\/www.cipv6.de\/worp\/index.php\/tag\/android\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/posts\/470","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/comments?post=470"}],"version-history":[{"count":0,"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/posts\/470\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/media?parent=470"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/categories?post=470"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/tags?post=470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}