[android-developers] Re: Android bulk app purchases B2b

2012-04-11 Thread Marcel Arts
why bother google?
Purchase the app for free. build up a server to collect all new
installs.
Firsttime the app runs ask for company name etc... communicate with
your server and do your administration..


On Apr 5, 7:55 pm, android dev  wrote:
> I am a developer of medical apps for android phone and tablets, we
> sell content to large institutions. I am doing some investigation of
> how to make bulk app purchases with our partner companies,
> institutions, and hospitals.
>
> For an example use case, consider a hospital would like to make a bulk
> purchase of 100 of our android apps for distribution to it's resident
> drs and nurses. The point is that the individual drs and nurses should
> not have to pay, the organization is buying the apps (or redeemable
> wallet pts) for their employees.
>
> In the google play documentation, it specifically says:
>
> "Please note that it is against Google Checkout's policies to purchase
> your own application. You will receive an error message when you try
> to purchase your own application."
>
> so I guess that rules out my company buying multiple app licenses
> "For" the member company.  Perhaps there is a way to by redeemable
> coupons through Google Play and or Google Wallet?
>
>  Please inform me regarding the correct procedure for this kind of
> solution as it relates to Google Wallet and/or Google play android
> apps.
>
> 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: receive sms application. need help.

2012-02-14 Thread Marcel Arts
What is the problem to get over?

On Feb 13, 8:22 pm, jitesh adnani  wrote:
> ive been stuck on some problem when trying to handle incoming sms
> message and to toast them. have no idea how to get over the problem.
> please help.
>
> this is my main java file - SmsApp.java
>
> package com.android.project.smsapp;
> import android.app.Activity;
> import android.content.Intent;
> import android.content.IntentFilter;
> import android.os.Bundle;
> import com.android.project.smsapp.R;
> public class SmsApp extends Activity {
>     /** Called when the activity is first created. */
>         @Override
>     public void onCreate(Bundle savedInstanceState) {
>         super.onCreate(savedInstanceState);
>         setContentView(R.layout.main);
>         Intent i = new Intent(this, Receiver.clss);
>         startActivity(i);
>     }
>
> }
>
> i also have a Receiver.java file
>
> package com.android.project.smsapp;
> import android.content.BroadcastReceiver;
> import android.content.Context;
> import android.content.Intent;
> import android.os.Bundle;
> import android.telephony.SmsMessage;
> import android.widget.Toast;
> public class Receiver extends BroadcastReceiver{
>         @Override
>         public void onReceive( Context context, Intent intent )
>         {
>                 // Get the SMS map from Intent
>         Bundle extras = intent.getExtras();
>         String messages = "";
>         if ( extras != null )
>         {
>         // Get received SMS array
>         Object[] smsExtra = (Object[]) extras.get("pdus");
>         // Get ContentResolver object for pushing encrypted SMS to the
> incoming folder
> //      ContentResolver contentResolver = context.getContentResolver();
>         for ( int i = 0; i < smsExtra.length; ++i )
>         {
>         SmsMessage sms = SmsMessage.createFromPdu((byte[])smsExtra[i]);
>         String body = sms.getMessageBody().toString();
>         String address = sms.getOriginatingAddress();
>         messages += "SMS from " + address + " :\n";
>         messages += body + "\n";
>         // Here you can add any your code to work with incoming SMS
>         // I added encrypting of all received SMS
> //      putSmsToDatabase( contentResolver, sms );
>         }
>         // Display SMS message
>         Toast.makeText( context, messages, Toast.LENGTH_SHORT ).show();
>         }
>         // WARNING!!!
>         // If you uncomment the next line then received SMS will not be put
> to incoming.
>         // Be careful!
>         // this.abortBroadcast();
>         }}
>
> and the androidmanifst.xml is
>
> 
> http://schemas.android.com/apk/res/android";
>     package="com.android.project.smsapp"
>     android:versionCode="1"
>     android:versionName="1.0" >
>     
>     
>              android:icon="@drawable/ic_launcher"
>         android:label="@string/app_name" >
>                      android:name=".SmsApp"
>             android:label="@string/app_name" >
>                 
>                 
>                  android:name="android.intent.category.LAUNCHER" />
>             
>         
>                      android:name=".Receiver"
>             android:permission="android.permission.RECEIVE_SMS">
>                                      android:name=".Receiver">
>                 
>                      android:name="android.provider.Telephony.SMS_RECEIVED"/>
>                 
>             
>                 
>     
> 
>
> the logcat is as follows

-- 
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: receive sms application. need help.

2012-02-15 Thread Marcel Arts
maybe you should have set one more permission:




On Feb 15, 4:59 am, jitesh adnani  wrote:
> application starting and also knowing that a new sms has come. but
> just then it shows that the application has stopped unexpectedly.

-- 
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: How to find which drawable folder is being used??

2011-11-04 Thread Marcel Arts
Hello anyone,

I want to know more about this issue too! Does anyone can give 'us'
more info about the 3 drawable folders? (hdpi,ldpi and mdpi)  Witch
drawable resource will the cellphone/ tab use?

grtz,

Marcel




On Nov 2, 7:31 am, Shashidhar  wrote:
> Hi,
>   Is there a way to find which drawable folder images are currently used
> when I run my application.
> I mean, say when I run my app on Nexus-one phone, I want to know which
> drawable folder images are used on the UI.
> I have 3 separate folder and each having the same set of images with
> different sizes.
>
> Thanks,
> Shashidhar

-- 
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: How to find which drawable folder is being used??

2011-11-04 Thread Marcel Arts

OK naturally, but can you force which resource the phone/tablet is
gonna use? Which is default for cellphone/tablet and is there a
automatic fallback from hdpi to mdpi and to ldpi?

thx,

Marcel



On Nov 4, 1:13 pm, Shashidhar  wrote:
> Hi,
>  I found a weird ways of finding this.
> We can place three completely different images(ex: cat, pig, elephant  :-)
> ) with same name in each of the folder.
> In your app use this image on UI.
> When you run the app now, you will be able to find which drawable folder is
> being used based on the image shown on the GUI :) .
>
> Thanks,
> Shashidhar
>
> On Fri, Nov 4, 2011 at 3:29 PM, Marcel Arts wrote:
>
>
>
>
>
>
>
> > Hello anyone,
>
> > I want to know more about this issue too! Does anyone can give 'us'
> > more info about the 3 drawable folders? (hdpi,ldpi and mdpi)  Witch
> > drawable resource will the cellphone/ tab use?
>
> > grtz,
>
> > Marcel
>
> > On Nov 2, 7:31 am, Shashidhar  wrote:
> > > Hi,
> > >   Is there a way to find which drawable folder images are currently used
> > > when I run my application.
> > > I mean, say when I run my app on Nexus-one phone, I want to know which
> > > drawable folder images are used on the UI.
> > > I have 3 separate folder and each having the same set of images with
> > > different sizes.
>
> > > Thanks,
> > > Shashidhar
>
> > --
> > 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 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: My android version 1.6 mostly hanged

2011-12-16 Thread Marcel Arts
buy a new model

On Dec 14, 5:25 am, Enton Packiaraj  wrote:
> hi,
>
>      I am having samsung i7500 model and android 1.6 version.since i
> bought this mobile 2 years
> before but my handset hanged and problem for most time.so can anyone
> help .

-- 
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: Error on running my hello world application

2011-10-19 Thread Marcel Arts
Do you have your cell-phone connected to your computer? if so de-
connect otherwise the avd wants to run you apps on your cellphone
(needs more configuration than default)

On Oct 17, 2:44 pm, Zakir Hossain  wrote:
> Hello All:
>
> I am running my first android hello world application on windows 7
> with Android API 12 and SDK platform 3.1. The problem is every time I
> run it through AVD I got the following error message:
>
> Sorry!
> The application Launcher (process com.android.launcher) has stopper
> unexpectedly. Please try again.
>
> My log cat contains following errors:
>
> 10-17 18:36:30.322: ERROR/PhonePolicy(33): Could not preload class for
> phone policy: com.android.internal.policy.impl.PhoneWindow
> $ContextMenuCallback
> 10-17 18:36:49.372: ERROR/BatteryService(82): usbOnlinePath not found
> 10-17 18:36:49.372: ERROR/BatteryService(82): batteryVoltagePath not
> found
> 10-17 18:36:49.372: ERROR/BatteryService(82): batteryTemperaturePath
> not found
> 10-17 18:36:56.073: ERROR/EventHub(82): could not get driver version
> for /dev/input/mouse0, Not a typewriter
> 10-17 18:36:56.073: ERROR/EventHub(82): could not get driver version
> for /dev/input/mice, Not a typewriter
> 10-17 18:36:56.393: ERROR/WifiService(82): Invoking
> mWifiStateMachine.setWifiEnabled
> 10-17 18:36:57.753: ERROR/ThrottleService(82): Could not open GPS
> configuration file /etc/gps.conf
> 10-17 18:36:57.793: ERROR/NetworkTimeUpdateService(82): Could not open
> GPS configuration file /etc/gps.conf
> 10-17 18:36:57.793: ERROR/NetworkTimeUpdateService(82): NTP server
> address not found, not syncing to NTP time
> 10-17 18:36:59.322: ERROR/logwrapper(168): executing /system/bin/tc
> failed: No such file or directory
> 10-17 18:36:59.392: ERROR/logwrapper(170): executing /system/bin/tc
> failed: No such file or directory
> 10-17 18:36:59.452: ERROR/logwrapper(172): executing /system/bin/tc
> failed: No such file or directory
> 10-17 18:37:05.812: ERROR/AndroidRuntime(151): FATAL EXCEPTION: main
> 10-17 18:37:05.812: ERROR/AndroidRuntime(151):
> java.lang.RuntimeException: Unable to start activity
> ComponentInfo{com.android.launcher/com.android.launcher2.Launcher}:
> android.content.res.Resources$NotFoundException: Resource ID
> #0x7f030015
> 10-17 18:37:05.812: ERROR/AndroidRuntime(151):     at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> 1748)
> 10-17 18:37:05.812: ERROR/AndroidRuntime(151):     at
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
> 1764)
> 10-17 18:37:05.812: ERROR/AndroidRuntime(151):     at
> android.app.ActivityThread.access$1500(ActivityThread.java:122)
> 10-17 18:37:05.812: ERROR/AndroidRuntime(151):     at
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1002)
> 10-17 18:37:05.812: ERROR/AndroidRuntime(151):     at
> android.os.Handler.dispatchMessage(Handler.java:99)
> 10-17 18:37:05.812: ERROR/AndroidRuntime(151):     at
> android.os.Looper.loop(Looper.java:132)
> 10-17 18:37:05.812: ERROR/AndroidRuntime(151):     at
> android.app.ActivityThread.main(ActivityThread.java:4025)
> 10-17 18:37:05.812: ERROR/AndroidRuntime(151):     at
> java.lang.reflect.Method.invokeNative(Native Method)
> 10-17 18:37:05.812: ERROR/AndroidRuntime(151):     at
> java.lang.reflect.Method.invoke(Method.java:491)
> 10-17 18:37:05.812: ERROR/AndroidRuntime(151):     at
> com.android.internal.os.ZygoteInit
> $MethodAndArgsCaller.run(ZygoteInit.java:841)
> 10-17 18:37:05.812: ERROR/AndroidRuntime(151):     at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
> 10-17 18:37:05.812: ERROR/AndroidRuntime(151):     at
> dalvik.system.NativeStart.main(Native Method)
> 10-17 18:37:05.812: ERROR/AndroidRuntime(151): Caused by:
> android.content.res.Resources$NotFoundException: Resource ID
> #0x7f030015
> 10-17 18:37:05.812: ERROR/AndroidRuntime(151):     at
> android.content.res.Resources.getValue(Resources.java:1014)
> 10-17 18:37:05.812: ERROR/AndroidRuntime(151):     at
> android.content.res.Resources.loadXmlResourceParser(Resources.java:
> 2039)
> 10-17 18:37:05.812: ERROR/AndroidRuntime(151):     at
> android.content.res.Resources.getLayout(Resources.java:853)
> 10-17 18:37:05.812: ERROR/AndroidRuntime(151):     at
> android.view.LayoutInflater.inflate(LayoutInflater.java:389)
> 10-17 18:37:05.812: ERROR/AndroidRuntime(151):     at
> android.view.LayoutInflater.inflate(LayoutInflater.java:347)
> 10-17 18:37:05.812: ERROR/AndroidRuntime(151):     at
> com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.jav a:
> 223)
> 10-17 18:37:05.812: ERROR/AndroidRuntime(151):     at
> android.app.Activity.setContentView(Activity.java:1780)
> 10-17 18:37:05.812: ERROR/AndroidRuntime(151):     at
> com.android.launcher2.Launcher.onCreate(Launcher.java:336)
> 10-17 18:37:05.812: ERROR/AndroidRuntime(151):     at
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
> 1048)
> 10-17 18:37:05.812: ERROR/AndroidRuntime(151):