Skip to main content

Posts

Showing posts with the label android

PDFScanner RS - Scan, Make PDF

PDF Scanner RS – Capture, Resize, Enhance & Create PDFs       Download: https://play.google.com/store/apps/details?id=com.rssoft.pdfscanner&pcampaignid=web_share PDF Scanner RS is your go-to app for scanning, editing, and creating professional PDF documents directly on your smartphone. Whether you need to scan important papers, receipts, or photos, or convert images into high-quality PDFs, this app has you covered. With advanced AI-powered features and an intuitive design, PDF Scanner RS allows you to capture images, browse files from your gallery, resize them intelligently, apply filters, and generate polished PDFs. Plus, the app lets you save your scanned images in PNG format, offering greater flexibility for your document management needs. Key Features *Scan Documents Instantly* Capture high-resolution images of documents, receipts, notes, or photos with your camera. Automatic edge detection ensures your scans are clean and professional. *Browse ...

Google's webRTC AECM for Android Mobile devices in C++

Now a days many of mobile devices comes with built-in hardware echo canceler.  But the low end devices that cost little doesn't have this feature integrated. And moreover the previous older android devices doesn't have the echo canceler. In my journey of echo cancellation I have came across a valuable library that will do everything for you , if you provide it the necessary gasoline . I have tested this echo canceler tool with my HTC desire 610 . Which is pretty cheap and doesn't have any built-in hardware echo canceler.  I have designed an algorithm for capture and playback, which uses ring-buffer, calculate the delay and use the webRTC aecm modules API. Here we go --     InitiateAecm()     Set the clock cycle rate.     Set the echo tail length.     Set the channel count.     Set the byte per sample. // it's 2 byte per sample          Calculate sa...

How to start or open new activity or window from one window on button click

Requirement: You want to make an "app", which displays a login screen, and users can log in. If the login is correct,  open a new window, where users can do other staff. Then how can you do this? Ans: Step 1. Create a layout xml for the new window. In my case I have created one named newwindow.xml . The entry are as follows -- <?xml version="1.0" encoding="utf-8"?> <Gallery xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:background="#9999FF" >    </Gallery> Step 2. Create a class with extending Activity . Step 3. On that new class add -- public void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.newwindow);     } Here newwindow is the lay...

How to add button action for multiple button in android

In android it is extreme necessary to use button and do many thing on click or touch of this button. So how you can do this ? Ans:   It's pretty simple! Just find out the -- findViewById(R.id.dummy_button).setOnTouchListener( mDelayHideTouchListener ); It is generated by default in new android sdk. The bold portion is the touch listener for button which is implemented on bellow of your main activity class. You can do your thing on overriden function OnTouch . If you want to do it for click and many button here is the way -- findViewById(R.id.dummy_button).setOnClickListener( ButtonListener ); View.OnClickListener ButtonListener = new View.OnClickListener(){         public void onClick(View view) {             switch (view.getId()) {                 case R.id.dummy_button:     ...

How to move or put the android button in the middle of the screen

Ques: How to centre buttons on screen horizontally and vertically ? Default Screen: Ans: You need to use a Relative Layout for android GUI in the activity_fullscreen.xml   or whatever you name it. You just need to add the android:layout_centerInParent="true" on your relative layout scope. In default android generate the layout as linear layout for your GUI activity. In that activity you can't use android:layout_centerInParent="true". It will generate warning as --- Invalid layout param in a LinearLayout: layout_centerInParent    activity_fullscreen.xml    /YourProject/res/layout    line 52    Android Lint Problem How?:    Step 1. First open the layout xml from /YourProject/res/layout . Step 2. Change all of the <FrameLayout> ... </FrameLayout> to <RelativeLayout> ... </RelativeLayout> .  Step 3.  Delete default button code porti...

This Android SDK requires Android Developer Toolkit version 22.0.0 or above.

ISSUE: This Android SDK requires Android Developer Toolkit version 22.0.0 or above.  Current version is 21.1.0.2013-2-6-0-46.  Please update ADT to the latest version. SOLUTION: Run Eclipse as administrator . Go to Help → Install New Software . On Work with: type https://dl-ssl.google.com/android/eclipse/ and press ENTER. Wait for Eclipse to fetch the repository. An item named Developer tools will appear in the list. Mark it for install, press Next and follow the steps to install the ADT tools. When finished, it will ask to restart Eclipse. Make sure you do this. When Eclipse restarts, all your Android SDK packages should show up again.