self-updating

Updating TextView every N seconds?

扶醉桌前 提交于 2019-11-27 14:53:53
I've been very confused about this recently and can't find an answer anywhere. When programming for android, I want to update a textview every 10 seconds, but how would I go about that? I've seen some samples use "Run()" and "Update()", but that doesn't seem to help when I try it, any ideas? Right now I have: public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); setContentView(R.layout.slideshow); CONST_TIME = (int) System.currentTimeMillis(); Resources res = getResources(); myString = res.getStringArray(R.array.myArray); } public void checkTime(View V){ TextView

Self deletable application in C# in one executable

不想你离开。 提交于 2019-11-27 06:41:25
Is it possible to make an application in C# that will be able to delete itself in some condition. I need to write an updater for my application but I don't want the executable to be left after the update process. There is an official .Net OneClick but due to some incompatibilities with my HTTP server and some problems of OneClick itself I'm forced to make one myself. George. [EDIT] In more details: I have: Application Executable which downloads the updater ("patch", but not exactly) this "patch" updates the application executable itself. Application executes as folowed: Application: Start ->

Updating TextView every N seconds?

时光毁灭记忆、已成空白 提交于 2019-11-26 18:27:25
问题 I've been very confused about this recently and can't find an answer anywhere. When programming for android, I want to update a textview every 10 seconds, but how would I go about that? I've seen some samples use "Run()" and "Update()", but that doesn't seem to help when I try it, any ideas? Right now I have: public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); setContentView(R.layout.slideshow); CONST_TIME = (int) System.currentTimeMillis(); Resources res =