[android-developers] Beta testing of APK installation on real device

2014-06-29 Thread smoogli
How can I test the real installation of my application? (specifically, over 
the air by using a store client; and not using adb install)

for example, is it possible to upload to a store and install using a 
developer device?

thanks!

-- 
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] why adb does not show all the permissions, by default?

2014-06-24 Thread smoogli
when trying different adb arguments to list permissions, I noticed that 
some permissions appear only when using the -g argument (which organizes 
the listed permissions according to their groups. see -g: Organize by 
group, in http://developer.android.com/tools/help/adb.html#pm)

here's an example:
android.permission.SEND_SMS  appears in the API JavaDocs: 
http://developer.android.com/reference/android/Manifest.permission.html#SEND_SMS
android.permission.SEND_SMS is defined in 
https://github.com/android/platform_frameworks_base/blob/master/core/res/AndroidManifest.xml
 
and belongs to android.permission-group.MESSAGES group.

when using adb with the Android SDK emulator:

1. adb shell pm list permissions output does Not include SEND_SMS
2. adb shell pm list permissions -g output Does include it:

group:android.permission-group.MESSAGES
 ... other permissions...
   permission:android.permission.SEND_SMS



any idea why adb is not showing it? 
Is this a bug in adb, or am I missing the reason why it shows only with 
-g?

thanks!

-- 
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] com.samsung.* Android permissions (OEM and proprietary non-android.permission.* permissions)

2014-04-09 Thread smoogli
thanks Nikolay. that's a good tip. tried it on one device I have and could 
see android.permission.*.

I'm sure there are also proprietary permissions on other devices (which I 
don't have so can't check in this way). any pointer to online information 
on such com.* permission would be great!

thanks!

-- 
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] com.samsung.* Android permissions (OEM and proprietary non-android.permission.* permissions)

2014-04-08 Thread smoogli
Hi,
which Samsung  permissions (or other OEM and proprietary - non 
android.permission.* permissions) are built-in and available today on 
Android phones? 
e.g., any such permissions for using Samsung KNOX?
and where\how is it possible to get information on them, either online or 
on-device? 


For example, Samsung Gear Android watch has proprietary Samsung permissions:
1. com.samsung.WATCH_APP_TYPE.Standalone
2. com.samsung.WATCH_APP_TYPE.Linkage_Slave
3. com.samsung.WATCH_APP_TYPE.Integral
These are probably added as built-in permissions into the usual Android 
permission mechanism.

thanks!

-- 
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: how to enforce access to a Service with multiple permissions

2014-03-25 Thread smoogli
I tried again in several ways:
permission android:name=android.permission.INTERNET/permission within 
the manifest: did not block binding to the service
elsewhere within the service tag: did not build.

Although looks strange, so an Android service can require from a 3rd party 
entity only a single permission?

any replies welcomed

cheers!


On Sunday, March 9, 2014 4:37:55 PM UTC+2, smoogli wrote:

 I created a Service which requires 3rd party entity to declare it uses a 
 permission. 
 service android:name=myservice android:exported=true  
 android:permission=android.permission.INTERNET 
 that works.

 however, I cannot find how to require from the 3rd party entity, to 
 declare it uses multiple permissions.
 1. cannot add permission within the service 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#AndroidManifestServicetalks
  about a single permission per service tag
 3. adding permission android:name=android.permission.INTERNET / in the 
 manifest 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)http://developer.android.com/reference/android/content/ContextWrapper.html#checkCallingPermission%28java.lang.String%29method
  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 roy.be...@gmail.com javascript: 
 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] 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. 
service android:name=myservice android:exported=true  
android:permission=android.permission.INTERNET 
that works.

however, I cannot find how to require from the 3rd party entity, to declare 
it uses multiple permissions.
1. cannot add permission within the service 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 service tag
3. adding permission android:name=android.permission.INTERNET / in the 
manifest 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)http://developer.android.com/reference/android/content/ContextWrapper.html#checkCallingPermission%28java.lang.String%29method
 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.


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

2014-03-05 Thread smoogli
Hi,
I created a service whose handleMessage() is triggered by a remote 
activity. works fine...

then, wanted to add a check that the remote activity has the required 
permission so added a call for 
*checkCallingPermission(android.permission.INTERNET)*; and added 
*uses-permission 
android:name=android.permission.INTERNET/*  to the remote activity.

still, at the service side, checkCallingPermission() always returns -1
see code from service below.

any idea?

thanks!


class IncomingHandler extends Handler {
@Override
public void handleMessage(Message msg) {
String dataString = msg.getData().getString(MyString);
dataString += isCallingClientHasPermissions()? \nAuthorized : 
\nNot authorized;
Toast.makeText(getApplicationContext(), dataString, 
Toast.LENGTH_LONG).show();
}
 }


private boolean isCallingClientHasPermissions(){
   * int ret = 
getApplicationContext().checkCallingPermission(android.permission.INTERNET); 
//always returns -1 :-*
boolean authorized = ret == PackageManager.PERMISSION_GRANTED; 
//always false :-
return authorized;
}

-- 
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/groups/opt_out.


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

2014-03-05 Thread smoogli
Hi Nicolay,
thanks for the reply. true, there is a point in what you say about the 
processes.

so there are two separate APK's. I can see they are running in two 
different processes. still, the message seems to come from the service 
itself:
although the message is called from the remote client process (pid 6969), 
when the service methods (onBind and handleMessage) are called, the 
Binder.getCallingPid() returns the pid of the service itself (6985).

(I can only assume there is some configuration that needs to be set, or 
something that I am missing here)

any idea?



thanks!

On Thursday, March 6, 2014 5:50:21 AM UTC+2, Nikolay Elenkov wrote:

 On Thu, Mar 6, 2014 at 7:13 AM, smoogli roy.be...@gmail.com javascript: 
 wrote: 
  Hi, 
  I created a service whose handleMessage() is triggered by a remote 
 activity. 
  works fine... 
  
  then, wanted to add a check that the remote activity has the required 
  permission so added a call for 
  checkCallingPermission(android.permission.INTERNET); and added 
  uses-permission android:name=android.permission.INTERNET/  to the 
 remote 
  activity. 
  
  still, at the service side, checkCallingPermission() always returns -1 
  see code from service below. 
  

 Who is sending the Message? checkCallingPermission()  only works in the 
 context of an IPC call, if it's a local call you always get false (see 
 JavaDoc). 
 Check Binder.getCalingUid(). 


-- 
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/groups/opt_out.


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

2014-03-05 Thread smoogli
) {
e.printStackTrace();
}

}

private void showUidAndProcessInfo() {
PackageManager pm = getPackageManager();
ApplicationInfo ai;
try {
ai = pm.getApplicationInfo(com.example.remoteclient, 
PackageManager.GET_META_DATA);
System.out.println(-);
System.out.println(RemoteClient info:);
System.out.println(ai.processName + ,  + 
android.os.Process.myPid() + , ai.uid:  + ai.uid);
System.out.println(check self - client - permission: + 
checkPermission(android.permission.INTERNET, android.os.Process.myPid(), 
ai.uid));
System.out.println(-);
} catch (NameNotFoundException e) {
e.printStackTrace();
}
}
}



On Thursday, March 6, 2014 7:19:16 AM UTC+2, Nikolay Elenkov wrote:

 On Thu, Mar 6, 2014 at 2:08 PM, smoogli roy.be...@gmail.com javascript: 
 wrote: 
  
  (I can only assume there is some configuration that needs to be set, or 
  something that I am missing here) 
  

 You need a bound service for this to work and you will only get the UID of 
 the activity on binder calls. 

 http://developer.android.com/guide/components/bound-services.html 


-- 
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/groups/opt_out.


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

2014-03-05 Thread smoogli
Hi Nicolay,
I think this was already done.
please see shortened sources below. 

also, the Service has this line in its manifest:
service android:name=.RemoteService android:process=:remote

maybe you can spot something?

thanks!


package com.example.remoteservice;

public class RemoteService extends Service {

final Messenger myMessenger = new Messenger(new IncomingHandler());

@Override
public IBinder onBind(Intent intent) {
return myMessenger.getBinder();
}

class IncomingHandler extends Handler {
@Override
public void handleMessage(Message msg) {
Bundle data = msg.getData();
String dataString = data.getString(MyString);
dataString += isCallingClientHasPermissions()? \nAuthorized : 
\nNot authorized;
Toast.makeText(getApplicationContext(), dataString, 
Toast.LENGTH_LONG).show();
}
 }

}

package com.example.remoteclient;


public class RemoteClient extends Activity {

Messenger myService = null;
boolean isBound;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_remote_bound);
  Intent intent = new 
Intent(com.example.remoteservice.RemoteService);
  bindService(intent, myConnection, Context.BIND_AUTO_CREATE);
}



private ServiceConnection myConnection = new ServiceConnection() {
public void onServiceConnected(ComponentName className, IBinder 
service) {
myService = new Messenger(service);
isBound = true;
}

public void onServiceDisconnected(ComponentName className) {
myService = null;
isBound = false;
}
};

public void sendMessage(View view)
{
  if (!isBound) return;

Message msg = Message.obtain();  
Bundle bundle = new Bundle();
bundle.putString(MyString, Message from 
RemoteClient);
msg.setData(bundle);
try {
myService.send(msg);
} catch (RemoteException e) {e.printStackTrace();}

}

}



On Thursday, March 6, 2014 7:19:16 AM UTC+2, Nikolay Elenkov wrote:

 On Thu, Mar 6, 2014 at 2:08 PM, smoogli roy.be...@gmail.com javascript: 
 wrote: 
  
  (I can only assume there is some configuration that needs to be set, or 
  something that I am missing here) 
  

 You need a bound service for this to work and you will only get the UID of 
 the activity on binder calls. 

 http://developer.android.com/guide/components/bound-services.html 


-- 
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/groups/opt_out.


Re: [android-developers] AppStore emulation tools?

2014-01-12 Thread smoogli
I would like to identify exact behavior of installing several apps. e.g., 
does installation fail or succeed, and which prompts are shown in each case.

On Friday, January 10, 2014 11:52:52 PM UTC+2, TreKing wrote:


 On Fri, Jan 10, 2014 at 7:48 AM, smoogli roy.be...@gmail.comjavascript:
  wrote:

 How can one test actual installation of applications?


 What do you mean by actual installation of applications?


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago 
 transit tracking app for Android-powered devices
  

-- 
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/groups/opt_out.


Re: [android-developers] AppStore emulation tools?

2014-01-12 Thread smoogli


On Sunday, January 12, 2014 1:20:49 PM UTC+2, smoogli wrote:

 I would like to identify exact behavior of installing several apps. e.g., 
 does installation fail or succeed, and which prompts are shown in each case.


more specifically, I would like to experiment with permissions during 
installation e.g., what happens during installation, in different scenarios 
when requesting different permissions



 On Friday, January 10, 2014 11:52:52 PM UTC+2, TreKing wrote:


 On Fri, Jan 10, 2014 at 7:48 AM, smoogli roy.be...@gmail.com wrote:

 How can one test actual installation of applications?


 What do you mean by actual installation of applications?


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago 
 transit tracking app for Android-powered devices
  


-- 
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/groups/opt_out.


Re: [android-developers] AppStore emulation tools?

2014-01-12 Thread smoogli
thanks, tried adb install but it does not prompt and interact with the 
user. e.g., when adding a permission to the app, it does not prompt with 
OK, accepted
I would like to verify interaction with users in various scenarios.

-- 
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/groups/opt_out.


Re: [android-developers] AppStore emulation tools?

2014-01-12 Thread smoogli
what happens when the app requests a permission that does not appear on the 
device? e.g., com.thirdparty.FOO

-- 
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/groups/opt_out.


[android-developers] Adding a system library

2014-01-12 Thread smoogli
I'm looking for instructions on how to add a library to the system.
e.g., my library contains APIs that will be used by other apps. so it 
should be available on the device itself, and not within the app's APK 
files.

thanks!

-- 
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/groups/opt_out.


[android-developers] GooglePlay filtering based on implicit features

2014-01-12 Thread smoogli
from 
http://developer.android.com/guide/topics/manifest/uses-feature-element.html#implicit:

Google Play attempts to discover an application's implied feature 
 requirements by examining *other elements* declared in the manifest file, 
 specifically, uses-permission elements.


just wondering what happens if a new model comes with a new feature and new 
permission associated with it...  I guess that the OEM should update 
GooglePlay with the new info, per these models...

makes sense? or any other idea\hint? 

-- 
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/groups/opt_out.


[android-developers] AppStore emulation tools?

2014-01-10 Thread smoogli
How can one test actual installation of applications? AFAIK, the Android 
simulator in ADT does not even have the AppStore integrated.

is there another emulator with AppStore integrated?
is there a way to test it with the SDK? 

cheers!

-- 
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/groups/opt_out.


[android-developers] Re: AppStore emulation tools?

2014-01-10 Thread smoogli
small lingo correction: by saying AppStore, the meaning is to the Android 
application store aka Google Play...
:-

On Friday, January 10, 2014 3:48:17 PM UTC+2, smoogli wrote:

 How can one test actual installation of applications? AFAIK, the Android 
 simulator in ADT does not even have the AppStore integrated.

 is there another emulator with AppStore integrated?
 is there a way to test it with the SDK? 

 cheers!


-- 
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/groups/opt_out.


[android-developers] Requesting a Permission that is not on the device

2014-01-09 Thread smoogli
Hi,
Say my application requests a Permission android.permission.OEM.FOO which 
is available on some devices but not available on others.
What would happen on these devices which do not have this permission? 

cheers!

-- 
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/groups/opt_out.


[android-developers] Requesting Android permissions for accessing a 3rd party API library

2014-01-06 Thread smoogli
Hello,
I built a library that should be used by several applications. (can't know 
at this stage which and how many apps). The library is composed of a Java 
API and some C code.

The access to this library should be regulated by an Android permission. 
How can this be done?

Few particular questions...
- how to specify which permissions the library requires from the user apps?
- AFAIK, permissions check is done at Install time by Android. anything 
that the library should do at run-time?
- does the permission protect the library's both Java code and C code?
- can I create a new proprietary permission?

any example, would be great!

happy new 2014! cheers!
--smoogli (without much background in Android ...)

-- 
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/groups/opt_out.


[android-developers] Which HTML5 feature to avoid on Android tablets\mobiles?

2012-04-09 Thread smoogli
Hi,
I'm going to create a web app which is based on HTML.

As far as I know, Android does not support the full set of HTML5
features.

Made a quick and simple decision: avoid any HTML5 feature which is not
supported on the Majority of Android devices (tablet is primary,
mobile comes second).

Can anyone please point me to a list of HTML5 features which are not
supported on most Android devices?

thanks!

-- 
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


[android-developers] Send SMS on specific application port

2011-12-11 Thread smoogli
Hi,
Sending an SMS is straightforward. However, I can't find a way to send
an SMS on a specific application port.

1. There is a way to send standard SMS in Android
2. There is a way to send Binary SMS in Android.
3. There is a way to send SMS to specific port, in JavaME i.e., String
smsUrl = sms:// + to + : + 99112;

Any idea on how to send standard SMS in Android?

thanks

-- 
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


[android-developers] Android app to send to C2DM server

2011-12-11 Thread smoogli
I bumped in C2DM which is, as far as I understand, the equivalent to
iPhone Push. See http://code.google.com/android/c2dm/

It is required that there is a 3rd party server that sends messages to
the C2DM server. I'm writing a server-less application.

1. Is it possible that an Android application will communicate with
the C2DM directly?
2. Can such solution work for pushing small messages to applications
installed on other devices?

thanks

-- 
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


[android-developers] Re: Send SMS on specific application port

2011-12-11 Thread smoogli
Correcting my question:

1. There is a way to send Standard SMS in Android
2. There is a way to send Binary SMS in Android i.e., using
SmsManager.sendDataMessage(...)
3. There is a way to send SMS to specific port, in JavaME i.e., String
smsUrl = sms:// + to + : + 99112;

Any idea on how to send *Standard SMS on specific port* in Android?

thanks

-- 
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


[android-developers] Re: Send SMS on specific application port

2011-12-11 Thread smoogli
Hi pskink,
thanks for your answer. yes, tried SmSManager.sendData(...short
destinationPort...).
But what I need is a SmSManager.sendTextMessage(... short PORT...).

any idea?

thanks again

-- 
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