Posts

Android Content Provider

Image
Steps to interact with existing Content Providers Data storage methods like SharedPreferences and file system are most specific to one application. If you want share our data across different applications then we go for ContentProviders. But at content providers can get data from database, file system, xml or network as depicted in the below Image. Content providers store and retrieve data and make it accessible to all applications. They’re the only way to share data across applications; there’s no common storage area that all Android packages can access. Android ships with a number of content providers for common data types (audio, video, images, personal Contact information, and so on) you can query these providers for the data they contain (although, for some, You must acquire the proper permission to read the data). If you want to make your own data public, you have two options: You can create your own content provider. You can add the data t...

File Transfer Protocols with java

FTP (File Transfer Protocol): This tutorial explains about the File Transfer Protocols with java . FTPS and SFTP both are different protocols. FileZilla and putty are the FTP Clients to transfer files in java independent way. here is the brief introduction of FTP, sFTP, FTPs. FTP (File Transfer Protocol): Does not take any precautions to protect information transmitted during a session. This includes your username, password, and any files transmitted. During an FTP session, your username and password are transmitted in clear text. If someone is eavesdropping, it is not difficult for them to log your FTP username and password. In FTP all data is passed back and forth between the client and server in un-encrypted manner. This makes it possible for an eavesdropper to listen in and retrieve your confidential information including login details. With SFTP all the data is encrypted before it is sent across the network. SFTP (Secure File Transfe...