Android

 

Multithreading request

http://jmsliu.com/1431/download-images-by-asynctask-in-listview-android-example.html

http://stackoverflow.com/questions/17422705/updating-listview-from-asynctask

 

 

Make Preference in android

http://www.rominirani.com/android-preferences-tutorial/

source
http://stackoverflow.com/questions/1124548/how-to-pass-the-values-from-one-activity-to-previous-activity

http://groups.google.com/group/android-developers/browse_thread/thread/565357693ab1bbfa/911b36b1b536d85d?show_docid=911b36b1b536d85d

 

 

 

 

 

share Information on facebook, Twitter …

http://www.tutomobile.fr/partager-un-element-sur-twitter-facebook-etc-tutoriel-android-n%C2%B023/05/02/2011/

Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/plain");
intent.putExtra(Intent.EXTRA_TEXT, the_pure_link);
startActivity(Intent.createChooser(intent, "Share with"));

How to get result from the second subactivity (see bellow)

To capture actions performed on one Activity within another requires three steps.

Launch the secondary Activity (your ‘Edit Text’ Activity) as a subactivity by using startActivityForResult from your main Activity.

 

 

Intent i = new Intent(this,TextEntryActivity.class);
 startActivityForResult(i, STATIC_INTEGER_VALUE);

 

Within the subactivity, rather than just closing the Activity when a user clicks the button, you need to create a new Intent and include the entered text value in its extras bundle. To pass it back to the parent call setResult before calling finish to close the secondary Activity

 

 

resultIntent = new Intent(null);
 resultIntent.putExtra(PUBLIC_STATIC_STRING_IDENTIFIER, enteredTextValue);
 setResult(Activity.RESULT_OK, resultIntent);
 finish();


The final step is in the calling Activity, override onActivityResult to listen for callbacks from the text entry Activity. Get the extra from the returned Intent to get the text value you should be displaying

 

 @Override
 public void onActivityResult(int requestCode, int resultCode, Intent data) {
 super.onActivityResult(requestCode, resultCode, data);
 switch(requestCode) {
 case (STATIC_INTEGER_VALUE) : {
 if (resultCode == Activity.RESULT_OK) {
 String newText = data.getStringExtra(PUBLIC_STATIC_STRING_IDENTIFIER);
 // TODO Update your TextView.
 }
 break;
 }
 }
 }

Make gallery image

 

http://www.androidpeople.com/android-gallery-imageview-example

First activity to the second activity:
source :

http://stackoverflow.com/questions/2965109/passing-data-between-activities-in-android

Intent i = new Intent(getApplicationContext(), ActivityB.class);
i.putExtra(key, value);
startActivity(i);

then in the other activity, retrieve those values.

Bundle extras = getIntent().getExtras();
if(extras !=null) {
    String value = extras.getString(key);
}


http://www.ezzylearning.com/tutorial.aspx?tid=1659127&q=binding-android-listview-with-string-array-using-arrayadapter
Probleme with ListView

<RelativeLayout>
    <include android:id="@+id/header" layout="@layout/header" android:layout_width="fill_parent" android:layout_alignParentTop="true" />

    <include android:id="@+id/footer" layout="@layout/footer" android:layout_width="fill_parent" android:layout_alignParentBottom="true" /> 

    <ListView android:layout_below="@id/header" android:layout_above="@id/footer"/>
</RelativeLayout>

Other Ressources

Sqli Bitmap save

 

Generic Url Httpclient :
http://lukencode.com/2010/04/27/calling-web-services-in-android-using-httpclient/

List View technique Courantes :
http://stackoverflow.com/questions/5458989/android-listview-multiple-choice
exemple Deux
http://stackoverflow.com/questions/4590856/how-to-get-selected-items-from-multi-select-list-view
http://stackoverflow.com/questions/4590856/how-to-get-selected-items-from-multi-select-list-view

 

 

 

colors
http://devgirl.org/2011/05/09/styling-the-flex-4-5-mobile-application-tabs-and-actionbar/

Theme Icon

http://speckyboy.com/2010/09/30/60-psd-icon-and-button-templates/

 

SQL Tricks

INSERT ON CONFLICT IGNORE

http://stackoverflow.com/questions/3634984/sqlite-insert-if-not-exists-else-update

http://stackoverflow.com/questions/2779823/sqlite-query-to-insert-a-record-if-not-exists

 


Make button on android
http://tech.chitgoks.com/2011/05/17/android-colored-gradient-buttons-using-xml/
iphone Android button experience ?
http://www.mokasocial.com/2011/07/sexily-styled-toggle-buttons-for-android/
http://www.premiumpixels.com/page/4/

Icon Library :
http://androiddrawableexplorer.appspot.com/

differents technique  on ListView Layout
http://www.vogella.de/articles/AndroidListView/article.html

Bind coupling listView and CheckBox actions:
http://dsilvera.developpez.com/tutoriels/android/creer-listview-avec-checkbox-et-gerer-evenements/

Bind Database and Cursor Database :
http://stackoverflow.com/questions/1505751/android-binding-data-from-a-database-to-a-checkbox-in-a-listview

UI Checkbox Example :
http://stackoverflow.com/questions/3192173/change-icons-of-checked-and-unchecked-for-checkbox-for-android

Make Fragment compatible to Android <2.3
http://mobile.tutsplus.com/tutorials/android/android-compatibility-working-with-fragments/
example Fragment
http://mobile.tutsplus.com/tutorials/android/android-sdk_fragments/

Marketing
http://www.airpush.com/users/signup

 

action bar
http://www.androidhive.info/2011/12/android-dashboard-design-tutorial/
http://www.edumobile.org/android/android-beginner-tutorials/action-bar/
http://www.youtube.com/watch?v=gMu8XhxUBl8
http://www.developpez.net/forums/d1110819/java/general-java/java-mobiles/android/probleme-positionnement-action-bar/

Interesting article ui usage
http://android.cyrilmottier.com/

 

 

Search Syntax

** ALL

http://viaf.org/viaf/search?query=cql.any+all+%22boulnois%20olivier%22+&maximumRecords=100&startRecord=1&sortKeys=holdingscount&httpAccept=text/xml

**  personnes Names :

http://viaf.org/viaf/search?query=local.personalNames+all+%22boulnois%20olivier%22+&maximumRecords=100&startRecord=1&sortKeys=holdingscount&httpAccept=text/xml

http://viaf.org/viaf/search?query=cql.any+all+%22Duns%20Scotus%20olivier%22+&maximumRecords=20&startRecord=1&sortKeys=holdingscount&httpAccept=text/xml

http://viaf.org/viaf/search?query=local.personalNames+all+%22Duns%20Scotus%20olivier%22+&maximumRecords=5&startRecord=1&sortKeys=holdingscount&httpAccept=text/xml

**local.names  = Title / Oeuvres ( corporate / work / Expression)

http://viaf.org/viaf/search?query=local.names+all+%22les%20confessions%22&stylesheet=/viaf/xsl/results.xsl&sortKeys=holdingscount&maximumRecords=100

http://viaf.org/viaf/search?query=local.names+all+%22lorenzaccio%22&stylesheet=/viaf/xsl/results.xsl&sortKeys=holdingscount&maximumRecords=100

http://viaf.org/viaf/search?query=local.title+all+%22Lorenzaccio%22&stylesheet=/viaf/xsl/results.xsl&sortKeys=holdingscount&maximumRecords=100

** Titles

http://viaf.org/viaf/search?query=local.personalNames+all+%22lorenzaccio%22&stylesheet=/viaf/xsl/results.xsl&sortKeys=holdingscount&maximumRecords=100

** corporate

http://viaf.org/viaf/search?query=local.corporateNames+all+%22metaphysique%22&stylesheet=/viaf/xsl/results.xsl&sortKeys=holdingscount&maximumRecords=100

**Work

http://viaf.org/viaf/search?query=local.uniformTitleWorks+all+%22metaphysique%22&stylesheet=/viaf/xsl/results.xsl&sortKeys=holdingscount&maximumRecords=100

http://viaf.org/viaf/search?query=[cqlQuery]&maximumRecords=100&startRecord=[startIndex]&sortKeys=holdingscount&httpAccept=text/xml

http://viaf.org/viaf/search?query=cql.any: »boulnois »&maximumRecords=100&startRecord=[startIndex]&sortKeys=holdingscount&httpAccept=text/xml

 

Indexes available

All fields – cql.any
Names – local.names
Personal Names – local.personalNames
Corporate names – local.corporateNames
Preferred Names – local.mainHeadingEl
Title – local.title
Source – local.sources

Sources

Australia – nla
BnF – bnf
Canada – lac
Czech Republic – nkc
DNB – dnb
Egypt – egaxa
Getty – jpg
Israel – nliara nlilat nlicyr nliheb
Italy – iccu
Library of Congress / NACO – lc
Poland – nukat
Portugal – ptbnp
Spain – bne
Sweden – selibr
Switzerland – swnl
Vatican – bav

 

	String numberMaxRecords = "100";
		String suffixUrl = "&startRecord=1&sortKeys=holdingscount&httpAccept=text/xml";

		//new URI(null,null,"http://localhost/test avec espace",null)
	//URI(String scheme, String authority, String path, String query, String fragment)
		String send = URLEncoder.encode( "Boulnois Olivier", "UTF-8" );
		System.out.println(send);

		URI base = new URI("http","viaf.org","/viaf/search","query=cql.any+all\""+send+"\"",null);
		String numRows = URLEncoder.encode("&maximumRecords="+numberMaxRecords, "UTF-8");
		String urlSuffix = URLEncoder.encode(suffixUrl, "UTF-8");
		System.out.println(base+"&maximumRecords=100"+suffixUrl);

 

Laisser un commentaire

Your email address will not be published. Required fields are marked *