• Breaking News

    Tuesday, December 22, 2020

    Android Dev - Weekly Questions Thread - December 22, 2020

    Android Dev - Weekly Questions Thread - December 22, 2020


    Weekly Questions Thread - December 22, 2020

    Posted: 22 Dec 2020 06:00 AM PST

    This thread is for simple questions that don't warrant their own thread (although we suggest checking the sidebar, the wiki, our Discord, or Stack Overflow before posting). Examples of questions:

    • How do I pass data between my Activities?
    • Does anyone have a link to the source for the AOSP messaging app?
    • Is it possible to programmatically change the color of the status bar without targeting API 21?

    Large code snippets don't read well on reddit and take up a lot of space, so please don't paste them in your comments. Consider linking Gists instead.

    Have a question about the subreddit or otherwise for /r/androiddev mods? We welcome your mod mail!

    Also, please don't link to Play Store pages or ask for feedback on this thread. Save those for the App Feedback threads we host on Saturdays.

    Looking for all the Questions threads? Want an easy way to locate this week's thread? Click this link!

    submitted by /u/AutoModerator
    [link] [comments]

    How do you make UI beautiful? Tips, tricks, hacks and your process and rituals ?

    Posted: 22 Dec 2020 12:24 AM PST

    Discuss your UI dev process.

    submitted by /u/nerdscandal
    [link] [comments]

    Building a Custom Team Lineup View

    Posted: 22 Dec 2020 02:02 AM PST

    Hi all,

    During a redesign of an app, I needed to create a custom view for displaying a team lineup.
    I wrote a step-by-step guide that shows how I built it.

    You can read it here.

    submitted by /u/grivos
    [link] [comments]

    One toolbar for all fragments or one toolbar per fragment?

    Posted: 22 Dec 2020 04:59 AM PST

    One of the last large apps I had worked on, I had used a single shared toolbar in the host activity, which each fragment would interact with to change what was shown on it. It became a little tricky with the fragment lifecycle and often had to reset the state of the toolbar to make sure the old fragment's toolbar wasn't shown in the next fragment.

    An alternate approach would be to use a toolbar per fragment. Seems like a lot of redundancy here, but would solve the previous problem.

    Thoughts? Similar, but old thread: https://www.reddit.com/r/androiddev/comments/33n9dp/ui_design_one_activity_multiple_fragments_with/

    submitted by /u/rillweed
    [link] [comments]

    Convincing designers that their design is too iOS-centric for Android app

    Posted: 22 Dec 2020 03:07 AM PST

    I work on a big app and we have design team which is designing "2.0" of our app. The designs they have come up with are looking like its been ripped off straight from Dribbble where the mobile designs are disproportionally majority iOS-centric, or worse with any platform design guidelines taken into account. The designers I am working with, have already ran way too far with it, doing the "user testing" on it and poisoning the stakeholders with it. I probably stand no chance of convincing them to adhere, at least in some way to material principals, but part of me thinks I should still try and talk to them.

    What does anyone think I should say, how to approach it with the designers? I don't want to be rude, but some hard facts about their designs should be said I believe. Any advice?

    submitted by /u/CommercialBuilder99
    [link] [comments]

    Google's Autofill Password Manager Homescreen Shortcut

    Posted: 22 Dec 2020 06:53 AM PST

    Is there anyway to get a shortcut to Google's Autofill Password Manager on an android device's home screen? I'm trying a bunch of shortcut creating apps but none of them seem to get me to that function. I don't want to use third party applications to access my passwords. I don't fancy using a chrome shortcut too.

    submitted by /u/BASuhaib
    [link] [comments]

    Why this game targeting people who 7 age and above in Google Play but in their privacy policy targeting people who 16 age and above?

    Posted: 22 Dec 2020 03:47 AM PST

    Why this game targeting people who 7 age and above in Google Play but in their privacy policy targeting people who 16 age and above?

    Why this game targeting people who 7 age and above in Google Play but in their privacy policy targeting people who 16 age and above?

    Their Privacy Policy

    1. How do we process Children's Personal Information?

    Our Services are not designed for Children, and we do not intentionally or knowingly collect, use, store, disclose, or otherwise process any Personal Information from Children. A "Child" is a person under 16 years old. If you are a parent or guardian of a Child who has submitted Personal Information, please contact us by emailing us at [privacy@innersloth.com](mailto:privacy@innersloth.com).

    Their Targeting Audience In Google Play

    https://preview.redd.it/ap8qj0sc2q661.png?width=714&format=png&auto=webp&s=f6c874e133d4b368e97d2e04d6a4502b4c8b9562

    They should put target an audience is people who 16 age and above in Google Play, This must be a true violation, Right?

    There is a lot of games and apps that have the same mistake!

    Can someone tell me why?

    submitted by /u/haley250
    [link] [comments]

    What is the best workflow to use GitHub for a final year project?

    Posted: 22 Dec 2020 08:43 AM PST

    Im a final year student so im a solo dev. building an android app

    I want to optimise my workflow using git and GitHub so I'm wondering

    Here is what im planning

    1. Decide what the next feature is that I'm going to implement.
    2. Create a branch with a suitably descriptive name for the feature. I do this by clicking on the branch button in Github for Windows and typing a new name.
    3. Write some code.
    4. Commit those changes to my new branch.
    5. Write some more code.
    6. Commit those changes to my new branch.
    7. I've finished implementing the feature so I want to merge my changes back to the master branch. So I click on the 'manage' button underneath the branch heading.
    8. Merge the new branch into the master branch.
    9. Go to 1 to implement a new feature

    is this wrong? I want to keep the branches because I what to show my supervisor how i broke my application down but is this good?

    I see other people separate their branches into

    • Master and origin (remote)
    • Development
    • Feature(s)

    https://sdlambert.github.io/2015/04/09/git-workflow-for-solo-development/

    Is the development branch needed considering im solo?

    submitted by /u/TheConMan1234
    [link] [comments]

    How do you measure the success of your apps

    Posted: 21 Dec 2020 10:39 AM PST

    I have three apps in the playstore which all do live by user generated content.

    First one is like meetup but only for social volunteering organized by the members.

    Second one is an app to let gamers create adverts to find people to play with meeting certain criteria.

    Third app is to find other musicians to make music or found a band.

    On the first app I do get daily installs and almost 1 or 2 registrations per day. But so far only two adverts have been created which I think is due to Corona. Since three months I got 80+ users. Second app gets a bit more installs but so far has only 2 registered users since 2 months. Last app does rarely get installs and no registrations since 2 months.

    First app does have three 5* ratings and the second one has two of them.

    Would you consider the first app as a current success? I think those kind of apps have it difficult because they rely on people meeting which is not allowed in my country right now.

    I thought the second app could be more successful but apparently people are not really interested in such kind of app.

    I consider the third app as a failure and removed it from store today.

    What are your thoughts? How do you measure the success of your apps (preferably those who live by user generated content)?

    submitted by /u/fhinbelmir
    [link] [comments]

    What is the repository of arm32 kernel in googlesource and what is the difference between platform/system/security and platform/tools/security?

    Posted: 21 Dec 2020 10:42 PM PST

    I want arm32 source repository to clone for my device. And there are two repositories for security in googlesource. Which should I clone for my device system?

    submitted by /u/me_sajied
    [link] [comments]

    Too slow android studio on my mac mini m1

    Posted: 21 Dec 2020 11:12 PM PST

    I'm too new to macs. I just downloaded android studio and auto complete was too slow. Is there any people that has the same issue with me?

    submitted by /u/philosopher_ibrahim
    [link] [comments]

    If the google play account got terminated so is it will block the new accounts?

    Posted: 22 Dec 2020 02:19 AM PST

    I made an app for a customer 3 months ago on my computer but 1 week ago his account on google play got terminated because I think he broke the rules, and I was working on the new idea of an app to publish on google play but I am hesitating now.

    I am hesitating because I think if I publish the app will block my account because the account that has got terminated has my computer information like SHA1, SHA256, and MD5.

    Do you have any suggestions to solve this problem and publish my apps without problems?

    I realized I shouldn't generate release.apk on my pc for customers because it will affect my account in the future.

    submitted by /u/haley250
    [link] [comments]

    how can I develop my skills in Android development

    Posted: 22 Dec 2020 06:00 AM PST

    Hello everyone I know maybe the title weird but I need to know more about your experiences , recently I finished my android development course using Java , so I can create a small apps I think not bad for a beginner , what I want to know that how I can develop myself in Android field is there any online recourses that will help me a projects to try ….etc.

    submitted by /u/abood2001M
    [link] [comments]

    How do you handle navigation graphs?

    Posted: 21 Dec 2020 07:51 PM PST

    Currently I'm using bottom nav without having a nav controller for each tab. I put the bottom nav inside a bottom nav host fragment. The idea was that tge activity have a main nav graph that only has bottom nav host fragment. After maintaining for a while, I start to have a lot of fragment deceleration inside this main nav graph, the reason being that for the child bottom nav to push a fragment on top of bottom nav host fragment, the fragment has to be defined inside main graph, same level as bottom nav host fragment.

    So a navigation that's related to Tab A, say A detail fragment is inside main nav, Tab B detail fragment is inside main nav and so on. Is there a way for me to split this without having a nav graph for each bottom nav child fragment

    A way I see is now is to use deep link for all forms of navigation but it seems extreme. I found it really weird that include nav graph does not allow me to navigate directly with fragment id inside of that graph

    submitted by /u/renges
    [link] [comments]

    Adobe XD for UI Development

    Posted: 22 Dec 2020 04:25 AM PST

    Has anyone used Adobe XD for UI/UX designing of a mobile app, with both flutter and Native options. How's the final code quality after implementation?

    submitted by /u/Dear_Gain
    [link] [comments]

    Create a custom Android SearchView

    Posted: 22 Dec 2020 04:17 AM PST

    Create a custom Android SearchView

    I'm trying to implement a custom search-view in android, image attached at bottom :

    So I designed my menu like this :

    <?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"> <item android:id="@+id/action_search" android:icon="@drawable/search" android:orderInCategory="100" android:title="@string/search_allover" android:actionLayout="@layout/home_search_view" app:actionViewClass="androidx.appcompat.widget.SearchView" app:showAsAction="collapseActionView|ifRoom" /> </menu> 

    And ActionLayout is like this :

    <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <Spinner android:layout_width="100dp" android:layout_height="wrap_content" android:entries="@array/home_search_item" /> <SearchView android:layout_width="0dp" android:layout_height="match_parent" android:layout_marginEnd="5dp" android:layout_marginRight="5dp" android:layout_weight="1" android:background="#FFFFFF" android:queryHint="Let us help with you're looking" /> </LinearLayout> 

    And I have defined String-Array in string :

     <string-array name="home_search_item"> <item>Everywhere</item> <item>Course Name</item> <item>Course Code</item> <item>Instructor</item> <item>Representative</item> <item>Percentage</item> </string-array> 

    But the spinner never shows up, I think ActionLayout is not being called. as the query-hint says : "Search", instead of provided text by me.

    In future I've plans to use some badges there, like user searching for "xyz" in different aspects, such as "medicine", "housing" etc. So inflating a custom fragment seemed feasible to me.

    https://preview.redd.it/5dooz71ddq661.png?width=1080&format=png&auto=webp&s=0058f85f8424de6e00e9c8fb109e3db2d2bcb9e2

    submitted by /u/maifee
    [link] [comments]

    WebView in fragment doesn't load any webpage, kotlin, android

    Posted: 22 Dec 2020 02:38 AM PST

    Questions about using play store early access.

    Posted: 21 Dec 2020 04:48 PM PST

    Sorry if this type of post is against the sub rules but I have a little app I have been working on and was looking into early access on the play store as a way of releasing my app and had a few questions first.

    Is the early access program worth doing, or am i better off just releasing my app normally? I'm not sure if its common to use early access because i havnt seen many posts about it here.

    If you do use early access are you still allowed to monetize your app or do you have to wait until you release it to have ads and stuff?

    Anyone have experience releasing their app through early access and have any advice in the topic?

    Appreciate any responses.

    submitted by /u/InsaneTeemo
    [link] [comments]

    Google Play Store won't give my app the 50K download badge

    Posted: 22 Dec 2020 03:30 AM PST

    I recently had an app cross 100K and the Play Store listing was updated within a few days. Now, another app crossed 50K downloads (its now on 52K) and it still says 10K on the Store listing page. Should I not have the 50K badge by now?

    submitted by /u/zimspy
    [link] [comments]

    In-App Update

    Posted: 21 Dec 2020 09:40 AM PST

    I have been trying to integrate in-app updates to my android app. I have successfully tested that through the internal app sharing and it is working fine there but it is not working in the production. What could be the possibile reason for that? Any help would be appreciated thank you.

    submitted by /u/abhinav12k
    [link] [comments]

    Me, myself and SDK

    Posted: 21 Dec 2020 08:50 AM PST

    A SDK has a lot of functions which you can incorporate in your project to make the development phase faster but it doesn't contain any actual source code right? I'm sorry for the dumb question...

    submitted by /u/Japs6991
    [link] [comments]

    How to write bluetooth data to Array or text file??

    Posted: 21 Dec 2020 01:33 PM PST

    How to write bluetooth data to Array or text file??

    Hey everyone, I am beginner at Java and android developping.

    My goal is to write and save the data which I get from arduino via bluetooth. I want to save that data to an Array or to .txt file. I found a similar project that reads the bluetooth data but I couldn't convert it to use it on my own project. The code is

    https://preview.redd.it/fajffh6ozl661.png?width=985&format=png&auto=webp&s=840cd911b98f02cf7fbc815347734e174231b2be

    submitted by /u/cynestra
    [link] [comments]

    Growing as an Android/Mobile dev

    Posted: 21 Dec 2020 08:50 AM PST

    Hey,

    I've found this desire and an ambition to become a mobile dev. I have some coding experience but most of it was just programming tasks for my uni with C/C++/Java, I haven't coded for myself a lot so I'm basically a beginner. I'm a QA junior software test engineer where I test bugs and features on a wide range of Android and sometimes iOS devices. I really enjoy my job and want to continue to grow in this area but as a developer. Over the past few weeks, I've been messing around with Android Studio and have created a few really basic apps using Java.

    I'm trying to phrase this as clear as I can but my question would be: what would be the most efficient and smart way for me to really step up my game and make a significant jump as an Android developer? Should I continue just creating new apps with Java, should I learn JS or Kotlin? Should I be investing time in all of them (I have quite a lot of free time for this now)? What are the most valuable skills an Android/Mobile dev should have? Do I need to just make a decision if I want to strictly be an Android or a Mobile dev? Is learning to code in Java still a competent skill in 2020 or developing for cross-platform with JS would be a wiser choice?

    Also, what form of learning would be the most advisable? Just working on projects and learning stuff along the way or buying books, doing tutorials, and going through courses on various platforms?

    I have a weird affection for Android's ability to root and customize almost everything. Is a low-level/system developer for the Android platform an actual career path and are this kind of developers needed anywhere?

    Is there a particular place where I could find a mentor that would guide me along my journey and would that be a valuable thing to do?

    Thanks and any suggestions and advice would be really appreciated!

    submitted by /u/_Makas
    [link] [comments]

    Is there a way in the play dashboard to view device models an app is installed on?

    Posted: 21 Dec 2020 12:21 PM PST

    e.g., Pixel 5 or Note 9, etc. Motivation is so I can focus testing towards the most popular devices with installs.

    submitted by /u/eliza8418
    [link] [comments]

    No comments:

    Post a Comment