Touch screen

Your ideas for any killerapplication that comes to your mind ;)

Touch screen

Postby tomislavk » Sun Dec 12, 2010 2:12 pm

Is there a way to manipulate with sensitivity of screen?
Any 1 knows?
So i can make some parts of screen more or less touch sensitive.
tomislavk
Freshman
Freshman
 
Posts: 8
Joined: Tue Jun 08, 2010 7:54 pm

Top

Re: Touch screen

Postby BenjaminJC » Tue Dec 14, 2010 10:14 am

I don't know of any droids off the top of my head that have such an option already.

If you are considering the feature as far as game integration goes, a good way to simulate "hard" touches is to allow for hold durations (longer hold = "harder" touch).
Scoreloop
Get in the loop.
BenjaminJC
Senior Developer
Senior Developer
 
Posts: 134
Joined: Tue Oct 12, 2010 11:43 am

Re: Touch screen

Postby tomislavk » Wed Dec 15, 2010 8:00 pm

hmm interesting any code with example?
tomislavk
Freshman
Freshman
 
Posts: 8
Joined: Tue Jun 08, 2010 7:54 pm

Re: Touch screen

Postby blundell » Thu Dec 16, 2010 10:17 am

Code: Select all

TextView t = new TextView(this);
t.setOnLongClickListener(new View.OnLongClickListener(
       @Override
       public void onLongClick(){
             System.out.println("Ooo you pressed me so hard, this code is so cool");
       }
));


Or something like:
Code: Select all
private static final int PRESSURE_POINT = 50;
private int timePressed = 0;


private void onTouch(){
     timePressed++;
     System.out.println("your pressing me");
     if(timePressed >= PRESSURE_POINT){
          System.out.println("You've pressed me long and hard");
          timePressed = 0;
     }
}
User avatar
blundell
Master Developer
Master Developer
 
Posts: 1610
Joined: Tue Nov 18, 2008 12:58 pm
Location: UK

Re: Touch screen

Postby tomislavk » Fri Dec 17, 2010 8:06 am

yea thnx foget about long click :)
tomislavk
Freshman
Freshman
 
Posts: 8
Joined: Tue Jun 08, 2010 7:54 pm

Re: Touch screen

Postby BenjaminJC » Fri Dec 17, 2010 2:10 pm

Blundell to the rescue. :P
Scoreloop
Get in the loop.
BenjaminJC
Senior Developer
Senior Developer
 
Posts: 134
Joined: Tue Oct 12, 2010 11:43 am

Top

Re: Touch screen

Postby blundell » Sat Dec 18, 2010 12:18 am

I figured you weren't all up on your coding being more on the integration side, so thought I'd just drop some methods ;-) you inspired me to code :p
User avatar
blundell
Master Developer
Master Developer
 
Posts: 1610
Joined: Tue Nov 18, 2008 12:58 pm
Location: UK

Re: Touch screen

Postby BenjaminJC » Mon Dec 20, 2010 10:16 am

Yeah, I'm more an "ideas" guy. I leave cold, hard realities to people who can handle them. I can cook a mean curry, though.
Scoreloop
Get in the loop.
BenjaminJC
Senior Developer
Senior Developer
 
Posts: 134
Joined: Tue Oct 12, 2010 11:43 am

Re: Touch screen

Postby Plump » Thu Dec 23, 2010 7:27 am

Wow,I think that's a tough work!
Good to see you!
User avatar
Plump
Freshman
Freshman
 
Posts: 3
Joined: Thu Dec 23, 2010 7:15 am
Location: usa

Re: Touch screen

Postby BenjaminJC » Mon Jan 03, 2011 2:54 pm

Plump wrote:Wow,I think that's a tough work!


Nah, Curry is a cinch with the right ingredients :P
Scoreloop
Get in the loop.
BenjaminJC
Senior Developer
Senior Developer
 
Posts: 134
Joined: Tue Oct 12, 2010 11:43 am

Re: Touch screen

Postby Gorrell » Thu Feb 17, 2011 6:09 am

I think that depends on experience!! No coding!
hell!
User avatar
Gorrell
Freshman
Freshman
 
Posts: 5
Joined: Tue Dec 14, 2010 4:48 am
Location: USA

Re: Touch screen

Postby jenicamalaya » Tue Feb 28, 2012 2:15 pm

Today so many companies are introduce touchscreen mobile phones, tablets, PCs etc. It is great technology and it is working with a little sense or touch, sometime it make problems.
jenicamalaya
Freshman
Freshman
 
Posts: 3
Joined: Tue Feb 28, 2012 1:56 pm
Location: Alaska

Top

Return to Creative Corner

Who is online

Users browsing this forum: No registered users and 2 guests