abd96d02752636d564dc6a061034af352e4eec3bR290">290
}
origin = handles;
@@ -296,5 +297,12 @@ public class CameraService extends Service implements Camera.CameraListener, Ca
}
+ private void saveBmpAndNotify(int objectHandle, String filename, Bitmap bmp){
+
+// Bundle bundle = new Bundle();
+// bundle.putInt(EXTRA_STATUS_PART, MSG_CAMERA_NEW_PHOTO_FOUND);
+// bundle.putString(EXTRA_DATA_PART,filename);
+// sendCameraIntent(bundle);
+ }
}
@@ -1,4 +1,4 @@ |
||
1 |
-<resources> |
|
1 |
+<resources xmlns:tools="http://schemas.android.com/tools"> |
|
2 | 2 |
|
3 | 3 |
<!-- Base application theme. --> |
4 | 4 |
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> |
@@ -13,4 +13,22 @@ |
||
13 | 13 |
<item name="windowNoTitle">true</item> |
14 | 14 |
</style> |
15 | 15 |
|
16 |
+ <style name="MyAppTheme" parent="Theme.AppCompat.Light.NoActionBar"> |
|
17 |
+ <!-- Customize your theme here. --> |
|
18 |
+ <item name="android:selectableItemBackground">@null</item> |
|
19 |
+ <item name="android:selectableItemBackgroundBorderless" tools:targetApi="lollipop">@null |
|
20 |
+ </item> |
|
21 |
+ </style> |
|
22 |
+ |
|
23 |
+ <style name="MyTransparentTheme" parent="MyAppTheme"> |
|
24 |
+ <item name="android:windowBackground">@color/transparent</item> |
|
25 |
+ <item name="android:windowIsTranslucent">true</item> |
|
26 |
+ <item name="android:windowFrame">@null</item> |
|
27 |
+ <item name="android:windowContentOverlay">@null</item> |
|
28 |
+ <item name="android:windowAnimationStyle">@null</item> |
|
29 |
+ <item name="android:backgroundDimEnabled">false</item> |
|
30 |
+ <item name="android:windowIsFloating">false</item> |
|
31 |
+ <item name="windowNoTitle">true</item> |
|
32 |
+ </style> |
|
33 |
+ |
|
16 | 34 |
</resources> |
@@ -175,9 +175,9 @@ public class NikonCamera extends PtpCamera { |
||
175 | 175 |
queue.add(new SimpleCommand(this, PtpConstants.Operation.NikonDeleteImagesInSdram, objectHandle)); |
176 | 176 |
} |
177 | 177 |
|
178 |
- public void onEventObjectAdded(int objectHandle) { |
|
179 |
- queue.add(new RetrieveAddedObjectInfoAction(this, objectHandle)); |
|
180 |
- } |
|
178 |
+// public void onEventObjectAdded(int objectHandle) { |
|
179 |
+// queue.add(new RetrieveAddedObjectInfoAction(this, objectHandle)); |
|
180 |
+// } |
|
181 | 181 |
|
182 | 182 |
public void onEventCaptureComplete() { |
183 | 183 |
//TODO |
@@ -41,7 +41,6 @@ public class RetrieveAddedObjectInfoAction implements PtpAction { |
||
41 | 41 |
if (getInfo.getObjectInfo() == null) { |
42 | 42 |
return; |
43 | 43 |
} |
44 |
- |
|
45 | 44 |
camera.onEventObjectAdded(objectHandle); |
46 | 45 |
} |
47 | 46 |
|
@@ -72,7 +72,9 @@ public class NikonEventCheckCommand extends NikonCommand { |
||
72 | 72 |
break; |
73 | 73 |
case Event.NikonObjectAddedInSdram: |
74 | 74 |
//libgphoto2 相关处理 |
75 |
- if (eventParam == 0) { eventParam = 0xffff001; } |
|
75 |
+ if (eventParam == 0) { |
|
76 |
+ eventParam = 0xffff0001; |
|
77 |
+ } |
|
76 | 78 |
camera.onEventObjectAdded(eventParam); |
77 | 79 |
break; |
78 | 80 |
} |