Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
102 views

Hello I am receiving the error in the title based off the following code: class MainViewModel (application: Application, private val savedStateHandle: SavedStateHandle) : AndroidViewModel(application){...
Gil Ong's user avatar
  • 99
1 vote
0 answers
153 views

I have this simple NavHost containing three Composables First Second and Third @Composable fun Navigation() { val controller = rememberNavController() Column { NavHost(navController = ...
Michel Vedel Howard's user avatar
3 votes
1 answer
2k views

I was previously saving my WebView state in my Android app by overriding onSaveInstanceState(outState: Bundle) method inside the Activity class like this: override fun onSaveInstanceState(outState: ...
Ahmed Bakhet's user avatar
  • 3,464
0 votes
0 answers
50 views

With process death being the ultimate silent killer culprit of an Android app, does Firebase Remote Config survive system-initiated process death or do we still need to handle the recovery using Saved ...
Bitwise DEVS's user avatar
  • 3,851
0 votes
1 answer
51 views

This is my evaluate function for federated learning: def evaluate(num_rounds=10): state = trainer.initialize() for round in range(num_rounds): t1 = time.time() state, metrics = ...
Akash A R's user avatar
1 vote
0 answers
740 views

I need to save the state of the PrimeNG table(p-table) filters in the query parameters of the url. I know that PrimeNG has built-in features for saving state to local storage, but this method does not ...
Илья Никитин's user avatar
1 vote
0 answers
98 views

I am developing a weather application and I want to save measurementUnits in SettingsScreen user can choose Imperial Fahrenheit or Metric Celsius after choosing one of this user click save button it ...
Edgar's user avatar
  • 1,080
1 vote
0 answers
125 views

I'm trying to create something for the Android app using Compose and navigation, to make it possible to continue with the last screen I was showing to the user if an app crashed or been killed by the ...
Daviti Gogochishvili's user avatar
0 votes
2 answers
285 views

According to Android developer documentation as of March 1, 2023, Saved Instance State is slow to read/write. This is because it requires a serialization/deserialization process and requires disk ...
Jaesung Lee's user avatar
0 votes
2 answers
681 views

I am trying to create a button that when i click it it will be disabled and when i reload the app it will stay disabled , until i press clear. The problem is i have to click twice to get the result i ...
john's user avatar
  • 63
0 votes
1 answer
29 views

The app functionality is similar to shopping cart. User can add products and increase/decrease quantity by clicking on respective buttons. By default the quantity value is set to 1. I am facing a ...
Abm's user avatar
  • 311
0 votes
0 answers
936 views

I've been working on an Android NFC application on Android Studio, and I've hit a major roadblock. Basically, everytime my app detects a new NDEF NFC Tag, a new intent is created, and MainActivity ...
Surox's user avatar
  • 25
0 votes
0 answers
177 views

I'm trying to save state during rotation and repopulate a list with specific files I've created in internal app storage. currentFile = new File(this.getFilesDir(), timeString); After accessing the ...
HatmanStack's user avatar
0 votes
1 answer
2k views

I have a data table which I should change something on it, for example, I want to change the title of the content, but this content is on the 6th page of the table. When I change it, the data table ...
Vishwesh Chotaliya's user avatar
0 votes
1 answer
166 views

i am new to this, i am trying to build app that counts how many times button is clicked i have a variable called count that keeps count of how many times a button is clicked and shows that in textview ...
Aviroxi's user avatar
  • 115
0 votes
0 answers
322 views

I'm currently writing an app that displays a list of movies using a recyclerview. I have a bottom navigation bar(trending, search and favorites) with several fragments. I'm trying to save the state of ...
Ahmadddd4's user avatar
1 vote
0 answers
142 views

I am currently deploying a web app to my own physical Xiaomi Mi Note 10 device with Android Studio, built with capacitor. But everytime i install a new version to my phone, it reverts back an old save ...
MyNameIsLinuxx's user avatar
1 vote
1 answer
116 views

I'm currently writing an app that displays a list of movies. The app has 8 fragments that contain the recyclerview: Trending Movies, Action, Comedy, Horror, Romance, Scifi, Search, and Favorites. The ...
Ahmadddd4's user avatar
0 votes
1 answer
2k views

I have a table showing a list of items. I clicked on one item in page 3 and navigated to details page of that item. Now after completing task in details page when i navigate back to table page, i want ...
kirk limbu's user avatar
0 votes
0 answers
91 views

I have read many posts about how to save a state of an activity using ViewModel and onSaveInstanceState(), however, I couldn't find something that explains the possibility of saving multiple ...
selenophile's user avatar
7 votes
1 answer
4k views

I am using Navigation Component to handle navigations, but when use popBackStack() or onBackPressed() to back to previous fragment my onViewCreated call again in fragment with api and set up views. ...
reza_khalafi's user avatar
  • 6,614
0 votes
1 answer
206 views

**I have made login logout authentication in react by node and database after login when i refresh the page my cookie save state for login but my navbar menu failed to show me log out its show me ...
vaibhav khushalani's user avatar
1 vote
0 answers
103 views

Need a little help on how to approach saving state in my single activity application. I looked at a few resources but couldn't quite find one that fits the build. Essentially I have single activity ...
Sammie Carswell's user avatar
2 votes
3 answers
1k views

I am running CFD simulation using Star-CCM+ which uses Java API. Star-CCM+ writes macros in java but I do not know the language at all. I want to manipulate parameter values in my simulations and then ...
sanchead's user avatar
1 vote
1 answer
747 views

We are making a reinforcement learning algorithm for our class. And in this progress we want to make a savestate for a nes-game which is made using the gym-retro package. We have tried using pickle to ...
Tijmbee's user avatar
  • 11
0 votes
1 answer
32 views

I am using a tabbed Activity. In one of the tabs I have two buttons and a Recyclerview. In the RecyclerView I have two spinners and an edittext. The purpose of the first button is to add a new item in ...
Hédi Guellouz's user avatar
1 vote
0 answers
589 views

I try to preserve viewModel data against activity re-creation , but on onCreate() method from Fragment I got the following error : java.lang.IllegalArgumentException: SavedStateProvider with the given ...
ghita's user avatar
  • 2,836
0 votes
1 answer
169 views

After poking through threads on the subject I still cannot figure out what to do. The thing is, I have a quite simple app, which has just one activity and one recycler view, where user can add some ...
StanislavOssovsky's user avatar
0 votes
2 answers
830 views

I have simple registration form. When I enter data and change configuration the data is lost. I use ViewModel in my project and official documentation says ViewModel can handle orientation change ...
nvrmndth's user avatar
0 votes
1 answer
1k views

I am new to Flutter and REST API, so take it easy on me. My app is supposed to save its state according to YouTube videos that I have learnt. However, when I login and exit the app, the next time I ...
Davrick's user avatar
  • 301
1 vote
0 answers
118 views

I have an application where all the UI comes from a server, so the views are all custom and generated programmatically. Additionally, I have to remove all the views and re-create them when the device ...
Mehdi Satei's user avatar
  • 1,640
0 votes
1 answer
316 views

Repository: fun interface AllUsersQueryCallback{ fun getAllUsers(allUsers: LiveData<ArrayList<User>>) } private const val TAG = "SearchRepository" class SearchRepository @...
justlearning's user avatar
2 votes
1 answer
1k views

I am following this question how to store recyclerview data on onSaveInstanceState I also found How to save state of view class? and Fragment save view state. Context I give data in form of DataModel (...
programmer Erfan's user avatar
0 votes
1 answer
446 views

I have a ViewModel I am currently using to contain data and share values between Fragments. This model also helps instantiate the data for the app on activity start. I am now trying to add in state ...
Matt Strom's user avatar
6 votes
1 answer
701 views

I play modded Minecraft a fair bit. One downside to that is it takes a lot of time for all the mods to compile whenever I launch Minecraft. It can take around 15 minutes or so, which is too much time ...
Laff70's user avatar
  • 191
0 votes
2 answers
96 views

I am making a tour guide app that is made up of one main activity with and two fragments. The top fragment contains a list of cities and when you clock on a city the bottom fragment displays a ...
Clancinio's user avatar
  • 914
2 votes
1 answer
3k views

There is a problem whenever I install a module in google-colab like speechrecognition module, it works perfectly but then if I open a new tab of colab or open colab again after closing it, it doesn't ...
KaalKala's user avatar
1 vote
0 answers
176 views

I have a simple android app with WebView which opens the site main page. I need to save WebView state when the user presses "home" or "main menu" buttons. And then, when user opens app from the ...
Denys Kamienskyi's user avatar
1 vote
1 answer
423 views

I want to know how to save my current state by modifying the existing JSON file. but I can't find a way to saving..... So I want to ask you about that. The size of the JSON file is not so big. So I ...
Hyungmin Oh's user avatar
2 votes
1 answer
591 views

For an Android app I have some content that I want to show with a delay. Therefore I'm using a handler. private lateinit var mHandler: Handler override fun onCreate(savedInstanceState: Bundle?) { ...
Vadim's user avatar
  • 51
0 votes
1 answer
460 views

I'm creating a bowling score application which will include a bingo game. To simplify, at the Score class, there is a button which will start a new activity (Bingo class). While in the game, for sure ...
Irfan Mokhtar's user avatar
0 votes
1 answer
142 views

Good day, Part of a form I created consists of two groups of radio buttons that display specific text depending on which button is selected. If a user clicks the submit button, but hasn't incorectly ...
johng_g's user avatar
2 votes
2 answers
415 views

I've implemented something like the below picture: I have some Tabs and every tab may have some buttons which load some different fragments. In this situation, in Tab 1, Button 1 loads Fragment 1, and ...
Alireza Noorali's user avatar
1 vote
1 answer
152 views

Searching online, I found a lot of tutorials for saving/loading program data into/from files. However, I already know this (I am using Python pickle to serialize/de-serialize objects). My question is ...
Winson Tanputraman's user avatar
0 votes
0 answers
115 views

Is it correct to call saveState method in destructor of QMainWindow? Or should I do it in QMainWindow::closeEvent (as in documentation)? I have problems in some project with saving state from ...
poljak181's user avatar
  • 585
0 votes
0 answers
34 views

Does anyone have any idea how I can save the dynamically generated Textviews? So, the next time I open the app, the TextViews will display the same content that I previously put into them. I have ...
NecklessGiraffe's user avatar
0 votes
0 answers
50 views

I am developing android launcher and I want to save state of all currently running apps(audio player, calendar e.t.c), before reset device.After reset, relaunch all previously running apps in their ...
fs_dm's user avatar
  • 421
3 votes
0 answers
548 views

I have a problem with saving the state of fragments which work with bottom navigation view. I am using the new android jetpack navigation library and it is really simple to code bottom navigation with ...
P.Dudik's user avatar
  • 441
-1 votes
2 answers
84 views

I am working on my application and I want to change the color of their UI with the click of button.....Like this.... Button change=findViewById(R.id.change_UI); change.setOnClickListener(new View....
Vipul Chauhan's user avatar
1 vote
2 answers
1k views

Here what i want is i have a fragment inside an Activity and it has a web view which is basically chat to customer service. This activity will be started from a button in another activity, Now the ...
Android's user avatar
  • 1,105

1
2 3 4 5
8