[android-developers] Re: doubt on customview

2012-09-07 Thread sparky
http://developer.android.com/training/basics/firstapp/index.html

On Sep 7, 10:52 am, vadivel rajan  wrote:
>  hi friends help me
>
> i just want to create TextView , Button and Edittext using java code and
> also extends the Linear layout in the class how to do?
>
> advance thanks to u

-- 
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: Intercept layout android loading choice

2012-09-07 Thread sparky
I think switching it in setContentView() is exactly right.  The main
question then is, how do you decide which user gets which layout, and
how do you make it consistent?  The latter, I would accomplish by
writing something into Shared Preferences.


On Sep 7, 2:16 pm, Jose Ayerdis  wrote:
> Is there a way that I can intercept when does android decided which layout
> to use, like for instance I want to have two different kind layouts tested
> on different set of users, but I would like some random users load the
> regular(even if they have hdpi devices) and others uses the hdpi.
>
> The only thing that comes to mind is override the setContentView.
>
> layout/mylayout.xml
> layout-hdpi/mylayout.xml
>
> Sincerly yours,
>
> [Jose Luis Ayerdis Espinoza]
> Necronet.info |
> LinkedIn|
> Careers
> StackOverflow 

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


Re: [android-developers] databse

2012-09-06 Thread sparky
Hi Justin,

Thank you for the blog article.  Nice in particular that you called out 
Android Training.  I think Android Design is also going to emerge as an 
important go-to resource for people looking to do things that harmonize 
well with the platform.

On Wednesday, September 5, 2012 12:33:52 AM UTC+2, MagouyaWare wrote:
>
>
> http://android-dev-tips-and-tricks.blogspot.com/2012/08/so-you-need-help.html
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>

-- 
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: no. of downloads is not showing in play

2012-09-06 Thread sparky
I downloaded it to my tablet.  Let's see if it shows up later today.

On Thursday, September 6, 2012 10:59:22 AM UTC+2, RKJ (Android developer) 
wrote:
>
> All,
>
> In one of the my apps *A P J Abdul Kalam,* no of downloads is not showing 
> in play.
>
> https://play.google.com/store/apps/details?id=com.kt.APJKalam&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5rdC5BUEpLYWxhbSJd
>  
>
> is any setting issue from developer accounts ?
>
> what is this issue ?
>
> -- 
> Thanks & Regards
>
> Rakesh Kumar Jha
>
>  

-- 
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: What is the best way to Download Images and texts and use them in my app?

2012-09-02 Thread sparky
Fetch your data from the network off the UI thread so the app remains 
responsive.  Either use AsyncTask or a Service, and update the UI when the 
data is ready.


On Sunday, September 2, 2012 1:52:46 PM UTC+2, Mohammad Abu Hmead wrote:
>
> Dear Developers,
>
> I created an app which load data from server and format it in specific 
> format in android UI components, like text view and image view, but the 
> loading take long time, i want to know what is the best way to decrease the 
> load time and increase the loading speed and the quality of my app, if you 
> know a book name or blog or wiki don't hesitate to till me.
> If you want to see the developed and published app which I'm talking 
> about, please visit 
> Wasfati
>  app 
> on android market.
>
> Many thanks in advance.
>

-- 
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: Password protect app before users can download from google play store

2012-09-02 Thread sparky
No, but there is something even better:  on-line license verification. 
 http://developer.android.com/guide/google/play/licensing/index.html

Your app can ask Android Market any time whether the current user has a 
license to use it.  If they aren't, then you can decide what to do about 
it. (For example, you could display a dialog offering them an incentive to 
pay for it.)


On Saturday, September 1, 2012 2:09:23 PM UTC+2, cjs264 wrote:
>
> Is there a way I can password protect an app I created, so that before a 
> user can download the app, they would have to enter a password?
>

-- 
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: Updating Android Manifest file of an install apk.

2012-08-29 Thread sparky
You can't modify the permissions of an installed app.

On Aug 29, 2:12 pm, Amit Sinha  wrote:
> As i understand there is no way i can modify the manifest file.
> I wanted to know is there a way i can know what are the all the permission
> that a installed apk is using that will be mention in the manifest file?
> so that i can modify the permissions.
>
> thx.
>
>
>
>
>
>
>
> On Wednesday, 29 August 2012 17:01:28 UTC+5:30, sparky wrote:
>
> > You need to rebuild your APK with the new manifest and install it on
> > the device.  You can't change the manifest on-device.
>
> > On Aug 29, 12:17 pm, Amit Sinha  wrote:
> > > Hi,
> > > please let me know how can i modify the manifest
> > file(AndroidManifest.xml)
> > > of installed apk.
>
> > > Need to modify AndroidManifest.xml is to change the permission of
> > install
> > > apk.
> > > i wanted to update the permission of the installed apk..
>
> > > thx
> > > amit

-- 
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: imac g5 ppc 12,1

2012-08-29 Thread sparky
Apple Java should give you the necessary Java 6 support.

Open a Terminal window and type:
javac -version

Does it say something beginning with "javac 1.6"?



On Aug 29, 3:41 am, Errol  wrote:
> I guess that I am short of luck running the jdk 6 app. I don't seem to be
> able to get anything better than j2se 5.0 and 1.4.2, because that's the
> best that leopard can do for me
> so, I'll cut my losses and go within the app dev com to deal with xcode,
> and their sdk..
> I've even tried installing earlier versions of eclipse, but it won't let me
> get to the android sdk manager to install the packages after the adt and
> gpe plugins

-- 
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: USB Host hardware requirements?

2012-08-29 Thread sparky
I wouldn't take this as a rule, but more of a guideline: Phones don't
do host-mode and tablets do (With exceptions).  You may be better off
trying to connect your sensor to an ADK than to a device.


On Aug 29, 4:47 am, Kiran  wrote:
> Hi All,
> I have a USB based sensor that would draw about 300mA and would like to use
> it with my Android phone.  I have tried to play around with the API's and
> write a small application that would just list out the devices that were
> connected to the USB bus.
>
> A small code snippet that I am trying to use to print out the connected
> devices is:
>
> *
> EditText lsusbText = (EditText) findViewById(R.id.lsusbTextID);
> lsusbText.setText("");
> Log.i(TAG, "Querying USB devices");
>
> UsbManager manager = (UsbManager) getSystemService(Context.USB_SERVICE);
> HashMap deviceList = manager.getDeviceList();
> Iterator deviceIterator = deviceList.values().iterator();
> while(deviceIterator.hasNext()){
>     UsbDevice device = deviceIterator.next();
>     //your code
>     lsusbText.append(device.getDeviceName());
>
> }
>
> My manifest has:
> 
>
> 
> 
> 
>
> *
>
> I noticed that the results are not showing any devices connected.  After
> researching a bit and poking around in the forums, it seems that only
> specific hardware devices support USB Host mode.  I have a Samsung Nexus S
> phone, and am inclined to believe that this phone does not support the USB
> host mode?  I also tried plugging in a mouse via an OTG adapter, but the
> USB mouse didn't receive power after it was plugged in.  The Android API's
> also suggest this:
> "Note: Support for USB host and accessory modes are ultimately dependant on
> the device's hardware, regardless of platform level."
> Is there a listing of the Android powered devices that support USB host
> mode?  Also, out of curiosity, why is there a hardware requirement for USB
> host?  Is it the specific type of USB connector that the phone has (Micro-A
> vs Micro-B)?  Is it something related to the USB Bus power?  Any
> information regarding the hardware requirements, which devices currently
> support this, etc would be great.  I also found that there is a libusb port
> to Android, which would allow access at a lower level.  However, this would
> potentially still require the hardware to support the USB host mode.
>  Additionally, I have seen things about a kernel mod required.  I'm
> guessing the kernel stuff was for older image releases, and that Android
> 4.1 has this kernel mod built in.
>
> I unfortunately found that the documentation for WiFi direct is similarly
> ambiguous in that although WiFi direct is something that is enabled and
> available for use in the API, the hardware may not support it.  However, I
> haven't found any documentation which tells developers which devices
> support/don't support the functionality.
>
> Thanks in advance,
> Kiran

-- 
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: Provide pptx support in my app

2012-08-29 Thread sparky
Try to verify that you aren't including any library twice.

On Aug 29, 8:31 am, prateek  wrote:
> Hello, I am trying to give pptx support in my app by converting pptx(from 
> sdcard) into HTML view and then display it in the webview. For this I am 
> using Apache POI libraries but still I am unable to do this.
> Can anyone help me out in this regard if he/she has worked on same issue 
> before.
> And also do tell me the exact libraries to link to my project.
> Currently i am adding the following libraries in my project
> poi-3.8
> poi-ooxml-3.8
> poi-ooxml-schemas-3.8
> xmlbeans-2.3
> dom4j-1.6
> but its not getting compiled...throws error "Conversion to Dalvik format 
> failed with error 2" or "heap space" error or "Conversion to Dalvik format 
> failed with error 1".

-- 
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: Android ADT not stating on Eclipse

2012-08-29 Thread sparky
Did you install and configure the ADT per the steps on this page?
http://developer.android.com/sdk/installing/installing-adt.html




On Aug 29, 8:50 am, JBoy  wrote:
> Hi all,
>
> I'm trying to install the components for developing Android apps on my Mac 
> with Leopard osx 10.5.8. Since i use an outdated version of Eclipse 
> "Ganymede" i have decided to upgrade to 32bit Indigo, i have downloaded the 
> SDK and installed the recomended components with Android manager as explained 
> inhttp://developer.android.com/sdk/installing/index.htmlin the Applications 
> directory (where Eclipse is also installed), then i have downloaded the ADT 
> plugin for eclipse successfully, Eclipse asked me to restart and so i did, 
> but when after the restart, i click on Eclipse > Preferences. i dont see 
> the Android directory, when i create a new project, even under 'Other' there 
> is no Android option, though if i display the installed plugin i see the 
> Android ADT plugin listed I dont think it is a SDK issue, i think the ADT 
> plug in its the cause of the malfunction, but i would not know where to check 
> this since it is correclty installed.
>
> Do you have any advice? the web unfortunately does not provide very useful 
> tips.
>
> Thx

-- 
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: Handling localservice-to-activity callbacks

2012-08-29 Thread sparky
My robust/simple alternative goes like this:

1. Activity shows data taken from a ContentProvider.
2. Activity sends an Intent to an IntentService to get new content.
3. Service fetches content asynchronously and inserts it into the
ContentProvider.

Through configuration changes or whatever, the framework keeps my
Activity in sync with its data.


On Aug 28, 11:48 am, itai  wrote:
> I’m designing my app’s communication layer such that all http requests
> will be initiated by threads created in the context of a local
> service.
> My concern is about how to properly handle responses.
>
> I read about several approaches and it seems that broadcast receivers
> are most loosely coupled in respect to the current activity instance
> receiving the callback notification. However, I’m concerned about
> missing notifications while an activity is in a pause state or simply
> recreated due to a configuration change…
>
> For example:
>
> t1 – User initiates long running request.
> t2 – Activity shows a progress dialog and sends an Intent to the
> service to start the async call.
> t3 – User tilts the device, causing configuration change
> t4 – OnPause is called, unregistering the broadcast receiver
> t5 – Service thread broadcasts completion intent (no registered
> receivers)
> t6 - Activity is recreated
> t7 – OnResume is called registering broadcast receiver
> t8 – Activity is not aware of the completion broadcast.
>
> I thought about overcoming this by tracking request/response in
> persistent storage and querying the state in OnResume before
> registering a new broadcast receiver... but my gut feeling tells me
> this is an overkill particularly for ad-hoc requests, plus there is no
> guarantee that the persistent state will reflect the valid state of a
> particular async call if the process would be killed when the call is
> in progress... overall resulting in many edge cases to handle.
>
> Does the environment provide a way to “queue-up” broadcast intents for
> a particular activity?
>
> Any robust/simple alternatives?
>
> Thanks,
> -Itai

-- 
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: Get activity class instance

2012-08-29 Thread sparky
If your project is complex, then having Activities reading each
others' member variables will only make it worse.  You need
encapsulation and clean interfaces.

For small collections of data, maybe you could get away with extending
Application and putting them there.  Shared Preferences would also be
okay.  If your data model is a bit more complex, then you probably
need to give it a class of its own, and persist it by attaching it to
the Application, or access it through a Service, or create a database,
something like that.

But saying, "I want to forego best practices because my project is
complex," sounds like a good way to get into trouble.



On Aug 29, 10:00 am, Filipe  wrote:
> Hi,
>
> I am new to Android, so I still am having some basic dificulties.
>
>  I have 2 classes that extend "Activity", MyActivityA.java and
> MyActivityB.java.
>  How do I start MyActivityB from MyActivityA and access its public
> variables?
>  Comming from C++ I would expect something like:
>  ...
>  {
>  MyActivityB actB=new MyActivityB();
>  actB.varX="Hello";
>  actB.startActivity(new Intent(this, MyActivityB.class));
>  }
>
> But this doesn't work. It throws an exception. By searching online I
> allways see starting an activity like this:
>  ...
>  {
>  startActivity(new Intent(this, MyActivityB.class));
>  //But now how do I get an instance to MyActivityB class that was started?
>  }
>  I would really prefer to access the MyActivityB class public variables.
>  I know of passing parameters in the Intent using putExtra(), but I am
> looking for an alternative because of the complexity of the project.
>
> 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: tileMode = repeat with stretching the image in order to get an exact number of repetitions.

2012-08-29 Thread sparky
If you can accept stretching instead of repeating, you could use a
very small 9-patch.

On Aug 29, 1:08 pm, Pau Rodríguez Coloma  wrote:
> Thanks Romain for your help. This is what I was thinking that at the end I
> have to do. The design idea is that the line fills the screen width except
> a left and right margin (about 40dp). So if I'm understanding well your
> response, I need to use an ImageView like this:
>
> 
>             android:layout_width="fill_parent"
>
>             android:layout_height="wrap_content"
>
>             android:layout_marginLeft="40dp"
>
>             android:layout_marginRight="40dp"
>
>             android:src="@drawable/separator"
>
>             android:layout_centerHorizontal="true"/>
>
> and in onCreate method of my activity I've to check the initial width of
> the ImageView and after this, set it to the nearest multiple of the size of
> my PNG. Is it?
>
> So, Can you give me some example code about it?
>
> Thanks in advance.

-- 
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: Updating Android Manifest file of an install apk.

2012-08-29 Thread sparky
You need to rebuild your APK with the new manifest and install it on
the device.  You can't change the manifest on-device.

On Aug 29, 12:17 pm, Amit Sinha  wrote:
> Hi,
> please let me know how can i modify the manifest file(AndroidManifest.xml)
> of installed apk.
>
> Need to modify AndroidManifest.xml is to change the permission of install
> apk.
> i wanted to update the permission of the installed apk..
>
> thx
> amit

-- 
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: TWO APPS WITH SAME NAME

2012-08-28 Thread sparky
Since nobody seems to have answered your question from the technical
sense, I will. What Android (and Google Play) uses to decide if two
apps are the same is the full.package.name. As long as the package
names are unique, the system doesn't care if they have the same name.

On Aug 27, 7:26 pm, vivek singh  wrote:
> Hi
> I released my app on google play on 15th august.
> I saw another app with same name released on  23 august.
> Is it OK?
>
> regards
> vivek

-- 
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: Goiogle Play - Dev Console not updating since July 25

2012-07-29 Thread sparky
The Google Play people are aware of the problem.  You can review known
issues at this page:
https://support.google.com/googleplay/android-developer/bin/static.py?hl=en&page=known_issues.cs

On Jul 28, 6:00 pm, Kaptkaos  wrote:
> I was wondering if anyone else was seeing this. When I check my dev console
> there are now stats for my apps after July 25. Is there a problem with
> Google Play or did I miss a memo? 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: C2DM registration down?

2012-06-04 Thread sparky
Registration should be working again.  It was down for around 2 days,
AFAIK.

On Jun 4, 10:08 am, Jean Baptiste PIETIN  wrote:
> Hello,
>
> Is there any news about this issue ?
> I'm waiting for one week now to register on C2DM.
>
> Thanks for feedback.
>
> JB.
>
> On 31 mai, 18:13, Sabanim  wrote:
>
>
>
>
>
>
>
> > Oops, something went wrong.
> > Something bad happened. Don't worry, though. The Spreadsheets Team has
> > been notified and we'll get right on it.
>
> > I have been getting this for 3 days now when I go to submit.  Also the
> > submit button is gone from firefox.  I can see it in chrome.

-- 
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: Contacting Google - how things are done... by Google

2012-05-21 Thread sparky
I'm following up on this.

On May 15, 6:57 pm, Stanislav Vlasic  wrote:
> Hello to group!
>
> I have nothing much to say, see link below:
>
> http://www.wgmetal.hr/documents/contacting_google.pdf

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


Re: [android-developers] Re: Need help about Play Store banned application.

2012-04-05 Thread Sparky Rhode
I'm going to contact you off-list.


On Thu, Apr 5, 2012 at 3:07 PM, Tolriq  wrote:
>
> Well they give a link to the site that says to answer to the email. That's
> what I did without any feedback :(
>
> For the screenshots they were the same on the free and full app. I've
> changed them on the free one day after the ban in case of.
>
> But the situation where only one of two identical apps being ban is really
> disturbing as I don't know what to do next. Update the free and publish a
> new unlocker, Move from the Market since not logic and no support, wait
> longer for an answer with an app that needs to be updated, .
>
> Le jeudi 5 avril 2012 15:00:17 UTC+2, sparky a écrit :
>>
>> The email from Google Play should have told you how to follow up. I don't
>> have access to the reasons why your app was suspended, but if it the app is
>> okay, maybe your screen shots had a problem.
>>
>>
>> On Thursday, April 5, 2012 1:37:01 PM UTC+2, Tolriq wrote:
>>>
>>> Hello,
>>>
>>> I've got a little problem with my app being banned from Play Store with
>>> the reason : REASON FOR REMOVAL: Violation of the intellectual property and
>>> impersonation or deceptive behavior provisions of the Content Policy
>>>
>>> But the app does not violate any of the rules, the code is 100% mine,
>>> design is made by a friend base on free of use for commercial icons. And the
>>> description is exactly what it says. All users are very happy with the app
>>> that have been in beta for 3 month with more than 2K downloads. The project
>>> is based on my old project Yatse 2 on Windows that is more than 2,5 year
>>> olds.
>>> So I really don't understand.
>>>
>>>
>>> The biggest problem is that I have a free version and a donate version
>>> that are the exact same (apart from a theme option present in the donate and
>>> not the free version) and the free version is not banned. ( Link to free
>>> version :
>>> https://play.google.com/store/apps/details?id=org.leetzone.android.yatsewidgetfree
>>> )
>>>
>>> And Google support does not respond to my mails for 5 days now :(.
>>>
>>> So I don't know if the free version will be banned or not, if I can
>>> publish an unlocker for the free version without risking my account.
>>>
>>> Is there any way to have a contact with Google to have this issue sorted
>>> out ?
>>> If the app really needs to be ban for a reason that I'm not aware of I'd
>>> like to know the reason so I can fix it and not get the free version ban and
>>> account suspended.
>>>
>>> Regards,
>>> Tolriq.
>>>
>
> Le jeudi 5 avril 2012 15:00:17 UTC+2, sparky a écrit :
>>
>> The email from Google Play should have told you how to follow up. I don't
>> have access to the reasons why your app was suspended, but if it the app is
>> okay, maybe your screen shots had a problem.
>>
>>
>> On Thursday, April 5, 2012 1:37:01 PM UTC+2, Tolriq wrote:
>>>
>>> Hello,
>>>
>>> I've got a little problem with my app being banned from Play Store with
>>> the reason : REASON FOR REMOVAL: Violation of the intellectual property and
>>> impersonation or deceptive behavior provisions of the Content Policy
>>>
>>> But the app does not violate any of the rules, the code is 100% mine,
>>> design is made by a friend base on free of use for commercial icons. And the
>>> description is exactly what it says. All users are very happy with the app
>>> that have been in beta for 3 month with more than 2K downloads. The project
>>> is based on my old project Yatse 2 on Windows that is more than 2,5 year
>>> olds.
>>> So I really don't understand.
>>>
>>>
>>> The biggest problem is that I have a free version and a donate version
>>> that are the exact same (apart from a theme option present in the donate and
>>> not the free version) and the free version is not banned. ( Link to free
>>> version :
>>> https://play.google.com/store/apps/details?id=org.leetzone.android.yatsewidgetfree
>>> )
>>>
>>> And Google support does not respond to my mails for 5 days now :(.
>>>
>>> So I don't know if the free version will be banned or not, if I can
>>> publish an unlocker for the free version without risking my account.
>>>
>>> Is there any way to have a contact with Google to have this issue sort

[android-developers] Re: Need help about Play Store banned application.

2012-04-05 Thread sparky
The email from Google Play should have told you how to follow up. I don't 
have access to the reasons why your app was suspended, but if it the app is 
okay, maybe your screen shots had a problem.


On Thursday, April 5, 2012 1:37:01 PM UTC+2, Tolriq wrote:
>
> Hello,
>
> I've got a little problem with my app being banned from Play Store with 
> the reason : *REASON FOR REMOVAL*: Violation of the intellectual 
> propertyand 
> impersonation 
> or deceptive 
> behaviorprovisions
>  of the Content Policy
>
> But the app does not violate any of the rules, the code is 100% mine, 
> design is made by a friend base on free of use for commercial icons. And 
> the description is exactly what it says. All users are very happy with the 
> app that have been in beta for 3 month with more than 2K downloads. The 
> project is based on my old project Yatse 2 on Windows that is more than 2,5 
> year olds.
> So I really don't understand.
>
>
> The biggest problem is that I have a free version and a donate version 
> that are the exact same (apart from a theme option present in the donate 
> and not the free version) and the free version is not banned. ( Link to 
> free version : 
> https://play.google.com/store/apps/details?id=org.leetzone.android.yatsewidgetfree)
>
> And Google support does not respond to my mails for 5 days now :(.
>
> So I don't know if the free version will be banned or not, if I can 
> publish an unlocker for the free version without risking my account.
>
> Is there any way to have a contact with Google to have this issue sorted 
> out ?
> If the app really needs to be ban for a reason that I'm not aware of I'd 
> like to know the reason so I can fix it and not get the free version ban 
> and account suspended.
>
> Regards,
> Tolriq.
>
>

-- 
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: onPause isn't invoked after calling finish()

2012-02-25 Thread sparky
See this 
documentation: 
http://developer.android.com/guide/topics/fundamentals/activities.html#ImplementingLifecycleCallbacks

You should get only onDestroy() after finish().


On Saturday, February 25, 2012 12:20:17 AM UTC+1, 桂洲 吴 wrote:
>
> Must the onPause be invoked after calling finish()?  In which case, 
> onPause isn't invoked after calling finish()?


On Saturday, February 25, 2012 12:20:17 AM UTC+1, 桂洲 吴 wrote:
>
> Must the onPause be invoked after calling finish()?  In which case, 
> onPause isn't invoked after calling finish()?

-- 
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: ICS - OpenGLRenderer is out of memory! on Launcher application (Fonts are broken)

2012-02-23 Thread sparky
Hi Johnnie,

I have reposted your question and an answer on Stack Overflow: 
http://stackoverflow.com/questions/9412662/how-can-fonts-cause-opengl-out-of-memory-error

-- 
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: ICS - OpenGLRenderer is out of memory! on Launcher application (Fonts are broken)

2012-02-21 Thread sparky
Hi Johnnie,

Is your widget using very big fonts?

-- 
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: Broken Links in Documentation

2012-01-30 Thread sparky
Thank you for the astute catch, Phil. I opened a bug to fix this 
documentation.

-- 
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: Audio During a Call

2012-01-30 Thread sparky
The link that you cite describes the microphone picking up audio played 
over the external speaker.  Every example that I know of for injecting 
audio into the call uses this workaround.  You could call it a failure in 
the echo cancellation of the phone, but more likely it's just that sounds 
in the environment are fair game.  :-)

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

Re: [android-developers] Have I missed some step to be able to post?

2012-01-30 Thread sparky
Sorry, Ted, we don't usually moderate over the weekend.

-- 
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: anybody looking for android trainer

2012-01-23 Thread sparky
Offering or soliciting work is off-topic for android-developers. Would you 
please consider moving it to android-discuss?

-- 
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: Best Practices: Which SDK should I choose for a new project?

2012-01-23 Thread sparky
Your path of least resistance, I think, is probably to target 2.1 
initially.  Then, once you have your basic functionality ironed out, bump 
up targetSdkVersion and use reflection techniques to optionally support 
features made available in later releases.

You may wish to refer to these resources:
http://developer.android.com/guide/practices/compatibility.html
http://developer.android.com/resources/articles/backward-compatibility.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

[android-developers] Re: Limit App Usage

2012-01-23 Thread sparky
Sounds to me like something you could do with Google Docs. :-)

-- 
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: Dynamic Layout In Array

2012-01-23 Thread sparky
You may want to consider combining a ContentProvider (for your database), a 
ListFragment (to display the items) and a Loader.  You can find an example 
at the bottom of this page: 
http://developer.android.com/guide/topics/fundamentals/loaders.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

[android-developers] Re: Rotation event landscape to reverseLandscape

2012-01-23 Thread sparky
You can implement an OrientationEventListener.

-- 
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: andengine vs libgdx

2012-01-23 Thread sparky
The one that is most understandable to you and will get you running working 
code fastest is the best.

-- 
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: Writing a wav audio file using RandomAccessFile

2012-01-23 Thread sparky
I don't see you placing your file in External Storage.  I suggest you 
review this document:

http://developer.android.com/guide/topics/data/data-storage.html#filesExternal


-- 
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: Limit App Usage

2012-01-23 Thread sparky
Make it rely on a network resource that is accessible only from within your 
organization.

-- 
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: contact database structure

2012-01-17 Thread sparky
Android already does this out of the box. What do you need that the base 
system doesn't provide?

-- 
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: android:screenOrientation not allowed in a style?

2012-01-17 Thread sparky
What is your goal? Are you trying to force the screen into landscape, or 
are you trying to change the style based on screen orientation?  (I hope 
the latter, because it's not recommended to override the user's preferred 
screen orientation.)

-- 
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: Want to increase frame rate(fps), How???

2012-01-17 Thread sparky
Before we even consider code optimizations, look at the amount of work you 
are doing.  Do you really want to expand every preview frame into a JPEG? 
 Let's do the math: Suppose every JPEG frame is 100 KB.  100x1000x8x15 = 12 
Mbps.  Can you sustain that kind of transfer?  Maybe you should reconsider 
the amount of data you need to transmit.

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

Re: [android-developers] Re: Hardware accleration slow down every Canvas app. Why?

2012-01-16 Thread Sparky Rhode
Sounds to me like the mystery is solved.  Romain explained how calling
drawLine is faster on the CPU, and suggested a way to change the code
to make it more GPU-friendly. In other words, no, the code is not
well-optimized _for GPU rendering_. Perini explained drawLine gives
better-looking results, and at 60 FPS, the software-rendering
performance seems to be adequate. In other words, the code is
well-optimized _for CPU rendering_.  Ok, now we can understand what's
going on with this particular application.  Success!



On Mon, Jan 16, 2012 at 9:14 PM, sblantipodi
 wrote:
> As I saied the same code runs great on every feature phones from JP5
> to JP7 and newer.
> SAME CODE means that I converted the JavaME calls to android one, we
> are talking about exactly the same code.
> We are talking about 100-180MHz phone and Is this your answer?
> The app isn't well optimized?
>
> You are talking about drawLines() over the drawLine(), should we
> abandon antialiasing to draw some
> lines on a 1.2GHz smartphone? (drawLines() does not support
> antialiasing)
>
> Don't you think that the problem is somewhere else?
>
> On 16 Gen, 20:45, Romain Guy  wrote:
>> There is nothing magical about hardware acceleration. It is perfectly
>> possible to write code that runs faster on the CPU that on the GPU.
>> For instance, an app that does dozens or hundreds of calls to
>> Canvas.drawLine() per frame is likely to perform worse on the GPU. The
>> reason in this particular example is that every call to drawLine()
>> will generate a rendering instruction for the GPU, which is very
>> expensive. It is much more efficient to use drawLines() (plural) to
>> batch all the lines in a single rendering instruction. There are many
>> other things that can make a GPU perform poorly: overdraw, too many
>> different textures or shaders, etc.
>>
>> I just tried the app you linked to on a Galaxy Nexus and it performs
>> roughly the same with or without hardware acceleration. From looking
>> at its UI it seems it's doing a lot of custom drawing and I'm sure it
>> could be optimized to be more GPU friendly.
>>
>> Also the amount of RAM and the speed of the CPU have little to do with
>> how well an app will perform on the GPU.
>>
>> On Mon, Jan 16, 2012 at 10:41 AM, sblantipodi
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>  wrote:
>> > Just to add some more data.
>> > This simple app can render its UI at 60FPS on Galaxy Nexus running
>> > stock 4.0.2 with HW ACC is OFF.
>> >https://market.android.com/details?id=MortgageCalculatorPRO.DPsoftwar...
>>
>> > Simply enable hardware acceleration and the framerate drops from 10FPS
>> > to 30FPS.
>> > As I repeat all the UI is drawn using drawLine() drawRect()
>> > drawRoundRect() and StaticLayout to draw a correctly wrapped text.
>> > Simple apps using simple UI runs slow on a 1.2GHz CPU with 1GB of RAM.
>>
>> > Is there any reason to justify this aside from the fact that it must
>> > be some problem in the hw acceleration implementation?
>>
>> > --
>> > 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
>>
>> --
>> Romain Guy
>> Android framework engineer
>> romain...@android.com
>
> --
> 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


Re: [android-developers] Re: Hardware accleration slow down every Canvas app. Why?

2012-01-16 Thread Sparky Rhode
Can you share some source code that reproduces this performance issue?



On Mon, Jan 16, 2012 at 3:53 PM, sblantipodi
 wrote:
> The most disappointing thing is this problem is that google don't want
> to admit
> that they have problem in their implementation, this will probably
> means that we
> will not see any fix soon.
>
> As I repeat the same canvas runs great on feature phones with 180MHz
> CPU and 1MB of heap,
> runs great of low end blackberrys and badas phone.
> Runs great on android only if you don't enable hardware acceleration,
> once hardware acceleration
> is enabled it lags also on a 1.2GHz dual core cpu with an SGX540.
>
> This is clearly a bug, I will open a bug report.
>
> --
> 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


Re: [android-developers] Re: nfc compatibility for 2.2 android

2012-01-16 Thread Sparky Rhode
I think it would work, but you may want to consider whether supporting
Android 2.2 and older is even worth it. How many 2.2 devices can use
an NFC radio?


On Mon, Jan 16, 2012 at 1:44 PM, ANKUR GOEL  wrote:
> so if i use reflection or wrapper classes it will work or not .
>
>
>
>
>
>
> On Mon, Jan 16, 2012 at 5:48 PM, sparky  wrote:
>>
>> Since NFC wasn't added to the platform until 2.3
>> (http://developer.android.com/sdk/android-2.3-highlights.html), your only
>> choice is to piece together a complete solution yourself.
>>
>> --
>> 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

-- 
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: Hardware accleration slow down every Canvas app. Why?

2012-01-16 Thread sparky
Does your application use any of the canvas functions known not to be 
hardware-accelerated? This blog article lists them, along with some best 
practices for Android 2D hardware acceleration.

http://android-developers.blogspot.com/2011/03/android-30-hardware-acceleration.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

[android-developers] Re: nfc compatibility for 2.2 android

2012-01-16 Thread sparky
Since NFC wasn't added to the platform until 2.3 (
http://developer.android.com/sdk/android-2.3-highlights.html), your only 
choice is to piece together a complete solution yourself.

-- 
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: All the google accounts of all the phones waiting for C2DM push notifications must be registered on C2DM?

2012-01-13 Thread sparky
Yes. The email address that you use to request access must be the same as 
the one that will authenticate to the C2DM web service and send it messages 
for delivery to devices.

You may find it useful to subscribe to the android-c2dm group.

-- 
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: C2DM - Always returns 200 without Error= but device doesn't receive notification

2012-01-13 Thread sparky
This article may answer your question.
https://groups.google.com/forum/#!topic/android-c2dm/gY2RZBoFth4

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

Re: [android-developers] Re: Why do my post is not shown ?

2012-01-12 Thread Sparky Rhode
Sorry, the Dubai moving service did make it past the moderators. I
deleted their posts yesterday.



On Wed, Jan 11, 2012 at 11:35 PM, Kristopher Micinski
 wrote:
> Is that true?  I don't believe that it used to be..., perhaps the
> rules have changed, but I would sort of doubt it based on the amount
> of spam this list receives (ad for moving service in dubai, for
> example, probably would not have made it past moderators...)
>
> kris
>
> On Wed, Jan 11, 2012 at 3:42 PM, sparky  wrote:
>> All members' posts are moderated initially.
>>
>> --
>> 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

-- 
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: I need Google Map Application...

2012-01-11 Thread sparky
http://developer.android.com/guide/tutorials/views/hello-mapview.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

Re: [android-developers]

2012-01-11 Thread sparky
Try this one: http://developer.android.com/training/multiscreen/index.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

[android-developers] Re: J2ME vs Android Java

2012-01-11 Thread sparky
J2ME and Android are very different frameworks. You do not need to know 
anything about J2ME to write Android applications.  You can pretend J2ME 
doesn't exist.

-- 
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: Why do my post is not shown ?

2012-01-11 Thread sparky
All members' posts are moderated initially.

-- 
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 set picture mode of camera?

2012-01-11 Thread sparky
There is not. You open the camera, then set the parameters to configure the 
mode you want.

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

Re: [android-developers] Push Notification from sever

2012-01-11 Thread sparky
What Vijay Kumar said. See http://code.google.com/android/c2dm/#example.

-- 
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: plz help close application

2012-01-10 Thread sparky
You should not.  Just implement the appropriate 
callbacks
 and 
let the OS decide when to close your activity.

-- 
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: AbsoluteLayout blues

2011-09-16 Thread sparky
See "Compatibility Zoom".  Only since Android 3.2, though.

But I think you're better off fixing your fundamental problem, which is an 
inflexible layout.

-- 
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 accelerate video any resolution video on surface view +android code

2011-09-16 Thread sparky
http://developer.android.com/guide/practices/optimizing-for-3.0.html

"You can enable hardware-accelerated rendering in your application by 
setting android:hardwareAccelerated="true" in your manifest's 

 element 
or for individual 

 elements."


-- 
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: Intent to install packages from market

2011-09-16 Thread sparky
Sorry, it's part of the Android security design that the user has to 
explicitly approve installs.

-- 
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: Increase the App Size in Android

2011-09-16 Thread sparky
I think calling recycle() became a lot less necessary in Gingerbread.

-- 
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: same app one tablet and phone with differnt gui

2011-09-16 Thread sparky
Please don't use multiple APKs for tablet support. Just implement some 
xlarge layouts.  You'll be glad you did.  For the menu buttons, just 
populate the Activity Bar with Options Menu items.  Any buttons that don't 
fit on screen can automatically go into the Options (or overflow) menu.

See this article: 
http://developer.android.com/guide/practices/optimizing-for-3.0.html  -- 
although it says 3.0, it's mostly about adding support for tablets.

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

2011-09-06 Thread sparky
http://developer.android.com/resources/browser.html?tag=tutorial
http://www.youtube.com/results?search_query=google+i%2Fo+android&aq=f

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

Re: [android-developers] Users Verifying my App Signature

2011-08-12 Thread sparky
No, I think that was just hyperbole.  It's still 25 years.

http://developer.android.com/guide/publishing/app-signing.html

The signature isn't to say, unequivocally, "I am Sparky." It says, "both 
versions of this app were signed by the same author."

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

Re: [android-developers] hiii dearssssss

2011-08-01 Thread sparky
Your code won't compile on my system. Can you please also include a copy of 
com.magic.package.that.does.all.the.work ?

-- 
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: Android Market user ratings disappeared on July 29, 2011

2011-08-01 Thread sparky
Apologies. Market team is working on it.

https://www.google.com/support/androidmarket/developer/bin/static.py?page=known_issues.cs

-- 
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: Can I sell hardware+app together on Android Market?

2011-07-20 Thread sparky
See: http://www.android.com/us/developer-distribution-agreement.html

Top section: Definitions

*Products:* Software, content and digital materials created for Devices in 
accordance with the Android SDK and distributed via the Market.

-- 
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 deal with bulk licensing?

2011-06-29 Thread sparky
Have you thought about using the Android License Verification Library?  

http://developer.android.com/guide/publishing/licensing.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

[android-developers] Re: Make Rectangle haif width of screen

2011-06-29 Thread sparky
Put it in a layout together with some other components, set 
android:layout_weight, and let the layout manager sort it out.

-- 
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] Evaluate javascript from within a service

2010-05-07 Thread Sparky
Hello,

I need to evaluate javascript from within a Service.

In an Activity I used to do that with WebView. However after
constructing a WebView in the service (passing its context to the
WebView) and calling loadUrl (with the url of the page containing the
javascript that needs to be evaluated) nothing seems to happen. The
page never gets loaded.

I assume that the problem is that Webview does not support Service
context and requires an Activity context.. is there any solution to
that? Your help/ideas are greatly appreciated!!

My code within the service looks like this:

web = new WebView(context); //Service context
web.getSettings().setJavaScriptEnabled(true);
web.addJavascriptInterface(new JavaScriptInterface(), "HTMLOUT");
web.setWebViewClient(new WebViewClient() {
@Override
public void onPageFinished(WebView view, String url)
{
   //The page never gets loaded, so this code is never reached in
Servicce :(
web.loadUrl("javascript:window.HTMLOUT.showHTML("+javacode
+");");
}
});
web.loadUrl(url);

-- 
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: Device Seeding Program for Top Android Market Developers

2010-04-02 Thread Sparky
GERMANY here, still waiting, though in a few days (Saturday) the 4-
week period since I received the confirmation (6th March) will be
over.

Getting nervous... :-/

On Mar 31, 11:30 am, David Horn  wrote:
> Do as I say, not as I do etc. ;-)
>
> On Mar 30, 11:57 pm, Thomas Riley  wrote:
>
> > Yes David I "would suggest that you wait until after the deadline
> > before
> > whining- uh, asking where it is."
>
> > ;-)
>
> > On Mar 30, 10:53 pm, David Horn  wrote:
>
> > > It looks to me like the system sent out US Nexus's first, then US
> > > Droids, and hopefully us EU yokels will get a Nexus later this week.
>
> > > I say hopefully, as I launched into a bit of an attack on someone
> > > whose phone hadn't turned up with 2 days of the deadline to run; and
> > > now I'm in that situation with a few days off work flinching every
> > > time a van goes past the house and wishing Google would hurry up.  Has
> > > anyone tried phoning Brightpoint to ask what the plan is?
>
> > > Dave.
>
> > > On Mar 30, 10:47 pm, Breezy  wrote:
>
> > > > Received my Droid in Alabama today.
>
>

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Audio Playback Error

2010-01-04 Thread sparky
I've written an app. that uses the MediaPlayer, but every so often I
see this error:

ERROR/AudioMIO(3733): latency could NOT be set !! set it later

When it happens, the audio goes silent and the only way to get the
audio back is to stop and restart (release and create a new
MediaPlayer instance). This error shows up in the logcat, but is not
reported to the onErrorListener handler I've registered with the the
MediaPlayer.

Thanks in advance

-- 
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: manually update AppWidgetProvider's onUpdate

2009-11-12 Thread Sparky
Hey guys,

can you give me some hints on how to create that custom intent?

1. I have added this to manifest:









2. Edited the onReceive in widget code as Evan suggested. However, all
my update logic is in onupdate (so i dont have to implement the if-
clause in onreceive at all, right? the updateappwidget should
suffice..?)
3. I add this to my view:

Intent i = new Intent("go.updatewidget");
sendBroadcast(i);

For some reason nothing happens. The widget just sits there looking at
me :-p

Any ideas, guys?
thx

On Nov 4, 11:02 pm, Evan Ruff  wrote:
> I don't know if this is EXACTLY kosher, but I've overriden the
> onRecieve method in my AppWidgetProvider to look like:
>
> @Override
> public void onReceive( Context context, Intent intent )
> {
>     this.view = new RemoteViews( context.getPackageName(),
> R.layout.widget );
>     if (intent.getAction().equals( MY_AWESOME_CUSTOM_INTENT ))
>     {
>         // DO AWESOME STUFF HERE
>     }
>     else
>     {
>         super.onReceive( context, intent );
>     }
>
>     ComponentName me = new ComponentName( context, VAWidget.class );
>     AppWidgetManager.getInstance( context ).updateAppWidget( me,
> view );
>
> }
>
> Then I just add the custom intents to the widget's intent-filter in
> the manifest as usual.
>
> It has worked every time for me, but I'm wondering if there is a
> scenario where it would not be preferable to do it this way?
>
> E
>
> On Nov 4, 1:11 pm, skink  wrote:
>
> > Mark Murphy wrote:
> > > skink wrote:
> > > > hi,
>
> > > > my custom AppWidgetProvider has onUpdate method where i have logic to
> > > > update RemoteViews
>
> > > > it is not periodically updated by system, but rather, i'd like to
> > > > trigger onUpdate if something happens (in one of my app Activities).
> > > > both custom AppWidgetProvider and Activities i'd like to trigger
> > > > update from run with the same UID
>
> > > > i tried some AppWidgetManager's methods, but no luck, finally i ended
> > > > with really weird solution: i'm sending broadcast with action
> > > > ACTION_APPWIDGET_UPDATE and extras EXTRA_APPWIDGET_IDS which i got
> > > > from AppWidgetManager
>
> > > > is it a common way of updating AppWidgetProvider?
>
> > > You could also just send a broadcast to the provider directly, via the
> > > component-name version of the Intent constructor. Look for a null
> > > action, or some extra you package in, or something to tell it is your
> > > own custom Intent, then do the update work.
>
> > thank you Mark,
>
> > this is exactly what i'm doing now - sending broadcast directly to my
> > AppWidgetProvider by manually creating proper Intent and adding some
> > EXTRA_APPWIDGET_IDS extras
>
> > yet my impression was that this is not the way one should do: i mean i
> > thought there must be some higher level helper method to update
> > AppWidgetProvider
>
> > pskink
>
>

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