Android Studio installs old code / doesn't restart application despite instant run is OFF - android-studio

I'm using the new Android Studio 2.0 (Beta 6) and I'm facing a serious problem. After updating, I noticed that there were some problems with the Instant Run feature, where it was quite hard to ensure that the application was actually running new code. I disabled the Instant Run feature immediately.
Despite this, I am noticing that Android Studio does not always deploy new code anyway!
I have tested my theory by adding a print when my Activity is created and it doesn't get called. If I close the application (for example by pressing the back button) and then running the code - it works as expected.
I have also verified that it's actually a problem, since old code is run after pressing the run button.
What the F is going on and does anyone know a fix? (Except reinstalling AS 1.5)
Notes and summary:
There is no lightning bolt on the Run Button
Activity onCreate Print is not called after pressing run
Changed code is not updated after pressing run
Instant Run is turned off in Preferences (And restart activities on code change is on)
It doesn't happen every time - roughly 50 % of runs

Related

Coded UI Test Builder - "Last mouse action was not recorded" happened since windows update

I was recording tests yesterday with no problems. As there was a windows update, I did an Update and Restart of my machine. Now I can't record any tests with the Coded UI Test Builder now. This is in a Coded UI Test project. I have tried to record actions that I recorded no problem yesterday and I can't record them.
After I click on anything, it will hang, the mouse action will happen about 20 seconds later and the Coded UI Test Builder will say "Last mouse action was not recorded". Whilst I am recording mouse movement is slow too, at best the cursor catches up a few seconds after the mouse was moved and at worst it does nothing then jumps about a minute after you moved the mouse.
It's all very bizarre and nothing else has changed, only the windows update. I am also not making any basic mistakes because I did have this working before the updated.
I have restarted my machine 3 times and there are no more windows updates.
Any suggestions?
There's an update from Microsoft ...
"The windows team has acknowledged that this is a bug in the new WIndows 10 creators update. This would be fixed as a part of the next update."
The thread is https://developercommunity.visualstudio.com/content/problem/41788/coded-ui-builder-vs2017-will-not-record-any-mouse.html.
This is the best answer we'll get I think so don't update and do stop any updates until the next windows 10 update or Downdate if you have updated and then don't update until the next win 10 update from MS. Personally, if downdating I am doing so on a machine with no internet connection as there can be security updates in any windows update.
'Downdating' Windows will work.
I had the same issue after Windows 10 Creators update, downdated it to previous version and problem solved

Gear watchface styling outside of Tizen IDE easily possible?

I wanted to develop my own watchface for my Gear S2. I found some good documentation on downloading and using the Tizen IDE. All is well, but I'm finding the tweak css/html5-run/upload-switch faces-view-wash-rinse-repeat to be very tedious and time-consuming.
I know I can point my browser (Chrome) to my development workspace and load the index.html up and I surmise that I could tweak what I have, which came from the template to work in the browser if I made the sizes in the css static vs dynamic (absolute vs percentages). But is there a better way? Scouring the Internets Googles have yielded nothing too helpful yet.
moderators: this might be OT for this particular SO. If that's the case, I apologize. A nudge in the right direction would be greatly appreciated, if so.
So, I was able to make a little progress on this myself. I am using Chrome in developer mode, which almost works perfectly when using the developer device emulator. To toggle the device emulator, open developer mode (windows: ctrl+shift+I, OS X: cmd+option+i) and when the tool window opens up, look for the little device button next to the element button in the upper left corner of the developer tools window. When the device emulator open, switch the resolution to 320x320 (top of the window next to "screen").
Now, open your index.html file for your project in Chrome, and you can at least muck around with your css styling.
Now to get around the whole issue of reloading your clock with the default clock in the Java emulator for Tizen, I was able to get my changes to automatically assert when running the new code. The way I did it, though I'm not sure if all of these steps were necessary was:
In the emulated watch:
1. set the screen timeout to 15 mins.
2. set the watch face to your development watch face
In the IDE:
1. when ready, use the button for smart launch (it's the blue button just to the left of the bug button in the tizen web IDE). This is in the Tizen SDK version 2.3.1 build 20150721-1440.
At the time of running your code -- making sure both your emulated watch is running too:
1. In the IDE, click the smart launch button
2. Click over to your emulated watch and make sure it's in focus.
It should update the watch face with your latest changes in realtime. This worked for me, so YMMV, but at least I didn't have to reload the watch face after asserting the latest version.

Apportable doesn't show custom UIScroll on android and some other issues

I have ported my ios game to android using indie version. It has following issues:
Custom scroll implemented through code doesn't show up
Touches on ccmenu works on and off i.e i have to restart the game again and again sometimes they work sometimes they don't.
Nib files have the same issue mentioned in step two. Works on and off have to restart again and again.
Game icon is not appearing
Sometimes game stucks randomly and crashes.
Update:
Note: UIScroll works where we have used them in tableView and doesn't work where we have only used UIscroll.

My MonoTouch App won't run on 6.1.3, runs on 6.0.x and before... WTF?

I just pushed my app to the App Store after building release/AppStore build using xamarin's Studio...
Everything was green lighted and ready to go, I only had one person who had not installed the release version.... They installed it and it takes 17 seconds to try to start and is killed (I presume). it does NOT create a crash log on the device.
In the Settings there is a "Debug Settings" section under the app - that I didn't put there, including an option for Xamarin Studio Host which is set to automatic but appears to be able to be set to some other string.. (Another message on what the heck this is, and how come it shows up in the first place, and how to get rid of it)
I'm at a loss how to debug this. I just downloaded and upgraded XCode to the latest, in hopes that will help.. (Although, I'm not using the XCode interface to build, but I expect that under the hood it is using that for parts of this, maybe the libraries or something.) Still, unless the iOS writers are nuts, it should be backward compatible with apps written for iOS 4.0 and later... (Mine is a 4.0 targeted app)
Also, on her phone (which has always been 6.x for all the testing she has done), my app has always taken a LONG time to start up.. but on 5.1 it is very fast.. (I.E. 1-2 seconds vs 10+ seconds on her phone)
Anyone got a clue, I sure could use one right now.. I expect that I'll have to reject the binary, and submit another one...
-Chert
Figured it out.... The issue was with the TestFlightApp SDK...
I removed it and now the app starts up OK... Resubmitted to App Store for approval.

The Debugger cannot continue running the process. Unable to start debugger

I have a Lightswitch 2012 application. It's been working fine for weeks. I made some changes and F5 stopped working. When I click on Start (toolbar) it gives this error message and does nothing.
"The Debugger cannot continue running the process. Unable to start debugging"
Note: It does compile file, it just doesn't run.
If I rollback to an earlier version then it works fine - i.e. it is solution specific.
Here is a video of the current version of my solution with the problem:
http://screencast.com/t/TD4RzLASO
and here is the previous version of the solution from earlier today (and no, I don't know what I changed). As you can see, at least it does something with F5 or Start:
http://screencast.com/t/wX5fRDPz
Rebooting doesn't help... ;)
Maybe you should select start up project which can be started.
Solution Explorer -> On your startable project right mouse click -> Set as Start up Project.
I had this situation when i unloaded my main lightswitch project and other project which is dll has been selected automatically and when i reloaded my main project "The Debugger cannot continue running the process. Unable to start debugging" exception was shown, because debuger was trying to load DLL.
Sometimes you need to start up a project which is compiled as a dll, for instance when testing WCF services.
To do so:
Projects -> 'Set Startup Projects...' -> Select 'Multiple Startup Projects' and set action to 'Start' for each one.
It's a pity you didn't recorded the whole screen, so I can't confirm, but I had the same error a few times...
When this happens, my "output panel" isn't visible and even I try to go on Menu -> View -> Output the panel don't appear.
I need to restart my Visual Studio 2013.
Then my output panel is visible again and everything works fine.
I discovered the cause was an extension which I installed on my Visual Studio.
I encountered this problem after removing some projects from the solution. I wasn't able to pinpoint the exact cause, but closing the solution, deleting the solution file, then opening the project and re-adding supporting projects solved the issue for me. Kind of a sledge hammer, but only takes a minute to do if you don't have a lot of projects.
Also, there are some people that uses a "One Click" Certification in your settings that you'll want to make sure its set up right, re-install or unchecked in-which this case was my problem. I finally got it working myself, but check that too just in case. Again this would be for most Visual Studio Versions only. Im 2013 Ult.

Resources