Sai baba sayings tamil text for android textview
To display Sai Baba sayings in Tamil text in an Android TextView, you can follow these steps:
1. First, you need to have a collection of Sai Baba sayings in Tamil text. You can either type them out yourself or find them online.
2. Create a new Android project in Android Studio.
3. In the `res` folder of your project, create a new folder called `raw` and place a text file containing the Sai Baba sayings in Tamil in this folder. You can name the file `sai_baba_sayings_tamil.txt`.
4. In your activity layout XML file, add a TextView element where you want to display the Sai Baba sayings. Give it an id, for example, `tvSaiBabaSayings`.
5. In your activity Java file, you can read the text file and set the content to the TextView. Here is an example code snippet to read the text file and set it to the TextView:
```java
TextView tvSaiBabaSayings = findViewById(R.id.tvSaiBabaSayings);
InputStream inputStream = getResources().openRawResource(R.raw.sai_baba_sayings_tamil);
BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));
StringBuilder stringBuilder = new StringBuilder();
String line;
try {
while ((line = reader.readLine()) != null) {
stringBuilder.append(line).append("\n");
}
} catch (IOException e) {
e.printStackTrace();
}
String text = stringBuilder.toString();
tvSaiBabaSayings.setText(text);
```
6. Make sure to handle exceptions and close the input stream properly.
7. Run your Android application, and you should see the Sai Baba sayings in Tamil displayed in the TextView.
This is a basic example to get you started. You can further enhance the UI and functionality based on your requirements.
Above is Sai baba sayings tamil text for android textview.