Widget update on touch, help - Android Software Development

Hi,
I have made a widget that update every 6 hour, however i wont to make i posible to update the widgate instant by one press on the widget.
Is there a kind person there can help me with the code for this?
i ned to know how i can make a picture in the widget app to run the update class.

Wackey said:
Hi,
I have made a widget that update every 6 hour, however i wont to make i posible to update the widgate instant by one press on the widget.
Is there a kind person there can help me with the code for this?
i ned to know how i can make a picture in the widget app to run the update class.
Click to expand...
Click to collapse
Did you look at already at this
?

Dark3n said:
Did you look at already at this
?
Click to expand...
Click to collapse
Thanks for your replay,
I have unfortunately not had the fortune to implement the code in my program. the only thing that must happen is that it should update some text. and to do this, it have to eksikvere " private static void refreshTextInWidget(Context context, RemoteViews updateViews) "

Related

Why is Twitter slow on update?

Hi!
Is it just me or why is my Twitter not upated as soon as a new twitt is written.
I have made a small test and when i write something on my PC's twitter it takes a while before i can see it on my HD2. How come?
Get the TouchTwit app. It's like $2, and I've found it to be way more useful and prompt than the included Peep program. Not perfect, but better.
ToddeSwe said:
Hi!
Is it just me or why is my Twitter not upated as soon as a new twitt is written.
I have made a small test and when i write something on my PC's twitter it takes a while before i can see it on my HD2. How come?
Click to expand...
Click to collapse
I've the same problem, in the settings I've set the update to every 15 minutes, but I have always update it manually. When I wake up in the morning I always see that the last update was around midnight and that update was done by myself.
golles said:
I've the same problem, in the settings I've set the update to every 15 minutes, but I have always update it manually. When I wake up in the morning I always see that the last update was around midnight and that update was done by myself.
Click to expand...
Click to collapse
And when you restart the device the twitter sound is going off but no new twitts Am i right?
Smailtronic said:
Get the TouchTwit app. It's like $2, and I've found it to be way more useful and prompt than the included Peep program. Not perfect, but better.
Click to expand...
Click to collapse
But this app will not show up in a tab, so i guess i'm sticking to the one included..
ToddeSwe said:
But this app will not show up in a tab, so i guess i'm sticking to the one included..
Click to expand...
Click to collapse
I keep mine parked in the top row of icons on my Home screen. Nice and easy access.
ToddeSwe said:
And when you restart the device the twitter sound is going off but no new twitts Am i right?
Click to expand...
Click to collapse
Yes, same here!
golles said:
Yes, same here!
Click to expand...
Click to collapse
Then we have a new problem/bug for them to fix....
My guess is that we're never going to see any fix for our problems now when there's new models out on the market that needs fixing as well But i read a thread about the U.S model have had a new ROM that fixed every problem the old one had... I'm glad for them and are hoping that the rest of the world can expect the same treatment.
Not any fix atm?
have no idea, think its something wrong with the program.... hope they update it someday

Latest HTC Android 2.1 Version

Hi, once I got my HTC Hero yest, I did a software update automatically on the way home. Do I have the lastest update to my phone? I notice that I have a hard time pressing the "+ new message" for SMS, it does not do anything. Or even then I want to add a widget to the screen, I have a hard time pressing the widget icon, but no issues pressing Program, shortcuts, and folder, just the top most selection.
Same thing happens where It doesnt do anything when pressing the + icon to add a company for the HTC stocks widget
Is there a way to calabrate the screen?
Firmware Version
2.1-update 1
Baseband Version
2.6.29-ba77cf03
buid number
2.32.651.2 CL282911 release-keys
Software number
2.32.651.2
Browerser ver
webkit 3.1
PRI Version
2.65_003
Deltatristar500 said:
Hi, once I got my HTC Hero yest, I did a software update automatically on the way home. Do I have the lastest update to my phone? I notice that I have a hard time pressing the "+ new message" for SMS, it does not do anything. Or even then I want to add a widget to the screen, I have a hard time pressing the widget icon, but no issues pressing Program, shortcuts, and folder, just the top most selection.
Same thing happens where It doesnt do anything when pressing the + icon to add a company for the HTC stocks widget
Is there a way to calabrate the screen?
Firmware Version
2.1-update 1
Baseband Version
2.6.29-ba77cf03
buid number
2.32.651.2 CL282911 release-keys
Software number
2.32.651.2
Browerser ver
webkit 3.1
PRI Version
2.65_003
Click to expand...
Click to collapse
Go to menu>settings>Language&Keyboards>Text Input>scrool to bottom and you have choices of reset or calibrate
Thank you very much, however I though it would fix my issue of not being able to select new message icon, but I still cant select it.
Wont work for
+ New Message
+ Add Contact
Cant add Widget, but can add program, shortcuts and folders just fine, seems to be a sense issue for the top most "add" icon
seems like it might be a sense issue
Not really a way to calibrate the screen that I'm aware of
Deltatristar500 said:
seems like it might be a sense issue
Click to expand...
Click to collapse
Try doing a factory reset, maybe some of those 1's and 0's got lost in the ether.LOL! Of course everything that you've setup on the phone except for your sdcard will be erased. If you need to that Settings>PrivacyFactory Reset. Hope this solves the issue.
theimpaler747 said:
Not really a way to calibrate the screen that I'm aware of
Click to expand...
Click to collapse
Yeah the directions take you to where it says calibrate your screen. Does it help(shrugging shoulders)dunno! Personnally if feel that when you are doin those ota's and driving or moving signal loss and tower changes may give you chance to drop data.IMO
FdxRider said:
Yeah the directions take you to where it says calibrate your screen. Does it help(shrugging shoulders)dunno! Personnally if feel that when you are doin those ota's and driving or moving signal loss and tower changes may give you chance to drop data.IMO
Click to expand...
Click to collapse
That just calibrates the keyboard
theimpaler747 said:
That just calibrates the keyboard
Click to expand...
Click to collapse
LOL sometimes my reading is to literal HeHe.I figured that might be the case. Down in flames i goes! LOL!
FdxRider said:
LOL sometimes my reading is to literal HeHe.I figured that might be the case. Down in flames i goes! LOL!
Click to expand...
Click to collapse
Lol, hey, it does calibrate something
Hmm, did a factory reset, still cant click on the New Message icon...seems like a defective device.
Ok, sometimes it works with my left thumb, but with no other fingers...
Deltatristar500 said:
Hmm, did a factory reset, still cant click on the New Message icon...seems like a defective device.
Ok, sometimes it works with my left thumb, but with no other fingers...
Click to expand...
Click to collapse
Might be a phone defect.....
Deltatristar500 said:
Hmm, did a factory reset, still cant click on the New Message icon...seems like a defective device.
Ok, sometimes it works with my left thumb, but with no other fingers...
Click to expand...
Click to collapse
Try something actully a couple of things, first try a battery pull. Then if nothing happens ,try a complete drain of the battery run it til it shuts down then recharge and see what happens.Don't know if it will help. But you never know
How do I know if the verison I have on the Hero on my first post is the same or newer than the one on the HTC sight?
http://www.htc.com/us/support/hero-sprint/downloads/
Man, you really should just spend a week or so messing with your phone instead of cluttering up the general section with questions that have all been answered or are easily answered by reading the guide that came with your phone. Not trying to be a ****, but Ive seen u start several threads here in the wrong section. Please use the search finction on the sight, and the user manual for your phone.
Sent from my HERO200 using XDA App
I would love to have 2.2 on my hero, please email me with details, already rooted all that is needed is ROM. email me if you can help me it would be greatly appreciated.
Edit: No longer a noobie and figured it out. Sorry for spamming my email in earlier post didn't even think about it sorry.
oddball2000 said:
I would love to have 2.2 on my hero, please email me with details, already rooted all that is needed is ROM. email me if you can help me it would be greatly appreciated. [STRIKE]oddball2000 @ gmail .com[/STRIKE]
Click to expand...
Click to collapse
You're asking to get spammed.
This is a pubic forum that gets indexed.
Try looking at the Development section of the forum for AOSP or Dev Rom.
The software version that was on my sons hero I just rooted was
2.32.651.7 .Android version 2.1 update 1 . He got that update done at a Sprint store but the system update option under settings should give it to ya. His ran pretty smooth.

Need help, auto-answer a call

Hello im working with a developer to make an app, and this is her response. I am hoping someone can chime in and give me some guidance i can pass along, where she might look in order to solve our task of auto-answering
we used to evoke 'Action Answer' modules but this feature has been revoked by the Android community as the community states it as a breach of privacy.
Click to expand...
Click to collapse
So what info can i give her, to guide in creating the auto-answer?
Thank you
Can anyone confirm if its still possible to have an app auto-answer an incoming call?
Thank you all, in a bind sorry for the bump
rsarno said:
Can anyone confirm if its still possible to have an app auto-answer an incoming call?
Thank you all, in a bind sorry for the bump
Click to expand...
Click to collapse
I do not have any info, only another question - If you do move forward, it would also help me in my quest: Using the 'Volume Up' key to answer the phone call ( thread here: http://forum.xda-developers.com/showthread.php?t=909172 )
I assume they would need similar answering capabilities ....
i dont see why its a breach of privacy, when the owner of the phone is the one who installs the app. If someone were to install the app on a phone they dont own it would be pretty obvious to the owner something is wrong.
But why not install the app with auto answer turned off as a default, forcing the user to turn it on manually and even stating to them a privacy statement explaing the operation and asking are you sure you wanna do this, maybe even adding a sercurity code for approval.
FreeTheWorld said:
i dont see why its a breach of privacy, when the owner of the phone is the one who installs the app. If someone were to install the app on a phone they dont own it would be pretty obvious to the owner something is wrong.
But why not install the app with auto answer turned off as a default, forcing the user to turn it on manually and even stating to them a privacy statement explaing the operation and asking are you sure you wanna do this, maybe even adding a sercurity code for approval.
Click to expand...
Click to collapse
Our challenge is finding the way to actually do it, to have the phone auto answer. At this point the client is not concerned with privacy, for reasons you listed.
One positive is that i see there is an app called AutoAnswer which (based on reviews) was functional as of 10 days ago. If they can do it, we can do it.
Its just my developer is challenged by what methods to use, or whatever, to invoke the "Answer" action
You can try the following code, but I didn't test it myself (and you need ITelephony.aidl from Android sources)
Code:
TelephonyManager tm =
(TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);
Class clazz = Class.forName(tm.getClass().getName());
Method m = clazz.getDeclaredMethod("getITelephony");
m.setAccessible(true);
ITelephony it = (ITelephony) m.invoke(tm);
it.answerRingingCall();
thanks, i will try!
vvv.androlib.com/android.application.pl-apps4android-nacm-zmipE.aspx where vvv is instead www
"Not Another Call Manager" NACM
tested before 10 Minutes on G1 with Biffmod 2.2
you can find it on the Market
xektop said:
vvv.androlib.com/android.application.pl-apps4android-nacm-zmipE.aspx where vvv is instead www
"Not Another Call Manager" NACM
tested before 10 Minutes on G1 with Biffmod 2.2
you can find it on the Market
Click to expand...
Click to collapse
He was looking for API, not for ready app. Or you propose to decompile this app and look at the code?
rwxer said:
He was looking for API, not for ready app. Or you propose to decompile this app and look at the code?
Click to expand...
Click to collapse
An API or a method of doing it via code.
Client is about to walk, because we cannot find a solution.
Need to answer the call automatically based on conditions. Not using Bluetooth, just as if you hit the "Accept" button on the handset, and it connects the call
Still not able to find a solution. Any ideas?
So answerRingingCall() method is not working?

[Q] Running specific activity from app?

Hey guys how are you all?? ... hope you are fine..
hey i need to know if is there any app which can launch others app's activities... i had recently installed CM9 on my defy+ and i found the lock screen options has a very amaizng cool option which can lunch any app from any of its activities.... so i can start for example facebook directly from my profile view activity... is there anyway to run such activities directly from a console.. comand line or any app which does the same out of CM9???
thnks it would be very cool :victory:
Questions go in the Q&A section
What do you mean by "console"? A Terminal?
Anyway, I have Apex launcher on my device and there it's possible to place shortcuts to specific activities on homescreen.
E.g. I have a shortcut pointing directly to the tethering settings activity.
yodawg said:
What do you mean by "console"? A Terminal?
Anyway, I have Apex launcher on my device and there it's possible to place shortcuts to specific activities on homescreen.
E.g. I have a shortcut pointing directly to the tethering settings activity.
Click to expand...
Click to collapse
yes exacly!! a terminal!!! ... i just didn't know how to call that and yeahhh you got what i mean! only with Apex Launcher ohh interesting at least people can install it without need to flash other room... well it helps i gonna download!! you know such functions allow us to do a bunch of things... such as create multiple account on app which isn't possible create more than one.. or even use apps which needs to be registered thanks man
Milewsky said:
yes exacly!! a terminal!!! ... i just didn't know how to call that and yeahhh you got what i mean!
Click to expand...
Click to collapse
"Console" is also right, I just wasn't sure if you _really_ meant that
only with Apex Launcher ohh interesting
Click to expand...
Click to collapse
Maybe it's also possible with other Apps/Launchers but I don't know... (maybe search/google will bring you further results)
at least people can install it without need to flash other room
Click to expand...
Click to collapse
Yes.
... well it helps i gonna download!! you know such functions allow us to do a bunch of things... such as create multiple account on app which isn't possible create more than one.. or even use apps which needs to be registered thanks man
Click to expand...
Click to collapse
Hm I don't think that this is possible (but you simply gonna try that)... for me it's more like a 'shortcut' to save you time that you normally spend tapping on your screen.

Hi .!! i need info about a situation with samsung note 4,european version.

After last update it appear this notification ,(see photo). can anyoane please tell me what is that. Until now i just dismised,and i dont open it.
Thanks in advamce for trying to help.
It is appears a notification of the weather widget no?]
What is your ROM version? you can see that in configurations, about phone.
my device info
I dont know what exactly is,is just see it,and i prefer to dismis
John___007 said:
It is appears a notification of the weather widget no?]
What is your ROM version? you can see that in configurations, about phone.
Click to expand...
Click to collapse
gabrielvl said:
I dont know what exactly is,is just see it,and i prefer to dismis
Click to expand...
Click to collapse
Still on 5.1.1, i think that it is a card of googl now... if you want, disable.
or, clean the cache off all apps of google.
Thanks
gabrielvl said:
Thanks
Click to expand...
Click to collapse
For nothing, if i have helped you, thanks in thanks metter :good:
I will find out tomorrow, becouse that pop up message appear once at day
It is from calendar, a notification. I just open it, and I deleted. Thanks

Categories

Resources