Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

15
LINES

< > BotCompany Repo | #1000429 // Android: Get number of cameras

JavaX source code (Android) [tags: use-pretranspiled] - run with: the app

Libraryless. Click here for Pure Java version (22L/1K/2K).

!636

import android.app.Activity;
import android.widget.*;
import android.graphics.*;
import android.hardware.Camera;

main {
  psvm {
    print "Listing cameras..."
    
    int n = Camera.getNumberOfCameras();
    System.out.println("Cameras: " + n);
  }
}

Author comment

Began life as a copy of #710

download  show line numbers  debug dex  old transpilations   

Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, exkalrxbqyxc, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, mrjhfnjfopze, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1000429
Snippet name: Android: Get number of cameras
Eternal ID of this version: #1000429/1
Text MD5: 47c867b75c5bb52380ca5505f18ebf1c
Transpilation MD5: 781ba5cfa53008b3ed7f5161929d827e
Author: stefan
Category: javax android
Type: JavaX source code (Android)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-08-05 21:09:18
Source code size: 273 bytes / 15 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 731 / 699
Referenced in: [show references]