Video Gallery in android

by glory » Fri, 12 Jun 2009 14:54:52 GMT


Sponsored Links
 Hi all,

I am trying to launch the default video gallery from my application.
I am using following intent for opening the video gallery

Intent i = new Intent(Intent.ACTION_PICK);
i.setDataAndType(Uri.EMPTY, "video/3gp");
this.startActivityForResult(i, REQUEST_SELECT_VIDEO);

but the problem is that it is showing both video and picture.

How can I filter out only video

Thanks in advance.

Regards,
Glory
--~--~---------~--~----~------------~-------~--~----~



Video Gallery in android

by efrancis » Fri, 10 Jul 2009 03:47:43 GMT


 Try this...

Intent i = new Intent(Intent.ACTION_GET_CONTENT);
i.setType("video/*");
activity.startActivityForResult(i,2);





--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Obtain current elevation.

Is there any way to obtain the current elevation using the current
coordinates in combination with google maps or something similar?

--~--~---------~--~----~------------~-------~--~----~

2. Issue with MMS

Hey,

I'm not able to receive MMS anymore. I've check my APN lot of times
and it doesn't seem to be the issue. I looked at the log file (logcat -
b radio), but I'm not really able to understand the result....
If anyone could have a clue about where is my issue in looking at the
log, then I'll be very glad !

FYI my APN are:
(for wap)
APN: wapsfr
Proxy: 195.115.25.129
port: 8080
MCC: 208
MNC: 10
Protocole: Wap 2.0
APN Type : default

MMS:
APN : mmssfr
MMSC : http://mms1
Proxy MMS : 10.151.0.1
Port MMS : 8080
MCC : 208
MNC : 10
Protocole: Wap 2.0
APN Type : mms

Here's the log when I try to download a MMS:
D/RILJ    (  126): [0463]> OPERATOR
D/RILJ    (  126): [0464]> GPRS_REGISTRATION_STATE
D/RILJ    (  126): [0463]< OPERATOR {F SFR, (N/A), 20810, 5}
D/RILJ    (  126): [0465]> REGISTRATION_STATE
D/RILJ    (  126): [0466]> QUERY_NETWORK_SELECTION_MODE
D/RILJ    (  126): [0464]< GPRS_REGISTRATION_STATE {1, null, null, 3}
D/RILJ    (  126): [0465]< REGISTRATION_STATE {1, 46B9, 0130B97E}
D/RILJ    (  126): [0466]< QUERY_NETWORK_SELECTION_MODE {0}
D/GSM     (  126): Poll ServiceState done:  oldSS=[0 home F SFR (N/A)
20810 ] newSS=[0 home F SFR (N/A) 20810 ] oldGprs=
0 newGprs=0 oldType=HSDPA newType=UMTS
D/GSM     (  126): [DataConnectionTracker] enableApnType(mms), state =
CONNECTED typeActive=false TypeAvailable true
D/GSM     (  126): enableApnType(mms)
D/GSM     (  126): [DataConnectionTracker] setState: INITING
D/GSM     (  126): [DataConnectionTracker] EVENT_ENABLE_NEW_APN
D/GSM     (  126): [DataConnectionTracker] ***trySetupData due to
enableNewApn
D/GSM     (  126): [DataConnectionTracker] Setup watingApns : [mmssfr,
mmssfr, , http://mms1, 10.151.0.1, 8080, 2.0, , m
ms]
D/GSM     (  126): [DataConnectionTracker] setupData==>Connect to
namemmssfr apn=mmssfrpdpID=1
D/GSM     (  126): [PdpConnection] Connecting to carrier: 'mmssfr'
APN: 'mmssfr' proxy: '' port: '
D/RILJ    (  126): [0467]> SETUP_DEFAULT_PDP mmssfr
D/GSM     (  126): [DataConnectionTracker] setState: INITING
D/GSM     (  126): [DataConnectionTracker] enableApnType(mms), state =
INITING typeActive=false TypeAvailable true
D/GSM     (  126): enableApnType(mms)
D/GSM     (  126): [DataConnectionTracker] ApnTypeActiving = true
D/GSM     (  126): [DataConnectionTracker] enableApnType(mms), state =
INITING typeActive=false TypeAvailable true
D/GSM     (  126): enableApnType(mms)
D/GSM     (  126): [DataConnectionTracker] ApnTypeActiving = true
D/RILJ    (  126): [UNSL]< UNSOL_PDP_CONTEXT_LIST_CHANGED
[com.android.internal.telephony.gsm.PDPContextState: { cid: 62
, active: true, type: IP, apn: wapsfr, address: 10.187.35.169 },
com.android.internal.telephony.gsm.PDPContextState: { c
id: 61, active: true, type: IP, apn: mmssfr, address:
10.225.204.216 }, com.android.internal.telephony.gsm.PDPContextSta
te: { cid: -1, active: false, type: , apn: , address:  }]
D/GSM     (  126): [DataConnectionTracker] onPdpStateChanged :
mActivePdpConnection = 2
D/RILJ    (  126): [0467]< SETUP_DEFAULT_PDP {61, rmnet1,
10.225.204.216}
D/GSM     (  126): [PdpConnection] interface=rmnet1
ipAddress=10.225.204.216 gateway=10.225.204.217 DNS1=0.0.0.0 DNS2=0.
0.0.0isDnsCheckDisabledfalse
D/GSM     (  126): [PdpConnection] Notify PDP success at 1253622957731
D/GSM     (  126): [PdpConnection] PDP setup on cid = 61
D/GSM     (  126): [DataConnectionTracker] setState: CONNECTED
D/GSM     (  126): [DataConnectionTracker] enableApnType(mms), state =
CONNECTED typeActive=true TypeAvailable true
D/GSM     (  126): enableApnType(mms)
D/GSM     (  126): [DataConnectionTracker] ApnTypeActive=true
D/RILJ    (  126): [UNSL]< UNSOL_RESPONSE_NETWORK_STATE_CHANGED
D/RILJ    (  126): [0468]> OPERATOR
D/RILJ    (  126): [0469]> GPRS_REGISTRATION_STATE
D/RILJ    (  126): [0470]> REGISTRATION_STATE
D/RILJ    (  126): [0471]> QUERY_NETWORK_SELECTION_MODE
D/RILJ    (  126): [0468]< OPERATOR {F SFR, (N/A), 20810, 5}
D/RILJ    (  126): [0469]< GPRS_REGISTRATION_STATE {1, null, null, 4}
D/RILJ    (  126): [0470]< REGISTRATION_STATE {1, 46B9, 0130B97E}
D/RILJ    (  126): [0471]< QUERY_NETWORK_SELECTION_MODE {0}
D/GSM     (  126): Poll ServiceState done:  oldSS=[0 home F SFR (N/A)
20810 ] newSS=[0 home F SFR (N/A) 20810 ] oldGprs=
0 newGprs=0 oldType=UMTS newType=HSDPA
D/GSM     (  126): disableApnType(mms)
D/GSM     (  126): setEnabled(mms, false)
D/RILJ    (  126): [0472]> DEACTIVATE_DEFAULT_PDP 61
D/RILJ    (  126): [UNSL]< UNSOL_PDP_CONTEXT_LIST_CHANGED
[com.android.internal.telephony.gsm.PDPContextState: { cid: 62
, active: true, type: IP, apn: wapsfr, address: 10.187.35.169 },
com.android.internal.telephony.gsm.PDPContextState: { c
id: -1, active: false, type: IP, apn: , address:  },
com.android.internal.telephony.gsm.PDPContextState: { cid: -1, acti
ve: false, type: , apn: , address:  }]
D/GSM     (  126): [DataConnectionTracker] onPdpStateChanged :
mActivePdpConnection = 1
D/RILJ    (  126): [0472]< DEACTIVATE_DEFAULT_PDP
D/GSM     (  126): [PdpConnection] Notify PDP disconnect
D/GSM     (  126): [DataConnectionTracker] EVENT_DISCONNECT_DONE ,
state= CONNECTED, ActConn=1, mDisactivePdp=State=inac
tive Apn=mmssfr, mmssfr, , http://mms1, 10.151.0.1, 8080, 2.0, , mms
create=1253622957731 lastFail=-1 lastFailCause=no e
rror
D/GSM     (  126): [DataConnectionTracker] EVENT_DISCONNECT_DONE
information, reason= pdpDisconnect, disconnectPdp=State
=inactive Apn=mmssfr, mmssfr, , http://mms1, 10.151.0.1, 8080, 2.0, ,
mms create=1253622957731 lastFail=-1 lastFailCause
=no error
--~--~---------~--~----~------------~-------~--~----~

3. what is the procedure to download android image on hardware....help needed

4. "Multiple assets with package name" Erro

5. "unknown socket error " Is anyone know this error??

6. E-Mail Notification

7. How can we extend the framework to support multiple cameras?