Is it possible to like hook up your phone to your pc and use it as a simulator for your code instead of on the pc?
You can use CoronaViewer to do that. Build CoronaViewer, and put your project in the DropBox folder. See the blog post for an example of how it works.
Does this work for windows laptop and android phone?
And how do i get it on my phone? the app,
Please read the readme file on the GitHub page. It answers both questions and should help you along.
So i got it working … and when i launch the app on my phone shows the app in portrait mode(my app is in landscape) how do i fix this?
Glad to hear!
As for portrait mode, one important thing to note is that your config.lua and build.settings aren’t always going to get read through CoronaViewer, as it’s wrapping around your app.
So, go to the CoronaViewer app you downloaded, and modify its build.settings/config.lua to match your needs, including portrait/landscape.
settings = { orientation = { default = "landScapeRight", supported = { "landScapeRight" }, -- supported = { "landscapeLeft", "landscapeRight", "portrait", "portraitUpsideDown" }, }, plugins = { -- key is the name passed to Lua's 'require()' ["plugin.viewer"] = { -- required publisherId = "com.coronalabs", }, }, iphone = { plist = { CFBundleURLTypes = { { CFBundleURLSchemes = { "db-l1q0pln8qsi8qyp", } } } }, } }
So i changed the settings i need(to landscape) and i built the app again and still its portrait.
Try changing landScapeRight to landscapeRight and rebuild.
Wow i was looking over the code for a good 5 min and didnt see that haha thanks one second
Yaa well i did it and still in portrait.
on my laptop the simulator show it as landscape… but on the phone its portrait
My cofig file here…
application = { content = { width = 320, height = 480, scale = "letterbox", fps = 30, -- scale = "none", -- scale = "zoomEven", -- scale = "zoomStretch", }, }
My build setting file
settings = { orientation = { default = "landScapeRight", supported = { "landScapeRight" }, -- supported = { "landScapeLeft", "landScapeRight", "portrait", "portraitUpsideDown" }, }, plugins = { -- key is the name passed to Lua's 'require()' ["plugin.viewer"] = { -- required publisherId = "com.coronalabs", }, }, iphone = { plist = { CFBundleURLTypes = { { CFBundleURLSchemes = { "db-l1q0pln8qsi8qyp", } } } }, }
Certainly have this working locally on an Android device. Check for common errors: You’re changing build.settings in CoronaViewer (not your app) and rebuilding and successfully replacing the app on your device (note that adb install requires -r to replace an app already installed).
Your build.settings still has landScape vs landscape. Make sure both your app and CoronaViewer have landscapeRight/Left.
If you still find no issues let me know and we’ll look at differences between our setups.
Ok so i looked over the code and compared it to a different project and yes you were correct but i misunderstood you … you said to change them to “landscapeRight” but i thought you meant “landScapeRight” so i fixed it an it works great! thanks! I think i might make YouTube video tutorial on how to set this up for android and get it working… just to help others skip the headache … Once again Thanks for the help! Have a great rest of your Day/Night!
Great, glad to hear. 
Cheers, and hope that works for you. AFAIK CoronaViewer is still in Beta, so let us know if you run into any issues.
You can use CoronaViewer to do that. Build CoronaViewer, and put your project in the DropBox folder. See the blog post for an example of how it works.
Does this work for windows laptop and android phone?
And how do i get it on my phone? the app,
Please read the readme file on the GitHub page. It answers both questions and should help you along.