Questions tagged [recreate]

recreate() is an Android SDK API method available from API lvl 11 (Android 3.0) that causes the calling Activity to be destroyed and recreated.

Official method documentation:

Cause this Activity to be recreated with a new instance. This results in essentially the same flow as when the Activity is created due to a configuration change -- the current instance will go through its lifecycle to onDestroy() and a new instance then created after it.

For more information about Android Activity lifecycle see http://developer.android.com/reference/android/app/Activity.html

122 questions
0
votes
2 answers

Creating batch to remotely recreate user win 7 profile

I'm making the batch below in the win 7 corporate environment that recreates a users profile remotely. I know the code could be more efficient, but it all works except where the registry entry on the users computer for their profile needs to be…
0
votes
2 answers

Make one circle disappear and another appear

So i'm trying to recreate the Flappy Fall game for iOS and I'm having trouble making one circle disappear and another show up. Right now I have this as the main loop. while True: if newBall==True: x=rand(50,w-50) …
0
votes
2 answers

How to create a larger array out of smaller ones? segmentation error

I'm currently trying to create a 320x240 array for an image but the pixels are sent by line(320 at a time). And so I thought about just running a loop that counts 240 so that at each count I insert my smaller array[320] to that of the bigger…
nciacrklo
  • 83
  • 2
  • 9
0
votes
2 answers

Recreate ArrayList Methods Error and Constructor Error for Child Class

I have to recreate the arraylist class and I'm having problems with some of the methods. Firstly, I keep getting an error around my .equal method in the FOR loop in the initial IF statement telling me it cannot find the symbol, pointing at the…
0
votes
1 answer

css div placement when recreating website

I'm recreating this American Association of Community Colleges website viewable here, and have been doing alright so far, but have run into a problem when placing a div by an image (you can view my W.I.P. and complete code here). It specifically…
TeamRival
  • 39
  • 1
  • 5
0
votes
2 answers

Resolving difficult to recreate bugs

In a js app I'm developing there are a few bugs that recur every now and then for some users who are testing it, but I've been unable to recreate them myself. What tools/approaches are there to debug bugs which are difficult to recreate, or which…
wheresrhys
  • 22,558
  • 19
  • 94
  • 162
0
votes
2 answers

Recreate a Jpanel

I've been trying to add a drawing to an existing JPanel in a JForm. This JForm is created in Netbeans (with the 'add jform' option). In that form, i've placed a JPanel. In the source code i want to change the JPanel, so a drawing appears. I've been…
Jojojoppe
  • 5
  • 3
0
votes
0 answers

Dynamically recreate hard coded tabControl

I have hard-coded a tabcontrol, which loads a bunch of data for me to use, but I want to be able to throw the tabcontrol away and recreate the same one that I hard-coded, but blank without any input. Right now I have a simple tabControl with about…
Pelle Nilsson
  • 19
  • 1
  • 4
0
votes
1 answer

recreate activity after rotate device and change orientation

I am using AndEngine in application which is in landscape orientation. After executing my app I am turning off the device and again turning it on. After rotate the device to portrait mode I am unlocking the screen. Then my application is finished. I…
0
votes
1 answer

recreate view programmatically

I'm calling the following code fragment to swap a view.(on top of screen, there's a UISegmentedControl to switch views) SomeViewController* vc = [[SomeViewController alloc] init]; self.view = vc.view; When user can switch back to original view by…
eugene
  • 39,839
  • 68
  • 255
  • 489
0
votes
2 answers

How to destroy an Activity so it doesn't show up when the back button is pressed?

I have two Activities, A and B. Here is a normal scenario: A is running, then sends an intent to B. A is paused, and B displays. When the user presses the back button from B, B us destroyed and the user is returned to A. However, there is a case…
Kalina
  • 5,504
  • 16
  • 64
  • 101
0
votes
1 answer

"Retweets" with Datamapper

I want to impliment something which is similar to Twitter Repost System, therefore I will use this as an example. So let's say I have a Tweet Model and I want to allow other user to repost a certian tweet of another user, how do I impliment…
Micheal Perr
  • 1,805
  • 5
  • 18
  • 24
-1
votes
2 answers

How to call recreate from another class in Kotlin?

How do I call recreate() from another class in Kotlin? I am used to Java and did it like in the code shown below for some UI changes. public class MainActivity extends AppCompatActivity { private static MainActivity instance; @Override …
Markus
  • 129
  • 1
  • 8
-1
votes
1 answer

OnItemSelectedListener Spinner Recreate loop - Android

I have a spinner and when an item is selected i want to recreate the activity. But when the activity is recreated it keeps constantly recreating because the new itemSelectedListener is triggered. I have fixed the bug but i am interested in why this…
Chris Papantonis
  • 720
  • 7
  • 18
-2
votes
1 answer

How to recreate table in MYSQL?

I am sorry for my bad English. Okay? my problem is i need to recreate temporary table many times (more then 5). I need totally change structure of table. I try do it like this but i have errors CREATE TABLE #DeletedData (RoleName varchar(max), …
1 2 3
8
9