• Breaking News

    [Android][timeline][#f39c12]

    Monday, January 1, 2018

    Weekly "who's hiring" thread! Android Dev

    Weekly "who's hiring" thread! Android Dev


    Weekly "who's hiring" thread!

    Posted: 01 Jan 2018 04:46 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 - January 01, 2018

    Posted: 01 Jan 2018 02:55 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]

    Caching With Realm and RxJava

    Posted: 01 Jan 2018 09:28 AM PST

    Basic fragment help needed

    Posted: 01 Jan 2018 02:56 PM PST

    Is it bad practice to put a navigation drawer in a fragment rather than the activity?

    I'm wondering this because I'm facing an error where when I open the drawer, pressing the back button closes the app, but I just want it to close the drawer.

    This would be an easy fix if I could implement

    OnBackPressed() 

    But I can't because navigation drawer is declared in the xml of the fragment, not the activity.

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

    Video Compression on Android

    Posted: 01 Jan 2018 09:51 AM PST

    So I have an app where videos can be heavily shared, and I was wondering what the best way to compress them is.

    Videos can be generated by using a camera library (where it's a little easier since I can control the bitrate), or by selecting a video from the device (where the file size can be unbounded).

    I see that WhatsApp compresses really large videos really quickly, so I'm trying to model my solution off theirs.

    So far my research has shown that my options are:

    1. ffmpeg - difficult to get working and adds a lot to the APK size

    2. MediaCodec - could be complicated, not sure about speed

    3. 3rd party Java libraries - I found some libraries meant for low level video tweaking that are totally Java, but they also seem kinda complicated

    Anyone have any experience with this, or have any suggestions?

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

    Perks of being an Associate Android Developer – Cyril Pillai – Medium

    Posted: 01 Jan 2018 12:32 AM PST

    Any NDK pre-built binaries for common external libraries?

    Posted: 01 Jan 2018 12:13 PM PST

    I like C and SDL2. I've managed to compile shared libraries for it (and submodules) with the NDK that I load in my Activity. Annoying, but no problem.

    I saw that Android now wants me to use CMake. I use it for my own C code, but I've used ndk-build for the SDL2 libs because they use the old Android.mk format.

    My problem is that now I want to use cairo and pango with SDL2. I can do it for desktop, but I'm having a real hard time compiling those libraries myself for android. They have a lot of dependencies.

    I've looked at projects online, and found a couple people with old solutions that no longer work (due to changes in the NDK for functions in stdlib for example). I've tried hacking them to no avail (they were ericwlange's hemroid and dec1's tux-paint , both on github).

    What I'd love is to learn if there is a repo out there where binaries for common libraries like libpng, cairo, SDL2 are pre-built for various API level each time the NDK gets an update. Then we could just use them, instead of having to figure out each time how to build them. Does such a repo of binaries exist?

    Thanks,

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

    What kind of reviews do you reply to your app?

    Posted: 01 Jan 2018 02:13 AM PST

    Hey, I am curious about what kind of reviews should be replayed. I mostly reply those who write some suggestion or complain. Is that okay? Moreover, replaying can also affect the ranking or not? Please share your thoughts.

    Thanks

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

    Is this true?

    Posted: 01 Jan 2018 03:42 PM PST

    so I've heard stories of many who unwillingly started out as a sole android developer for the company, unable to get help from non-existent peers forced to be responsible for everything.

    Is this a common occurrence?

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

    Fotoapparat v2 - The Kotlin Era

    Posted: 01 Jan 2018 08:10 AM PST

    Does anyone know if it's legal to use interstitial ads for rewards instead of videos while using adMob

    Posted: 01 Jan 2018 01:54 AM PST

    For this new app I'm developing I had the idea for interstitial for rewards other than videos, since videos are pretty annoying for users in my experience. Just wondering if it's legal since the user might be able to click away really quickly, making it bad for adMob. Wouldn't wanna get banned haha.

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

    My motivation to create a universal RecyclerView Adapter - Medium

    Posted: 01 Jan 2018 08:48 AM PST

    How can I allow the user to choose a zip file through Storage Access Framework?

    Posted: 01 Jan 2018 08:20 AM PST

    Tearing what's left of my hair out trying to search out a solution to this, but I can't find it.

    I have an app which allows the user to export and or import bulk data either through a CSV or a zipped-up bundle containing multiple files.

    At present it uses a third-party library (ar.com.daidalos.afiledialog) but I'm trying to migrate to the Storage Access Framework, which users are more likely to be familiar with (and also looks more "android-y"). The current library can't use Drive, which is extra functionality I'd like to add.

    I've got it working so that exports to both formats work. And I can choose a CSV file to read using:

    Intent intent = new Intent(); intent.setAction(Intent.ACTION_OPEN_DOCUMENT); intent.addCategory(Intent.CATEGORY_OPENABLE); intent.setType("text/*"); startActivityForResult(intent,4); 

    But when I change the type to "application/zip" (or anything looser, for that matter), the file chooser treats the zipfile as another directory and displays its contents.

    So the question is, how do I tell the chooser to pick the zipfile rather than descending into it? I have to use a zipfile, because existing users already have data exported in that format which they may need to read.

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

    Android UI Testing a Long Click and Drag gesture

    Posted: 01 Jan 2018 05:49 AM PST

    In my application, I have a feature such that a user is able to re-order items in a list, by long clicking to create a drag shadow, which the user can then drag and insert at a position of choice. Once dropped, the items are re-ordered.

    I am struggling to develop a UI test for this. I am able to either successfully long click on the item, to create the drag shadow OR implement a dragging motion. I seem unable to combine the two, into one motion.

    I am using Espresso and Barista in my Android UI Tests.

    For the long click I used Barista's API:

    longClickOn("ITEM"); 

    For the dragging motion, I attempted to create my own Espresso ViewAction:

     return new ViewAction() { @Override public Matcher<View> getConstraints() { return isAssignableFrom(ViewGroup.class); } @Override public String getDescription() { return "Swiping child " + srcIndex + " to child " + destIndex; } @Override public void perform(UiController uiController, View view) { ViewGroup parent = (ViewGroup) view; final View srcChild = parent.getChildAt(srcIndex); final View destChild = parent.getChildAt(destIndex); final CoordinatesProvider srcCoordinatesProvider = new CoordinatesProvider() { @Override public float[] calculateCoordinates(View view) { int[] location = new int[2]; srcChild.getLocationInWindow(location); float x = location[0] + (view.getMeasuredWidth() / 2); float y = location[1] + (view.getMeasuredHeight() / 2); return new float[] {x, y}; } }; final CoordinatesProvider destCoordinatesProvider = new CoordinatesProvider() { @Override public float[] calculateCoordinates(View view) { int[] location = new int[2]; destChild.getLocationInWindow(location); float x = location[0] + (view.getMeasuredWidth() / 2); float y = location[1] + (view.getMeasuredHeight() / 2); return new float[] {x, y}; } }; GeneralSwipeAction swipe = new GeneralSwipeAction(Swipe.FAST, srcCoordinatesProvider, destCoordinatesProvider, Press.FINGER); swipe.perform(uiController, parent); } }; 

    I've also posted on StackOverflow regarding the same question.

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

    Opening ambbmp file

    Posted: 01 Jan 2018 03:12 AM PST

    Hi guys, I'm trying to open a ambbmp file from "Space agency" to try and mod the textures, i understand that the .ambbmp format can't be edited because it's a video sequence of some sort. how can i acces the textures?

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

    Javadoc error while building AICP 13.1

    Posted: 01 Jan 2018 02:39 AM PST

    Here's the error: https://hastebin.com/ajuxewodog.scala I had some api error so I did make update-api and the next thing I know is this guy trying to feed on my frustration. Can anyone help me out with this? I've just started out building roms so please be a little elaborate while explaining Your help is appreciated :)

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

    Android - Interpret Screen Design from Server?

    Posted: 01 Jan 2018 02:32 AM PST

    We have a Windows Mobile application which is being migrated to Android. It has a large-ish number of forms (around 150). Given the complexity of the rewrite ahead of us, I am looking for as many shortcuts as I can find :)

    One of the options we are considering is as follows:

    • Move all the .NET code from the WM application to a server component.
    • Build or buy a component which runs on the Android device, but is a "mildly intelligent" interpreter.
    • Code which would in the past have acted on the form directly, would now act on an intermediate object.
    • This object would be passed back to the App which would render the output.
    • The user sees the screen, scans or keys in data and a new request is made back to the server.
    • I'm thinking of something similar to a terminal emulator - except I want to be able to do something a bit more "intelligent".

    For example, I would like to use different screen types to:

    • show some data in TextView objects display data in a table (something like a gridview) and allow selection of a row
    • enter some text
    • enter a date
    • select from a drop-down list

    Once the user completes the screen, the information entered is then sent back to the server for validation. The server will construct a new screen object and sent it back to the device.

    Would anyone be able to point me in the direction of a pre-built component we could purchase? Is this possible?

    Thanks in advance for any suggestions you might have!

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

    Discipline and Professionalism – Are you a Software Craftsman?

    Posted: 31 Dec 2017 10:55 PM PST

    I want to change the featured Image In my app, on every relaunch

    Posted: 01 Jan 2018 03:39 AM PST

    Hi People,

    I want to change a image on Activity everytime the app is relaunched but unable to do that. I've tried savedInstanceState but no gain.

    How can I achieve this thing?

    Thanks.

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

    Show Reddit: Social Proof In Your App Made Easy - proofSource (Product Hunt)

    Posted: 01 Jan 2018 04:31 AM PST

    Hi Everyone,

    Have you ever been even more excited to try a new restaurant because you see it's busy and popular? Have you ever purchased a product after a recommendation from somebody? That's social proof.

    We're working on a beta product to make social proof accessible for any app and website. Would love to get your upvotes and feedback on Product Hunt or here.

    https://www.producthunt.com/posts/proofsource

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel