{"id":517,"date":"2026-03-14T16:12:32","date_gmt":"2026-03-14T16:12:32","guid":{"rendered":"https:\/\/renegrothmann.de\/?p=517"},"modified":"2026-03-14T16:12:32","modified_gmt":"2026-03-14T16:12:32","slug":"developing-traps-with-android-studio","status":"publish","type":"post","link":"https:\/\/renegrothmann.de\/?p=517","title":{"rendered":"Developing Traps with Android Studio"},"content":{"rendered":"\n<p>I recently started a new project developing a simple Android App. Over the years, I have completed many apps, most for my own fun and not math related. The list is longer than I thought. <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Some word books, English-Spanish, English-German, English-Esperanto, German-Interlingua and English-Interlingua. I got the words for these apps for free. The apps simply search through the content.<\/li>\n\n\n\n<li>A Sudoku implementation, also generating problems.<\/li>\n\n\n\n<li>A Depth-Of-View Calculator.<\/li>\n\n\n\n<li>A Numbers game like the old quizz show Le Chiffre on French TV. You have to build a target using given numbers and basic arithmetic.<\/li>\n\n\n\n<li>A Kalah Game, playing stronger than I do.<\/li>\n\n\n\n<li>A Music Memory.<\/li>\n\n\n\n<li>A Prima Vista sight singing trainer.<\/li>\n\n\n\n<li>A Game for Kids to repeat light patterns on a 4&#215;4 grid, optionally with sounds.<\/li>\n<\/ul>\n\n\n\n<p>All of them are free and do not show any ads, a fact that Google does not like. I get offers to monetarize my apps from time to time which I reject.<\/p>\n\n\n\n<p>The older apps were developed on Eclipse with the Android plugin. This does no longer work. I had a hard time to import them into Android Studio. I develop in Java and that is not the main target in Android Studio anymore. Some of my apps still do not work properly. I do no longer update them.<\/p>\n\n\n\n<p>Now, I do no complicated layouts anymore. I try to get by with a simple canvas to draw on, plus a menu for help etc. The recent version of Android has made that more difficult than before. I still have no good way to prevent the <strong>menu bar<\/strong> from covering my content. Currently, I use guesswork and leave some space from the top with a top indent. It seems to be the case, that only newer Android versions can be asked for the necessary space for the indents. I hate that kind of version switches.<\/p>\n\n\n\n<p>If you have a working app, you want to clone it for another app, and just modify the content. Google Play requires to have different <strong>name spaces<\/strong>. If you just refactor the sources, the <strong>R module<\/strong> will not be found. I still do not know a safe way to fix this. Just look through all your XML files and cradle scripts for anything that refers to the old name space.<\/p>\n\n\n\n<p>Due to a crash of my main computer and my negligence to backup, I lost my <strong>keystore<\/strong>. Android Studio kann now generate a new key. But Google Play will no longer let me update my old apps. The only way you can prevent this, is by using Google App Signing. I am still trying to figure that out.<\/p>\n\n\n\n<p>I test my apps on my devices using a <strong>sideload<\/strong>. Google does prevent this now. As soon, as you uploaded the app to Google Play, it will stop working. The solution is to use a different key for the sideloaded APK. Use another one for the AAB you upload to Google Play.<\/p>\n\n\n\n<p>The included <strong>emulator <\/strong>stopped working. My tries to fix this may have been the cause of my computer crash. I reinstalled with a new Windows 11 version via a stick, generated by the Windows tool available on Microsoft&#8217;s page on my laptop. Make a backup stick now. Even better make one every month. <\/p>\n\n\n\n<p>In the new Windows 11, I also have a new Android Studio. Gladly, I did <strong>backup <\/strong>my sources and was able to open them with the new version. <\/p>\n\n\n\n<p>I had to create new <strong>Android devices<\/strong> for the emulator a few times, because it did not respond. There might be an easier fix for this. Now, everything is working.<\/p>\n\n\n\n<p>So far about my recent Android Studio adventures. I will probably come back here and a bit more of that nuisance. This is really stealing my time.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently started a new project developing a simple Android App. Over the years, I have completed many apps, most for my own fun and not math related. The list is longer than I thought. All of them are free and do not show any ads, a fact that Google does not like. I get [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-517","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/renegrothmann.de\/index.php?rest_route=\/wp\/v2\/posts\/517","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/renegrothmann.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/renegrothmann.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/renegrothmann.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/renegrothmann.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=517"}],"version-history":[{"count":1,"href":"https:\/\/renegrothmann.de\/index.php?rest_route=\/wp\/v2\/posts\/517\/revisions"}],"predecessor-version":[{"id":518,"href":"https:\/\/renegrothmann.de\/index.php?rest_route=\/wp\/v2\/posts\/517\/revisions\/518"}],"wp:attachment":[{"href":"https:\/\/renegrothmann.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=517"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/renegrothmann.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=517"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/renegrothmann.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}