Have GET_INTENT_FILTERS been supported?

by Keiji Ariyama » Fri, 04 Sep 2009 00:33:13 GMT

Sponsored Links

I'm trying to get IntentFilter informations from ActivityInfo object.
But I haven't succeeded it.

I found below article. The article is written at last year.

Is this not supported yet?



Have GET_INTENT_FILTERS been supported?

by EboMike » Fri, 04 Sep 2009 14:31:40 GMT

 There is a very recent thread right here where this is being
discussed. The last post was a few days ago.

Sponsored Links

Have GET_INTENT_FILTERS been supported?

by Keiji Ariyama » Sat, 05 Sep 2009 00:23:10 GMT

 Hi EdoMike,

I'm sorry to bother you.
And Thank you for your kindness!

Keiji Ariyama


Have GET_INTENT_FILTERS been supported?

by EboMike » Sat, 05 Sep 2009 14:16:29 GMT


I hope my mail didn't sound angry. I'm just unhappy about too many
threads in this group all saying the same thing - it makes it much
harder to find information.

However, if you want to voice your opinion and want to tell the
Android developers that GET_INTENT_FILTERS is important to you, go to
issue 3217 and star it. Here: 

(I would also recommend NOT adding a comment - it's become a very
annoying habit of users to add hollow comments to issues with "Yes, I
agree" sort of messages. That's not helpful. But just clicking on the
star will increase the star count and make the issue more important.)


> >

Have GET_INTENT_FILTERS been supported?

by Dianne Hackborn » Sat, 05 Sep 2009 23:59:47 GMT


If you really care about having this feature, you'll get it to happen much
faster by just contributing a patch.  Compared to the other stuff we have to
do, this one is a very low priority, and it something that would be quite
easy for someone to contribute.

Dianne Hackborn
Android framework engineer

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.


Have GET_INTENT_FILTERS been supported?

by EboMike » Sun, 06 Sep 2009 15:10:40 GMT

 Dianne, you're absolutely right. it'd be time much better spent if you
guys worked on stuff that common townfolk can't do.

I think I'll look into it (assuming I hear back on android-source
about the patch I'm currently trying to commit).

My question though:

Who can tell me which function is supposed to behave how? I suppose
you have a very clear idea on how things are expected to work (the
documentation is pretty vague about which function actually takes
GET_INTENT_FILTERS). Assuming I call PackageManager's
queryIntentActivites() with GET_INTENT_FILTERS, the ResolveInfos will
contain an intent filter if applicable? What else is expected to honor
the flag?



Other Threads

1. File Upload - Get Bytes Uploaded

I have a function I am using to upload files.  How can I get the
number of bytes of the file that have been uploaded (transferred)?
Can I setup a timer that does this?  If so, what variable to I read to
get the number of bytes uploaded?  Here is my code:


String existingFileName = fileToUpload;
File uploadFile = new File(existingFileName);
FileInputStream fileInputStream = new FileInputStream(uploadFile);

// Set some special vars
String lineEnd = "\r\n";
String twoHyphens = "--";
String boundary = "*****";

// URL to upload to
URL connectURL = new URL("http://url/to/upload/script.php?

// connectURL is a URL object
conn = (HttpURLConnection)connectURL.openConnection();

// allow inputs

// allow outputs

// don't use a cached copy

// use a post method

// set post headers

// open data output stream
DataOutputStream dos = new DataOutputStream(conn.getOutputStream());
dos.writeBytes(twoHyphens + boundary + lineEnd);
dos.writeBytes("Content-Disposition: form-data; name=\"uploadedfile
\";filename=\""+existingFileName +"\"" + lineEnd);

// create a buffer of maximum size
int bytesAvailable = fileInputStream.available();
int maxBufferSize = 1024;
int bufferSize = Math.min(bytesAvailable, maxBufferSize);
byte[] buffer = new byte[bufferSize];

// read file and write it into form...
bytesRead = fileInputStream.read(buffer, 0, bufferSize);
while (bytesRead > 0)
        // Upload file part(s)
        dos.write(buffer, 0, bufferSize);
        bytesAvailable = fileInputStream.available();
        bufferSize = Math.min(bytesAvailable, maxBufferSize);
        bytesRead = fileInputStream.read(buffer, 0, bufferSize);

// Send multipart form data necesssary after file data...
dos.writeBytes(twoHyphens + boundary + twoHyphens + lineEnd);

// Close streams

InputStream is = conn.getInputStream();
int ch;

StringBuffer b =new StringBuffer();
while( ( ch = is.read() ) != -1 ) {
        b.append( (char)ch );

String s=b.toString();


2. Official Android Beta User Community

I think there is a fairly easily implemented solution to the problem
of device and OS diversification. I've been using this myself for
months and it works very well.

For "Radar Now!" I've established a "beta" test community of users who
have volunteered to try out new versions of the app and even new apps
that haven't been released to the market. It's been an invaluable tool
to diagnose and correct problems before they become a string of one
star "FC, sucks! uninstall" comments in the market.

The way I established this community was to add a line at the bottom
of the help text that comes up the first time a user runs the app:

"Beta Testers Needed!"

Approximately one out of 1000 active users has joined the beta
community, around 80 at this moment. They have every possible
combination of device and OS there is, including cyanogen. Users who
have a problem will report it back via e-mail and if the problem can't
be solved by their description, they use SendLog to send me the log of
their session.

I post the beta on the Radarnow.net website, which has logging
switched on to help debugging.

Official Android Beta User Community

What would be a really great addition to the Android developer
community would be the establishment of an official beta user
community. This could take the form of a Google Group, one for each
app, with the app itself in the files section. I'm sure there would be
thousands of users who would volunteer to test cutting edge apps and
help find problems before they become a catastrophe in the market.

A little help from Google will be required to accomplish this, Google
would have to:

1. Endorse the idea
2. Add some sort of language to the market asking people to volunteer
3. Add a check box to the developer console to opt in for a particular
4. Add some code to the market so when an app becomes part of this
program, the group is created

There may be some other considerations for Google but I think the
minor work involved would greatly ease the minds and hearts of
developers around the world without the pocketbook to go out and buy
20+ devices and sign up for the services they require.

-John Coryat

"Radar Now!"

"What Zip Code?"

-also posted in the Android Developers

3. Display TextFile

4. Email ,Wifi settings

5. Active Sync support for android

6. URGENT ...How to get MCC , MNC, LAC of neighboring cells