Import the camera application in the android source code to eclipse

Source: Internet
Author: User
The following error occurs:
Import
Android. Media. mediametadataretriever;
Import
Android. Media. exifinterface;
Import Android. OS. systemproperties;
Yes
Many packages cannot be found. Why?

  • False; "href =" javascript:; "> useful to me
    [1
    ]
  • False; "href =" javascript:; "> A brick is lost.
    [0
    ]
  • Reference
  • Report
  • False} catch (Ex) {} "href =" javascript:; "> Manage
  • Top

Replies: 6

 

  • Jinlking
  • Level 1:
# 1st floor score: 0
Reply: 16:39:11

The SDK cannot be used without being opened.

  • False; "href =" javascript:; "> useful to me
    [0
    ]
  • False; "href =" javascript:; "> A brick is lost.
    [0
    ]
  • Reference
  • Report
  • False} catch (Ex) {} "href =" javascript:; "> Manage
  • Top
Best recommendation: smssendmessage sends Short Messages
Information Platform Problems
  • Yili_xie
  • (Thousands of years old)
  • Level 1:
# Second floor score: 10
Reply: 17:33:15

Many of the packages are system packages, which are provided in Android source, but are not provided by the SDK. Therefore, you will be prompted that the SDK cannot be found ~~
You
See if you can import the jar package in source first ~~

  • False; "href =" javascript:; "> useful to me
    [1
    ]
  • False; "href =" javascript:; "> A brick is lost.
    [0
    ]
  • Reference
  • Report
  • False} catch (Ex) {} "href =" javascript:; "> Manage
  • Top
Excellent recommendation: How to encapsulate a dialog box of your own in Win32
  • Omett
  • (Winter is warm, summer is cold, and winter is warm)
  • Level 1:
# Third floor score: 0
Reply: 15:01:44

Are all the missing packages available in the source code?

  • False; "href =" javascript:; "> useful to me
    [0
    ]
  • False; "href =" javascript:; "> A brick is lost.
    [0
    ]
  • Reference
  • Report
  • False} catch (Ex) {} "href =" javascript:; "> Manage
  • Top
Best recommendation: All bare hosts solution ~ Awesome!
  • Liujinrui
  • (Feng. Lin. Hai)
  • Level 1:
#4 floor score: 10
Reply: 13:31:17

Import Android. Media. mediametadataretriever;
Import
Android. OS. systemproperties;
Both sdks have
Import
Android. Media. exifinterface;
This class is in the camera source code.

  • False; "href =" javascript:; "> useful to me
    [0
    ]
  • False; "href =" javascript:; "> A brick is lost.
    [0
    ]
  • Reference
  • Report
  • False} catch (Ex) {} "href =" javascript:; "> Manage
  • Top
Excellent recommendation: how to make the program adapt to various screen sizes?
  • Freechinaren
  • Level 1:
# Fifth floor score: 0
Reply: 09:39:35

After testing, I found the solution:
.....
In the android SDK
The data/layoutlib. jar file in the directory is required.
Add layoutlib. jar to the current project.
The method is as follows:
Eclipse-> Project-> properties-> JAVA
Build path-> libraries-> Add external jars...
Then select layoutlib. Jar
File.

... Good luck to you!

  • False; "href =" javascript:; "> useful to me
    [0
    ]
  • False; "href =" javascript:; "> A brick is lost.
    [0
    ]
  • Reference
  • Report
  • False} catch (Ex) {} "href =" javascript:; "> Manage
  • Top
Excellent recommendation: Close your mouth★★Cool★★Creative highlights
  • Sun6223508
  • (Sun6223508)
  • Level 1:
# Score on the 6th floor: 0
Reply: 16:18:14

Some APIs are not available
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.