Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
T

tan873

@tan873
About
Posts
6
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Get error when passing data using Intent
    T tan873

    Any problem for my coding? Please help, thanks.

    xml code

    MyActivity.java
    package com.example.user.myapplication;

    import android.app.Activity ;
    import android.content.Intent;
    import android.os.Bundle;
    import android.view.View;
    import android.widget.Button;
    import android.widget.EditText;

    import static com.example.user.myapplication.R.*;

    public class MyActivity extends Activity implements View.OnClickListener {
    EditText mtext;
    Button mbutton;

    [@Override](http://www.codeproject.com/Members/OverRide)
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(layout.activity\_my);
    
        mtext   = (EditText)findViewById(id.medittext);
        mbutton = (Button)findViewById(id.btnsubmit);
        mbutton.setOnClickListener(this);
    }
    
    [@Override](http://www.codeproject.com/Members/OverRide)
    public void onClick(View v) {
        // Do something in response to button
        Intent intent = new Intent(this, ViewActivity.class);
        String message = mtext.getText().toString();
        intent.putExtra("mtext",message);
        startActivity(intent);
    
    }
    

    }

    ViewActivity.java
    package com.example.user.myapplication;

    import android.app.Activity;
    import android.content.Intent;
    import android.os.Bundle;
    import android.widget.TextView;
    /**

    Android help java android com xml

  • How to solve this, always get error
    T tan873

    I have a problem when i get value from another class, the error message show "unreported exception java.io.FileNotFoundException; must be caught or declared to be thrown" This is my main code package testtimer; import testing.testing_1234; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.Timer; import java.util.Date; import java.io.*; import java.text.*; import java.util.*; import java.sql.*; import javax.swing.*; import javax.swing.JTable; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.sql.Connection; import java.util.Iterator; /** * * @author tan */ public class testing_page extends javax.swing.JFrame { testing_1234 appsetting = new testing_1234(); String strc=appsetting.getcname(); public rxpooltesting() { initComponents(); } @SuppressWarnings("unchecked") private void initComponents() { setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 400, Short.MAX_VALUE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 300, Short.MAX_VALUE) ); pack(); } public static void main(String args[]) { java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new testing_page().setVisible(true); } }); } } This is my class: package testing; import java.io.*; import java.text.SimpleDateFormat; import java.util.Date; import java.io.FileWriter; import java.io.BufferedWriter; import java.util.Properties; import java.io.FileNotFoundException; public class readsetting { private String PropertiesPath = "C:TestTimer/src/testtimer/setting.properties"; private String strcname; public readsetting() { } public readsetting(String strurl,String struname,String strpword,String strcname,String strxpool, String stridcounter,String strtemppol,String strxlog,String strlogfile,String strDB, String strservice) {} public String getcname() throw

    Java help java database testing beta-testing

  • Cant paging
    T tan873

    Protected Sub btnReport_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnReport.Click Dim dtbTable As DataTable = New DataTable Dim strSQL As String Dim adtSelect As SqlDataAdapter Dim srt1`As String srt1`= TextBox1.Text strSQL = "select * from table1" adtSelect = New SqlDataAdapter(strSQL, conDB) adtSelect.Fill(dtbTable) gridview.DataSource = dtbTable gridview.DataBind() Catch ex As Exception Response.Write(ex.Message.ToString) Finally conDB.Close() End Try End Sub Protected Sub gridview_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles gridview_PageIndexChanging gridview.PageIndex = e.NewPageIndex gridview.DataBind() End Sub

    Visual Basic design

  • Counting the Occurence of each letter in a textbox
    T tan873

    HI I NEED HELP ABOUT COUNTING AN OCCURRENCE OF EACH LETTER IN A TEXTBOX FOR EXAMPLE I HAVE 2 TEXTBOX IN TEXTBOX1 I INPUT THE WORD "HELLO WORLD" THEN WHEN I CLICK BUTTON 1 THEN IT DISPLAY IN TEXTBOX2 LIKE THIS: 1H 1E 3L 2O 1W 1R 1D 1R IT REVERSE AS H1 E1 L3 O2 W1 R1 T1 AS LONG AS IT DISPLAY... THANKS IN ADVANCE I'M NEW IN VB.NET AND I DONT KNOW HOW TO DO THAT...

    Visual Basic tutorial csharp help

  • can't restore differential backup and tracsaction log.
    T tan873

    I do every day differential backup, transaction log and shrink file, weekly full backup.when i restore database, it show this message: Processed 6536 pages for database 'project2', file 'project2' on file 1. Processed 2 pages for database 'project2', file 'project2_log' on file 1. RESTORE DATABASE successfully processed 6538 pages in 12.534 seconds (4.273 MB/sec). Processed 0 pages for database 'project2', file 'project2' on file 1. Processed 4 pages for database 'project2', file 'project2_log' on file 1. RESTORE LOG successfully processed 4 pages in 0.048 seconds (0.544 MB/sec). Msg 4312, Level 16, State 1, Line 3 This log cannot be restored because a gap in the log chain was created. Use more recent data backups to bridge the gap. Msg 3013, Level 16, State 1, Line 3 RESTORE LOG is terminating abnormally. Msg 4312, Level 16, State 1, Line 4 This log cannot be restored because a gap in the log chain was created. Use more recent data backups to bridge the gap. Msg 3013, Level 16, State 1, Line 4 RESTORE LOG is terminating abnormally. Msg 3136, Level 16, State 1, Line 5 This differential backup cannot be restored because the database has not been restored to the correct earlier state. Msg 3013, Level 16, State 1, Line 5 RESTORE DATABASE is terminating abnormally. how can i solve this problem.

    Database database help question

  • zip file
    T tan873

    how to zip file with xp_cmdshell in sql server 2005

    Database database sql-server sysadmin tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups