This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| keytool -list -alias xxx -keystore "path to debug.keystore"-storepass android -keypass android | |
| /* LocationManager location = (LocationManager)this.getSystemService(Context.LOCATION_SERVICE); */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| protected boolean isOnline() | |
| { | |
| ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); | |
| NetworkInfo netInfo = cm.getActiveNetworkInfo(); | |
| if (netInfo != null && netInfo.isConnectedOrConnecting()) | |
| { | |
| return true; | |
| } else | |
| { | |
| return false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| textView.setMovementMethod(new ScrollingMovementMethod()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.hanselandpetal.catalog; | |
| import org.apache.http.HttpResponse; | |
| import org.apache.http.client.methods.HttpGet; | |
| import org.apache.http.util.EntityUtils; | |
| import android.net.http.AndroidHttpClient; | |
| public class HttpManager { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <permission | |
| android:name="com.example.gmapsapp.permission.MAPS_RECEIVE" | |
| android:protectionLevel="signature"/> | |
| <uses-permission android:name="com.example.gmapsapp.permission.MAPS_RECEIVE"/> | |
| <uses-permission android:name="android.permission.INTERNET"/> | |
| <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public boolean servicesOK() { | |
| int isAvailable = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this); | |
| if (isAvailable == ConnectionResult.SUCCESS) { | |
| return true; | |
| } | |
| else if (GooglePlayServicesUtil.isUserRecoverableError(isAvailable)) { | |
| Dialog dialog = GooglePlayServicesUtil.getErrorDialog(isAvailable, this, GPS_ERRORDIALOG_REQUEST); | |
| dialog.show(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1.Define output file name | |
| String outputFilePath = pathComponent(secondInput)+"\\Output.xlsx"; | |
| 2.Define outputstream using output file name | |
| FileOutputStream outputStream = new FileOutputStream(outputFilePath); | |
| 3.Initiate Workbook | |
| XSSFWorkbook workbook = new XSSFWorkbook(); | |
| 4.Createsheet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.din.own; | |
| import java.awt.BorderLayout; | |
| import java.awt.Component; | |
| import java.awt.Dimension; | |
| import java.awt.datatransfer.DataFlavor; | |
| import java.awt.datatransfer.Transferable; | |
| import java.awt.event.ActionEvent; | |
| import java.awt.event.ActionListener; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| required 6 libs | |
| commons-collections4-4.1.jar | |
| jsoup-1.10.1.jar | |
| poi-3.15.jar | |
| poi-ooxml-3.15.jar | |
| poi-ooxml-schemas-3.15.jar | |
| xmlbeans-2.6.0.jar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.din.comp.compare; | |
| import java.awt.BorderLayout; | |
| import java.awt.Component; | |
| import java.awt.Dimension; | |
| import java.awt.datatransfer.DataFlavor; | |
| import java.awt.datatransfer.Transferable; | |
| import java.awt.event.ActionEvent; | |
| import java.awt.event.ActionListener; | |
| import java.io.File; |
OlderNewer