battle programmers alliance
Would you like to react to this message? Create an account in a few clicks or log in to continue.

battle programmers allianceLog in

the LivinGrimoire Artificial General Intelligence software design pattern forum

descriptiondfgdfhdhdhfgfhfgh Emptydfgdfhdhdhfgfhfgh

more_horiz
:...: :...: :...:

descriptiondfgdfhdhdhfgfhfgh EmptyRe: dfgdfhdhdhfgfhfgh

more_horiz

Code:

val t = object:Thread() {
  public override fun run() {
    while ((!isInterrupted()))
    {
      try
      {
        Thread.sleep(2000)
        runOnUiThread(object:Runnable {
          public override fun run() {
            count++
            tv1.setText(String.valueOf(count))
          }
        })
      }
      catch (e:InterruptedException) {
        e.printStackTrace()
      }
    }
  }
}
t.start()

descriptiondfgdfhdhdhfgfhfgh Emptydraft

more_horiz

Code:

//        try {
////            val myDataBase = this.openOrCreateDatabase("Musicians", Context.MODE_PRIVATE, null)
////            myDataBase.execSQL("CREATE TABLE IF NOT EXISTS musicians (name VARCHAR, age VARCHAR)")
////            http://myDataBase.execSQL("INSERT INTO musicians (name,age) VALUES ('$artName',50)")
//////            val sqlString = "INSERT INTO arts (name, image) VALUES (?, 'test2')"
//////            val statement = myDataBase.compileStatement(sqlString)
//////            statement.clearBindings()
//////            statement.bindString(1,artName)
//////            http://statement.bindString(2,"3")
//////            statement.execute()
////            val values = ContentValues()
////            values.put("name","testx")
////            values.put("age","5")
////            myDataBase.insert("musicians",null,values)
////        }catch (e: Exception){e.printStackTrace()}

descriptiondfgdfhdhdhfgfhfgh EmptyRe: dfgdfhdhdhfgfhfgh

more_horiz
setContentView(R.layout.activity_main)
privacy_tip Permissions in this forum:
You cannot reply to topics in this forum
power_settings_newLogin to reply