Re: [android-developers] want to be a game programmer.

2013-08-20 Thread Johnny

Thanks for reply, I agreed with this sentences."There are no *good*programmers 
who dont know how to use Google!!" . But I am not getting the 
good resource what I want. thatswhy I am posting my question here.

If you can help me out, I am very garteful to all.




On Sunday, August 18, 2013 1:00:59 PM UTC+5:30, Piren wrote:
>
> You should follow this group more closely... evidence show the contrary 
> ;-) 
> I'm more inclined to: "There are no *good* programmers who dont know how 
> to use Google!!  :-D
>
>
> as for the OP: No, not necessary. 
>
> On Saturday, August 17, 2013 12:21:20 PM UTC+3, Paul-Peter Tournaris wrote:
>>
>> There are no programmers who dont know how to use Google!!
>>
>>
>>
>> On Sat, Aug 17, 2013 at 11:14 AM, Johnny  wrote:
>>
>>> Is it necessary to learn NDK for game programming. if yes , How do I 
>>> start?  where can i get the resources and sample programmer? .
>>> Please suggest me.
>>> 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-d...@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  & Software Developer*
>>
>>- *http://goo.gl/TsJ8u*
>>- *http://acschedule.org*
>>
>> 

-- 
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] Any suggestions for Ad platform in addition to AdMob

2013-08-20 Thread Miguel Morales
I suggest you take a look at:
https://github.com/mopub/mopub-android-sdk/wiki/Getting-Started and
https://github.com/mopub/mopub-android-sdk/wiki/Banner-Integration

I'd probably stay away from low paying networks beside the ones stated
before.  Good luck.


On Mon, Aug 19, 2013 at 6:27 PM, limtc  wrote:

> Do you have experience with Inneractive or InMobi? I read from a web site
> that they are the big alternative to AdMob.
>
> Anyone can share with me some experience in integrating 2 ads services
> (says AdMob + Inneractive)? For example, how do you do it in XML when you
> have 2 ad banners sharing the same space? Or you do it one in XML and one
> in Java? Or this only works in full screen ads?
>
> 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.
>



-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://solrpg.com/,
http://www.youtube.com/user/revoltingx

-- 
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] Changed app from Paid to Free (with IAB)

2013-08-20 Thread Eurig Jones
Hey,

Yesterday I moved my app which was quite highly ranked from Paid to Free 
app with in app billing. The app instantly dropped to literal obscurity the 
second I did it. It was almost as if my ranking value in the database had 
been reset! 

Has anyone experienced this? Will the app recover in the next few days once 
the rankings get calculated again?

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] Why doesn't music visualization work on Jelly Bean?

2013-08-20 Thread MobileVisuals


Visualization for external players worked before, but it does not work on 
Jelly bean. I have played music with external players, like Spotify and 
Winamp, while debugging the apps. The bytes in the updateVisualizerFFT 
method are always 0 for external players, when a visualizer is created with 
0 as an argument:

new Visualizer(0);


This results in no visualization, since there is no signal to use for 
visualization. Do you know why this happens and how this can be fixed?


 It still works for internal players. I mean when the app has its own built 
in player. The bytes in the updateVisualizerFFT are not 0 then, so the app 
has something to use for visualization, even when the visualizer is created 
with 0 as an argument.

-- 
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: NoClassDefFound Exception, when using imported jar from libs folder

2013-08-20 Thread Skip
Thank you so much, this is it!

On Monday, August 19, 2013 4:15:55 PM UTC+2, Nobu Games wrote:
>
> You screenshot shows that your Java library project is built using 
> JavaSE-1.7. Unfortunately that does not work. You have to set the Java 
> compiler version to 1.6 for that project.
>
> On Monday, August 19, 2013 8:33:44 AM UTC-5, Skip wrote:
>>
>> I am trying referencing a *libs* folder in my project.
>>
>> *1.)* I created a simple jar with one single dummy class 
>> ImportableDummy.java and exported the project as a jar.
>>
>> *Jar Project:*
>>
>> [image: enter image description here]
>>
>> *2.)* Then I put the jar into the *libs folder* inside my Project. The 
>> lib is then listed under "Private Libraries":
>>
>> *Jar referencing Project:*
>>
>> [image: enter image description here] [image: enter image description 
>> here]
>>
>> *3.)* At least I doublechecked, that the "PrivateLibraries" are marked 
>> as "exported"
>>
>> [image: enter image description here]
>>
>> *QUESTION:*
>>
>> Still there is a java.lang.NoClassDefFoundError: 
>> com.test.my.ImportableDummy exception, when I run the App. During 
>> compileTime the class is perfectly found by the compiler.
>>
>> What am I missing?
>>
>>- P.S. A tried to create a separate lib project for the jar too, with 
>>the same result.
>>- P.P.S. I started Eclipse with the -clean argument with no result
>>
>>

-- 
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] Changed app from Paid to Free (with IAB)

2013-08-20 Thread Nikolay Elenkov
On Tue, Aug 20, 2013 at 4:49 PM, Eurig Jones  wrote:
> Hey,
>
> Yesterday I moved my app which was quite highly ranked from Paid to Free app
> with in app billing. The app instantly dropped to literal obscurity the
> second I did it. It was almost as if my ranking value in the database had
> been reset!
>

No one here knows the details, but since free and paid apps seem to be ranked
separately (Cf. 'Top paid' vs 'Top free'), your app is most likely
being treated as
new free app.

-- 
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] Changed app from Paid to Free (with IAB)

2013-08-20 Thread a1


> > Yesterday I moved my app which was quite highly ranked from Paid to Free 
> app 
> > with in app billing. The app instantly dropped to literal obscurity the 
> > second I did it. It was almost as if my ranking value in the database 
> had 
> > been reset! 
>
Well you are is now positioned against free apps so yes I would say it was 
'reset' - that is all signals that are used to position app (eg. number of 
downloads, active installs and whatnot) were collected and position in free 
list was calculated (probably way lower that in used to have in paid list 
since paid vs free dynamics differs dramatically).
tl;dr; My guess is that what you are seeing is you app current position in 
top free list and it will not change.
 

> No one here knows the details, but since free and paid apps seem to be 
> ranked 
> separately (Cf. 'Top paid' vs 'Top free'), your app is most likely being 
> treated as new free app. 
>
I doubt that is categorized as 'new', in this video from IO2013: 
http://www.youtube.com/watch?v=5Od2SuL2igA it's clearly stated that 'new' 
period (first 30 days when app is eglible for being placed in Top New 
charts) start when app is first published (it may be reseted when app is 
changed from paid to free but I think it unlikely). 
 
--
Bart

-- 
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: "You need to enter a valid Youtube address."

2013-08-20 Thread Cássio Oliveira
August 2013 and the problem stills. Thanks for  this thread to show the 
solution!

On Monday, November 19, 2012 11:08:58 PM UTC-3, Keith Wiley wrote:
>
> So, I have sort of found the problem and solution.  This is really really 
> weird.  If I type a youtube address into FireFox or click on a youtube clip 
> in youtube to go to that video, it automatically forwards to "https" even 
> if I start with "http".  If I copy/paste the https URL into the dev 
> console, it rejects it as I have described in this thread even though the 
> https URL loads the video just fine.  I must manually edit the URL to be 
> http in the dev console in order to make it go through.
>
> Admittedly, Safari didn't seem to convert the URL to https so the error is 
> somewhat browser specific.  Nonetheless, I am amazed that I found 
> absolutely no description of this problem as I was trying to figure out 
> what was going on.
>
> So, now it's documented, here, in this thread...forever.
>
> 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.


Re: [android-developers] want to be a game programmer.

2013-08-20 Thread Michael Banzon
Game programming is all fun and dandy... But the question that pops into my
mind is: What great game idea do you have? ;-)

Secondly: If the quest is to make a fantastic game you could start with the
Unity engine (or something like it) and don't concentrate that much about
the platform before you get to "know game development".


On Tue, Aug 20, 2013 at 9:10 AM, Johnny  wrote:

>
> Thanks for reply, I agreed with this sentences."There are no 
> *good*programmers who dont know how to use Google!!" . But I am not getting 
> the
> good resource what I want. thatswhy I am posting my question here.
>
> If you can help me out, I am very garteful to all.
>
>
>
>
>
> On Sunday, August 18, 2013 1:00:59 PM UTC+5:30, Piren wrote:
>>
>> You should follow this group more closely... evidence show the contrary
>> ;-)
>> I'm more inclined to: "There are no *good* programmers who dont know how
>> to use Google!!  :-D
>>
>>
>> as for the OP: No, not necessary.
>>
>> On Saturday, August 17, 2013 12:21:20 PM UTC+3, Paul-Peter Tournaris
>> wrote:
>>>
>>> There are no programmers who dont know how to use Google!!
>>>
>>>
>>>
>>> On Sat, Aug 17, 2013 at 11:14 AM, Johnny  wrote:
>>>
 Is it necessary to learn NDK for game programming. if yes , How do I
 start?  where can i get the resources and sample programmer? .
 Please suggest me.
 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-d...@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  & Software Developer*
>>>
>>>- *http://goo.gl/TsJ8u*
>>>- *http://acschedule.org*
>>>
>>>   --
> 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.
>



-- 
Michael Banzon
http://michaelbanzon.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 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] want to be a game programmer.

2013-08-20 Thread Rafael Maas
Hi johnny!

You can try Corona (http://www.coronalabs.com/) to 2d game development or
Unity (http://unity3d.com/) , project (anarchy
http://www.projectanarchy.com/) to 3d game development. :D


2013/8/20 Michael Banzon 

> Game programming is all fun and dandy... But the question that pops into
> my mind is: What great game idea do you have? ;-)
>
> Secondly: If the quest is to make a fantastic game you could start with
> the Unity engine (or something like it) and don't concentrate that much
> about the platform before you get to "know game development".
>
>
> On Tue, Aug 20, 2013 at 9:10 AM, Johnny  wrote:
>
>>
>> Thanks for reply, I agreed with this sentences."There are no 
>> *good*programmers who dont know how to use Google!!" . But I am not getting 
>> the
>> good resource what I want. thatswhy I am posting my question here.
>>
>> If you can help me out, I am very garteful to all.
>>
>>
>>
>>
>>
>> On Sunday, August 18, 2013 1:00:59 PM UTC+5:30, Piren wrote:
>>>
>>> You should follow this group more closely... evidence show the contrary
>>> ;-)
>>> I'm more inclined to: "There are no *good* programmers who dont know
>>> how to use Google!!  :-D
>>>
>>>
>>> as for the OP: No, not necessary.
>>>
>>> On Saturday, August 17, 2013 12:21:20 PM UTC+3, Paul-Peter Tournaris
>>> wrote:

 There are no programmers who dont know how to use Google!!



 On Sat, Aug 17, 2013 at 11:14 AM, Johnny  wrote:

> Is it necessary to learn NDK for game programming. if yes , How do I
> start?  where can i get the resources and sample programmer? .
> Please suggest me.
> 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-d...@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  & Software Developer*

- *http://goo.gl/TsJ8u*
- *http://acschedule.org*

   --
>> 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.
>>
>
>
>
> --
> Michael Banzon
> http://michaelbanzon.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 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.
>

-- 
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] want to be a game programmer.

2013-08-20 Thread Carol Bolger
I started out using AndEngine. It's free, there are some samples and
tutorials out there. I do recommend reading the book AndEngine for Android
Game Development.


On Tue, Aug 20, 2013 at 9:26 AM, Rafael Maas  wrote:

> Hi johnny!
>
> You can try Corona (http://www.coronalabs.com/) to 2d game development or
> Unity (http://unity3d.com/) , project (anarchy
> http://www.projectanarchy.com/) to 3d game development. :D
>
>
> 2013/8/20 Michael Banzon 
>
>> Game programming is all fun and dandy... But the question that pops into
>> my mind is: What great game idea do you have? ;-)
>>
>> Secondly: If the quest is to make a fantastic game you could start with
>> the Unity engine (or something like it) and don't concentrate that much
>> about the platform before you get to "know game development".
>>
>>
>> On Tue, Aug 20, 2013 at 9:10 AM, Johnny  wrote:
>>
>>>
>>> Thanks for reply, I agreed with this sentences."There are no 
>>> *good*programmers who dont know how to use Google!!" . But I am not getting 
>>> the
>>> good resource what I want. thatswhy I am posting my question here.
>>>
>>> If you can help me out, I am very garteful to all.
>>>
>>>
>>>
>>>
>>>
>>> On Sunday, August 18, 2013 1:00:59 PM UTC+5:30, Piren wrote:

 You should follow this group more closely... evidence show the contrary
 ;-)
 I'm more inclined to: "There are no *good* programmers who dont know
 how to use Google!!  :-D


 as for the OP: No, not necessary.

 On Saturday, August 17, 2013 12:21:20 PM UTC+3, Paul-Peter Tournaris
 wrote:
>
> There are no programmers who dont know how to use Google!!
>
>
>
> On Sat, Aug 17, 2013 at 11:14 AM, Johnny  wrote:
>
>> Is it necessary to learn NDK for game programming. if yes , How do I
>> start?  where can i get the resources and sample programmer? .
>> Please suggest me.
>> 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-d...@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  & Software Developer*
>
>- *http://goo.gl/TsJ8u*
>- *http://acschedule.org*
>
>   --
>>> 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.
>>>
>>
>>
>>
>> --
>> Michael Banzon
>> http://michaelbanzon.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 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.
>>
>
>  --
> 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" gr

[android-developers] Re: Add a contact via ContentProvider programmatically

2013-08-20 Thread Nobu Games
I'm not completely sure but I think you need to create separate inserts for 
the name and the phone number. So make a separate insert for the phone 
number and don't forget to set the correct mime type for that.


On Tuesday, August 20, 2013 9:01:48 AM UTC-5, Greenhand wrote:
>
> I have tried to add a contact ContentProvider programmatically but in 
> vain. The following is my code:
>  
> import android.app.Activity;
> import android.content.ContentUris;
> import android.content.ContentValues;
> import android.net.Uri;
> import android.os.Bundle;
> import android.provider.ContactsContract.CommonDataKinds.Phone;
> import android.provider.ContactsContract.CommonDataKinds.StructuredName;
> import android.provider.ContactsContract.Data;
> import android.provider.ContactsContract.RawContacts;
> import android.view.Menu;
>  
> public class MainActivity extends Activity {
>  @Override
>  protected void onCreate(Bundle savedInstanceState) {
> super.onCreate(savedInstanceState);
> setContentView(R.layout.activity_main);
>   
> ContentValues values = new ContentValues();
> Uri rawContactUri = 
> getContentResolver().insert(RawContacts.CONTENT_URI, values);  
> long rawContactId = ContentUris.parseId(rawContactUri);
> values.put(Data.RAW_CONTACT_ID, rawContactId);  
> values.put(Data.MIMETYPE, StructuredName.CONTENT_ITEM_TYPE);  
> values.put(StructuredName.GIVEN_NAME, "Test"); //the contact name
> values.put(Phone.NUMBER, "123456789"); //the contact phone number
> values.put(Phone.TYPE, Phone.TYPE_MOBILE);
> 
> getContentResolver().insert(android.provider.ContactsContract.Data.CONTENT_URI,
>  
> values);
>  }
>  
> with permission  android:name="android.permission.WRITE_CONTACTS" />  
>  
> However, the result is pretty weird. The first screenshot shows the name 
> "2" instead of "Test" and the second screenshot shows no phone number 
> instead of "123456789." Do I miss something?
>

-- 
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: How do I call a service, to retrieve data, from a content provider?

2013-08-20 Thread user123
Thanks. I also suspected that I'm overcomplicating it :)

The thing is, basically, that I saw this approach using a service in a 
Google IO talk about REST services (from 2010). Also, some code I worked 
with recently also used a service (but without content provider or database 
access). I thought this must have a reason, otherwise Loader or AsyncTask 
looks far more handy. Or in my case just calling it synchronously in the 
same thread where I'm accessing the content provider.

Recently I also read that the service is killed similarly to the activities 
when e.g. the system is low of memory. So it seems there's also not a 
higher reliability. In other words, I have no idea why this talk showed the 
use of services so frequently. Maybe because it's old (although at that 
time there were at least threads, and that's still more use friendly to 
call webservices than a service). 

The code I received, were there were also services, I guess this company 
also was inspired by the same talk.

Still I'm curious if there's a real reason to use a service only to call a 
webservice? Maybe somebody sees a point which I'm missing.





Am Dienstag, 20. August 2013 08:42:36 UTC+2 schrieb Piren:
>
> Because I want that once started, it will receive and process the 
>> response, even if the user exits the app / the system kills it, etc. 
>>
> That has nothing to do with Services though... any ASyncTask you start or 
> any Thread you start will continue even if you exit the app. Services die 
> just like any other component once you Kill the app (with the exception of 
> "sliding" an app from the Recents list and the service being a Foreground 
> service).
>
> You're over complicating things... process the information on the same 
> component that retrieves it or at least store it for whatever comes next. 
> Also, if the web call needs to download a lot of information, it's best to 
> implement a chunking mechanism and support being able to "resume download", 
> killing your app will have less of an impact.
>
> On Monday, August 19, 2013 10:27:29 PM UTC+3, user123 wrote:
>>
>> I'm trying to implement a pattern of accessing data source, independently 
>> if it's local or remote, using a content provider.
>>
>> So, inside the content provider, for example in the query method:
>>
>> public Cursor query(Uri uri, String[] projection, String selection, 
>> String[] selectionArgs, String sortOrder) {...}
>>
>> I want to, check if data is stored locally, if not, then call the 
>> webservice, on response save and return it. Typical request process with a 
>> local cache.
>>
>> Now to get the data from the webservice, I wanted to use a service. 
>> Because I want that once started, it will receive and process the response, 
>> even if the user exits the app / the system kills it, etc. 
>>
>> Note: I don't need to use anything synchronous here, since I'm already 
>> running the query to the content provider asynchronouly 
>> (AsyncQueryHandler). So I think I have to use Service instead of e.g. 
>> IntentService.
>>
>> The idea with the service is to have a method to call the webservice:
>>
>> public WebserviceResponse callWebservice(params) {...}
>>
>> And in ContentProvider.query(): 
>>
>> WebserviceResponse response = myService.callWebservice(params);
>>
>>
>> But the problem is that I can't find how to ensure that the service is 
>> already bound before the first query. If I bind it in 
>> ContentProvider.onCreate:
>>
>> @Override
>> public boolean onCreate() {
>> final Context context = getContext();
>> dbHelper = new DatabaseHelper(context);
>>
>> context.bindService(new Intent(context, MyService.class), 
>> mConnection, Context.BIND_AUTO_CREATE);
>> return true;
>> }
>>
>> Where mConnection is:
>>
>>
>> private ServiceConnection mConnection = new ServiceConnection() {
>>
>>public void onServiceConnected(ComponentName className, IBinder 
>> binder) {
>> myService = ((MyService.MyBinder) binder).getService();
>>}
>>
>>public void onServiceDisconnected(ComponentName className) {
>> myService = null;
>> }
>> };
>>
>> And I do a query using this content provider in my activity's onCreate(), 
>> the service is not bound yet and I get an exception when I try to use it.
>>
>> A way around I can think of, is to call the webservice directly - without 
>> a service - from the content provider. This will be synchronous and I can 
>> process the response without problems there. But it has mentioned 
>> disadvantage that the call can be interrupted and the data not processed. 
>> It's not the end of the world - the next time the user opens the app, the 
>> webservice would be called again. But I still would like to not have it 
>> that way.
>>
>> A second possibility I can think of, is to invert this logic and do the 
>> access to the content provider in a (asynchronous) service. But here I have 
>> a different problem, which is that, afair, the async service 
>> (IntentService) communicates 

Re: [android-developers] Any suggestions for Ad platform in addition to AdMob

2013-08-20 Thread limtc
I tried out Inneractive before I saw your mail on this, so far I got about 
1/5th of the revenue I used to get from AdMob. I am not sure whether this 
is good or bad as this is a new update and probably only a fraction of the 
users upgraded, so we will continue to see what happened.

However, the SDK is really easy to use, I got it working the first time! 

PS: why do we choose its service? Because they just happened to contact us 
first and we got its ad service tested working on the first try which 
impressed us. Worth a try imho.

I suggest you take a look at: 
> https://github.com/mopub/mopub-android-sdk/wiki/Getting-Started and 
> https://github.com/mopub/mopub-android-sdk/wiki/Banner-Integration
>
> I'd probably stay away from low paying networks beside the ones stated 
> before.  Good luck.
>
>

-- 
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] Re: Add a contact via ContentProvider programmatically

2013-08-20 Thread Hand Green
You are right! Thank you a lot!


2013/8/20 Nobu Games 

> I'm not completely sure but I think you need to create separate inserts
> for the name and the phone number. So make a separate insert for the phone
> number and don't forget to set the correct mime type for that.
>
>
> On Tuesday, August 20, 2013 9:01:48 AM UTC-5, Greenhand wrote:
>>
>> I have tried to add a contact ContentProvider programmatically but in
>> vain. The following is my code:
>>
>> import android.app.Activity;
>> import android.content.ContentUris;
>> import android.content.ContentValues;
>> import android.net.Uri;
>> import android.os.Bundle;
>> import android.provider.**ContactsContract.**CommonDataKinds.Phone;
>> import android.provider.**ContactsContract.**CommonDataKinds.**
>> StructuredName;
>> import android.provider.**ContactsContract.Data;
>> import android.provider.**ContactsContract.RawContacts;
>> import android.view.Menu;
>>
>> public class MainActivity extends Activity {
>>  @Override
>>  protected void onCreate(Bundle savedInstanceState) {
>> super.onCreate(**savedInstanceState);
>> setContentView(R.layout.**activity_main);
>>
>> ContentValues values = new ContentValues();
>> Uri rawContactUri = 
>> getContentResolver().insert(**RawContacts.CONTENT_URI,
>> values);
>> long rawContactId = ContentUris.parseId(**rawContactUri);
>> values.put(Data.RAW_CONTACT_**ID, rawContactId);
>> values.put(Data.MIMETYPE, StructuredName.CONTENT_ITEM_**TYPE);
>> values.put(StructuredName.**GIVEN_NAME, "Test"); //the contact name
>> values.put(Phone.NUMBER, "123456789"); //the contact phone number
>> values.put(Phone.TYPE, Phone.TYPE_MOBILE);
>> getContentResolver().insert(**android.provider.**
>> ContactsContract.Data.CONTENT_**URI, values);
>>  }
>>
>> with permission > android:name="android.**permission.WRITE_CONTACTS"
>> />
>>
>> However, the result is pretty weird. The first screenshot shows the name
>> "2" instead of "Test" and the second screenshot shows no phone number
>> instead of "123456789." Do I miss something?
>>
>  --
> 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 a topic in the
> Google Groups "Android Developers" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/android-developers/9MJsu5F0NO4/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_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
--- 
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] How to Repeating android alarms

2013-08-20 Thread askl
Hello Friends,
How to repeat alarms for several day under the same ID.

*for ex:- i want to set alarm for 10:30 AM and Repeating Sunday, Monday and 
Friday.*
*
*
*Here is the my code*
*
*

Calendar myCal = Calendar.getInstance();

 myCal.set(myCal.get(Calendar.YEAR), myCal.get(Calendar.MONTH),

  myCal.get(Calendar.DAY_OF_MONTH), 10, 30, 00);

myCal.set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY);

myCal.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY);

myCal.set(Calendar.DAY_OF_WEEK, Calendar.FRIDAY);


PendingIntent senderPi = PendingIntent.getBroadcast(

  AddAlarmActivity.this, db.getNextId(), AlarmIntent,

  PendingIntent.FLAG_UPDATE_CURRENT);

almMgr.setRepeating(AlarmManager.RTC_WAKEUP, myCal.getTimeInMillis(), 
AlarmManager.INTERVAL_DAY,senderPi);

Please give me a good suggestions for this. 

Thank YOU!


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