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).

1  
!636
2  
3  
import android.app.Activity;
4  
import android.widget.*;
5  
import android.graphics.*;
6  
import android.hardware.Camera;
7  
8  
main {
9  
  psvm {
10  
    print "Listing cameras..."
11  
    
12  
    int n = Camera.getNumberOfCameras();
13  
    System.out.println("Cameras: " + n);
14  
  }
15  
}

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: 732 / 702
Referenced in: [show references]