Skip to content

Add documentation for native Android Kotlin integration options#1

Draft
Copilot wants to merge 5 commits intomasterfrom
copilot/explore-android-kotlin-options
Draft

Add documentation for native Android Kotlin integration options#1
Copilot wants to merge 5 commits intomasterfrom
copilot/explore-android-kotlin-options

Conversation

Copy link
Copy Markdown

Copilot AI commented Nov 7, 2025

BitooBitImageEditor is a Xamarin.Forms library. Native Android Kotlin projects cannot directly consume it without embedding the entire Xamarin runtime.

Changes

KOTLIN_ANDROID_USAGE.md - Comprehensive guide (266 lines)

  • Four integration approaches with technical tradeoffs
  • Recommended: Native Android alternatives (PhotoEditor, uCrop, Android-Image-Cropper, GPUImage)
  • Complete Kotlin example with proper null safety and imports
  • Feature-by-feature comparison table for migration decisions

README.md - Added prominent notice with link to guide

.github/NATIVE_ANDROID_FAQ.md - Quick reference for common questions

Example Usage (Recommended Approach)

import ja.burhanrashid52.photoeditor.PhotoEditor
import ja.burhanrashid52.photoeditor.PhotoEditorView

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        
        val photoEditorView = findViewById<PhotoEditorView>(R.id.photoEditorView)
        val photoEditor = PhotoEditor.Builder(this, photoEditorView)
            .setPinchTextScalable(true)
            .build()
            
        val bitmap = BitmapFactory.decodeResource(resources, R.drawable.sample_image)
        photoEditorView.source.setImageBitmap(bitmap)
        photoEditor.addText("Hello", Color.RED)
        
        val filePath = File(
            externalCacheDir ?: cacheDir, 
            "edited_${System.currentTimeMillis()}.jpg"
        ).absolutePath
        photoEditor.saveAsFile(filePath, saveListener)
    }
}

Gradle: implementation 'com.burhanrashid52:photoeditor:3.0.2'

Original prompt

I need to use this in my android project. It is native andorid an uses kotlin. what are the options for me ?


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Explore options for native Android development using Kotlin Add documentation for native Android Kotlin integration options Nov 7, 2025
Copilot AI requested a review from digikins November 7, 2025 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants