• Breaking News

    [Android][timeline][#f39c12]

    Thursday, March 24, 2022

    Real-time multiplayer drawing & chat game demo app built entirely with Jetpack Compose. Android Dev

    Real-time multiplayer drawing & chat game demo app built entirely with Jetpack Compose. Android Dev


    Real-time multiplayer drawing & chat game demo app built entirely with Jetpack Compose.

    Posted: 24 Mar 2022 05:04 AM PDT

    What is the most cost effective way to advertise my app?

    Posted: 24 Mar 2022 01:33 PM PDT

    I used to use google AdWords and it cost about $1 per download!

    Is there any better way?

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

    Android Views or Jetpack Compose ?

    Posted: 24 Mar 2022 02:40 PM PDT

    Hello community! I apologize for my English, I try to improve little by little.

    Here my question I am practicing kotlin for the development of android apps and I would like to know what is currently recommended for the UI part. Android Views or Jetpack Compose ?

    I've done some research and both are good methods for creating interfaces but I don't know which way to go.

    Thank you very much in advance !

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

    How to add a bottom sheet dialog with edit text to go up above the keyboard?.

    Posted: 24 Mar 2022 03:39 AM PDT

    So sorry if this question seems dumb, i am a noob trying to learn. So I have a main activity holding fragments, in one fragment I have a add button which adds data to list I want a bottom sheet to popup above keyboard completely when typing. I searched the internet some using cordinator layout as parent for bottom sheet to pop out and various techniques which I tried but no luck. What's the right way to do it.

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

    Would this app name be against Google Play developer policy?

    Posted: 24 Mar 2022 11:03 AM PDT

    I'm an amateur developer and I have made a widget for myself to display NBA game scores. Now I want to publish it on Google Play and I have named it ScoresAndOne NBA games widget. Do you think it would violate Google Play dev policy on misleading app names? I.e. does it sound like it is an official app or confusing in any other way?

    I'm a little concerned with the stories that sometimes pop up about developer accounts being disabled by mistake or some unknown reason, so I want to make sure I'm not breaking any rules here.

    Appreciate any advice!

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

    Building a fast computer to offload builds on? Is this done by the Android community? Any articles / hints / tips?

    Posted: 24 Mar 2022 05:46 AM PDT

    Hello! In the "enterprise" Java world I've had friends who have built super beefy PCs for the purpose of offloading all builds to this computer. The steps are something like

    1. Build very fast and expensive PC optimized for all the things that benefit faster build times
    2. Configured IntelliJ to build on this computer (not sure how this is done)
    3. Have much faster build times then if they were building on their MacBook Pros

    I haven't done this myself, but I know that it's possible with large Java applications, and again I've seen first hand that it can save a ton of time when compiling.

    Do Android developers do this? Is it even possible with Android Studio / Android in general (I'm not a developer myself, yet, but am researching for a project).

    Thank you so much for your input / thoughts!

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

    A launcher app that I uninstalled left a wallpaper on Recent apps screen on Nvidia Shield, how to remove it?

    Posted: 24 Mar 2022 02:25 PM PDT

    I have been using an app called "TV Launcher" on NVidia Shield (latest software version, 9.0.1). I had set a wallpaper for the launcher. I uninstalled the app but the wallpaper still shows every time I open the Recent apps screen (by double-clicking the home button). Restarting the device doesn't fix it. Searched for any leftovers for the app in the internal memory (Android, OBB etc), but couldn't find any. Any idea where I can find that image and remove it?

    submitted by /u/Mindless-Addendum621
    [link] [comments]

    Example Todo Android App + Scala Backend + Auth2.0

    Posted: 23 Mar 2022 11:24 PM PDT

    Hi folks, awhile back I made an Android todo app along with a Scala service that has authentication. I did this because I wanted to get a better understanding of how the rest of the tech stack of an app works beyond the Android portion. I thought other folks might find the project interesting to look at so I put the project up on Github and added a brief readme for it. If you're interested in checking out a bare bones Android + Scala + Auth example, feel free to take a look: https://github.com/MackHartley/simpleTodoAndroid

    I'm happy to answer questions about it as well!

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

    Button press speed display in java.

    Posted: 24 Mar 2022 10:37 AM PDT

    I wanna build a code or make an little simple application with Android studio. I would like to know how could I make a code that will display the button press speed...u know like seeing how many clicks per specific time and those things..and I would really like if someone could just share the project or code to this which I could use it in Android studio.

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

    Does anyone have idea why the following calendar home widget is now workable in real device Android 12 (Work in emulator though)

    Posted: 24 Mar 2022 10:22 AM PDT

    I have received a few reports, that my calendar home widget is not workable in Android 12 device.

    Like Samsung Galaxy S22 Ultra (SM-S908B/DS), Pixel 4a.

    I have tested in Emulator with Android 12. It works flawless :-(

    This is the video of a workable version in Emulator Android 12

    https://youtu.be/srYF27HQBLo (Workable in Emulator Android 12)

    This is the version sent by my customer, which is not workable in Android 12

    https://youtu.be/Tv46cUE-JXA (Not workable in Samsung Galaxy S22 Ultra, Android 12)

    Do you have any idea what's wrong with my code, regarding the click handling? Thanks.

    class CalendarAppWidgetRemoteViewsFactory implements RemoteViewsService.RemoteViewsFactory { @Override public int getCount() { return 1; } @Override public RemoteViews getViewAt(int i) { this.lastRemoteViews = getCalendarRemoteViews(); return lastRemoteViews; } private RemoteViews getCalendarRemoteViews() { RemoteViews remoteViews = new RemoteViews(PACKAGE_NAME, getCalendarWidgetResourceId()); ... List<LiteNote> liteNotes = getSelectedLiteNotes(); remoteViews.removeAllViews(R.id.notes_container); for (LiteNote liteNote : liteNotes) { RemoteViews noteRemoteViews = getLiteNoteRemoteViews(liteNote); remoteViews.addView(R.id.notes_container, noteRemoteViews); } return remoteViews; } private RemoteViews getLiteNoteRemoteViews(LiteNote liteNote) { final RemoteViews remoteViews = new RemoteViews( context.getPackageName(), getCalendarWidgetRowLayoutResourceId() ); ... // Handle click action. final Intent launcherIntent = new Intent(context, NewNoteChecklistLauncherFragmentActivity.class); final long id = liteNote.getPlainNote().getId(); Assert(isValidId(id)); putExtra(launcherIntent, id, TaskAffinity.Launcher); launcherIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); launcherIntent.putExtra(INTENT_EXTRA_APP_WIDGET_ID_TYPE, (Parcelable)AppWidgetIdType.Calendar); launcherIntent.addFlags(getClearEverythingFlagsForLauncher()); launcherIntent.setData(Uri.parse(launcherIntent.toUri(Intent.URI_INTENT_SCHEME))); PendingIntent launcherPendingIntent = PendingIntent.getActivity( context, 0, launcherIntent, PendingIntent.FLAG_UPDATE_CURRENT ); // remoteViews.setOnClickFillInIntent will not work in this case, as it is not a direct // remoteViews used in public RemoteViews getViewAt(int i) remoteViews.setOnClickPendingIntent( R.id.click_me, launcherPendingIntent ); return remoteViews; } 
    submitted by /u/yccheok
    [link] [comments]

    Mobile - PC connection using mqtt

    Posted: 24 Mar 2022 04:39 AM PDT

    I need a bit of help to start up a project I have to do for university. I'm in an android class and I know nothing about it.

    I need to make a project that sounds like this : my laptop somehow makes a request to an app on my phone, my phone registers that request, takes a picture with my selfie camera, sends it back to the laptop and the laptop displays it. I have to write both the phone app and the laptop.

    The thing is, besides the fact that I need to use MQTT (because the prof said it) protocol I know NOTHING about how to make this and I don't even know where to start.

    I think that this shouldnt be too hard of a project, so if any of you know how to make this, can you please suggest some tutorials or send out some links that could setting me on a path to do it? Or if you even have some suggestions or keywords to google that would be amazing, I could use just about any form of guidance right now.

    i have no constraints regarding what programming language to use, so whichever is easier, but id like if i could in flutter / java

    P.S. there should be no other hardware besides my phone and laptop (like raspberry pies and stuff like that)

    *if you feel that theres a more relevant subrredit to post this in plese let me know, this is just the first thing i found*

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

    How would I go about extracting Kotlin files from an apk?

    Posted: 24 Mar 2022 11:22 AM PDT

    Hi, I recently got into developing and taking apart apps on android. Normally I have no issues for extracting unity and java files, but I am unsure of any 3rd party software that would help me extract an apk created using Kotlin. If anyone has any suggestions I would appreciate it! :)

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

    Why Go Native Mobile If Possible

    Posted: 24 Mar 2022 05:50 AM PDT

    LiveData Not Updating UI

    Posted: 23 Mar 2022 09:27 PM PDT

    I've posted this on Stack Overflow and haven't gotten much response.

    Basically have a sectioned RecyclerView with adapters. Using MVVM with partial coroutines on my ViewModel. I've got an onclick that's updating the DB in the background but my UI is not getting updated. I'm only able to see the results when killing and reopening the app. Any help is appreciated and am linking the post below!

    https://stackoverflow.com/questions/71433478/livedata-not-updating-ui-when-recyclerview-item-clicked

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

    Is there a way to use a layout instead of an animated icon/icon for splash screen?

    Posted: 23 Mar 2022 09:53 PM PDT

    Was migrating my app to the newish splash screen: https://developer.android.com/guide/topics/ui/splash-screen

    And it works, except that in my app, if I launch it from a kill state, it will show a static icon, or an animated icon. I have a basic layout with a simple animation, but it isn't that easy to translate that into 1 big animated icon. Is there a way to show just the layout? Here is what I have now:

    class SplashActivity: AppCompatActivity() { private lateinit var binding: ActivitySplashBinding override fun onCreate(savedInstanceState: Bundle?) { val splashScreen = installSplashScreen() super.onCreate(savedInstanceState) splashScreen.setKeepOnScreenCondition { false } binding = ActivitySplashBinding.inflate(layoutInflater) setContentView(binding.root) launchMainActivity() } private fun launchMainActivity() { lifecycleScope.launchWhenStarted { delay(SPLASH_DURATION_MS) val intent = Intent(this@SplashActivity, MainActivity::class.java) startActivity(intent) finish() } } } 

    Manifest

    <activity android:name=".SplashActivity" android:exported="true" android:screenOrientation="portrait" android:theme="@style/Theme.App.Starting"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> 

    Theme

     <style name="Theme.App.Starting" parent="Theme.SplashScreen"> <item name="windowSplashScreenBackground">@color/white</item> <item name="windowSplashScreenAnimatedIcon">@drawable/ic_logo</item> <item name="postSplashScreenTheme">@style/Theme.App.NoActionBar</item> </style> 

    It seems that if I don't specify `windowSplashScreenAnimatedIcon`, it just used my default launcher icon. I can't feed in a layout into this obviously. It is just annoying because my real splash screen comes after this launcher icon, so ~3s of launcher screen turns into closer to ~6s making my app look artificially slower. I could remove the splash screen I have developed, but that sort of defeats the purpose of using this at all for me.

    I can probably improve my apps overall launch time, but it is pretty feature rich. Will not be an easy task to decrease this, but the start up time is not horrible. I just want to replace the launching icon with my animated view. The animated view is pretty light, so it should not be difficult to process I'd imagine.

    Advice?

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

    Stack Overflow needs to purge all answers before 2018 (at least).

    Posted: 24 Mar 2022 07:49 AM PDT

    Over the last few years, Android development has changed significantly.

    So when I google something and an answer from like 2014 shows up in search results, that solution is long dead and gone.

    In order for Stack Overflow to return more up to date solutions that are actually valid, all those old questions/answers relating to Android dev should either be removed, or have lower priority in search results.

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel