Son Forum Aktiviteleri
12Spring Boot Security
Merhaba arkadaslar.
Spring Security hakkinda detayli bilgi veren turkce site bulamiyorum. Yardim ede bilirseniz cok sevinirim
Keeps Stoping Hatasi
Merhaba arkadaslar.
Android programlamada yeniyim. ConstraintLayout'un icinde bir TextView birde GridLayout bulunuyor. Fakat
GridLayout gridLayout = findViewById(R.id.gridlayout);
satirini yazib programi calisdirdigimda "App has stoped" hatasi aliyorum. Ama bu satiri sildigimde app normal calisiyor. Niye oluyor bir turlu cozemedim. Yardim ederseniz sevinirim.
JavaScript resizable olusturma.
Merhaba arkadaslar. Yardiminiza ihtiyacim var. resim uzerine metin ve ya resim eklemek icin asagidaki resimdeki gibi resizable'ye ihtiyacim var. Ne yapmam gerekiyor. Yardimci olun lutfen :/
Android listview unfortunately has stopped hatasi
merhaba arkadaslar. Sql Server veritabanindaki verilerimi listview ile goslermek istiyorum. bunun icin String dizi donduren method yazdim ve. bu methodun degerlerini String diziye artardim. bi diziyi Adapter ile Listview ile birlesdirdim ama uygulamayi calisdirdigimda "unfortunately has stopped" hatasi geliyor. Nerde hata yapmisim bulamiyorum. yardim edin bir zahmet.
Connection.java
[code]
package com.nursultan.borc_al;
import java.sql.DriverManager;
import java.sql.DriverPropertyInfo;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Properties;
import net.sourceforge.jtds.jdbc.Driver;
public class Connection {
private java.sql.Connection baglanti;
private Statement statement;
private ResultSet rs;
public Connection(){
try {
DriverManager.registerDriver(new Driver());
baglanti = DriverManager.getConnection("jdbc:sqlserver://localhost:1433;databaseName=test1;user=example;password=***********;");
statement = baglanti.createStatement();
} catch (Exception e) {
e.printStackTrace();
}
}
private int borcumAdiCount(){
int count = 0;
try {
String sql = "SELECT count(*) from ExampleDB.dbo.tbl_borclarim";
rs = statement.executeQuery(sql);
if(rs.next()){
count = rs.getInt(1);
}
return count;
} catch (Exception e) {
e.printStackTrace();
return 0;
}
}
public String[] borcAdi(){
String arrayBorcumAdi[] = new String[borcumAdiCount()];
try {
String adSql = "SELECT * from ExampleDB.dbo.tbl_borclarim";
rs = statement.executeQuery(adSql);
int i =0;
while(rs.next()){
String array_borcum = rs.getString("borcum");
arrayBorcumAdi [i] = array_borcum;
i++;
}
} catch (Exception e) {
e.printStackTrace();
}
return arrayBorcumAdi;
}
private int borcumCount(){
int count = 0;
try {
String sql = "SELECT count(*) from ExampleDB.dbo.tbl_borclarim";
rs = statement.executeQuery(sql);
if(rs.next()){
count = rs.getInt(1);
}
return count;
} catch (Exception e) {
e.printStackTrace();
return 0;
}
}
public String[] borcum(){
String arrayBorcum[] = new String[borcumCount()];
try {
String borcSql = "SELECT * from ExampleDB.dbo.tbl_borclarim";
rs = statement.executeQuery(borcSql);
int i =0;
while(rs.next()){
String array_borcum = rs.getString("borclarim_adi");
arrayBorcum [i] = array_borcum;
i++;
}
} catch (Exception e) {
e.printStackTrace();
return null;
}
return arrayBorcum;
}
}
[/code]
Borclarim.java
[code]
package com.nursultan.borc_al;
import java.sql.DriverManager;
import java.sql.DriverPropertyInfo;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Properties;
import net.sourceforge.jtds.jdbc.Driver;
public class Connection {
private java.sql.Connection baglanti;
private Statement statement;
private ResultSet rs;
public Connection(){
try {
DriverManager.registerDriver(new Driver());
baglanti = DriverManager.getConnection("jdbc:sqlserver://localhost:1433;databaseName=ExampleDB;user=example;password=root;");
statement = baglanti.createStatement();
} catch (Exception e) {
e.printStackTrace();
}
}
private int borcumAdiCount(){
int count = 0;
try {
String sql = "SELECT count(*) from ExampleDB.dbo.tbl_borclarim";
rs = statement.executeQuery(sql);
if(rs.next()){
count = rs.getInt(1);
}
return count;
} catch (Exception e) {
e.printStackTrace();
return 0;
}
}
public String[] borcAdi(){
String arrayBorcumAdi[] = new String[borcumAdiCount()];
try {
String adSql = "SELECT * from ExampleDB.dbo.tbl_borclarim";
rs = statement.executeQuery(adSql);
int i =0;
while(rs.next()){
String array_borcum = rs.getString("borcum");
arrayBorcumAdi [i] = array_borcum;
i++;
}
} catch (Exception e) {
e.printStackTrace();
}
return arrayBorcumAdi;
}
private int borcumCount(){
int count = 0;
try {
String sql = "SELECT count(*) from ExampleDB.dbo.tbl_borclarim";
rs = statement.executeQuery(sql);
if(rs.next()){
count = rs.getInt(1);
}
return count;
} catch (Exception e) {
e.printStackTrace();
return 0;
}
}
public String[] borcum(){
String arrayBorcum[] = new String[borcumCount()];
try {
String borcSql = "SELECT * from ExampleDB.dbo.tbl_borclarim";
rs = statement.executeQuery(borcSql);
int i =0;
while(rs.next()){
String array_borcum = rs.getString("borclarim_adi");
arrayBorcum [i] = array_borcum;
i++;
}
} catch (Exception e) {
e.printStackTrace();
return null;
}
return arrayBorcum;
}
}
[/code]
Virtual device got no ip address
Merhaba arkadaslar. Genymotion'u run etdigimde "the virtual device got no ip address" hatasi ile karsilasiyorum. Nasil duzelte bilirim bunu??
ListView klikledikde diger sayfaya foto gonderme
Kodu su sekilde yazdim ama getParcelableExtra(" "); methodunda cift tirnak icinde hangi parametrenin yazilacagini bulamiyorum. jsondan gelen image ismi mi yoksa textview id si mi
[code]
listview.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> arg0, View view, int position, long id) {
String title = ((TextView) view.findViewById(R.id.titleBasliq)).getText().toString();
String title_sonluq = ((TextView) view.findViewById(R.id.titleSonluq)).getText().toString();
String detail = ((TextView) view.findViewById(R.id.detail)).getText().toString();
Bitmap sekil = getIntent().getParcelableExtra(" ");
Intent intent = new Intent(MainActivity.this, SingleItemView.class);
intent.putExtra(TITLE, title);
intent.putExtra(TITLE_SONLUQ, title_sonluq);
intent.putExtra(TITLE_TEFERRUAT, detail);
intent.putExtra(TITLE_IMAGE, sekil);
startActivity(intent);
}
});
[/code]