[android-developers] Receiving RF signal in an android application

2014-03-09 Thread Ajmer Singh
Hi All,

I am working on a Help alert android application for which I need to detect
the RF signal from my android application, I had googled but not find
anything concrete, Please can anybody help in this case about the Receive
RF signal in android.

-- 
Thanks and Regards
Ajmer Singh

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Eclipse got bad performance after update ADT

2014-03-09 Thread Pratama Nur Wijaya
Hello all..

i have recently update my adt to 22.6.0.v201403010043-1049357 version.. 
after these update i got my eclipse performace became slowly.. T.T

when i edit my xml layout.. its alwasy load data from android X.X

before update ADT version.. my eclipse is running well and fast.. but after 
these like a hell  >.<

please.. tell me.. whats wrong with new update..

info :
i have using 8GB core i7 MacOSX 10.9

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: ContentResolver obtaining java.io.File instead java.io.FileDescriptor

2014-03-09 Thread Jan Burse

Hi,

Yes, this is exactly the problem I am facing. Maybe I
should request multiple columns when starting the
intent. One column with some timedate, and another column
with the data blob.

Still not sure how to fabrikate the intent and how
to obtain the result, so that I get both the data and
the timedate.

Bye

Doug schrieb:

That's because a FileDescriptor doesn't necessarily reference an actual
file on a filesystem.  It's an abstraction for a stream of bytes that
could be coming from a file or some other source (such as stdin,
stdout).  You're not supposed to know or care what it is, you just read
or write it.

Doug

On Saturday, March 8, 2014 4:51:02 AM UTC-8, jb wrote:

Dear All,

I am using an intent to invoke a file chooser.
Some of the file chooser applications return an
Uri of scheme "file" others return an Uri of
"scheme" content.

I need to obtain the last modified date of the
chosen object. How do I do that? I didn't find
an appropriate API. There is some API that returns
a FileDescriptor. But I don't get the last modified
date from a FileDescriptor.

Any help appreciate.

Best Regards

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to android-developers+unsubscr...@googlegroups.com
.
For more options, visit https://groups.google.com/d/optout.



--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups "Android Developers" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: ContentResolver obtaining java.io.File instead java.io.FileDescriptor

2014-03-09 Thread Doug
That's because a FileDescriptor doesn't necessarily reference an actual 
file on a filesystem.  It's an abstraction for a stream of bytes that could 
be coming from a file or some other source (such as stdin, stdout).  You're 
not supposed to know or care what it is, you just read or write it.

Doug

On Saturday, March 8, 2014 4:51:02 AM UTC-8, jb wrote:
>
> Dear All, 
>
> I am using an intent to invoke a file chooser. 
> Some of the file chooser applications return an 
> Uri of scheme "file" others return an Uri of 
> "scheme" content. 
>
> I need to obtain the last modified date of the 
> chosen object. How do I do that? I didn't find 
> an appropriate API. There is some API that returns 
> a FileDescriptor. But I don't get the last modified 
> date from a FileDescriptor. 
>
> Any help appreciate. 
>
> Best Regards 
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Redirect file calls by proprietary JNI/NDK to go through a file descriptor

2014-03-09 Thread sebastian nielsen
Hello.
I have a Smart card, called CertGate, that was delivered with a 
properitary, precompiled JNI/NDK library.
The smart card works by having the end user app access a file /cgmstrx.sdx 
in the root of the SD card.

This works by having the end user app read/write APDU's to a interface in 
the JNI library, the JNI library translates those APDU's to writes and 
reads to the cgmstrx.sdx file.

The specification of how APDU's are read/written to this file are 
properitary and not available to the customers of the certgate card.


Now to the problem:
Since the new Android 4.4.2 SD card policy prevents writes to the SD card 
except for the app userspace folder, its not possible to write rawly to the 
SD card, and thus the function of the SD SmartCard is lost.


However, if you use a OPEN_DOCUMENT intent and a file picker in the end 
user app, you could have the end user select the cgmstrx.sdx file in the 
root of SD card, and thus gain r/w permission to this file through a file 
descriptor.


However, I wonder, is it possible to redirect all outgoing file calls 
(read/writes) from a precompiled JNI library, to instead go through the 
file descriptor returned by the intent?

Eg if I could in some way "override" the raw file open method called by any 
libraries (some proprietary .so files) loaded by my app, to go through my 
app and then I dont open the file, instead I just pass the "OPEN_DOCUMENT" 
file descriptor directly.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] how to enforce access to a Service with multiple permissions

2014-03-09 Thread smoogli
I created a Service which requires 3rd party entity to declare it uses a 
permission. 

that works.

however, I cannot find how to require from the 3rd party entity, to declare 
it uses multiple permissions.
1. cannot add  within the  tag. getting error:
 Parser exception for myservice\AndroidManifest.xml: Attribute 
"permission" bound to namespace 
"http://schemas.android.com/apk/res/android"; was already specified for 
element "service".
 Error in an XML file: aborting build.
2. 
http://developer.android.com/reference/android/R.styleable.html#AndroidManifestService
 
talks about a single permission per  tag
3. adding  in the 
 scope seems not to apply on enforcing permission when binding to 
the service by the 3rd party entity

any idea?

thanks!
--roy

(still have the choice of using the 
checkCallingPermission(String)method
 within my service. but would prefer to use the declarative option if 
possible)


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] why checkCallingPermission() always returns -1 ?

2014-03-09 Thread smoogli
switched to AIDL and it works now.
thanks!

On Thursday, March 6, 2014 8:35:21 AM UTC+2, Nikolay Elenkov wrote:
>
> On Thu, Mar 6, 2014 at 3:19 PM, smoogli > 
> wrote: 
> > I think it was already done. from what I see, it already uses what is 
> > explained in 
> > http://developer.android.com/guide/components/bound-services.html 
> > 
>
> Ah, you are using Messenger. IIRC, The Handler's onHandleMessage() 
> is not part of the Binder transaction, that's why you don't get the 
> remote UID/PID. 
> The easiest way to do this is to just switch to AIDL. 
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Calender view Contain Month, Week, Day view in android 2.3+

2014-03-09 Thread karthik rao
i am working on calender view which button/ tab contain Month, Week, Day 
view.
When i click on month, month calender has to display with specific date 
with event & week, day same to same way with hours.
But i dont want use google sync. 
It must support 2.3+. how to do it.
I already made  month view using grid view
For more i have add 
here 
http://stackoverflow.com/questions/22280031/calender-view-contain-month-week-day-view-in-android-2-3

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.