Posts

What is a C programming

What is a C Program? | Detailed Explanation of C Tokens and Identifier Rules 💻 What is a C Program? A C program is a computer program written in the C programming language , which is a general-purpose, powerful, and fast low-level language. It was developed by Dennis Ritchie in 1972 at Bell Labs to create the Unix Operating System . C is the foundation of many modern programming languages such as C++ , Java , and Python . C is a powerful and efficient language — it allows direct control of memory and is ideal for creating high-performance software. ✨ Key Features of the C Language: Fast execution Efficient memory management Modular programming support Portable across platforms 🧠 Example of a Simple C Program: #include <stdio.h> int main() { printf("Hello, World!\\n"); return 0; } This program simply prints “Hello, World!” on the screen. 🔹 What are C Tokens? When writing a C program, each statement is made up o...

Android app publishing & Deployment

Android App Publishing மற்றும் Deployment Android App Publishing மற்றும் Deployment அறிமுகம் Android App-ஐ உருவாக்கிய பிறகு, அதை Publish செய்து உலகம் முழுவதும் உள்ள பயனர்களிடம் கொண்டு சேர்க்க வேண்டும். இதற்கான அதிகாரப்பூர்வ தளம் Google Play Store . Step 1: APK / AAB உருவாக்கம் APK (Android Package): பழைய build format. AAB (Android App Bundle): Google Play-க்கு பரிந்துரைக்கப்படும் format. Android Studio → Build → Generate Signed Bundle/APK Step 2: Keystore உருவாக்கம் உங்கள் app-ஐ பாதுகாப்பாக sign செய்ய, ஒரு keystore file தேவை. // Example command keytool -genkey -v -keystore mykey.jks -keyalg RSA -keysize 2048 -validity 10000 -alias myalias Step 3: App Signing Signed APK/AAB build செய்து, அதை Play Store-ல் upload செய்ய வேண்டும். Step 4: Google Play Console Play Console login செய்யுங்கள். New Applic...

Android testing & Debugging

Android Testing மற்றும் Debugging Android Testing மற்றும் Debugging அறிமுகம் Android அப்ளிகேஷன் உருவாக்கும் போது Testing மற்றும் Debugging முக்கிய பங்காற்றுகின்றன. பிழைகளை விரைவில் கண்டுபிடித்து சரிசெய்வது, தரமான அப்ளிகேஷனை வழங்க உதவும். Debugging Basics Logcat: System messages, exceptions, logs அனைத்தையும் பார்க்க உதவும். Breakpoints: Code execution-ஐ இடைநிறுத்தி variable values பார்க்கலாம். Step Execution: Code-ஐ வரிசையாகச் சோதிக்கலாம். // Example: Debug log Log.d("MainActivity", "Button clicked: " + buttonId); Unit Testing (JUnit) Unit testing மூலம், ஒவ்வொரு function/class எதிர்பார்த்தபடி வேலை செய்கிறதா என்று சோதிக்கலாம். // Example JUnit test (Java) public class CalculatorTest { @Test public void addition_isCorrect() { assertEquals(4, 2 + 2); } } UI Testing (Espresso) Espresso fra...

Android API (Rest API)

Android API Integration (REST API) Android API Integration (REST API) Android-இல் REST API பயன்பாட்டின் மூலம் வெளி தரவுகளை (external data) எளிதில் பெற்றுக்கொள்ளலாம். உதாரணமாக, Weather App, News App, அல்லது Social Media Integration. REST API என்றால் என்ன? REST (Representational State Transfer) என்பது HTTP protocol மூலம் client ↔ server இடையே தரவு பரிமாற்றம் செய்யும் முறையாகும். பொதுவாக JSON வடிவில் தரவு அனுப்பப்படுகிறது. Android-இல் API Integration செய்வது எப்படி? OkHttp → Lightweight HTTP client Volley → Google library, fast network operations Retrofit → Most popular, easy JSON parsing 1. OkHttp Example // build.gradle dependency: // implementation 'com.squareup.okhttp3:okhttp:4.9.3' OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() .url("https://api.example.com/data") .build(); client.newCall(request).enqueue(new Callback() { ...

Android database integration

Android Database Integration 📱 Android Database Integration ஒரு Android App-இல் தரவை சேமிப்பது மிகவும் முக்கியமானது. இந்த பகுதியில் SQLite , Room , மற்றும் Firebase பயன்படுத்தி எப்படி Database இணைக்கலாம் என்பதைப் பார்ப்போம். 1. SQLite Database SQLite என்பது Android-இல் உள்ளபடியே கிடைக்கும் ஒரு லைட்வெயிட் (lightweight) database ஆகும். 👉 உதாரணம் (Java) public class DBHelper extends SQLiteOpenHelper { public DBHelper(Context context) { super(context, "notes.db", null, 1); } @Override public void onCreate(SQLiteDatabase db) { db.execSQL("CREATE TABLE notes(id INTEGER PRIMARY KEY, title TEXT, content TEXT)"); } @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { db.execSQL("DROP TABLE IF EXISTS notes"); onCreate(db); } } 👉 உதாரணம் (Kotlin) class DBHelper(context: Context) : SQLiteOpenHelper(context, "notes....

Android Ui design & layout -material design

Android UI Design & Layouts - Material Design தமிழில் Android UI Design & Layouts Material Design வழிகாட்டி தமிழில் 1. Layouts பற்றி அறிதல் Android UI வடிவமைப்பில் முக்கியமானவை Layouts . அவை: LinearLayout → Elements-ஐ Horizontal/Vertical வரிசையில் வைக்கிறது RelativeLayout → Elements-ஐ ஒன்றுக்கொன்று தொடர்புபடுத்துகிறது ConstraintLayout → Complex UI-களுக்கான Flexible Layout FrameLayout → ஒரே இடத்தில் Overlay செய்ய பயன்படுத்தப்படும் 2. LinearLayout உதாரணம் <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:padding="16dp"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="பெயர...

Create Hello world app

Hello World App உருவாக்குதல் - Android Development Android Hello World App உருவாக்குதல் உங்கள் முதல் Android செயலியை உருவாக்கும் படிப்படியான வழிகாட்டி 1. புதிய Project தொடங்குதல் Android Studio-ஐ திறந்து New Project என்பதை கிளிக் செய்யவும். Empty Activity template-ஐ தேர்வு செய்யவும். Project name: HelloWorld Language: Java அல்லது Kotlin Minimum SDK: API 21 (Android 5.0 Lollipop) Finish அழுத்தவும் → Project load ஆகும். 2. UI வடிவமைத்தல் (XML) res/layout/activity_main.xml கோப்பை திறந்து, கீழே உள்ள code-ஐ இடுங்கள்: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center"> <TextView android:id="@+id/textView" a...