Posts

Showing posts from November 14, 2018

set large int to progressbar android

Image
up vote 0 down vote favorite how can set large number to progressbar for example 25000 second and start progress from 0 until 25000 between 100 percent of progressbar. I have some example code <ProgressBar android:layout_alignParentBottom="true" android:id="@+id/customProgress" style="@style/CustomProgressBar" android:indeterminate="false" android:layout_height="30dp" android:layout_width="match_parent"/> and private void progress(final int progressMax) new Thread(new Runnable() public void run() while (progressStatus < progressMax) progressStatus += 1; handler.post(new Runnable() public void run() progressBar.setProgress(progressStatus); progressBar.setMax(progressMax); ); try Thread.sleep(1000); catch (InterruptedException e) e.printStackTrace(); ).start(); if set this in adapter and set into listview progressbar dont work . android progress-bar share | improve this ques

G'Kar

Image
‹ The template Infobox character is being considered for merging. › G'Kar Babylon 5 character First appearance Babylon 5: In the Beginning (chronological), The Gathering (airdate) Last appearance Sleeping in Light (chronological), Babylon 5: The Legend of the Rangers (airdate) Portrayed by Andreas Katsulas Information Species Narn Affiliation Babylon 5, Narn Regime Home planet Narn G'Kar is a fictional character, played by Andreas Katsulas, in the universe of the science fiction television series Babylon 5 . He initially appears as a villainous diplomat opposite Londo Mollari, being constantly engaged in insidious, if petty and often comical schemes, usually driven by his hostility to his people's historical enemies, the Centauri, whom Londo represents. However, in the course of the series, he is transformed into a Messianic figure and the foremost spiritual leader of his people. [1] Contents 1 Character history 1.1 Early life 1.2 Career 1.3 The Narn-Centauri war 1

SCOPE_IDENTITY Exception

Image
up vote 1 down vote favorite I have been evaluating the use of dapper and the simplecrud extension with sqlite. No matter what I try when doing a table insert things fail with an exception no such function SCOPE_IDENTITY Table class public class User public int Id get; set; public string Name get; set; public int Age get; set; Simplest piece of code to test static void Main( string args ) SQLiteConnection conn = new SQLiteConnection( "Data Source=E:\Databases\MyDatabase.db;Version=3" ); conn.Open(); var usr = new User Name = "Dave", Age = 65 ; var id = conn.Insert(usr); conn.Close(); As indicated earlier when I run the code the data is inserted into the table but the program terminates with the SCOPE_IDENTITY exception. Any assistance would be greatly appreciated dapper-simplecrud share | improve this question edited Nov 10 at 12:05 marc_s 564k 125 1089 1242 asked Nov 10 at 11:48 hypothesys 6 1 New contr