• Breaking News

    [Android][timeline][#f39c12]

    Monday, February 25, 2019

    Weekly "who's hiring" thread! Android Dev

    Weekly "who's hiring" thread! Android Dev


    Weekly "who's hiring" thread!

    Posted: 25 Feb 2019 04:45 AM PST

    Looking for Android developers? Heard about a cool job posting? Let people know!

    Here is a suggested posting template:

    Company: <Best Company Ever>
    Job: [<Title>](https://example.com/job)
    Location: <City, State, Country>
    Allows remote: <Yes/No>
    Visa: <Yes/No>

    Feel free to include any other information about the job.

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

    Weekly Questions Thread - February 25, 2019

    Posted: 25 Feb 2019 02:57 AM PST

    This thread is for simple questions that don't warrant their own thread (although we suggest checking the sidebar, the wiki, 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?

    Important: Downvotes are strongly discouraged in this thread. Sorting by new is strongly encouraged.

    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]

    I have unpublished my opensource app from Play Store yesterday...

    Posted: 25 Feb 2019 12:16 AM PST

    I have realized yesterday that Play Store was a source of a constant stress recently. And for what? For an app that I develop as a fun-time activity and having absolutely zero profit from it. Recent SDK/API changes has forced me to kill/change some functionality that people liked and people were blaming me, not google. (For example things like customizable notifications with ability to change LED color or vibration pattern).

    So I went into the console, unpublished everything. Mostly one app with 9k active users. It feels like ... a peace.

    Those active users would still have the current prod build. New users would have to get it from F-Droid.

    Now I can develop for fun again, not for stress.

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

    Advocating for Better Android Fragments

    Posted: 25 Feb 2019 08:16 AM PST

    Static image with a moving phone?

    Posted: 25 Feb 2019 11:17 AM PST

    I was wondering if anyone knows if its possible to use a phones accelerometer to detect a phones movement and move the onscreen image accordingly so that it remains static relative to space while the phone is able to move around to look at different parts of the image. I want the phone screen boundry to serve as a mask for the underlying image, sort of like having a window that you can move around to see different parts of the outside world.

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

    Android Developers Backstage Episode 109: Jazz Hands

    Posted: 25 Feb 2019 02:59 PM PST

    I want to add a simple notepad within my android app. Is there any library to do it?

    Posted: 25 Feb 2019 11:27 AM PST

    Started building an app for a jerk WITHOUT ANY ADVANCE PAYMENT, made it clear initially that it'll take 2 months. He later forced me to work my ass off and get thing done in 20 days. Worked late night and after a month he refused to pay a dime. Any developer with such bad experience?

    Posted: 25 Feb 2019 07:25 AM PST

    Getting Started with C++ and Android Native Activities

    Posted: 25 Feb 2019 03:34 PM PST

    What platform should I be using if I want to attempt making a small game to publish on the Play Store?

    Posted: 25 Feb 2019 03:26 PM PST

    I am a developer who has used Android Studio in the past to make and publish non game apps, I also have heard of the likes of Unity and Game Maker: Studio. I was wondering if I am just planning to develop and release a game app that I would like to monetize (in app purchases, ads etc) what platform would be less of a headache? Having lurked and read alot of the complaints on this sub I feel it would be best to ask.

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

    In-App Revenue dropped to 0?

    Posted: 25 Feb 2019 04:45 AM PST

    My in-app revenue on the Google Play console dropped to 0 the past 2 days (since Feb 23). However, Facebook analytics looks like everything is okay. Is this a bug anyone else is seeing or should I be concerned?

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

    Uploading APK to PlayStore

    Posted: 25 Feb 2019 03:12 PM PST

    I'm hopefully ready to make a fool of myself and upload my APK to the Play Store. I can copy my signed APK to my phones and my app runs there, no problems. I created a Dev Account with Google. etc.

    The app was written in VS/Xamarin.

    I have a Manifest file (VS creates that automatically). I have a keystore (but I'm unclear about that...I mean, who am I to validate a key?). BUT when I try to upload the app I get this error:

    Error from apksigner: ERROR: JAR_SIG_NO_MANIFEST: Missing META-INF/MANIFEST.MF

    What do I do with that?

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

    Confusion on Firebase UI Auth. How do you set up the layout?

    Posted: 25 Feb 2019 03:11 PM PST

    I've been reading several Firebase UI Auth instructions both official and unofficial tutorial, but I am still confused where the layout is created.

    For example, in the original tutorial, it tells you how to customize the layout, but nowhere does it mention how to create the layout.

    So do we not have to manually or explicitly create the layout? After following the code, is the layout created on the fly? I must be reading something wrong because all the instructions work on gradle file and java file, but not within the layout file, so I just want to understand how the layout is automatically formed.

    submitted by /u/i-brute-force
    [link] [comments]

    Navigation in Modular Applications with Deep Linking

    Posted: 25 Feb 2019 02:21 PM PST

    Help a noob with current student project/dissertation! (sorry if not allowed)

    Posted: 25 Feb 2019 10:02 AM PST

    sorry if this type of post is not allowed. I have an app receiving a 'severity level' [0,1,2] via Bluetooth interface from an Arduino which is monitoring inertial forces to detect and categorise a crash. The data is being read in through a ConnectedThread class run() method (part of my BluetoothConnectionService.java), and being assigned to a String variable incomingMessage. I think I need to use Intents to carry this message from the ConnectThread into my MainActivity.java where I will have 3 different methods with different actions depending on the severity of the crash. I was thinking of using explicit intents to broadcast the incomingMessage and using a BroadcastReceiver in the MainActivity.java to collect the information, then use a switch statement within the onReceive to implement the different methods. I am an engineering 3rd year student, my project focus is on the electronics im using to monitor and detect crashes. This app is purely for demonstration purposes for my project defence. Ive been taught basic C++, my knowledge of java is limited to what ive self-taught by running simple programs in the command prompt. Ive somehow managed to get the application working, connecting to BT devices, reading data and saving contacts. However, I'm having trouble on getting the data from the ConnectedThread to my MainActivity, I feel like the solution is very simple, but I'm just confusing myself now. Would a kind soul please show me an example of what I'm looking for, I know I'm being lazy but I'm out of my depth here and should be spending my time doing other assignments and working on other components of my project. I can provide the code I'm using on request, I hope I have provided enough info. I feel it's a generic question so thought the code wouldn't be needed. Thank you in advance to anyone that can assist me !!

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

    Streaming Video on Android using ExoPlayer – Navendra Jha – Medium

    Posted: 25 Feb 2019 07:08 AM PST

    How would you take care of fragment transactions

    Posted: 25 Feb 2019 12:52 PM PST

    Hi,

    I wonder what would you guys do in case of replacing a fragment? Do you handle it wirh commitAllowingStateLoss? Any best practices about fragment transactions?

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

    how to force only the tab layout to be hidden when soft keyboard is visible?

    Posted: 25 Feb 2019 10:36 AM PST

    I have a tab layout and in my profile tab (fragment) there are lots of edit texts and when you tap on one of the edit texts the keyboard comes up and it used to push up the tab layout above the kwyboard, so I added to the activity's manifest the windowsPan thing that prevents resizing of views inside the activity when the keyboard shows up, the only problem now is that when the keyboard focuses on the bottom edit texts they are hidden beneath the keyboard and you can't see what you are typing...

    So my question is how can I force only the tab layout to stay beneath the keyboard when it comes up, but let the rest of the view resize to adjust to the keyboard taking half the screen space...?

    Thanks in advance, and sorry if this is not the right place to ask questions :)

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

    #7 RxJava - Cold Observable, Hot Observable and Connectable Observable

    Posted: 24 Feb 2019 09:28 PM PST

    Navigation component: what's the pattern on processing the result of an operation after using popBackStack to go back on the navigation tree?

    Posted: 25 Feb 2019 09:54 AM PST

    My (yet to be released) app keeps record on the games you've played and for each game you can add various resources like photos, PDF files, small drawings (for doodling maps and such) and URLs you can use to link walkthroughs and so on.

    Imagine I want to add a link to a gamefaqs walkthrough. From the game details screen I choose "add link" and that triggers a navigation to another fragment with a webview. From that I navigate to gamefaqs, choose the walkthrough and "accept" and that will pop the webview fragment out of the back stack back to the game details page.

    What's the best way to handle processing the action and handling the navigation?

    I tried figuring out some of my options and came down to these:

    • Webview fragment calls "navigate" with an action pointing to the game detail page and with the option of popping itself out before navigating, then pass the chosen URL as an argument so the game details can grab it and do the actual process of saving the URL to the game.
    • Have a ViewModel tied to the hosting activity have a LiveData with the actual game and all fragments that can act on that game share this ViewModel. Webview fragment will call a webview method to do the saving and will call popBackStack. Since Game Details has access to the same game through the live data it will already have access to the URL
    • LiveData only has an "event" and whoever consumes the event should act on it. The webview will post an "url chosen" event with the URL and call popBackStack. Game detail fragment will observe this live data, consume the event and do the actual saving

    This is just an example, there are other cases like this but essentially all of them share this behavior of one fragment doing an action that the previous fragment on the navigation tree is interested in, then the fragment wants to report back and close itself.

    Is one of these options the best way to deal with such cases? Which one? Is there some other way? Are there any caveats I should be aware of?

    Any help is appreciated. Thank you

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

    Cheapest Worst Android phone with version 8

    Posted: 25 Feb 2019 03:35 AM PST

    I'm done testing my app on some dumb emulator so I'm looking for some cheap phone to play with that supports at least Android version 8.0

    Coming from Apple I have no idea what to look for. Do you guys have any recommendations?

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

    Is it now unreasonable to rely on screen resolution?

    Posted: 25 Feb 2019 01:43 AM PST

    The way I approach developing games is perhaps oldschool. But its what makes most sense to me. Find out what the resolution of the device's screen is. Now this is my playground. I will draw things where I want them to be precisely at the coordinates and scale I want.

    But what's been happening with screens last this and last few year is starting to seriously challenge that approach. The rounded corners on Galaxy S8 was only a sign of whats to come. Next they started to put notches in which ever place at the top of the screen they want. And now foldable phones, which pretty much changes aspect ration and resolution on the fly.

    Is my approach now obsolete? Is there a way to abstract away from all this nonsense, so I can ignore it, get my legit x by y keep programming the way I like?

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

    Which devices or brands cause the most fragmentation issues?

    Posted: 25 Feb 2019 04:19 AM PST

    Our app is well tested (UI and unit) and supports back to API 19. It was to our annoyance that we found that the app crashed out on specific Samsung devices due to our use of the emojicompat library. What are other particular fragmentation issues to look out for?

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

    Creating first app

    Posted: 24 Feb 2019 05:49 PM PST

    So since I have more free time I decided to pursue one of my bucket list goals - release an app or a game on android.

    Now I have some experience (very small, just a university course) with programing in c++ but that definitely isn't enough. So I started doing that one very positively reviewed course on udemy for learning java programming. So far its going great.

    So the question is, how much programing is enough to start? I know that no matter how much I learn it'll still never be enough, but I like learning through practise. Also maybe someone has any good suggestion for another resource I could start learning from?

    As far as I understood, basic java skills and basic android dev studio skills should be enough to make something simple, but I would definitely like to make something more than simple along the road.

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

    Custom Views, Kotlin properties and Databinding, oh my...

    Posted: 25 Feb 2019 06:45 AM PST

    I've been reading up on databinding with Kotlin lately, and found the property binding solution quite nice. For those unaware, you can do the following:

    @set:BindingAdapter("visible") var View.visible get() = visibility == VISIBLE set(value) { visibility = if (value) VISIBLE else INVISIBLE } 

    And it will generate a valid binding adapter.

    This type of extension method databinding is great if you want to expand an existing view, but barely usable with custom views where you write your own properties. And guess what - databinding in a class, on a property, does not work for some reason. So while the above piece of code works, this does not:

    class MyView(...): View(...) { init {} @set:BindingAdapter("value") var value: Int = 0 set(value) { field = value updateMyControlOrWhatever() } } 

    This will fail to build, as for some reason this way of creating a BindingAdapter won't include base class instance (unlike the extension methods do).

    For this, it would be an awesome thing if an extra compile-time check could be added, and the databinding could be generated in a valid manner.

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

    Can we get one of these for Android too?

    Posted: 25 Feb 2019 12:12 PM PST

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel