• Breaking News

    Monday, December 20, 2021

    Android Dev - Sending a value over BLE (Simple)

    Android Dev - Sending a value over BLE (Simple)


    Sending a value over BLE (Simple)

    Posted: 19 Dec 2021 11:07 PM PST

    Hey yall, I am very new to this.

    So i want to send a simple plaintext to a predifined BLE Server (ESP32). Thats all.

    Somehow i could not find a single tutorial which is really helpful or understandable by me. As I am very new to programming in kotlin and programmin android as a whole I am having a hard time understanding most of the tutorials available. If anyone could help me, or tell me how this works i would be very thankful.

    I am just trying to suprise someone for christmas but I am slowly running out of options :/

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

    Google Play Store Review

    Posted: 19 Dec 2021 08:45 PM PST

    Why does it take so long? I checked that the test log-in to access my app was used 1 day ago, but the app is still in review. Why? It is an old app with 10000s of users and updates.

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

    What would you expect a Junior android Developer to know ?

    Posted: 19 Dec 2021 04:15 AM PST

    I did a take home test for a company and have been told i have passed it. I have an interview with either the managing director or there senior developer in a few days. What kind of questions do you think they will ask. The company itself seems to be small maybe 20 to 30 people and focuses on making android and ios apps. I have looked up general android questions but there seems to be so much i don't know if i can learn them all before the interview as i am working non stop till then. To be honest i did not think i did that well on the test it self so i could go mention how i would improve it ? Any advice would be good. I am just really nervous about the whole thing.

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

    How Google Play Policies are only Applicable to indie developers

    Posted: 19 Dec 2021 08:20 AM PST

    How Google Play Policies are only Applicable to indie developers

    Hello Dear Developers, I think you don't require any formal introduction to Google Play Policies and what happens if you violate them, as of my experience, violating a few policies does not affect your presence on Google Play, on the other hand, other policies like repetitive content and impersonation policies can lead to suspension of the application and if this behavior is continued then you are out of Google Play and your account might be suspended.

    I am writing this post to let people know how google play policies are only applicable to indie developers, I have been observing a few accounts on the Google Play Store where their apps have millions of downloads, this is not a problem to me or anyone because they are providing a decent application, but, they have multiple accounts with same applications uploaded, ok, wait can we do this? yes, we can but both the apps need to look different in design, but, I have seen many applications which are exactly the same in design and functionality, to name an app, for example, I am mentioning inshorts app, if you are from India, this app is quite popular and you might have used it as well. The main functionality of the application is to display news by, curate it from various sources and summarizing the news using AI. I have found an application on the play store which is a knock-off of this app. The application name is QuickApp.

    Initially, I thought both the applications are different from each other, the clone app might be providing a similar user experience as the original app. But later I have found out it's a complete clone, the way the app looks, functionality and every single feature of the app is similar, including news, including insights. There might be a possibility of the other developer cloning the app, but as of my observations. I don't think that's a clone, they have uploaded the app multiple times. I might even be wrong about this complete situation.

    I wonder if we as indie developers upload similar apps then the probability of the app getting suspended is 99%, but when a big popular company violates policies then there is no proper action is taken and I hope my fellow developers support me regarding this issue.

    Thank You.

    ---------------

    Screenshots of both the App:

    QuickApp

    Inshorts

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

    Hey Android Developers, Here is this month Android interview with Seyed Jafari, a senior Android Developer at Revolut. ����️�� The questions categories are lifestyle, Android Community contributions, encouraging Junior Developers, and some technical.

    Posted: 19 Dec 2021 11:24 PM PST

    Moving the complete android studio installation to another computer?

    Posted: 19 Dec 2021 09:56 PM PST

    I have set up my development environment, that is, Android Studio with all configurations, Android SDK's, NDK's and whatnot.

    I cringe at the thought of having to set up everything manually if I switch to a new computers, which is relatively frequent.

    So I was wondering if it is possible to move the entire android studio from my main computer to another computer. Both are running ubuntu. Can I just copy the SDK directory or will I run into trouble?

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

    Will android studio be decent on a I3 1115g3, 8gb ram, 256 gb ssd laptop?

    Posted: 19 Dec 2021 09:31 PM PST

    I dont need it to be fast etc. Can it run android studio just okay? Ho many problems will I run into? Can you recommend me minimum specs to run android studio smoothly?

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

    I saw a post here about a library that was supposed to be better performing than Shared Prefs and could store small lists? Can someone link it?

    Posted: 19 Dec 2021 06:22 AM PST

    I'm unable to remember who posted that or what the name of it was. Can someone let me know the name of library?

    Edit: Found it -> https://www.reddit.com/r/androiddev/comments/qgm6t1/fastkv_a_better_kv_storage_component/

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

    Anyone have experience moving an app with in-app purchases from one Google Play Dev account to another?

    Posted: 19 Dec 2021 02:38 PM PST

    We were going to move an app from one Google Developer account to another internally at the company, then shut down the old Google account.

    Google informed us that the in-app purchase history stays with the old developer account. Meaning, while it will still work to restore in-app purchases after transfer, if the old account is deleted all that in-app purchase history is lost.

    This seems bonkers to us - don't companies transfer apps between them all the time? What if the seller deletes their developer account after?

    Are we missing something? All I can assume is everyone tracks these internally in their databases via callbacks and ignore Google's own history completely.

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

    Did anyone already use Micrsoft Graph API ;

    Posted: 19 Dec 2021 01:10 PM PST

    Hey folks, I'm studying‏‏‎‏‏‎‏‏‎‏‏‎­some things from Microsoft Graph API for trying to build a clone app based on Microsoft's To Do as a side project of mine. Did anyone already utilize that API for having access to some Microsoft services? What do you guys think?

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

    Question regarding store listing data

    Posted: 19 Dec 2021 01:00 PM PST

    I've developed an app for Android and iOS. On the App Store, I can upload screenshots and change general information (descriptions, etc.) and have it submitted with the next build.

    My question is, can this be done on the Play Console - with changes propagated whenever I want them to? Or are they updated on the fly?

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

    Detect Slow-Down Hack in Game

    Posted: 19 Dec 2021 11:11 AM PST

    Software like Game Guardian (GG) allows users to slow down game play. They have the capability to change timer value in Android. My speculation is that a game updates a screen at a certain frequency, say, every 16 ms for a 60 fps frame rate. They set a timer for 16 ms and GG changes the Android timer to 32 ms instead, if a users wants to slow down a game by 2X.

    Is there a way for a game to detect such mechanism? Measuring play time by tracking play start time and end time on a server is not reliable, since a user can take a phone call in the middle of play, and artificially extend the the play time.

    I think GG only manipulates timers but not wall clock time. Can an app be notified when it is active and when it is suspended (such as user switching to a different app) so that wall clock time can be taken?

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

    App updates how do they work

    Posted: 19 Dec 2021 04:22 AM PST

    Hi, curious about updating apps in relation to their update size and the actual native app size.

    For example if I download an app that's 100mb and later down the line there's an update that's 5 mb. Is the app now 105mb or might it reduce the size of the app. I guess it all depends on the update.

    That's my question pretty much. Just curious.

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

    Do we still need LiveData when we use Jetpack Compose

    Posted: 19 Dec 2021 02:21 AM PST

    When programming in Jetpack Compose, it seems to me the Compose State (e.g. mutableStateOf(...)) is as good as LiveData (e.g. MutableLiveData), e.g. the data state is preserved on configuration change.

    I cannot think of a scenario we need LiveData anymore in Jetpack Compose. Did I miss any consideration?

    If you want to see the code on what I meant, you could check https://stackoverflow.com/questions/70410514/do-we-still-need-livedata-in-jetpack-compose-or-we-can-just-use-compose-state

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

    Is splash screen api work under android 12?

    Posted: 19 Dec 2021 04:08 AM PST

    I know this question is really old but I still can't figure out the answer.

    In my recent projects where I use splash screen api which is currently in Alpha 2.

    In my emulator android version 10 here I doesn't see the splash screen Even I do proper Set-up.

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

    What are some learning resources for Android design-patterns?

    Posted: 19 Dec 2021 01:41 AM PST

    Is there a way to have a non-nullable LiveData that has SavedState?

    Posted: 19 Dec 2021 05:52 AM PST

    LiveData by default is nullable, i.e. the below value++ will error out.

    class MainViewModel(savedStateHandle: SavedStateHandle): ViewModel() { private val _liveData: MutableLiveData<Int> = savedStateHandle.getLiveData("SomeKey", 0) val liveData: MutableLiveData<Int> = _liveData fun triggerLiveData() { _liveData.value++ } } 

    There's an article that guides us on how to introduce a non-nullable LiveData https://proandroiddev.com/improving-livedata-nullability-in-kotlin-45751a2bafb7

    The solution is using

    @Suppress("UNCHECKED_CAST") class SafeMutableLiveData<T>(value: T) : LiveData<T>(value) { override fun getValue(): T = super.getValue() as T public override fun setValue(value: T) = super.setValue(value) public override fun postValue(value: T) = super.postValue(value) } 

    But it doesn't support SavedState.

    I try to make something that is non-nullable yet saved-stated, but it has to duplicate some data

    @Suppress("UNCHECKED_CAST") class SafeMutableLiveData<T: Any>(private val mutableLiveData: MutableLiveData<T>) : MutableLiveData<T>(mutableLiveData.value) { override fun getValue(): T = mutableLiveData.value as T override fun setValue(value: T) { super.setValue(value) mutableLiveData.value = value } override fun postValue(value: T) { super.postValue(value) mutableLiveData.postValue(value) } } 

    with the usage as

    class MainViewModel(savedStateHandle: SavedStateHandle): ViewModel() { private val _liveData: SafeMutableLiveData<Int> = SafeMutableLiveData(savedStateHandle.getLiveData("Something", 0)) val liveData: SafeMutableLiveData<Int> = _liveData fun triggerLiveData() { _liveData.value++ } } 

    Is there a better way to do so than above?

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

    Recycler view in android studio

    Posted: 19 Dec 2021 04:17 AM PST

    Hello guys, I was studying recycler view in android studio and is a bit confusing, can anyone suggest to me a good video/ article. I tried watching some YouTube videos but I am still a bit confused! Thanks!

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

    I wrote an Article and Demo App for how to use Jetpack Glance Alpha for building a Widget!

    Posted: 18 Dec 2021 02:16 PM PST

    Update avail, again?

    Posted: 19 Dec 2021 08:34 AM PST

    We're just a few months in with the public version of Android 12, and I've got a system update to 12 L think? Are we going back to beta?

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

    Marketing an android app

    Posted: 18 Dec 2021 01:07 PM PST

    I am currently developing an android application and my biggest fear is that I will make my app and then no one will use it. Does any on have any tips on how to market an android app? Any ideas of pre development marketing and post development marketing?

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

    Guide for production app in jetpack composes.

    Posted: 18 Dec 2021 09:58 PM PST

    It's a first time when I build my first native application and i plan jetpack rather than XML because as a previous flutter experience jetpack is pretty familiar and easy also it's all new app and now jetpack also in stable so it's not like there have any problems.

    But recently I updated my android studio and kotlin (1.6) and after that I get fishy behaviour new composes app use 1.1 instent of 1.5 which is latest it's just told this version of composes doesn't match with kotlin.

    Or the other things what the structure i use means libraries version dependency

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

    No comments:

    Post a Comment