【发布时间】:2012-11-05 11:01:51
【问题描述】:
好吧,我在学习 android 的时候有点不知所措。在最终开发出我的简单小应用程序之后,我正在尝试利用拥有原生应用程序的一些好处。
所以,项目一,制作一个可以通过电子邮件发送图像的页面(来自画廊或相机)
基本上是通过电子邮件选择和发送,但我什至不知道从哪里开始。
我发现了一些其他人正在询问的代码; Android App Take/ Email Photo
我试过这个,但是从 eclipse 中得到了各种各样的错误,复制到 downloadedPic 部分。
如果有人可以请看一下并建议我执行此操作的最佳方法,那将是惊人的。像往常一样为我初学者的愚蠢感到抱歉,但我想每个人都必须在某个地方学习
这是我目前的 .JAVA
public class Photos extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_photos);
getActionBar().setDisplayHomeAsUpEnabled(true);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.activity_photos, menu);
return true;
}
这是我目前的 .XML
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Please chose the options below to select and upload photos into the
DCC for the selected project..."
tools:context=".Photos"
android:textAppearance="?android:attr/textAppearanceMedium" />
</LinearLayout>
【问题讨论】:
-
应该是附件还是正文区?
-
请附上... :) 如果可能的话...
-
如果你能解释一下代码中每个部分的作用,那就太棒了!
-
只有附件可能,因为正文不会接受任何图像。你应该等我为你疯狂
-
看到我上传了代码并回复我是怎么回事?
标签: android android-camera android-camera-intent