All posts by admin

enable checkbox events in Listview

listView.setOnItemClickListener(new android.widget.AdapterView.OnItemClickListener() {
public void onItemClick(AdapterView<?> parent, View view,
int position, long id) {
// When clicked, show a toast with the TextView text
Country country = (Country) parent.getItemAtPosition(position);
CheckBox cb=(CheckBox)view.findViewById(R.id.checkBox1);
cb.toggle();
country.setSelected(cb.isChecked());
Toast.makeText(getApplicationContext(),
“Clicked on Row: ” + country.getName(),
Toast.LENGTH_LONG).show();
}
});

 

http://developer.android.com/reference/android/widget/Checkable.html#toggle()

mylib

Want to share Web pages that have content to myself and edit (comment, reorgnize it)

When post a photo, should allow small size photo right to phone size, and allow add comment, links.

Why do peope who want to edit it must register? I can share it with anyone, and they can freely edit it they way they want. but I will keep my version, and I can see other’s version.

 

Canada Phone provider network band frequence

 

chart

 

LTE

Bell/Telus :  LTE AWS (1700 MHz) or LTE 700 MHz bands, or UMTS/HSPA compatible on 850/1900 MHz bands.

 

Device:

Ipad mini Cell:

  • UMTS/HSPA/HSPA+/DC-HSDPA (850, 900, 1700/2100, 1900, 2100 MHz); GSM/EDGE (850, 900, 1800, 1900 MHz)
  • CDMA EV-DO Rev. A and Rev. B (800, 1900 MHz)
  • LTE (Bands 1, 2, 3, 4, 5, 7, 8, 13, 17, 18, 19, 20, 25, 26)3

Sumsung:

  • Network compatibility
    LTE
  • Maximum download speed
    Up to 75 Mbps
  • LTE compatibility
    Yes
  • HSPA/UMTS compatibility
    850/1900/2100 MHz
  • GPRS/EDGE compatibility
    850/900/1800/1900 MHz

1. Telus (Koodo)
2G
CDMA 850/1900
EVDO 850/1900

3G (and fake 4G)
HSDPA 850/1900
HSPA+ 850/1900
UMTS 850/1900
WCDMA 850/1900
1x EV-DO CDMA2000

4G (called 4G+)
LTE 1700/2100
——————————————————————–
2. Bell (Virgin Mobile, PC Mobility)

2G
CDMA 850/1900
EVDO 850/1900

3G (and fake 4G)
HSDPA 850/1900
HSPA+ 850/1900
UMTS 850/1900
WCDMA 850/1900
1x EV-DO CDMA2000

4G
LTE 1700
—————————————————————————
3. Rogers (Fido, Petro-Canada Mobility)

2G
GSM 850/1900
GPRS 850/1900
EDGE 850/1900

3G (and fake 4G)
HSDPA 850/1900
HSPA+ 850/1900
UMTS 850/1900
WCDMA 850/1900

4G
LTE 1700

TRACE for win32

// TRACE macro for win32
#ifndef __TRACE_H__850CE873
#define __TRACE_H__850CE873

#include <crtdbg.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>

#ifdef _DEBUG
#define TRACEMAXSTRING	1024

char szBuffer[TRACEMAXSTRING];
inline void TRACE(const char* format,...)
{
	va_list args;
	va_start(args,format);
	int nBuf;
	nBuf = _vsnprintf(szBuffer,
				   TRACEMAXSTRING,
				   format,
				   args);
	va_end(args);

	_RPT0(_CRT_WARN,szBuffer);
}
#define TRACEF _snprintf(szBuffer,TRACEMAXSTRING,"%s(%d): ", \
				&strrchr(__FILE__,'\\')[1],__LINE__); \
				_RPT0(_CRT_WARN,szBuffer); \
				TRACE
#else
// Remove for release mode
#define TRACE  ((void)0)
#define TRACEF ((void)0)
#endif

#endif // __TRACE_H__850CE873

Balance Sheets

Balance Sheets

A balance sheet provides detailed information about a company’s assets,liabilities and shareholders’ equity.

Assets are things that a company owns that have value. This typically means they can either be sold or used by the company to make products or provide services that can be sold. Assets include physical property, such as plants, trucks, equipment and inventory. It also includes things that can’t be touched but nevertheless exist and have value, such as trademarks and patents. And cash itself is an asset. So are investments a company makes.

Liabilities are amounts of money that a company owes to others. This can include all kinds of obligations, like money borrowed from a bank to launch a new product, rent for use of a building, money owed to suppliers for materials, payroll a company owes to its employees, environmental cleanup costs, or taxes owed to the government. Liabilities also include obligations to provide goods or services to customers in the future.

Shareholders’ equity is sometimes called capital or net worth. It’s the money that would be left if a company sold all of its assets and paid off all of its liabilities. This leftover money belongs to the shareholders, or the owners, of the company.

The following formula summarizes what a balance sheet shows:

ASSETS = LIABILITIES + SHAREHOLDERS’ EQUITY

A company’s assets have to equal, or “balance,” the sum of its liabilities and shareholders’ equity.

Type of financial statements

. They are:

(1) balance sheets;

Balance sheets show what a company owns and what it owes at a fixed point in time.
(2) income statements;

Income statements show how much money a company made and spent over a period of time.

(3) cash flow statements;

Cash flow statements show the exchange of money between a company and the outside world also over a period of time.

(4) statements of shareholders’ equity.

shows changes in the interests of the company’s shareholders over time.