• Breaking News

    Monday, January 20, 2020

    Android Dev - Weekly "who's hiring" thread!

    Android Dev - Weekly "who's hiring" thread!


    Weekly "who's hiring" thread!

    Posted: 20 Jan 2020 04:44 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 20, 2020

    Posted: 20 Jan 2020 02:56 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?

    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]

    Telegram-like theme switching with reveal animation explained (+tutorial)

    Posted: 19 Jan 2020 08:58 PM PST

    The Power of Types for Errors

    Posted: 20 Jan 2020 04:46 AM PST

    LiveData + Relation One to One -> I lose relation after relaunching app (reloading fragment?)

    Posted: 20 Jan 2020 06:15 AM PST

    Hey, I have problem with relations in my LiveData structure. There few situations that make "@Relation(parentColumn = "produktId",entityColumn = "produktId")val produkt: Produkt? " this variable(val) value null.

    1. Relaunching app. (after i close it completly and relauch i will lose every connection. Just ~~3 seconds after creating Fragment that contains Adapter with these elements.

    Do you have any ideas what could cause that problem?

    Relation:

    data class ZapasProdukt(@Embedded var zapas: Zapas?,

    @Relation(parentColumn = "produktId",entityColumn = "produktId")

    val produkt: Produkt?)

    Entities:

    @Entity(tableName = "zapasy", indices = arrayOf(Index("zapasId"),Index("produktId")))

    data class Zapas (

    @PrimaryKey(autoGenerate = true)

    @ColumnInfo(name = "zapasId") val zapasId:

    Int,@ColumnInfo(name = "produktId") val produktId: Int,

    @ColumnInfo(name = "dataOtwarcia") val dataOtwarcia: Date?,

    @ColumnInfo(name = "dataPrzydatnosci") val dataPrzydatnosci: Date?,

    @ColumnInfo(name = "ilosc") val ilosc: Int?,

    @ColumnInfo(name = "dniPoOtwarciu") val dni: Int?,@ColumnInfo(name = "sciezkaZdjecie") val sciezka: String?,@ColumnInfo(name = "status") val status: Int?,@ColumnInfo(name = "jednostkaokreslenie") val jednostkaokreslenie: Int?,@ColumnInfo(name = "czyZdjecie") val czyZdjecie: Int?

    )

    @Entity(tableName = "produkty",indices = [Index("produktId")])

    data class Produkt (

    @PrimaryKey(autoGenerate = true)

    @ColumnInfo(name = "produktId" ) val produktId: Int,

    @ColumnInfo(name = "nazwaProduktu") val nazwaProduktu: String?,

    @ColumnInfo(name = "jednostka") val jednostka: String?,

    @ColumnInfo(name = "sciezka") val sciezka: String?

    )

    DAO:

    @Transaction@Query("SELECT * from zapasy ORDER BY status ASC")fun findZapasy(): LiveData<List<ZapasProdukt>>

    Repo:

    val zapasyprodukt: LiveData<List<ZapasProdukt>> = zapasDao.findZapasy()

    ViewModel:

    val zapasDao =RoomDatabaseZap.getDatabase(application,viewModelScope).zapasdao()

    repositoryZapasy = ZapasRespiratory(zapasDao)zapasy = repositoryZapasy.zapasy

    zapasyprodukt=repositoryZapasy.zapasyprodukt

    ViewModel and Adapter connection in Fragment

    produktVM = ViewModelProvider(this).get(MyViewModel::class.java)

    produktVM.zapasyprodukt.observe(viewLifecycleOwner, Observer { words ->// Update the cached copy of the words in the adapter.words?.let { adapter.setProdukty(it) }})

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

    AR core, Gltf models not downloading from the server dynamically.

    Posted: 20 Jan 2020 07:44 AM PST

    So we are trying to develop an AR feature, where we are uploading the 3d files on the server storage and generating a path of the model ,( for eg: http://3535.352/folder/3d.gltf. )but when we are implementing it in the AR. Its say fail to render the model.

    A low poly 200kb model was able to load perfectly but all the higher size model are not rendering. Please guys help me out with this as I have searched everywhere but couldnt find a solution.

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

    Is it possible to broadcast text via Bluetooth like a HID keyboard?

    Posted: 20 Jan 2020 06:24 AM PST

    My client needs an app where he can input the text data and send it to another android device via Bluetooth. On the receiving device, the text should be inputted into currently active text field (doesn't matter if it's in settings, browser or any other app). My idea of this is to broadcast the text as HID so it behaves like a external Bluetooth keyboard. Is it possible to create such app?

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

    Can I get some pointers for a complete newbie

    Posted: 20 Jan 2020 05:18 AM PST

    I got a pretty nice idea for a survey app and I realy want to make it happen. I was always very interested in programming but with school and other things I never had enough time. Can you tell me what do I need to make this survey app? Thanks :)

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

    Pinch to zoom

    Posted: 20 Jan 2020 01:28 AM PST

    I'm working on videoview where you can pinch to zoom. I achieved this by , Doing Float factor = scaleGestureDetector.getScaleFactor(); But the problem is it only zooms into center no matter where i pinch . How to zoom into the center of pinch rather than center of screen

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

    Are there any apps which have taken layouts and animations to the next level?

    Posted: 19 Jan 2020 09:35 AM PST

    When I visit sites like Dribbble, I see a lot of beautiful layouts and animations. But when I actually use the apps, I rarely see any animations/transitions. Are there any apps that made you go wow recently?

    I really feel like there has been no innovation in terms of design quality in apps. I rarely/almost never see complex transitions being implemented in apps. I'd really like to see some apps which are really well made in design.

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

    Linking a activity to a fragment

    Posted: 20 Jan 2020 01:02 AM PST

    Hi! I'm currently developing an application. I have a tabbed activity, divided in 3 fragments. In one of them I have to access another activity ( think of WhatsApp and how you access a conversation) but I can't manage to link the activity to the fragment. If it helps, The object that links those 2 is a button.

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

    Complete Newbie Asking Questions

    Posted: 20 Jan 2020 12:57 AM PST

    Hello Android Dev's!

    I am hoping to develop a wireless wifi transfer application. What I'm hoping to do is use an approach somewhat similar to SHAREit. I want to make the application compatible with very old android versions and Windows (hopefully adding Linux and MacOS support eventually).

    Older Windows PC's are incompatible with android's file transferring system due to lack of system drivers and the removal of making Android appear as a USB drive didn't help either. I also noticed that applications also dropped support for Windows XP and Vista as their EOL came along. So, I am dreaming of making a wireless transfer application that can work with Windows 95 PC's and later. It frustrates me to see a Windows XP PC cannot directly transfer from a phone and is required to use an indirect method.

    If anyone here has experience with writing programs on older Windows and Android systems, please let me know! I'm currently a student in C++ and only know very basics so far.

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

    How to integrate Google OAuth in the android work profile?

    Posted: 20 Jan 2020 12:33 AM PST

    I am trying to build an application with has Google OAuth in it. I am able to build an application with OAuth for normal users but when running the application with the package name of my company and integrating OAuth in it. It does not work. Has anyone ever build something for android work profile? :(

    submitted by /u/do-on
    [link] [comments]

    Keep ADB enabled after rebooting?

    Posted: 19 Jan 2020 04:47 PM PST

    Since a security patch last year (May, I think), Android turns off ADB after rebooting. Is there any way to change this (with our without root)? If not, does anyone know where the AOSP commit that did it is?

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

    Book review App

    Posted: 19 Jan 2020 07:49 PM PST

    I need to build a book review app with node JS rest API in the back end. How do I start? please help!

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

    Can I do a GUI using C++? (My app is already written in C++)

    Posted: 19 Jan 2020 02:14 PM PST

    I have a finished app using C++ and sqlite. I was wondering if I can port it to android. I'd like something simple like a one screen GUI with a few buttons and a lot of text. Being about to send a notification would be nice too.

    Can I do that with native C++? Or would I require some Java to access that? Every time I look online they say Java is required

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

    Like to start developing mobile app

    Posted: 19 Jan 2020 05:33 PM PST

    Hi i am new to this. What are the software that is free for me to start developing a simple app? Or how can i get started doing hands on? Have no programing background. Understands html,sql. Any advice is great!

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

    [Android] App rating and review libraries: configuring when to prompt

    Posted: 19 Jan 2020 12:30 PM PST

    Instant apps and arcore

    Posted: 19 Jan 2020 11:40 AM PST

    Are there any support available for instant apps with arcore. I am trying to develop something in the likes of a QR code that opens app and shows an AR object.

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

    Multiple Minigames in one App?

    Posted: 19 Jan 2020 10:17 AM PST

    I have a bunch of minigames I coded in Java, and I want to put them together in one app for a project I'm working on.

    What is the best way to do this? Would also like to be able to port to iOS, I don't mind recoding.

    Something like this: https://play.google.com/store/apps/details?id=com.figri.minigames

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

    Recyclerview item with parent list and child list

    Posted: 19 Jan 2020 11:55 AM PST

    Hello there,

    I'm developing an app which has a recyclerview. I am displaying a list of objects, and when I tap on one item, I'm opening another recyclerview which has a list of the previous object. I decided to make a tap to expand feature for the first recyclerview card. That way I can get rid of that second recyclerview. However I'm having a problem because I don't know how to display another list inside the same card, and the other list is different type. I hope this is understandable to read, I can try to explain in different way.

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

    No comments:

    Post a Comment